/* Uiverse-inspired adaptations; source notices: /credits/uiverse-ui.txt */
:root{--page:#fff;--surface:#fff;--surface-soft:#f3f8fc;--line:#dce6ee;--control-border:#7c91a5;--ink-deep:#1d2e45;--on-accent:#14283d;--cyan:#7bd7e8;--ripple-ink:rgba(29,46,69,.38);--deck-gold:#ffe7b9;--deck-shadow:#e5dcf4;--deck-storm:#cee8f7;--social-icon-filter:none}
:root[data-theme=dark]{--page:#111e30;--surface:#192a40;--surface-soft:#20334b;--ink:#edf4fc;--muted:#b5c7d9;--blue:#213e57;--pale:#1c3249;--burgundy:#ff93a8;--line:#344960;--control-border:#7891ab;--ripple-ink:rgba(159,220,255,.65);--deck-gold:#594526;--deck-shadow:#403451;--deck-storm:#234b62;--social-icon-filter:invert(1)}
body{background:var(--page);transition:background-color .18s ease,color .18s ease}
::selection{background:var(--ink);color:var(--page)}
.site-header{background:var(--surface);gap:24px;box-shadow:0 1px 0 var(--line)}
.site-header nav{margin-left:auto;gap:clamp(8px,1.4vw,24px)}
.site-header nav a{font-size:17px}
.site-header .brand{border-radius:12px}
[data-theme=dark] .site-header .brand{background:#fbf7ef;padding:2px 8px}
[data-theme=dark] .brand img{width:132px}
.header-tools{display:flex;align-items:center;gap:14px;flex:none}
.theme-toggle{position:relative;width:60px;height:44px;padding:0;border:0;background:transparent;flex:none;border-radius:24px;cursor:pointer}
.theme-track{position:absolute;inset:7px 2px;background:#437e9f;border-radius:20px;overflow:hidden;transition:background-color .3s ease;pointer-events:none}
.theme-orb{position:absolute;top:4px;left:4px;width:22px;height:22px;border-radius:50%;background:#ffe290;transition:transform .38s cubic-bezier(.16,1,.3,1),background-color .3s ease}
.theme-orb:after{content:"";position:absolute;inset:0;border-radius:50%;opacity:0;background:radial-gradient(circle at 35% 30%,#9dacc2 0 2px,transparent 2.5px),radial-gradient(circle at 68% 58%,#9dacc2 0 3px,transparent 3.5px),radial-gradient(circle at 28% 75%,#9dacc2 0 1.5px,transparent 2px);transition:opacity .25s ease}
.theme-cloud{position:absolute;right:4px;bottom:5px;width:20px;height:7px;border-radius:8px;background:#fff;opacity:.9;transition:transform .3s ease,opacity .3s ease}
.theme-cloud:before{content:"";position:absolute;left:3px;bottom:0;width:10px;height:11px;border-radius:50%;background:inherit}
.theme-stars{position:absolute;top:8px;left:10px;width:2px;height:2px;border-radius:50%;background:#fff;box-shadow:7px 9px #fff,12px -2px #fff,17px 6px #fff;opacity:0;transform:translateY(-12px);transition:opacity .25s ease,transform .38s ease}
[data-theme=dark] .theme-track{background:#5b7898}
[data-theme=dark] .theme-orb{transform:translateX(26px) rotate(28deg);background:#edf3fb}
[data-theme=dark] .theme-orb:after{opacity:1}
[data-theme=dark] .theme-cloud{opacity:0;transform:translateX(20px)}
[data-theme=dark] .theme-stars{opacity:1;transform:none}
.site-header .nav-link{display:inline-flex;align-items:center;justify-content:center;position:relative;isolation:isolate;overflow:hidden;min-height:44px;padding:9px 16px;border-radius:25px;transition:background-color .2s ease,color .2s ease}
.site-header .nav-link:is(:hover,:focus-visible){background:var(--pale);color:var(--ink)}
.nav-link .nav-label{z-index:2}
.button{color:var(--on-accent)}
.button:not(:disabled){transition:background .18s ease,transform .18s ease,box-shadow .18s ease}
.button:not(:disabled):hover{box-shadow:0 9px 22px #00000016}
.games{padding-block:65px 62px}
.game-feature{display:grid;grid-template-columns:1fr 390px;align-items:center;gap:30px;padding:32px 36px;margin:10px 0 22px;background:var(--surface-soft);border-radius:20px;min-height:330px}
.game-feature-heading{display:flex;align-items:center;gap:20px}
.game-feature-icon{width:76px;height:76px;border-radius:18px;object-fit:cover;flex:none}
.game-feature h3{font-size:clamp(30px,3vw,40px);margin-bottom:7px}
.game-feature .game-feature-copy>p{font-size:19px;margin:23px 0;color:var(--muted);max-width:32ch}
.game-feature .plain-link{min-height:44px;text-decoration:none}
.game-feature .plain-link svg{transition:transform .24s ease}
.game-feature .plain-link:hover svg{transform:translateX(5px)}
.deck-shell{display:flex;flex-direction:column;align-items:center;min-width:0}
.hero-deck{position:relative;width:360px;height:260px;max-width:100%;isolation:isolate}
.hero-deck-card{position:absolute;left:calc(50% - 77px);top:14px;width:154px;height:222px;border:0;border-radius:16px;padding:10px 10px 12px;background:var(--card-surface);color:var(--ink);box-shadow:0 16px 28px #00000018;transition:transform .75s cubic-bezier(.16,1,.3,1);transform-origin:50% 80%;overflow:hidden}
.hero-deck-card[data-deck-card=kirik]{--card-surface:var(--deck-gold)}
.hero-deck-card[data-deck-card=shadow]{--card-surface:var(--deck-shadow)}
.hero-deck-card[data-deck-card=yildirim]{--card-surface:var(--deck-storm)}
.hero-deck-card[data-slot=centre]{transform:translate3d(0,0,0) rotate(0deg);z-index:3}
.hero-deck-card[data-slot=left]{transform:translate3d(-83px,20px,0) rotate(-13deg) scale(.92);z-index:1}
.hero-deck-card[data-slot=right]{transform:translate3d(83px,20px,0) rotate(13deg) scale(.92);z-index:2}
.hero-deck-card img{height:174px;width:100%;object-fit:contain;pointer-events:none}
.hero-deck-card>span{display:block;font-family:Fredoka,Outfit,sans-serif;font-weight:500;font-size:17px;margin-top:4px}
.deck-toggle{border:0;background:transparent;color:var(--muted);font-size:12px;min-height:34px;padding:5px 12px;text-decoration:underline;text-underline-offset:4px;border-radius:12px}
.deck-toggle:disabled{opacity:.75;cursor:default;text-decoration:none}
.coming-game{border-radius:18px;padding-block:30px}
.coming-game>p{color:var(--muted)}
.coming-game h3{font-size:clamp(32px,3.1vw,45px)}
.studio{padding-block:75px 90px}
.invite{background:var(--pale);max-width:none;padding-block:60px}
.contact-actions{display:flex;gap:10px;flex:none;align-items:center}
.action-slot{width:186px;height:94px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.expand-action{position:relative;display:flex;align-items:center;justify-content:center;width:58px;height:58px;overflow:hidden;border:0;border-radius:32px;background:var(--ink-deep);color:#fff;text-decoration:none;transition:width .3s cubic-bezier(.16,1,.3,1),background-color .2s ease}
.expand-action svg{width:23px;height:23px;transition:transform .3s ease}
.expand-action .action-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;white-space:nowrap;font-size:15px;font-weight:500;opacity:0;transform:translateY(-35px);transition:transform .3s ease,opacity .2s ease}
.action-caption{font-size:13px;color:var(--muted);transition:opacity .2s ease}
.expand-action:is(:hover,:focus-visible){width:186px;background:var(--orange);color:var(--on-accent)}
.expand-action:is(:hover,:focus-visible) svg{transform:translateY(45px)}
.expand-action:is(:hover,:focus-visible) .action-text{opacity:1;transform:translateY(0)}
.action-slot:has(.expand-action:is(:hover,:focus-visible)) .action-caption{opacity:0}
.play-control{display:inline-flex;align-items:center;justify-content:center;gap:10px;position:relative;overflow:hidden;width:204px;min-height:46px;padding:10px 15px;margin:0 0 16px;border:1px solid #25859c;border-radius:12px;background:var(--cyan);color:var(--on-accent);font-size:14px;font-weight:500;box-shadow:0 3px 0 #25859c,0 8px 15px #00000010;transition:transform .15s ease,box-shadow .15s ease}
.play-control svg{width:22px;height:22px;transition:transform .35s cubic-bezier(.16,1,.3,1)}
.play-control [data-play-label]{transition:transform .35s cubic-bezier(.16,1,.3,1)}
.play-control:active:not(:disabled){transform:translateY(3px);box-shadow:none}
.play-control:disabled{opacity:.65;box-shadow:none}
.play-control .pause-bars{display:none}
.play-control[aria-pressed=true] .pause-bars{display:block}
.play-control[aria-pressed=true] .play-triangle{display:none}
.scene-actions{margin-top:12px}
.scene-loading{display:flex;align-items:center;justify-content:center;gap:12px;background:var(--surface);color:var(--ink);min-height:44px;padding:9px 12px}
.scene-loading:empty{display:none}
.newtons-cradle{--uib-size:36px;--uib-speed:1.2s;--uib-color:currentColor;position:relative;display:flex;align-items:center;justify-content:center;width:var(--uib-size);height:var(--uib-size);flex:none}
.newtons-cradle__dot{position:relative;display:flex;align-items:center;height:100%;width:25%;transform-origin:center top}
.newtons-cradle__dot:after{content:"";display:block;width:100%;height:25%;border-radius:50%;background:var(--uib-color)}
.newtons-cradle__dot:first-child{animation:cradle-swing var(--uib-speed) linear infinite}
.newtons-cradle__dot:last-child{animation:cradle-swing-back var(--uib-speed) linear infinite}
@keyframes cradle-swing{0%{transform:rotate(0);animation-timing-function:ease-out}25%{transform:rotate(65deg);animation-timing-function:ease-in}50%{transform:rotate(0)}}
@keyframes cradle-swing-back{0%,50%{transform:rotate(0);animation-timing-function:ease-out}75%{transform:rotate(-65deg);animation-timing-function:ease-in}100%{transform:rotate(0)}}
.site-footer{display:grid;grid-template-columns:1fr auto;align-items:center;gap:40px;padding-block:38px;border-top:1px solid var(--line)}
.footer-main{min-width:0}
.footer-main .footer-links{margin:0;gap:14px 24px}
.footer-main small{display:block;margin-top:23px;color:var(--muted)}
.footer-main .footer-links a:last-child{width:auto}
.footer-social{width:264px}
.footer-social>p{font-size:14px;color:var(--muted);margin:0 0 12px}
.social-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;isolation:isolate}
.social-link{position:relative;min-height:55px;display:flex;align-items:center;justify-content:center;gap:9px;padding:12px 9px;background:var(--surface-soft);color:var(--ink);text-decoration:none;font-size:13px;border-radius:12px;transition:background-color .2s ease,transform .25s cubic-bezier(.16,1,.3,1),color .2s ease}
.social-link img{width:20px;height:20px;filter:var(--social-icon-filter);transition:filter .2s ease}
.social-link:is(:hover,:focus-visible){color:white;transform:translateY(-3px)}
.social-link:is(:hover,:focus-visible) img{filter:brightness(0) invert(1)}
.social-link.instagram:is(:hover,:focus-visible){background:#a52b77}
.social-link.tiktok:is(:hover,:focus-visible),.social-link.x:is(:hover,:focus-visible){background:#101419}
.social-link.youtube:is(:hover,:focus-visible){background:#c91d26}
.apply-panel{background:var(--surface-soft);border-radius:20px}
form input:not([type=checkbox]):not([type=file]),form select,form textarea{background:var(--surface);color:var(--ink);border-color:var(--control-border);transition:border-color .2s ease,background-color .2s ease}
form input::placeholder,form textarea::placeholder{color:var(--muted)}
form input:not([type=checkbox]):not([type=file]):focus,form select:focus,form textarea:focus{border-color:var(--burgundy)}
.file-field{background:var(--surface);border-color:var(--muted)}
.form-announcement{background:var(--blue);color:var(--ink)}
.file-field input::file-selector-button{background:var(--pale);color:var(--ink)}
.button:disabled{background:var(--line);color:var(--muted)}
.document-links>a,.legal-scope{background:var(--pale)}
.legal-language-nav{background:var(--page)}
.licence-archive pre{background:var(--pale)}
[data-theme=dark] .hero-wash{background:linear-gradient(90deg,#111e30fa 0%,#111e30db 28%,#111e3052 56%,transparent 76%)}
[data-theme=dark] .invite:before{background:#243c56}
[data-theme=dark] .intro-character{background:var(--surface)}
[data-theme=dark] .story-toolbar{background:var(--surface);border-color:var(--line)}
[data-theme=dark] .quiet-button{background:var(--surface-soft);border-color:var(--control-border);color:var(--ink)}
[data-theme=dark] .ability-story{background:#142439}
[data-theme=dark] .ability-story+.ability-story{background:#1c263f}
[data-theme=dark] .hero-name{color:#f2cb8c}
[data-theme=dark] .ability-story[data-motion=kara_kuzgun] .hero-name{color:#d3b6ff}
[data-theme=dark] .hero-choice[aria-pressed=true]{background:#3e2d46}
[data-theme=dark] .menu-toggle{background:transparent;color:var(--ink)}
[data-theme=dark] .skip{background:var(--surface);color:var(--ink)}
[data-theme=dark] .form-message{color:#ffb0bc}
[data-theme=dark] .form-message.success{color:#a0e9b9}
[data-theme=dark] .legal article+article{border-color:var(--line)}
.page-hidden .newtons-cradle__dot{animation-play-state:paused}
@media(hover:hover) and (pointer:fine){.play-control:not(:disabled):hover [data-play-label]{transform:translateX(180px)}.play-control:not(:disabled):hover svg{transform:translateX(62px)}}
@media(max-width:1100px){.game-feature{grid-template-columns:1fr 340px;padding:28px;gap:18px}.hero-deck{width:330px}.hero-deck-card[data-slot=left]{transform:translate3d(-73px,20px,0) rotate(-12deg) scale(.91)}.hero-deck-card[data-slot=right]{transform:translate3d(73px,20px,0) rotate(12deg) scale(.91)}.contact-actions{gap:0}.action-slot{width:175px}}
@media(max-width:900px){.game-feature{grid-template-columns:1fr 300px}.hero-deck{width:300px}.hero-deck-card{width:140px;left:calc(50% - 70px)}.hero-deck-card[data-slot=left]{transform:translate3d(-62px,20px,0) rotate(-12deg) scale(.91)}.hero-deck-card[data-slot=right]{transform:translate3d(62px,20px,0) rotate(12deg) scale(.91)}.game-feature-heading{gap:14px}.game-feature-icon{width:64px;height:64px}.game-feature h3{font-size:31px}.invite{gap:20px}.contact-actions{flex-direction:column;gap:4px}.action-slot{height:78px;width:186px}}
@media(max-width:640px){.site-header{gap:10px;padding-inline:var(--gutter)}.header-tools{margin-left:auto;gap:10px}.site-header nav{background:var(--surface);gap:8px;padding:15px 22px 22px}.site-header .nav-link{justify-content:flex-start;padding-inline:16px}.site-header .nav-apply{margin-top:7px}.theme-toggle{width:56px}.theme-track{inset-inline:0}.menu-toggle{padding-inline:0;font-size:15px}.menu-toggle svg{width:20px;height:20px}[data-theme=dark] .site-header .brand{padding:0 5px}[data-theme=dark] .brand img{width:104px}.games{padding-block:40px}.game-feature{grid-template-columns:1fr;padding:24px 20px;gap:20px;min-height:0;border-radius:18px}.game-feature h3{font-size:29px}.game-feature .game-feature-copy>p{font-size:17px;margin-block:18px}.game-feature-icon{width:64px;height:64px}.hero-deck{width:300px;height:248px;max-width:100%}.hero-deck-card{height:210px;width:134px;left:calc(50% - 67px)}.hero-deck-card img{height:163px}.hero-deck-card>span{font-size:16px}.hero-deck-card[data-slot=left]{transform:translate3d(-58px,18px,0) rotate(-11deg) scale(.9)}.hero-deck-card[data-slot=right]{transform:translate3d(58px,18px,0) rotate(11deg) scale(.9)}.studio{padding-block:35px 48px}.invite{display:block;padding-block:40px}.invite h2{max-width:14ch}.contact-actions{margin-top:25px;flex-direction:row;gap:12px;align-items:stretch;flex-wrap:wrap}.action-slot{width:auto;height:auto;align-items:stretch;gap:0;flex:1;min-width:150px}.expand-action{width:100%;height:48px;border-radius:25px;gap:10px;padding-inline:14px;font-size:14px}.expand-action .action-text{position:static;opacity:1;transform:none;font-size:14px}.expand-action svg{width:20px;height:20px}.expand-action:is(:hover,:focus-visible){width:100%}.expand-action:is(:hover,:focus-visible) svg{transform:none}.action-caption{display:none}.play-control{min-height:44px;margin-bottom:12px}.scene-actions{margin-top:9px}.site-footer{grid-template-columns:1fr;gap:28px;padding-block:30px}.footer-social{width:100%;max-width:340px}.social-link{min-height:52px}.footer-main .footer-links{font-size:14px;gap:10px 22px}.footer-main small{font-size:12px}.scene-loading{font-size:11px;gap:8px;padding:6px 8px}.newtons-cradle{--uib-size:28px}.legal-preview .footer-links a:last-child{width:auto}[data-theme=dark] .hero-wash{background:linear-gradient(0deg,#111e30 0%,#111e30ed 25%,#111e30a8 50%,#111e3000 82%)}}
@media(max-height:750px) and (max-width:640px){.scene-frame{height:min(29svh,240px)}.scene-actions{margin-top:5px}.play-control{min-height:42px;margin-bottom:10px}}
@media(min-height:751px) and (max-width:640px){.scene-frame{height:min(40svh,350px)}}
@media(prefers-reduced-motion:reduce){.hero-deck-card,.theme-orb,.theme-cloud,.theme-stars,.expand-action,.social-link,.play-control,.play-control svg,.play-control [data-play-label]{transition:none}.newtons-cradle__dot{animation:none}}
