@font-face { font-family: "Mona Sans"; font-style: normal; font-weight: 200 900; font-stretch: 75% 125%; font-display: block; src: url("derugo/mona-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Mona Sans"; font-style: italic; font-weight: 200 900; font-stretch: 75% 125%; font-display: block; src: url("derugo/mona-sans-italic-latin.woff2") format("woff2"); }

@view-transition { navigation: auto; }
:root { --dg-ink: #f2f2f0; --dg-mute: rgba(242, 242, 240, 0.62); --dg-line: rgba(242, 242, 240, 0.22); --dg-panel: rgba(12, 13, 17, 0.72); --dg-gold: #ffd36b; }
html[data-own-look], body.dg[data-dg-page] { margin: 0; height: 100%; background: #000; color: var(--dg-ink); overflow: hidden; color-scheme: dark; }
body.dg[data-dg-page] { font-family: "Mona Sans", system-ui, sans-serif; font-stretch: 125%; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.dg button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.dg a { color: inherit; }

.dg-stage { position: fixed; inset: 0; display: grid; place-items: center; }
.dg-stage video, .dg-poster { position: absolute; width: min(100vw, 177.78vh); height: min(56.25vw, 100vh); object-fit: contain; background: #000; }
.dg-poster { z-index: 0; }
.dg-idle { z-index: 1; }
.dg-main { z-index: 2; opacity: 0; }
.dg-show .dg-main { opacity: 1; }
.dg-show .dg-poster, .dg-show .dg-idle { visibility: hidden; }

.dg-stage { animation: dgRise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes dgRise { from { opacity: 0; transform: translateY(7vh) scale(0.93); } 55% { opacity: 1; } to { opacity: 1; transform: none; } }
.dg-glow { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse 34% 46% at 50% 56%, rgba(255, 244, 214, 0.1), transparent 70%); animation: dgGlow 2.4s ease-out both; }
@keyframes dgGlow { from { opacity: 0; } to { opacity: 1; } }
.dg-show .dg-glow { opacity: 0; transition: opacity 0.6s; animation: none; }

.dg-coin { position: fixed; inset: 0; z-index: 5; border: 0; background: transparent; cursor: pointer; }
.dg-coin:focus-visible { outline: none; }
.dg-on .dg-coin { pointer-events: none; }
.dg .dg-tag { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #0e0f12; font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.dg-prompt { position: fixed; left: 0; right: 0; bottom: 15vh; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dg-prompt.on { opacity: 1; transform: none; }
.dg-prompt .dg-tag { font-size: 14px; padding: 10px 24px; }
.dg-prompt.on .dg-tag { animation: dgPulse 2.2s ease-in-out infinite; }
.dg-prompt small { font-size: 11px; font-weight: 500; font-stretch: 100%; letter-spacing: 0.04em; color: var(--dg-mute); }
@keyframes dgPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.dg-coin:focus-visible ~ .dg-prompt .dg-tag { background: var(--dg-gold); }

.dg-back { position: fixed; z-index: 8; top: max(18px, env(safe-area-inset-top)); left: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 6px; background: var(--dg-panel); border: 1px solid var(--dg-line); font-size: 12.5px; font-weight: 600; font-stretch: 100%; text-decoration: none; opacity: 0.85; transition: opacity 0.3s, background 0.2s; }
.dg-back::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); margin-left: 4px; }
.dg-back:hover, .dg-back:focus-visible { opacity: 1; background: rgba(40, 42, 52, 0.85); }
.dg-back:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dg-playing:not(.dg-ui) .dg-back { opacity: 0; pointer-events: none; }

.dg-bar {
  position: fixed; z-index: 9; left: 0; right: 0; bottom: 0; display: none; align-items: center; gap: 14px; padding: 46px max(22px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent); opacity: 0; transition: opacity 0.35s;
}
.dg-playing .dg-bar { display: flex; }
.dg-ui .dg-bar, .dg-end .dg-bar, .dg-paused .dg-bar { opacity: 1; }
.dg-playing:not(.dg-ui):not(.dg-end):not(.dg-paused) { cursor: none; }
.dg-btn { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--dg-panel); border: 1px solid var(--dg-line); transition: background 0.18s; }
.dg-btn:hover { background: rgba(60, 62, 74, 0.85); }
.dg-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dg-btn svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.dg-btn[hidden] { display: none; }
.dg-time { flex: none; font-size: 12.5px; font-weight: 600; font-stretch: 100%; font-variant-numeric: tabular-nums; color: var(--dg-mute); min-width: 5.6em; text-align: center; }
.dg-line { position: relative; flex: 1; min-width: 0; height: 42px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.dg-line:focus-visible { outline: 2px solid #fff; outline-offset: 0; border-radius: 6px; }
.dg-line::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(242, 242, 240, 0.24); }
.dg-fill { position: absolute; left: 0; height: 4px; border-radius: 2px; background: #fff; width: calc(var(--p, 0) * 100%); }
.dg-knob { position: absolute; left: calc(var(--p, 0) * 100%); width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform 0.15s; }
.dg-line:hover .dg-knob, .dg-line:focus-visible .dg-knob, .dg-line.is-drag .dg-knob { transform: scale(1); }
.dg-btn svg.dg-vol-off, .dg-btn svg.dg-pause, .dg-btn svg.dg-full-exit, .dg-btn svg.dg-replay { display: none; }
.dg-nosound .dg-btn svg.dg-vol-on { display: none; }
.dg-nosound .dg-btn svg.dg-vol-off { display: block; }
.dg-isplaying .dg-btn svg.dg-play { display: none; }
.dg-isplaying .dg-btn svg.dg-pause { display: block; }
.dg-isfull .dg-btn svg.dg-full-in { display: none; }
.dg-isfull .dg-btn svg.dg-full-exit { display: block; }
.dg-end .dg-btn svg.dg-play, .dg-end .dg-btn svg.dg-pause { display: none; }
.dg-end .dg-btn svg.dg-replay { display: block; }

.dg-after { visibility: hidden; position: fixed; z-index: 10; left: 0; right: 0; bottom: calc(15vh + 40px); display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 0.6s 0.5s, transform 0.6s 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dg-end .dg-after { visibility: visible; opacity: 1; pointer-events: auto; transform: none; }
.dg .dg-after .dg-tag { font-size: 13px; padding: 10px 24px; text-decoration: none; }
.dg .dg-after .dg-ghost { background: rgba(244, 245, 248, 0.16); color: var(--dg-ink); }
.dg .dg-after .dg-tag:focus-visible { background: var(--dg-gold); color: #0e0f12; }
.dg-after [hidden] { display: none; }

.dg-wait { position: fixed; z-index: 7; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity 0.3s; animation: dgSpin 0.9s linear infinite; }
.dg-waiting .dg-wait { opacity: 1; }
@keyframes dgSpin { to { transform: rotate(360deg); } }
.dg-none { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; color: var(--dg-mute); font-size: 13px; }
.dg-none[hidden] { display: none; }

@media (orientation: portrait) {
  .dg-glow { background: radial-gradient(ellipse 70% 20% at 50% 50%, rgba(255, 244, 214, 0.1), transparent 70%); }
  .dg-prompt { bottom: auto; top: calc(50% + 28.2vw + 34px); }
  .dg-after { bottom: auto; top: calc(50% + 28.2vw + 34px); }
  .dg-bar { padding-bottom: max(26px, env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .dg-bar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .dg-btn { width: 40px; height: 40px; }
  .dg-time { min-width: 0; font-size: 11px; }
  .dg-time .dg-dur { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-stage, .dg-glow { animation: none; }
  .dg-prompt.on .dg-tag { animation: none; }
  .dg-wait { animation-duration: 2.4s; }
}

.dg-overlay { position: fixed; inset: 0; z-index: 2147483001; background: #000; color: var(--dg-ink); font-family: "Mona Sans", system-ui, sans-serif; font-stretch: 125%; -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: contain; color-scheme: dark; }
.dg-overlay .dg-stage { animation: none; }
.dg-overlay { inset: 0; width: 100vw; height: 100vh; height: 100dvh; }
.dg-overlay .dg-glow { display: none; }
.dg-opening .dg-main { transition: opacity 0.6s 0.3s ease-out; }
.dg-opening .dg-back, .dg-opening .dg-prompt { opacity: 0; pointer-events: none; }
.dg-opening { cursor: default; }
.dg-coin2d { position: fixed; z-index: 2147483002; left: 0; top: 0; width: 256px; height: 256px; transform-origin: 0 0; pointer-events: none; background: url(/assets/derugo/coin-sheet.webp) 0 0 / 600% 400% no-repeat; will-change: transform; filter: brightness(1.18) saturate(1.45); }

html.dg-open { scrollbar-color: #000 #000; }
html.dg-open::-webkit-scrollbar, html.dg-open::-webkit-scrollbar-track, html.dg-open::-webkit-scrollbar-thumb { background: #000; }
