/* Awakened Studio showcase, "Gece Işıkları" (docs/tasarim-v2.md). Loaded after /style.css on the home,
   app, Zar Yolu and 404 pages. Only transform and opacity move; with reduced motion every piece rests on
   its own still frame. Hidden-until-revealed content is hidden only by scroll-driven CSS or under
   html.io (set by site.js), so without JS everything is visible. App colors come as classes (.p-*). */
:root {
  color-scheme: dark;
  --bg: #07070C; --bg-2: #0D0D16; --surface: #11111B; --surface-2: #181826;
  --glass: #12121C99; --glass-solid: #12121CE6; --line: #FFFFFF14; --line-2: #FFFFFF26;
  --text: #F3F1EC; --text-2: #B9B6C6; --text-3: #8C889C;
  --accent: #FFB547; --accent-ink: #1A1206; --focus: #8CC4FF; --link: #FFC86B;
  --grad-brand: linear-gradient(100deg, #B8A6FF 0%, #FF9A76 55%, #FFC86B 100%);
  --fs-hero: clamp(2.75rem, 1.6rem + 5.2vw, 6.25rem); --fs-h2: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); --fs-lead: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  --fs-small: .875rem; --fs-label: .8125rem;
  --gutter: clamp(16px, 4vw, 40px); --max: 1200px; --section: clamp(72px, 10vw, 144px);
  --r-xl: 28px; --r-lg: 20px; --r-md: 14px; --r-pill: 999px;
  --shadow-card: 0 1px 0 #FFFFFF0D inset, 0 24px 48px -24px #000000B3;
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-io: cubic-bezier(.65, 0, .35, 1); --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --p: #FFB547; --p-2: #B8A6FF; --p-bg: #15102A;
}
@media (max-width: 360px) { :root { --fs-hero: 2.5rem; } }
.p-awakened { --p: #5CC8FF; --p-2: #8B5CF6; --p-bg: #140C2B; }
.p-frekans { --p: #E8C35A; --p-2: #6B4FD8; --p-bg: #15102A; }
.p-grafiqo { --p: #22C9A0; --p-2: #F2626B; --p-bg: #0E1420; }
.p-zar { --p: #E9643F; --p-2: #F2B43A; --p-bg: #2A1A14; }
.p-sr { --p: #38BDF8; --p-2: #A78BFA; --p-bg: #0B1122; }
.p-fo { --p: #F0661A; --p-2: #6B78E0; --p-bg: #121530; }

html { background: var(--bg); scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { position: relative; background: transparent; color: var(--text); font: 400 1.0625rem/1.6 var(--font); font-optical-sizing: auto; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
img { max-width: 100%; }
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-weight: 650; transform: translateY(-200%); }
.skip:focus { transform: none; }
.label { margin: 0 0 16px; font-size: var(--fs-label); font-weight: 600; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.h2 { font-size: var(--fs-h2); font-weight: 760; line-height: 1.02; letter-spacing: -.03em; }
.h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 24px; }

/* Sky: night at the top, dawn as you scroll. */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.sky > div { position: absolute; inset: 0; }
.sky-night { background: radial-gradient(1100px 620px at 72% -8%, var(--sky-a, #2A1E5C) 0%, transparent 62%), radial-gradient(900px 520px at 8% 4%, var(--sky-b, #13244D) 0%, transparent 60%), var(--bg); }
.sky-dawn { background: radial-gradient(1400px 760px at 50% 115%, #FF8A5B59 0%, #FFB54726 38%, transparent 70%); opacity: 0; }
.app-page .sky-night { --sky-a: color-mix(in srgb, var(--p-2) 45%, var(--bg)); --sky-b: color-mix(in srgb, var(--p) 18%, transparent); }
@supports (animation-timeline: scroll()) {
  .sky-dawn { animation: to-1 linear both; animation-timeline: scroll(root); animation-range: 35% 100%; }
}
@keyframes to-1 { to { opacity: 1; } }
.cursor-glow { position: fixed; left: 0; top: 0; z-index: -1; width: 560px; height: 560px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #8B6CFF22, transparent 60%); opacity: 0; transform: translate3d(calc(var(--mx, -999px) - 280px), calc(var(--my, -999px) - 280px), 0); transition: opacity .6s; }
.cursor-glow.on { opacity: 1; }

/* Header: a floating glass pill. */
.nav { position: sticky; top: 12px; z-index: 50; isolation: isolate; display: flex; align-items: center; gap: 8px; width: min(100% - 24px, var(--max)); height: 60px; margin: 12px auto 0; padding: 0 10px 0 18px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav { background: var(--glass-solid); } }
.nav::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--glass-solid); opacity: 0; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .nav::after { animation: fill-in linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
}
@keyframes fill-in { to { opacity: .85; } }
.nav .brand, .foot .brand { gap: 10px; min-height: 44px; font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; color: var(--text); white-space: nowrap; }
.nav .brand .mark, .foot .brand .mark { width: 26px; height: 26px; color: var(--accent); }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a, .lang { position: relative; z-index: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); font-size: .9375rem; font-weight: 500; color: var(--text-2); }
.nav-links a::before, .lang::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #FFFFFF0F; opacity: 0; transform: scale(.9); transition: opacity .16s var(--ease-out), transform .16s var(--ease-out); }
.nav-links a:hover, .lang:hover { color: var(--text); }
.nav-links a:hover::before, .lang:hover::before { opacity: 1; transform: none; }
.lang { min-width: 44px; height: 44px; min-height: 44px; margin-left: auto; border: 1px solid var(--line-2); font-size: var(--fs-label); font-weight: 650; letter-spacing: .08em; color: var(--text); }
.nav-links + .lang { margin-left: 0; }
.nav .crumbs { gap: 10px; font-size: 1rem; font-weight: 500; }
.nav .crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--text); text-decoration: none; }
.nav .crumbs a[aria-current] { color: var(--text-2); }
.nav .crumbs .sep { color: var(--text-2); }
@media (max-width: 767px) {
  .nav { top: 12px; height: 56px; padding-left: 14px; }
  .nav-links { margin-left: auto; }
  .nav-links a:not(:first-child) { display: none; }
  .nav-links + .lang { margin-left: 0; }
}
@media (max-width: 359px) { .nav-links { display: none; } .nav-links + .lang { margin-left: auto; } }
@media (max-width: 479px) { .crumbs .sep { display: none; } .nav .crumbs .brand { justify-content: center; } .crumbs .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }

@media (max-width: 767px) { .home .hero-stage { display: none; } }
@media (max-width: 1023px) { .app-fo .fo-side { display: none; } }

/* Buttons. */
.actions, .status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: var(--r-pill); font-size: 1rem; font-weight: 650; white-space: nowrap; transition: transform .32s var(--ease-out); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 32px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); transition-duration: .12s; }
.arr { display: inline-block; transition: transform .32s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn:hover .arr.down { transform: translateY(3px); }
@media (max-width: 639px) { .actions .btn { width: 100%; } }

/* Hero. */
.hero { position: relative; overflow-x: clip; display: grid; gap: 40px; padding-block: 32px 48px; }
.hero::before { content: ""; position: absolute; inset: -110px 0 0; z-index: -1; pointer-events: none; background-image: linear-gradient(#FFFFFF08 1px, transparent 1px), linear-gradient(90deg, #FFFFFF08 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%); }
@media (min-width: 1024px) { .hero { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; min-height: min(92svh, 880px); padding-top: 48px; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; min-height: 32px; margin: 0 0 24px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); font-size: var(--fs-label); font-weight: 600; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.kicker::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.app-page .kicker::before { background: var(--p); box-shadow: 0 0 12px var(--p); }
.hero h1 { margin: 0 0 24px; font-size: var(--fs-hero); font-weight: 760; line-height: .98; letter-spacing: -.035em; overflow-wrap: break-word; }
.app-hero h1 { font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); line-height: 1; }
.hl { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 34em; margin: 0 0 32px; font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); }
/* Entrance, once, CSS only. The H1 stays opaque (it is the LCP). */
@keyframes up { from { opacity: 0; transform: translateY(16px); } }
@keyframes nudge { from { transform: translateY(14px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } }
@keyframes stage-in { from { opacity: 0; transform: scale(.96); } }
.hero .kicker, .app-icon-wrap { animation: up .5s var(--ease-out) both; }
.hero h1 { animation: nudge .7s var(--ease-out) both; }
.hero .lead { animation: up .7s var(--ease-out) .12s both; }
.hero .actions, .hero .status { animation: up .7s var(--ease-out) .2s both; }
.stage-in, .fr-side, .zar-side { animation: stage-in .7s var(--ease-out) .25s both; }

/* Hero stage: four app tiles around Frekans Odası's glowing core. */
.stage { position: relative; width: 100%; max-width: 520px; aspect-ratio: 343 / 300; margin-inline: auto; }
@media (min-width: 640px) { .stage { aspect-ratio: 1; max-width: 440px; } }
@media (min-width: 1024px) { .stage { max-width: 520px; } }
.stage-in { position: absolute; inset: 0; perspective: 1100px; }
.stage-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transition: transform 80ms linear; }
.stage-inner > * { position: absolute; display: block; }
.halo { left: 50%; top: 50%; width: 85%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #E8C35A33 0%, transparent 40%), radial-gradient(circle, #6B4FD859 0%, transparent 62%); animation: spin 40s linear infinite; }
.orbit { left: 50%; top: 50%; width: 92%; aspect-ratio: 1; height: auto; translate: -50% -50%; overflow: visible; animation: spin 60s linear infinite reverse; }
.orbit circle { fill: none; stroke: #FFFFFF26; stroke-width: .3; stroke-dasharray: .6 2.4; }
@keyframes spin { to { transform: rotate(1turn); } }
.tile { --ts: 84px; width: var(--ts); height: var(--ts); transform: translateZ(60px); transform-style: preserve-3d; }
/* Four tiles on the corners of a square around the stage centre: same size, same distance (--d) on both axes. */
.stage { --d: 92px; }
@media (min-width: 640px) { .stage { --d: 140px; } }
@media (min-width: 1024px) { .stage { --d: 156px; } }
.tile { left: calc(50% - var(--ts) / 2 + var(--dx)); top: calc(50% - var(--ts) / 2 + var(--dy)); }
.t1 { --dx: calc(-1 * var(--d)); --dy: calc(-1 * var(--d)); } .t2 { --dx: var(--d); --dy: calc(-1 * var(--d)); }
.t3 { --dx: calc(-1 * var(--d)); --dy: var(--d); } .t4 { --dx: var(--d); --dy: var(--d); }
.tile-in { position: absolute; inset: 0; animation: pop-in .5s var(--ease-back) .35s both; }
.t2 .tile-in { animation-delay: .43s; } .t3 .tile-in { animation-delay: .51s; } .t4 .tile-in { animation-delay: .59s; }
.tile-glow { position: absolute; inset: -35%; border-radius: 50%; background: radial-gradient(circle, var(--p) 0%, transparent 65%); opacity: .35; }
.bob { position: absolute; inset: 0; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 22px; background: #1A1A26CC; box-shadow: 0 20px 40px -20px #000; animation: bob 6.5s var(--ease-io) -1.2s infinite; }
.t2 .bob { animation-duration: 7.3s; animation-delay: -3.4s; } .t3 .bob { animation-duration: 8.1s; animation-delay: -.6s; } .t4 .bob { animation-duration: 6.9s; animation-delay: -2.2s; }
.bob img { width: 56px; height: 56px; border-radius: 15px; }
@media (min-width: 640px) {
  .tile { --ts: 116px; }
  .bob { border-radius: 28px; background: #FFFFFF0D; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .bob img { width: 76px; height: 76px; border-radius: 20px; }
}
@keyframes bob { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); } 50% { transform: translate3d(0, -12px, 0) rotate(2deg); } }
/* Pips on a 3x3 grid (a b / c d e / f g), used by every die. */
.pp i { width: 72%; aspect-ratio: 1; place-self: center; border-radius: 50%; background: #FFFDF7; }
i.a { grid-area: 1 / 1; } i.b { grid-area: 1 / 3; } i.c { grid-area: 2 / 1; } i.d { grid-area: 2 / 2; } i.e { grid-area: 2 / 3; } i.f { grid-area: 3 / 1; } i.g { grid-area: 3 / 3; }
.dust { inset: 0; }
.dust i { position: absolute; bottom: 16%; width: 4px; height: 4px; border-radius: 50%; background: #F2D58A; opacity: 0; animation: rise 9s linear infinite; }
.dust i:nth-child(1) { left: 22%; animation-duration: 7s; }
.dust i:nth-child(2) { left: 38%; animation-duration: 9.5s; animation-delay: -2s; }
.dust i:nth-child(3) { left: 52%; animation-duration: 8s; animation-delay: -5s; }
.dust i:nth-child(4) { left: 64%; animation-duration: 11s; animation-delay: -1s; }
.dust i:nth-child(5) { left: 78%; animation-duration: 10s; animation-delay: -7s; }
.dust i:nth-child(6) { left: 30%; animation-duration: 8.5s; animation-delay: -3.5s; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .8; } 100% { transform: translateY(-160px); opacity: 0; } }

/* Sections. */
.products { padding-top: var(--section); }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sub { margin: 18px 0 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); }
.block { padding-top: clamp(56px, 8vw, 104px); }

/* Bento grid. */
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } .b-fr, .b-zar { grid-column: span 2; } }
@media (min-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, minmax(260px, auto)) auto; }
  .b-fr { grid-column: 1 / span 4; grid-row: 1 / span 2; } .b-sr { grid-column: 5 / span 2; grid-row: 1; } .b-fo { grid-column: 5 / span 2; grid-row: 2; }
  .b-gr { grid-column: 1 / span 3; grid-row: 3; } .b-on { grid-column: 4 / span 3; grid-row: 3; } .b-zar { grid-column: 1 / -1; grid-row: 4; }
}
.bento, .card, .mcard { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow-card); transition: translate .32s var(--ease-out), scale .12s; }
.bento { display: flex; flex-direction: column; gap: 20px; min-height: 300px; padding: 20px; border-radius: var(--r-xl); color: var(--text); }
.bento::before, .card::before { content: ""; position: absolute; inset: -40% 40% 40% -40%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--p) 28%, transparent), transparent); }
.bento::after, .card::after, .mcard::after { content: ""; position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--p) 55%, transparent); border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity .16s; }
.bento:hover, .bento:focus-visible, .mcard:hover, .mcard:focus-visible { translate: 0 -4px; }
.card:hover { translate: 0 -2px; }
.bento:hover::after, .bento:focus-visible::after, .card:hover::after, .mcard:hover::after, .mcard:focus-visible::after { opacity: 1; }
.bento:active, .mcard:active { scale: .985; }
.bento:focus-visible, .mcard:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.spot { position: absolute; left: 0; top: 0; z-index: -1; width: 360px; height: 360px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #FFFFFF14, transparent 60%); opacity: 0; transform: translate(calc(var(--cx, 180px) - 180px), calc(var(--cy, 0px) - 180px)); transition: opacity .3s; }
.bento:hover .spot { opacity: 1; }
.bento-body { display: grid; gap: 8px; align-content: end; flex: 1; padding-right: 48px; }
.bento-icon { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; }
.bento h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.15; letter-spacing: -.015em; }
.bento p { max-width: 46ch; margin: 0; font-size: 1rem; line-height: 1.55; color: var(--text-2); }
.tag { justify-self: start; display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; min-height: 28px; margin-top: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--p) 14%, transparent); font-size: var(--fs-small); font-weight: 500; line-height: 1.3; color: var(--text); }
.tag::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--p); }
.go { position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); font-size: 18px; transition: transform .32s var(--ease-out); }
.bento:hover .go, .bento:focus-visible .go { transform: translateX(3px) rotate(-45deg); }

