/* The Fuji DEX in 4Vision's design language. Team1's rules (base.css: their page's tokens and buttons;
   dex.css: the app) stay as they wrote them; this sheet, loaded last, changes only what makes the look:
   the type (SF Pro, the reader's own files), the ground and its haze (the 5 Aralık page's, with the
   Hackathon's sky where Team1 had red), the primary capsule (Avalanche red #E84142, the reader's rim
   and glow) and the co-brand line. Nothing of the app's layout or behaviour is touched. */
@font-face{font-family:"SF Pro Text";src:url("/assets/fonts/sf-pro-text-regular.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
/* The reader ships one text weight. The app's heavier labels take the display semibold instead of a synthesised bold. */
@font-face{font-family:"SF Pro Text";src:url("/assets/fonts/sf-pro-display-semibold.woff2") format("woff2");font-style:normal;font-weight:500 700;font-display:swap}
@font-face{font-family:"SF Pro Display";src:url("/assets/fonts/sf-pro-display-regular.woff2") format("woff2");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"SF Pro Display";src:url("/assets/fonts/sf-pro-display-semibold.woff2") format("woff2");font-style:normal;font-weight:500 700;font-display:swap}
:root{
  --canvas:#0a0a0a;--surface:#191919;--raised:#1a1c20;--hover:#26282d;
  --ink:#fff;--body:#dadbdf;--muted:#9a9da4;
  --red:#e84142;--red-text:#ff8a8b;--red-700:#b8282e;
  --glass:rgba(18,18,18,.68);--glass-border:rgba(255,255,255,.24);
  --sans:"SF Pro Text",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --display:"SF Pro Display","SF Pro Text",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}
html,body{background:#0a0a0a}
body{font-synthesis:none;font-optical-sizing:auto}
.dx{--card:#141416;--fill:#1c1d20;--fill-hover:#26282d}
:focus-visible{outline:1px solid #fff;outline-offset:3px}
::selection{background:#363a3f;color:#fff}

/* The haze: plum behind the top left, violet in the middle, the Hackathon's sky at the right; the reader's grain. */
.fog{background:linear-gradient(180deg,rgb(33 32 37),rgb(33 32 37/.6) 55%,#0a0a0a)}
.fog-plum{background:radial-gradient(ellipse clamp(460px,58vw,900px) 500px at max(2%,calc(50% - 640px)) 220px,rgb(152 98 130/.3),rgb(152 98 130/.2) 33%,rgb(152 98 130/.08) 67%,rgb(152 98 130/0))}
.fog-dusk{background:radial-gradient(ellipse clamp(380px,46vw,760px) 440px at 50% 560px,rgb(124 114 176/.2),rgb(124 114 176/.11) 50%,rgb(124 114 176/0))}
.fog-sky{background:radial-gradient(ellipse clamp(460px,58vw,900px) 620px at min(96%,calc(50% + 600px)) 140px,rgb(104 160 226/.22),rgb(104 160 226/.165) 33%,rgb(104 160 226/.055) 67%,rgb(104 160 226/0))}
.fog-grain{opacity:1;background:url("/assets/images/events/5-aralik/grain.png") 0 0/128px 128px;image-rendering:pixelated}

/* The co-brand line, built as the Hackathon card builds it: one line of text, the logo as tall as puts
   its x-height on the type's (.8835em) and hanging below the baseline by its own descender (.1837em). */
.nav-brand{display:block;font:600 20px/28px var(--display);letter-spacing:0;color:#fff;white-space:nowrap;-webkit-user-select:none;user-select:none}
.brand-4v,.brand-x{font:inherit;letter-spacing:0;color:#fff}
.brand-x{margin-inline:.46em;font-weight:400;opacity:.56}
.brand-t1{display:inline-block;width:auto;height:.8835em;vertical-align:-.1837em;pointer-events:none;-webkit-user-drag:none}

/* The top bar, by 4Vision's rule: at the top of the page it has no ground and no edge; the glass
   forms as the page is scrolled (bar.js sets --nav-reveal) and is gone again at the top. Without the
   script the bar is not pinned and goes with the page. */
.dx-top{position:relative;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
.dx-top[data-glass-ready]{position:sticky}
.dx-top::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:var(--nav-reveal,0);background:var(--surface);border-bottom:1px solid rgb(255 255 255/.08);box-shadow:0 8px 24px rgb(0 0 0/.18)}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .dx-top::before{background:rgb(10 10 10/.56);-webkit-backdrop-filter:blur(20px) saturate(145%);backdrop-filter:blur(20px) saturate(145%)}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.dx-top::before{background:var(--surface);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}}

/* The primary action: the reader's red capsule, its fill the exact brand colour. */
.btn{font-weight:400}
.btn-red,.btn-red:hover{background:#e84142;border:1px solid;border-color:rgb(255 214 214/.78) rgb(255 170 170/.42) rgb(140 22 26/.6) rgb(255 190 190/.56);box-shadow:inset 0 1px 0 rgb(255 255 255/.28),inset 0 -1px 0 rgb(90 8 12/.32),0 0 0 1px rgb(232 65 66/.18),0 6px 28px rgb(232 65 66/.38),0 0 72px rgb(232 65 66/.2)}
.btn-red:hover{border-color:#fff rgb(255 200 200/.66) rgb(160 30 34/.7) rgb(255 214 214/.8);box-shadow:inset 0 1px 0 rgb(255 255 255/.4),inset 0 -1px 0 rgb(90 8 12/.36),0 0 0 1px rgb(232 65 66/.28),0 8px 40px rgb(232 65 66/.52),0 0 88px rgb(232 65 66/.3)}
.btn:hover{transform:none}
.btn-glass{border:1px solid;border-color:rgb(255 255 255/.5) rgb(255 255 255/.16) rgb(255 255 255/.22) rgb(255 255 255/.34);box-shadow:inset 0 1px 0 rgb(255 255 255/.12),inset 0 -1px 0 rgb(255 255 255/.04),0 2px 8px rgb(0 0 0/.14)}
.dx .btn:disabled{border-color:transparent}
.skip:focus{background:#0a0a0a;border:1px solid rgb(255 255 255/.5)}
@media(prefers-contrast:more){.btn-red,.btn-red:hover{background:#b8282e}}