/* Mini scenes: each app's real mechanic, CSS only. Their resting state is their still frame. */
.mini { position: relative; flex: none; height: 150px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--p-bg); font-variant-numeric: tabular-nums; }
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* (a) Awakened: quests tick, EXP fills, level up. */
.mini-aw { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 14px 18px; }
.mini-aw ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mini-aw li { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.xp { margin-left: auto; font-size: 12px; color: var(--text-3); }
.chk { position: relative; flex: none; width: 18px; height: 18px; border: 1.5px solid #FFFFFF40; border-radius: 50%; }
.chk i { position: absolute; inset: -1.5px; border-radius: 50%; background: var(--p); animation: 5s var(--ease-back) infinite both; }
.chk i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #0B0B14; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.k1 i { animation-name: k1; } .k2 i { animation-name: k2; } .k3 i { opacity: 0; animation-name: k3; }
@keyframes k1 { 0%, 6% { opacity: 0; transform: scale(.4); } 10%, 88% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes k2 { 0%, 26% { opacity: 0; transform: scale(.4); } 30%, 88% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes k3 { 0%, 46% { opacity: 0; transform: scale(.4); } 50%, 88% { opacity: 1; transform: none; } 93%, 100% { opacity: 0; transform: scale(.4); } }
.pop { position: absolute; right: 0; top: -12px; padding: 2px 8px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--p) 22%, var(--p-bg)); font-size: 11px; font-weight: 650; color: var(--p); opacity: 0; animation: popup 5s var(--ease-out) infinite backwards; }
.mini-aw li:nth-child(2) .pop { animation-delay: 1s; } .mini-aw li:nth-child(3) .pop { animation-delay: 2s; }
@keyframes popup { 0%, 7% { opacity: 0; transform: translateY(6px); } 11% { opacity: 1; } 24%, 100% { opacity: 0; transform: translateY(-10px); } }
.lvl { display: flex; align-items: center; gap: 12px; }
.lvs { display: grid; min-width: 36px; font-size: 13px; font-weight: 650; }
.lvs span { grid-area: 1 / 1; }
.lvs .up { color: var(--p); opacity: 0; animation: lvup 5s infinite; }
.lvs .cur { animation: lvcur 5s infinite; }
@keyframes lvup { 0%, 60% { opacity: 0; transform: translateY(6px); } 64%, 80% { opacity: 1; transform: none; } 86%, 100% { opacity: 0; } }
@keyframes lvcur { 0%, 60% { opacity: 1; } 64%, 80% { opacity: 0; } 86%, 100% { opacity: 1; } }
.bar { position: relative; flex: 1; height: 10px; overflow: hidden; border-radius: var(--r-pill); background: #FFFFFF14; }
.exp-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--p-2), var(--p)); transform-origin: left; transform: scaleX(.66); animation: exp 5s var(--ease-out) infinite; }
@keyframes exp { 0%, 10% { transform: scaleX(.22); } 30% { transform: scaleX(.42); } 50% { transform: scaleX(.66); } 62%, 78% { transform: scaleX(1); } 90%, 100% { transform: scaleX(.22); } }
.exp-shine { position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, #FFFFFF90, transparent); opacity: 0; transform: translateX(-100%); animation: shine 5s linear infinite; }
@keyframes shine { 0%, 61% { opacity: 0; transform: translateX(-100%); } 62% { opacity: 1; } 74%, 100% { opacity: 0; transform: translateX(260%); } }

/* (b) Frekans Odası: drifting waves, an equalizer, a breathing ring. */
.mini-fr { padding: 14px 16px; }
.fr-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--p); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--p); transform-origin: bottom; transform: scaleY(.6); animation: eq 1.1s var(--ease-io) infinite alternate; }
.eq i:nth-child(2) { animation-duration: .9s; animation-delay: -.4s; } .eq i:nth-child(3) { animation-duration: 1.4s; animation-delay: -.2s; }
.eq i:nth-child(4) { animation-duration: 1s; animation-delay: -.7s; } .eq i:nth-child(5) { animation-duration: 1.25s; animation-delay: -.5s; }
@keyframes eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.wave { position: absolute; left: 0; bottom: 6%; width: 100%; height: 64%; overflow: hidden; }
.wave g { transform-box: fill-box; transform-origin: center; }
.wave path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; transform-box: fill-box; animation: drift 6s linear infinite; }
.w1 { transform: scaleY(.5); } .w1 path { stroke: var(--p); stroke-width: 2.5; }
.w2 { transform: scaleY(.8); opacity: .8; } .w2 path { stroke: #FFF; stroke-width: 1.5; animation-duration: 9s; }
.w3 { transform: scaleY(1.1); opacity: .6; } .w3 path { stroke: var(--p-2); stroke-width: 2; animation-duration: 13s; animation-direction: reverse; }
@keyframes drift { to { transform: translateX(-50%); } }
.ring { position: absolute; left: 50%; top: 42%; display: none; width: 150px; height: 150px; translate: -50% -50%; border: 2px solid var(--p); border-radius: 50%; box-shadow: 0 0 40px color-mix(in srgb, var(--p) 40%, transparent), inset 0 0 30px color-mix(in srgb, var(--p) 30%, transparent); opacity: .7; animation: breathe 4s var(--ease-io) infinite alternate; }
@keyframes breathe { from { opacity: .5; transform: scale(.95); } to { opacity: .9; transform: scale(1.05); } }
@media (min-width: 1024px) { .b-fr .ring { display: block; } .b-fr .wave { height: 40%; } }

/* (c) Grafiqo: candles draw in, the guess, the reveal. */
.mini-gr { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.mini-gr svg { flex: 1; width: 100%; min-height: 0; }
.gl { stroke: #FFFFFF0D; }
.c line, .ans line { stroke-width: 1.5; } .c rect, .ans rect { stroke: none; }
.u { fill: #22C9A0; stroke: #22C9A0; } .d { fill: #F2626B; stroke: #F2626B; }
.c, .ans { transform-box: fill-box; transform-origin: 50% 100%; }
.c { animation: candle 7s var(--ease-out) infinite backwards; }
.cs > :nth-child(2) { animation-delay: .12s; } .cs > :nth-child(3) { animation-delay: .24s; } .cs > :nth-child(4) { animation-delay: .36s; }
.cs > :nth-child(5) { animation-delay: .48s; } .cs > :nth-child(6) { animation-delay: .6s; } .cs > :nth-child(7) { animation-delay: .72s; }
.cs > :nth-child(8) { animation-delay: .84s; } .cs > :nth-child(9) { animation-delay: .96s; }
@keyframes candle { 0% { transform: scaleY(0); opacity: 0; } 8%, 88% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
.qb rect { fill: #FFFFFF08; stroke: #FFFFFF59; stroke-dasharray: 4 4; }
.qb text { fill: #FFFFFFB3; font: 700 22px var(--font); text-anchor: middle; }
.qb { animation: qb 7s linear infinite; }
@keyframes qb { 0%, 14% { opacity: 1; } 21% { opacity: .35; } 28% { opacity: 1; } 35% { opacity: .35; } 42% { opacity: 1; } 46%, 92% { opacity: 0; } 100% { opacity: 1; } }
.ans { transform: scaleY(0); animation: ans 7s var(--ease-out) infinite; }
@keyframes ans { 0%, 44% { transform: scaleY(0); opacity: 1; } 50%, 88% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }
.picks { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pick { position: relative; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--text-2); }
.pick b { position: absolute; inset: -1px; border: 1px solid #22C9A0; border-radius: inherit; background: #22C9A01F; animation: sel 7s var(--ease-out) infinite; }
@keyframes sel { 0%, 32% { opacity: 0; transform: scale(.96); } 36%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.gain { margin-left: auto; padding: 4px 9px; border-radius: var(--r-pill); background: #22C9A029; color: #5BE0BD; opacity: 0; animation: gain 7s var(--ease-out) infinite; }
@keyframes gain { 0%, 48% { opacity: 0; transform: translateY(6px); } 54%, 80% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateY(-6px); } }

/* Dice pieces used by the Zar Yolu page board. */
.board .s { position: relative; display: grid; place-items: center; }
.board .s b { grid-area: 1 / 1; width: 70%; height: 70%; border: 2px solid var(--sc, var(--p)); border-radius: 50%; opacity: 0; }
.die-in { position: absolute; inset: 7%; display: block; border-radius: 24%; background: #E9643F; box-shadow: inset 0 -5px 0 #B8432A, inset 0 2px 0 #FFFFFF40, 0 6px 12px -4px #00000080; }
.pp { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 16%; }

/* Zar Yolu page colors (Kil Bahçe). */
.theme-clay { --zb-bg: #F4EDE2; --zb-bg-2: #EDE3D4; --zb-board: #E2D5C1; --zb-edge: #CDBDA5; --zb-tile: #FBF7F0; --zb-ink: #2E2A33; --zb-muted: #5E5560; --zb-surface: #FFFDF9; }
/* Board (Zar Yolu page 6x4 / 5x4 on phones). --t: tile, --S: one step. */
.board-wrap { width: 100%; container-type: inline-size; }
.board { --gap: 6px; --pad: 10px; --cols: 5; --t: min(64px, calc((100cqw - 2 * var(--pad) - (var(--cols) - 1) * var(--gap)) / var(--cols))); --S: calc(var(--t) + var(--gap)); --s: var(--S);
  position: relative; display: grid; grid-template-columns: repeat(var(--cols), var(--t)); gap: var(--gap); width: max-content; margin-inline: auto; padding: var(--pad);
  border-radius: 22px; background: var(--zb-board); box-shadow: 0 8px 0 var(--zb-edge), 0 18px 30px -12px #2E2A3359; perspective: 700px; }
.board > i { aspect-ratio: 1; border-radius: 22%; background: var(--zb-tile); box-shadow: inset 0 -3px 0 #2E2A330F, inset 0 2px 0 #FFFFFF99; }
.board > i.w { background: #A89A88; box-shadow: inset 0 -7px 0 #857767, inset 0 2px 0 #FFFFFF33; }
.board .s::before { content: ""; grid-area: 1 / 1; width: 66%; height: 66%; border-radius: 30%; background: var(--zb-board); box-shadow: inset 0 4px 6px #2E2A3340; }
.board .s::after { content: ""; grid-area: 1 / 1; width: 24%; height: 24%; background: var(--sc); opacity: .9; }
.s.co { --sc: #E9643F; } .s.co::after { border-radius: 50%; }
.s.se { --sc: #2F7DC4; } .s.se::after { border-radius: 2px; }
.s.am { --sc: #F2B43A; } .s.am::after { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.bd { position: absolute; left: calc(var(--pad) + var(--c) * var(--S)); top: calc(var(--pad) + var(--r) * var(--S)); width: var(--t); height: var(--t); }
.bd .die-in { inset: 5%; }
.bd.sea .die-in { background: #2F7DC4; box-shadow: inset 0 -5px 0 #1F5A93, inset 0 2px 0 #FFFFFF40, 0 6px 12px -4px #2E2A3366; }
.bd.amber .die-in { background: #F2B43A; box-shadow: inset 0 -5px 0 #C48A1E, inset 0 2px 0 #FFFFFF59, 0 6px 12px -4px #2E2A3366; }
.bd.coral .die-in { box-shadow: inset 0 -5px 0 #B8432A, inset 0 2px 0 #FFFFFF40, 0 6px 12px -4px #2E2A3366; }
.sea i { border-radius: 2px; } .amber i { border-radius: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
/* Footer. */
.foot { margin-top: var(--section); padding-block: 56px 32px; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); content-visibility: auto; contain-intrinsic-size: auto 720px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; }
.foot-brand, .foot-legal { grid-column: 1 / -1; }
.foot-legal { order: 1; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr minmax(max-content, 1.4fr); } .foot-brand, .foot-legal { grid-column: auto; } .foot-legal { order: 0; } }
.foot-brand p { margin: 8px 0 0; font-size: var(--fs-small); color: var(--text-3); }
.foot-h { margin: 0 0 8px; font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li a, .lg a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; color: var(--text-2); overflow-wrap: anywhere; }
.foot a[href^="mailto:"] { overflow-wrap: normal; }
@media (max-width: 899px) { .foot-grid > div:last-child { grid-column: 1 / -1; } }
.foot li a:hover, .lg a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.lg { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; margin: 0; }
.lg span { flex-basis: 100%; margin-top: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--text); }
.foot > .container { container-type: inline-size; }
/* Sized to the footer column, not the viewport, so the whole word always fits (the text is ~7.6em wide). */
.wordmark { margin: 56px 0 0; overflow: hidden; font-size: min(11.5vw, 9.4rem); font-size: 12.6cqi; font-weight: 760; line-height: 1; letter-spacing: -.045em; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px #FFFFFF26; user-select: none; }
.copy { margin: 24px 0 0; font-size: var(--fs-small); color: var(--text-3); }

/* App pages. */
/* .hero clips overflow-x at its own edge, which sat exactly on the icon's left side, so the icon glow and ring shadow were cut flat.
   Move the left clip edge out by one gutter (the content box stays where it was); body still clips the page, so there is no horizontal scroll. */
.app-hero { width: calc(min(100% - 2 * var(--gutter), var(--max)) + var(--gutter)); margin-left: calc((100% - min(100% - 2 * var(--gutter), var(--max))) / 2 - var(--gutter)); margin-right: auto; padding-left: var(--gutter); }
.app-hero::before { left: var(--gutter); }
.app-icon-wrap { position: relative; width: 104px; height: 104px; margin-bottom: 28px; }
@keyframes breathe-s { from { transform: scale(.95); } to { transform: scale(1.05); } }
.app-icon-wrap::after { content: ""; position: absolute; inset: -45%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--p) 70%, transparent), transparent 62%); opacity: .5; animation: breathe-s 4s var(--ease-io) infinite alternate; }
.hero .app-icon { display: block; width: 104px; height: 104px; margin: 0; border-radius: 26px; box-shadow: 0 20px 40px -16px #000, 0 0 0 1px var(--line-2); }
.store { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: #FFFFFF08; font-size: var(--fs-small); font-weight: 600; line-height: 1.3; color: var(--text); }
.store::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--p); }
.store::after { content: ""; position: absolute; left: 18px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--p); animation: pulse 2s var(--ease-out) infinite; opacity: 0; }
@keyframes pulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.stage.dev { width: 240px; height: 480px; aspect-ratio: auto; max-width: none; }
@media (min-width: 640px) { .stage.dev { width: 300px; height: 600px; } }
.device { position: absolute; inset: 0; overflow: hidden; border: 10px solid #0B0B12; border-radius: 44px; background: var(--p-bg); box-shadow: 0 40px 80px -30px #000, 0 0 0 1px var(--line-2); animation: bob 7s var(--ease-io) infinite; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 12px 14px 18px; background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--p-2) 30%, transparent), transparent 70%); }
.scr-status { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.scr-dots { display: flex; gap: 4px; } .scr-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-2); }
.scr-bar { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 650; }
.scr-bar img { width: 28px; height: 28px; border-radius: 8px; }
.screen .mini { flex: none; height: 44%; background: #FFFFFF08; }
.screen .mini-aw li { font-size: 13px; }
.scr-rows { display: grid; gap: 10px; }
.scr-rows i { display: block; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: #FFFFFF0A; }
.scr-rows i:nth-child(2) { width: 84%; } .scr-rows i:nth-child(3) { width: 66%; opacity: .6; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; }
@media (max-width: 639px) { .cards { grid-template-columns: 1fr; gap: 12px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards:has(> .card:nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }
.card { padding: 24px; border-radius: var(--r-xl); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.card .icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; background: color-mix(in srgb, var(--p) 16%, transparent); color: var(--p); }
.card .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .icon svg .f { fill: currentColor; stroke: none; }
.card h3 { margin: 0 0 8px; font-size: 1.25rem; font-weight: 650; line-height: 1.25; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--text-2); }
.card.premium { border-color: color-mix(in srgb, var(--p) 50%, transparent); }
.ptag { position: absolute; right: 20px; top: 22px; font-size: var(--fs-label); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--p); }
@media (min-width: 900px) { .cards.prem { grid-template-columns: repeat(4, 1fr); } .cards.prem .card:first-child { grid-column: span 2; } }
.rank { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 14px; background: color-mix(in srgb, var(--p) 16%, transparent); font-size: 1.25rem; font-weight: 760; color: var(--p); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-small); }
.prose .h3 { margin-bottom: 12px; }
.muted { max-width: 62ch; margin: 0 0 24px; font-size: 1.0625rem; line-height: 1.6; color: var(--text-2); }
.muted a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.note { margin-block: 56px 0; text-align: center; font-size: var(--fs-small); color: var(--text-2); }
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mcard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); }
.mcard img { flex: none; width: 40px; height: 40px; border-radius: 11px; }
.mcard strong { display: block; font-size: 1.0625rem; font-weight: 650; }
.mcard .tag { margin-top: 6px; font-size: 13px; }
@media (max-width: 767px) {
  .more, .more.m4, .more.m5 { display: grid; grid-template-columns: 1fr; gap: 10px; }
}

/* Frekans Odası: waves.js canvas behind the top, a breathing golden ring and the tone name. */
canvas.waves { position: absolute; left: 0; top: 0; z-index: 0; width: 100%; height: 860px; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 78%, transparent 100%); }
.waves-page main, .waves-page .foot { position: relative; z-index: 1; }
.waves-page .app-hero { padding-bottom: clamp(140px, 26vh, 240px); }
/* Frekans icon: its art is a ring, so show it as a glowing orb that echoes the big ring instead of a dark square tile. */
.waves-page .app-hero { padding-top: 64px; }
.app-frekans .hero .app-icon { border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--p) 55%, transparent), 0 0 36px -4px color-mix(in srgb, var(--p) 45%, transparent), 0 20px 40px -16px #000; }
.app-frekans .app-icon-wrap::after { inset: -26%; opacity: .35; }
.waves-page .hero h1, .waves-page .hero .lead { text-shadow: 0 2px 24px #07070CD9; }
.fr-side { display: grid; justify-items: center; gap: 24px; }
@media (min-width: 1024px) { .fr-side { align-self: end; } }
.big-ring { position: relative; display: block; width: min(300px, 78vw); aspect-ratio: 1; }
.big-ring i { position: absolute; inset: 0; border: 2px solid var(--p); border-radius: 50%; box-shadow: 0 0 50px color-mix(in srgb, var(--p) 35%, transparent), inset 0 0 40px color-mix(in srgb, var(--p) 25%, transparent); animation: breathe 4s var(--ease-io) infinite alternate; }
.big-ring i:nth-child(2) { inset: 16%; opacity: .5; border-width: 1px; animation-delay: -1.3s; }
.big-ring i:nth-child(3) { inset: 32%; opacity: .35; border-width: 1px; animation-delay: -2.6s; }
.tone { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 14px; color: var(--text-2); transition: opacity .45s ease-in-out; }
.tone.fade { opacity: 0; }
.tone-hz { font-size: 28px; font-weight: 300; letter-spacing: .02em; color: var(--text); font-variant-numeric: tabular-nums; }
.tone-name::before { content: "·"; margin-right: 10px; color: var(--text-3); }

/* Zar Yolu page: Kil Bahçe "Gün", the morning after the night site. */
html:has(body.theme-clay) { background: #F4EDE2; }
.theme-clay { color-scheme: light; --bg: #F4EDE2; --bg-2: #EDE3D4; --surface: #FFFDF9; --surface-2: #FBF7F0; --line: #2E2A331A; --line-2: #2E2A332E; --text: #2E2A33; --text-2: #5E5560; --text-3: #6B6158; --accent: #C24E2C; --accent-ink: #FFFDF9; --focus: #2F7DC4; --glass: #FFFDF9B3; --glass-solid: #FFFDF9F0; --link: #A63D22; --shadow-card: 0 20px 40px -12px #2E2A3340; }
.theme-clay .sky-night { background: radial-gradient(1000px 520px at 80% -10%, #FFB54740, transparent 65%), radial-gradient(800px 480px at 0% 10%, #E9643F1F, transparent 60%), var(--bg); }
.theme-clay .sky-dawn, .theme-clay .hero::before { display: none; }
.theme-clay .cursor-glow { background: radial-gradient(circle, #FFB5472E, transparent 60%); }
.theme-clay .nav-links a::before, .theme-clay .lang::before { background: #2E2A330D; }
.theme-clay .kicker::before { box-shadow: none; }
.theme-clay .hero .app-icon { border-radius: 24px; box-shadow: 0 8px 0 #CDBDA5, 0 20px 40px -12px #2E2A3359; }
.theme-clay .app-icon-wrap::after { opacity: .25; }
.theme-clay .store { background: var(--surface); }
.theme-clay .store::before, .theme-clay .store::after { background: #E9643F; }
.theme-clay .card, .theme-clay .mcard { background: var(--surface); box-shadow: inset 0 -3px 0 #2E2A330F, 0 20px 40px -12px #2E2A3340; }
.theme-clay .card::before { display: none; }
.theme-clay .card .icon { background: var(--zb-board); color: var(--zb-ink); }
.theme-clay .btn-primary { box-shadow: 0 6px 0 #8F3519; }
.theme-clay .wordmark { -webkit-text-stroke-color: #2E2A3326; }
.theme-clay .foot { background: var(--bg-2); }
.theme-clay .foot-brand p, .theme-clay .copy, .theme-clay .foot-h { color: var(--text-2); }
.theme-clay .tag { color: var(--text); }
.zar-side { width: 100%; }
.zboard { --cols: 6; --t: min(72px, calc((100cqw - 2 * var(--pad) - (var(--cols) - 1) * var(--gap)) / var(--cols))); }
@media (max-width: 639px) { .zboard { --cols: 5; } .zboard > .x { display: none; } }
.zboard .bd { animation: bigroll 9s var(--ease-io) infinite backwards; }
.zboard .coral { --c: 0; --r: 0; --dx: 1; --dy: 0; --ax: y; --sg: 1; }
.zboard .sea { --c: 4; --r: 3; --dx: 0; --dy: -1; --ax: x; --sg: 1; animation-delay: 3s; }
.zboard .amber { --c: 3; --r: 3; --dx: -1; --dy: 0; --ax: y; --sg: -1; animation-delay: 6s; }
@keyframes bigroll {
  0%, 3% { translate: 0 0; rotate: var(--ax) 0deg; scale: 1; opacity: 1; }
  7% { translate: calc(var(--S) * var(--dx) * .5) calc(var(--S) * var(--dy) * .5); rotate: var(--ax) calc(var(--sg) * 90deg); }
  7.01% { translate: calc(var(--S) * var(--dx) * .5) calc(var(--S) * var(--dy) * .5); rotate: var(--ax) calc(var(--sg) * -90deg); }
  11%, 13% { translate: calc(var(--S) * var(--dx)) calc(var(--S) * var(--dy)); rotate: var(--ax) 0deg; }
  17% { translate: calc(var(--S) * var(--dx) * 1.5) calc(var(--S) * var(--dy) * 1.5); rotate: var(--ax) calc(var(--sg) * 90deg); }
  17.01% { translate: calc(var(--S) * var(--dx) * 1.5) calc(var(--S) * var(--dy) * 1.5); rotate: var(--ax) calc(var(--sg) * -90deg); }
  21%, 23% { translate: calc(var(--S) * var(--dx) * 2) calc(var(--S) * var(--dy) * 2); rotate: var(--ax) 0deg; }
  27% { translate: calc(var(--S) * var(--dx) * 2.5) calc(var(--S) * var(--dy) * 2.5); rotate: var(--ax) calc(var(--sg) * 90deg); }
  27.01% { translate: calc(var(--S) * var(--dx) * 2.5) calc(var(--S) * var(--dy) * 2.5); rotate: var(--ax) calc(var(--sg) * -90deg); }
  31%, 33% { translate: calc(var(--S) * var(--dx) * 3) calc(var(--S) * var(--dy) * 3); rotate: var(--ax) 0deg; scale: 1; opacity: 1; }
  38%, 89.99% { translate: calc(var(--S) * var(--dx) * 3) calc(var(--S) * var(--dy) * 3); rotate: var(--ax) 0deg; scale: .55; opacity: 0; }
  90% { translate: 0 0; rotate: var(--ax) 0deg; scale: .6; opacity: 0; }
  96%, 100% { translate: 0 0; rotate: var(--ax) 0deg; scale: 1; opacity: 1; }
}
.zboard .s b { animation: bigring 9s var(--ease-out) infinite backwards; }
.zboard .s.se b { animation-delay: 3s; } .zboard .s.am b { animation-delay: 6s; }
@keyframes bigring { 0%, 31% { opacity: 0; transform: scale(.6); } 32% { opacity: .9; transform: scale(.6); } 42%, 100% { opacity: 0; transform: scale(1.6); } }
.zboard > i:not(.s) { animation: wave 9s var(--ease-back) infinite; }
.zboard > .d1 { animation-delay: 40ms; } .zboard > .d2 { animation-delay: 80ms; } .zboard > .d3 { animation-delay: .12s; } .zboard > .d4 { animation-delay: .16s; }
.zboard > .d5 { animation-delay: .2s; } .zboard > .d6 { animation-delay: .24s; } .zboard > .d7 { animation-delay: .28s; } .zboard > .d8 { animation-delay: .32s; }
@keyframes wave { 0%, 86% { transform: none; opacity: 1; } 88.5% { transform: scale(.6); opacity: .4; } 92%, 100% { transform: none; opacity: 1; } }
.dice-row { display: flex; gap: 14px; margin-top: 22px; }
.dd { display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); place-items: center; width: 46px; height: 46px; padding: 8px; border-radius: 11px; transform-origin: 50% 100%; animation: hop 4s var(--ease-out) infinite; }
.dd i { width: 7px; height: 7px; background: #FFFDF7; }
.dd i:nth-child(1) { grid-area: 1 / 1; } .dd i:nth-child(2) { grid-area: 2 / 2; } .dd i:nth-child(3) { grid-area: 3 / 3; }
.dd.coral { background: #E9643F; box-shadow: 0 4px 0 #B8432A; } .dd.coral i { border-radius: 50%; }
.dd.sea { background: #2F7DC4; box-shadow: 0 4px 0 #1F5A93; animation-delay: .15s; }
.dd.amber { background: #F2B43A; box-shadow: 0 4px 0 #C48A1E; animation-delay: .3s; } .dd.amber i { width: 9px; height: 8px; }
@keyframes hop { 0% { transform: none; } 7% { transform: translateY(-8px); } 13% { transform: scale(1.06, .94); } 16%, 100% { transform: none; } }

/* 404. */
.err-main { display: grid; justify-items: center; min-height: calc(100svh - 72px); align-content: center; padding-block: 48px; text-align: center; }
.err-code { margin: 0; font-size: clamp(6rem, 4rem + 14vw, 14rem); font-weight: 760; line-height: .9; letter-spacing: -.05em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-main h1 { margin: 16px 0 8px; font-size: var(--fs-h2); font-weight: 760; letter-spacing: -.03em; }
.err-main .actions { justify-content: center; }

/* Reveal on scroll: CSS first, site.js (html.io) where scroll-driven animations are missing. */
@supports (animation-timeline: view()) {
  .reveal { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .reveal.d1 { animation-range: entry 5% entry 50%; } .reveal.d2 { animation-range: entry 10% entry 55%; } .reveal.d3 { animation-range: entry 15% entry 60%; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(32px) scale(.98); } to { opacity: 1; transform: none; } }
.io .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), translate .32s var(--ease-out), scale .12s; }
.io .reveal.in { opacity: 1; transform: none; }
.io .reveal.d1 { transition-delay: 80ms, 80ms, 0s, 0s; } .io .reveal.d2 { transition-delay: 160ms, 160ms, 0s, 0s; } .io .reveal.d3 { transition-delay: 240ms, 240ms, 0s, 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .stage-inner { transform: none !important; }
  .cursor-glow, .spot { display: none; }
  .io .reveal { opacity: 1; transform: none; }
}
@media print {
  .sky, .cursor-glow, .stage, .nav { display: none; }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* Home and Zar Yolu footers have no legal column: each app's legal links live on its own page. */
@media (min-width: 900px) { .foot-grid.no-legal { grid-template-columns: 1.3fr 1fr 1.1fr; } }

/* Onirevia: a night lake, a lavender arch, a cream path into it (the app icon, as a scene). */
.p-oni { --p: #C9B8FA; --p-2: #5046AA; --p-bg: #0B0F24; }
.app-oni .sky-night { background: radial-gradient(1100px 620px at 70% -8%, #3A3290 0%, transparent 62%), radial-gradient(900px 520px at 6% 6%, #1B2A55 0%, transparent 60%), var(--bg); }
.app-oni .sky-dawn { background: radial-gradient(1400px 760px at 50% 115%, #9EC8D838 0%, #C9B8FA1F 40%, transparent 70%); }
.app-oni { --accent: #C9B8FA; --accent-ink: #14102E; --link: #C9B8FA; --grad-brand: linear-gradient(100deg, #C9B8FA 0%, #9EC8D8 100%); }
.app-oni .label { color: var(--p); }
.on-side { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 1 / 1.02; animation: stage-in .7s var(--ease-out) .25s both; }
.on-scene { position: absolute; top: 0; right: 0; width: 82%; height: 100%; overflow: visible; }
.on-scene .tw { transform-box: fill-box; transform-origin: center; animation: twinkle 4s var(--ease-io) infinite alternate; }
.on-scene .tw:nth-of-type(3n) { animation-duration: 5.5s; animation-delay: -2s; } .on-scene .tw:nth-of-type(3n+1) { animation-duration: 3.2s; animation-delay: -1s; }
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
.on-scene .gate-star { transform-box: fill-box; transform-origin: center; animation: gstar 5s var(--ease-io) infinite; }
@keyframes gstar { 0%, 100% { transform: scale(.82) rotate(0deg); opacity: .75; } 50% { transform: scale(1.08) rotate(45deg); opacity: 1; } }
.on-scene .mist { animation: mist 14s var(--ease-io) infinite alternate; }
.on-scene .mist.m2 { animation-duration: 19s; animation-direction: alternate-reverse; }
@keyframes mist { from { transform: translateX(-18px); } to { transform: translateX(18px); } }
.on-scene .rip { transform-box: fill-box; transform-origin: center; animation: ripple 6s var(--ease-io) infinite alternate; }
.on-scene .rip:nth-of-type(2n) { animation-duration: 7.5s; animation-delay: -3s; }
@keyframes ripple { from { transform: scaleX(.78); opacity: .45; } to { transform: scaleX(1.06); opacity: .9; } }
.on-scene .refl { animation: refl 6s var(--ease-io) infinite alternate; }
@keyframes refl { from { opacity: .45; } to { opacity: .8; } }
.on-scene .glow { transform-box: fill-box; transform-origin: center; animation: breathe 6s var(--ease-io) infinite alternate; }
.on-scene .shoot { opacity: 0; animation: shoot 11s linear 2s infinite; }
@keyframes shoot { 0%, 86% { opacity: 0; transform: translate(0, 0); } 88% { opacity: 1; } 94%, 100% { opacity: 0; transform: translate(-150px, 70px); } }
.on-phone { position: absolute; left: 4%; bottom: 0; z-index: 2; width: 42%; max-width: 236px; aspect-ratio: 540 / 1116; }
.on-phone-in { position: absolute; inset: 0; overflow: hidden; border: 7px solid #05060D; border-radius: 30px; background: linear-gradient(180deg, #141A2D 0 7%, #090D1A 7% 22%, #B8A4EF33 22% 27%, #090D1A 27% 31%, #141A2D 31% 36%, #090D1A 36%); box-shadow: 0 40px 70px -30px #000, 0 0 0 1px #FFFFFF26, 0 0 60px -10px #5046AA80; animation: bob 7s var(--ease-io) infinite; }
.on-phone img { display: block; width: 100%; height: auto; margin-top: 6%; }
@media (min-width: 640px) { .on-phone-in { border-width: 9px; border-radius: 38px; } }
@media (max-width: 767px) { .on-side { max-width: 420px; } .on-phone { width: 46%; } }
.b-on::before { inset: -60% 45% 0 -25%; }
.app-oni .card::before { inset: -50%; background: radial-gradient(closest-side at 30% 30%, color-mix(in srgb, var(--p) 22%, transparent), transparent); }
@media (min-width: 1024px) { .app-oni .app-hero { overflow-clip-margin: 80px; } }

/* Journal entry: lines write in, symbol chips appear, the lock closes. Resting frame = the finished entry. */
.mini-on { display: grid; place-items: center; padding: 14px; background: radial-gradient(120% 90% at 80% 0%, #2C2F6A 0%, transparent 60%), var(--p-bg); }
.on-entry { position: relative; display: grid; gap: 9px; width: min(100%, 330px); padding: 14px 16px; border: 1px solid #FFFFFF1A; border-radius: 16px; background: #141A2DE6; box-shadow: 0 18px 30px -18px #000; text-align: left; }
.on-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #9EC8D8; white-space: nowrap; }
.on-lock { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border-radius: var(--r-pill); background: #C9B8FA24; color: #C9B8FA; animation: lockin 7s var(--ease-back) infinite backwards; }
.on-lock svg { width: 12px; height: 12px; }
.on-entry strong { font-size: 15px; font-weight: 650; line-height: 1.25; color: #F1F0F5; }
.on-lines { display: grid; gap: 7px; }
.on-lines i { display: block; height: 7px; border-radius: 4px; background: #B4B8CA4D; transform-origin: left; animation: wline 7s var(--ease-out) infinite backwards; }
.on-lines i:nth-child(2) { width: 88%; animation-name: wline2; } .on-lines i:nth-child(3) { width: 56%; animation-name: wline3; }
@keyframes wline { 0%, 4% { transform: scaleX(0); } 16%, 90% { transform: none; opacity: 1; } 97%, 100% { transform: none; opacity: 0; } }
@keyframes wline2 { 0%, 16% { transform: scaleX(0); } 28%, 90% { transform: none; opacity: 1; } 97%, 100% { transform: none; opacity: 0; } }
@keyframes wline3 { 0%, 28% { transform: scaleX(0); } 36%, 90% { transform: none; opacity: 1; } 97%, 100% { transform: none; opacity: 0; } }
.on-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.on-chips b { padding: 3px 9px; border: 1px solid #EADFC859; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 600; color: #EADFC8; animation: chip 7s var(--ease-back) infinite backwards; }
.on-chips b:nth-child(2) { animation-name: chip2; }
@keyframes chip { 0%, 40% { opacity: 0; transform: scale(.6); } 46%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes chip2 { 0%, 46% { opacity: 0; transform: scale(.6); } 52%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes lockin { 0%, 58% { opacity: 0; transform: scale(.5); } 64%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.mini-on .tw { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #EADFC8; animation: twinkle 3.6s var(--ease-io) infinite alternate; }
.mini-on .tw:nth-child(1) { left: 9%; top: 18%; } .mini-on .tw:nth-child(2) { left: 86%; top: 12%; animation-delay: -1.4s; }
.mini-on .tw:nth-child(3) { left: 92%; top: 72%; animation-delay: -2.1s; } .mini-on .tw:nth-child(4) { left: 5%; top: 80%; animation-delay: -.6s; }

/* Onirevia page: the privacy band, the care note, a four-card "more" row. */
.on-band { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; gap: 32px; padding: 28px 20px; border: 1px solid #C9B8FA2E; border-radius: 28px; background: radial-gradient(700px 320px at 100% 0%, #5046AA59, transparent 70%), linear-gradient(180deg, #141A2D, #0B0F24); }
@media (min-width: 640px) { .on-band { padding: clamp(28px, 5vw, 64px); border-radius: 36px; } }
@media (min-width: 1024px) { .on-band { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.on-band .h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
.on-band p:not(.label) { max-width: 36em; margin: 20px 0 0; font-size: 1.0625rem; line-height: 1.6; color: var(--text-2); }
.on-band .chips { margin-top: 28px; }
.on-band .chips li { gap: 8px; border-color: #C9B8FA33; background: #C9B8FA14; font-weight: 600; }
.on-band .chips svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--p); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.on-band .mini-on { position: relative; min-height: 240px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.on-band .on-entry { width: min(100%, 360px); }
.care { max-width: 62ch; margin: 56px auto 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #FFFFFF05; font-size: var(--fs-small); line-height: 1.6; color: var(--text-2); }
.care strong { color: var(--text); font-weight: 650; }
.care a { color: var(--p); text-decoration: underline; text-underline-offset: 3px; }
.more.m4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1280px) { .more.m4 { grid-template-columns: repeat(4, 1fr); } }

/* Home (2 Dec 2026): Frekans Odası first. The store buttons sit inside the hero, so they show without scrolling. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home .hero h1 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.5rem); line-height: 1; margin-bottom: 16px; }
.home .hero .kicker { margin-bottom: 16px; }
.home .hero .lead { margin-bottom: 20px; }
@media (min-width: 1024px) { .home .hero { min-height: 0; padding-block: 48px 40px; } }
.home .products { padding-top: clamp(56px, 8vw, 104px); }
@media (min-width: 1024px) { body:not(.waves-page) .app-hero { min-height: 0; padding-bottom: 0; } }
@media (max-width: 400px) and (max-height: 700px) { .home .hero .lead { display: none; } }
@media (max-width: 479px) { .home .hero .kicker { gap: 8px; padding-inline: 12px; font-size: 11px; letter-spacing: .04em; } }
.feat { display: grid; gap: 14px; max-width: 560px; padding: 16px; border: 1px solid color-mix(in srgb, var(--p) 35%, transparent); border-radius: 24px; background: linear-gradient(180deg, #15102AE6, #11111BE6); box-shadow: var(--shadow-card); animation: up .7s var(--ease-out) .2s both; }
@media (min-width: 640px) { .feat { padding: 20px; } }
.feat-head { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; }
.feat-icon { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--p) 55%, transparent), 0 0 24px -4px color-mix(in srgb, var(--p) 50%, transparent); }
.feat-name { margin: 0; font-size: 1.25rem; font-weight: 650; line-height: 1.2; }
.feat-name a:hover { color: var(--p); }
.feat-sub { margin: 2px 0 0; font-size: .9375rem; line-height: 1.45; color: var(--text-2); }
.feat-label { margin: 0; font-size: var(--fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.feat-btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 520px) { .feat-btns { grid-template-columns: 1fr 1fr; gap: 12px; } }
.btn-store { width: 100%; height: 56px; padding: 0 16px; background: var(--p); color: #1A1206; box-shadow: 0 12px 32px -14px color-mix(in srgb, var(--p) 80%, transparent); }
.btn-store:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.feat-btns .play-hint { grid-column: 1 / -1; margin: 0; font-size: var(--fs-small); color: var(--text-2); }

/* Hero core: the Frekans Odası icon with slow rings, behind the four tiles. Still frame: one soft ring. */
.fr-core { --fc: 104px; left: 50%; top: 50%; width: var(--fc); height: var(--fc); margin: calc(var(--fc) / -2) 0 0 calc(var(--fc) / -2); transform: translateZ(30px); }
@media (min-width: 640px) { .fr-core { --fc: 176px; } }
.fr-bob { position: absolute; inset: 0; animation: bob 6s var(--ease-io) infinite; }
.fr-core img { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 2px #E8C35A66, 0 0 60px -6px #E8C35A80, 0 24px 40px -20px #000; }
.fr-pulse { position: absolute; inset: 0; border: 2px solid #E8C35A; border-radius: 50%; transform: scale(1.3); opacity: .22; animation: frpulse 4.8s var(--ease-out) infinite; }
.fr-pulse:nth-child(2) { opacity: 0; animation-delay: -1.6s; } .fr-pulse:nth-child(3) { opacity: 0; animation-delay: -3.2s; }
@keyframes frpulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.9); opacity: 0; } }

/* Bento: Frekans big, Selfrank and Focivia beside it, Grafiqo and Onirevia below, Zar Yolu a thin strip at the end. */
@media (min-width: 768px) and (max-width: 1023px) { .b-fr { flex-direction: row-reverse; align-items: stretch; } .b-fr .mini { flex: 1.4; height: auto; min-height: 300px; } .b-fr .bento-body { flex: 1; } }
/* Wide screens: the scene fills the top of the tall card, the text sits under it (no empty quarter). */
@media (min-width: 1024px) { .b-fr .mini { flex: 1; height: auto; min-height: 300px; } .b-fr .bento-body { flex: none; } }
.b-sr .mini, .b-fo .mini { height: 150px; }
.b-gr .mini, .b-on .mini { height: 180px; }
.b-zar { min-height: 0; flex-direction: row; align-items: center; gap: 16px; padding: 16px 20px; }
.b-zar .bento-body { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding-right: 48px; }
.b-zar .bento-icon { grid-row: 1 / span 3; margin: 0; }
.b-zar h3 { font-size: 1.125rem; } .b-zar p { font-size: .9375rem; }
.b-zar .go { top: 50%; translate: 0 -50%; }
@media (max-width: 639px) { .b-zar .bento-icon { grid-row: 1 / span 2; } .b-zar .tag { grid-column: 1 / -1; margin-top: 10px; } }

/* Selfrank mini: the rank seal, notches, EXP. Still frame: B seal, 4 notches, bar at 90%. */
.mini-sr { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; padding: 16px 20px; background: radial-gradient(120% 90% at 0% 0%, #1D3B6E 0%, transparent 60%), var(--p-bg); }
.sr-row { display: grid; grid-template-columns: 5.5em 3.2em 1fr; gap: 10px; align-items: center; font-size: 13px; line-height: 1.2; }
.sr-sn { font-weight: 650; color: #F8FAFC; white-space: nowrap; }
.sr-sl { color: #94A3B8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sr-row:nth-child(2) .sr-bar b { animation: none; transform: scaleX(.45); }
.sr-row:nth-child(3) .sr-bar b { animation: none; transform: scaleX(.75); }
.sr-meta { position: relative; display: grid; gap: 10px; }
.sr-bar { height: 6px; border-radius: 3px; background: #FFFFFF1A; overflow: hidden; }
.sr-bar b { display: block; height: 100%; background: #38BDF8; transform-origin: left; transform: scaleX(.62); animation: srfill 7s var(--ease-out) infinite; }
.sr-pop { position: absolute; right: 0; top: -26px; font-size: 12px; font-weight: 700; color: #38BDF8; opacity: 0; animation: srpop 7s var(--ease-out) infinite; }
@keyframes srfill { 0%, 6% { transform: scaleX(.5); } 50%, 90% { transform: scaleX(.62); opacity: 1; } 97% { opacity: 0; } 100% { transform: scaleX(.5); opacity: 0; } }
@keyframes srpop { 0%, 44% { opacity: 0; transform: translateY(6px); } 52%, 70% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-8px); } }

/* Focivia mini: a dot follows a figure-eight. Two nested groups swing x and y, so only transform moves. Still frame: the dot at the right end. */
.mini-fo { display: grid; place-items: center; padding: 12px; background: radial-gradient(90% 80% at 50% 0%, #252A6B 0%, transparent 65%), var(--p-bg); }
.mini-fo svg { width: 100%; height: 100%; }
.fo-path { fill: none; stroke: #636686; stroke-width: 5; stroke-linecap: round; }
.fo-dot { fill: #F0661A; } .fo-halo { fill: #F0661A; opacity: .25; }
.mini-fo .fo-x { --ax: 110px; } .mini-fo .fo-y { --ay: 40px; }
.fo-x { transform: translateX(var(--ax)); animation: fox 4s cubic-bezier(.37, 0, .63, 1) infinite alternate; }
.fo-y { animation: foy 2s cubic-bezier(.37, 0, .63, 1) -1s infinite alternate; }
@keyframes fox { from { transform: translateX(var(--ax)); } to { transform: translateX(calc(-1 * var(--ax))); } }
@keyframes foy { from { transform: translateY(calc(-1 * var(--ay))); } to { transform: translateY(var(--ay)); } }

/* "More from us" with five cards. */
/* Five cards: rows of three, the short last row centred, every card the same width. */
@media (min-width: 768px) { .more.m5 { display: flex; flex-wrap: wrap; justify-content: center; } .more.m5 > a { flex: 0 0 calc((100% - 12px) / 2); } }
@media (min-width: 1024px) { .more.m5 > a { flex-basis: calc((100% - 24px) / 3); } }

/* Selfrank and Focivia pages. */
.app-sr { --accent: #38BDF8; --accent-ink: #050711; --link: #38BDF8; --grad-brand: linear-gradient(100deg, #38BDF8 0%, #A78BFA 100%); }
.app-sr .sky-night { background: radial-gradient(1100px 620px at 70% -8%, #1D3B6E 0%, transparent 62%), radial-gradient(900px 520px at 6% 6%, #2A1F5C 0%, transparent 60%), var(--bg); }
.app-sr .sky-dawn { background: radial-gradient(1400px 760px at 50% 115%, #38BDF826 0%, #A78BFA1A 40%, transparent 70%); }
.app-fo { --accent: #F0661A; --accent-ink: #121530; --link: #F6A86B; --grad-brand: linear-gradient(100deg, #F0661A 0%, #F6A86B 100%); }
.app-fo .sky-night { background: radial-gradient(1100px 620px at 70% -8%, #252A6B 0%, transparent 62%), radial-gradient(900px 520px at 6% 6%, #1C2050 0%, transparent 60%), var(--bg); }
.app-fo .sky-dawn { background: radial-gradient(1400px 760px at 50% 115%, #F0661A2E 0%, #6B78E01A 40%, transparent 70%); }
.app-sr .label, .app-fo .label { color: var(--p); }
.app-fo .hero .app-icon { box-shadow: none; }
@media (min-width: 1024px) { .app-sr .app-hero, .app-fo .app-hero { overflow-clip-margin: 80px; } }

/* Selfrank hero: the approved logo, icon above wordmark on one vertical axis, a calm glow. */
.sr-logo { position: relative; isolation: isolate; display: grid; justify-items: center; align-content: center; gap: 32px; width: 100%; max-width: 520px; min-height: 420px; margin-inline: auto; animation: stage-in .7s var(--ease-out) .25s both; }
.sr-logo-glow { position: absolute; left: 50%; top: 50%; z-index: -1; width: 420px; max-width: 100%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, #38BDF833 0%, #818CF81F 40%, transparent 68%); animation: breathe 6s var(--ease-io) infinite alternate; }
.sr-logo-icon { display: block; width: 240px; height: 240px; border-radius: 54px; box-shadow: 0 0 0 1px #38BDF833, 0 30px 60px -24px #000, 0 0 80px -20px #38BDF866; }
.sr-logo-word { display: block; width: 272px; height: auto; }
@media (max-width: 1023px) { .app-sr .sr-logo { order: -1; min-height: 0; width: max-content; margin-inline: 0; justify-self: start; justify-items: center; gap: 18px; padding-block: 0; } .sr-logo-glow { width: 260px; } .sr-logo-icon { width: 128px; height: 128px; border-radius: 29px; } .sr-logo-word { width: 176px; } }
.rk-e { --rk: #8A94A6; } .rk-d { --rk: #4ADE80; } .rk-c { --rk: #38BDF8; } .rk-b { --rk: #818CF8; } .rk-a { --rk: #C084FC; }
.rk-s { --rk: #F5C84C; } .rk-ss { --rk: #FB7185; } .rk-sss { --rk: #F8FAFC; } .rk-inf { --rk: #C084FC; }

/* Selfrank rank ladder band: one typographic chip per rank, the level under it. Edges line up with the heading. */
.sr-band { border-color: #38BDF82E; background: radial-gradient(700px 320px at 100% 0%, #1D3B6E99, transparent 70%), linear-gradient(180deg, #11182B, #0B1122); }
@media (min-width: 1024px) { .sr-band { grid-template-columns: 1fr; gap: 40px; } }
.sr-ladder { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; row-gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .sr-ladder { display: flex; justify-content: space-between; } }
.sr-ladder li { display: grid; justify-items: center; gap: 8px; }
.rk-chip { display: grid; place-items: center; width: 64px; height: 56px; border: 2px solid var(--rk); border-radius: 16px; background: #11182B; font-size: 1.5rem; font-weight: 760; line-height: 1; letter-spacing: -.01em; color: var(--rk); }
@media (min-width: 768px) and (max-width: 1023px) { .rk-chip { width: 56px; font-size: 1.25rem; } }
.rk-sss .rk-chip { font-size: 1.125rem; }
.rk-inf .rk-chip { border-color: transparent; background: linear-gradient(#11182B, #11182B) padding-box, linear-gradient(90deg, #38BDF8, #C084FC, #F5C84C) border-box; font-size: 1.75rem; }
.sr-lvl { font-size: 13px; line-height: 1.2; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Focivia hero scene: the break, a dot on a figure-eight with a short trail. Still frame: every dot at the right end. */
.fo-side { position: relative; width: 100%; max-width: 520px; aspect-ratio: 400 / 360; margin-inline: auto; animation: stage-in .7s var(--ease-out) .25s both; }
.fo-side svg { display: block; width: 100%; height: 100%; }
.fo-side .panel { fill: #1C2050; stroke: #FFFFFF14; }
.fo-side .t-top { font: 700 14px var(--font); letter-spacing: 2.5px; fill: #F0661A; text-anchor: middle; }
.fo-side .t-bot { font: 400 15px var(--font); fill: #B9B6C6; text-anchor: middle; }
.fo-side .fo-path { stroke-width: 8; }
.fo-side .fo-x { --ax: 140px; } .fo-side .fo-y { --ay: 56px; }
/* The trail lags the dot: a negative delay of one full cycle minus the lag (x cycle 8 s, y cycle 4 s). */
.trail-1 .fo-x { animation-delay: -7.82s; } .trail-1 .fo-y { animation-delay: -4.82s; }
.trail-2 .fo-x { animation-delay: -7.64s; } .trail-2 .fo-y { animation-delay: -4.64s; }
.trail-3 .fo-x { animation-delay: -7.46s; } .trail-3 .fo-y { animation-delay: -4.46s; }
.trail-1 circle { opacity: .45; } .trail-2 circle { opacity: .3; } .trail-3 circle { opacity: .15; }
