:root{--background:#101418;--surface:rgba(24,31,38,0.82);--surface-strong:#171e25;--text:#f3f7f2;--muted:#a8b3ad;--line:rgba(232,241,235,0.13);--primary:#22c55e;--primary-dark:#16a34a;--primary-soft:rgba(34,197,94,0.16);--accent:#f5b84b;--field:rgba(15,20,24,0.88);--toolbar:rgba(20,27,33,0.78);--shadow:0 18px 45px rgba(0,0,0,0.28);--ease:cubic-bezier(0.2,0.8,0.2,1)}:root[data-theme=light]{--background:#f5f7fb;--surface:rgba(255,255,255,0.78);--surface-strong:#ffffff;--text:#101828;--muted:#667085;--line:rgba(16,24,40,0.1);--primary:#16a34a;--primary-dark:#15803d;--primary-soft:rgba(22,163,74,0.14);--accent:#d97706;--field:rgba(255,255,255,0.88);--toolbar:rgba(255,255,255,0.72);--shadow:0 18px 45px rgba(20,32,56,0.13)}*{box-sizing:border-box}body{margin:0;min-height:100vh;overflow-x:hidden;background:linear-gradient(135deg,#101418,#18211c 48%,#13181f);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,Segoe UI,sans-serif;letter-spacing:0;animation:pageFadeIn .42s var(--ease) both}a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button{cursor:pointer}::selection{color:white;background:var(--primary)}:root[data-theme=light] body{background:linear-gradient(135deg,#f8fbff,#eef6ef 50%,#f7f7fb)}.shell{width:min(1120px,calc(100% - 32px));margin:0 auto;padding:18px 0 56px}.topbar{position:-webkit-sticky;position:sticky;top:12px;z-index:5;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid var(--line);border-radius:24px;background:var(--toolbar);box-shadow:0 10px 32px rgba(0,0,0,.18);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);animation:slideDown .52s var(--ease) both}.brand,.nav,.profile,.topbar{display:flex;align-items:center}.brand,.nav,.profile{gap:12px}.brand{min-width:0;font-weight:800}.brand span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar,.brandIcon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:white;background:linear-gradient(135deg,var(--primary),var(--accent));font-weight:900}.nav{color:var(--muted);font-weight:650}.hero{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(320px,.97fr);align-items:center;grid-gap:38px;gap:38px;min-height:calc(100vh - 164px);padding:44px 0 26px}.heroText{animation:riseIn .62s var(--ease) 80ms both}.heroShelf{animation:riseIn .62s var(--ease) .17s both}.heroText h1,.pageTitle h1{max-width:760px;margin:0;font-size:clamp(48px,8vw,92px);line-height:.94;letter-spacing:0}.heroText p:not(.eyebrow){max-width:610px;color:var(--muted);font-size:19px;line-height:1.55}.eyebrow{margin:0 0 10px;color:var(--primary);font-size:13px;font-weight:800;letter-spacing:0;text-transform:uppercase}.addButton,.adminAccessButton,.dangerButton,.gameCard button,.ghostButton,.googleButton,.primaryButton,.settingsButton{border:0;border-radius:999px;font-weight:800;transition:transform .18s var(--ease),background .18s var(--ease),box-shadow .18s var(--ease),opacity .18s var(--ease)}.primaryButton{display:inline-flex;justify-content:center;padding:13px 20px;color:white;background:var(--primary);box-shadow:0 12px 28px rgba(34,197,94,.24)}.addButton:hover,.gameCard button:hover,.primaryButton:hover{transform:translateY(-2px) scale(1.015);background:var(--primary-dark)}.closeButton:hover,.ghostButton:hover,.googleButton:hover,.segmented button:hover{transform:translateY(-1px)}.addButton:active,.closeButton:active,.gameCard button:active,.ghostButton:active,.googleButton:active,.primaryButton:active,.segmented button:active{transform:scale(.97)}.primaryButton:disabled{opacity:.65;cursor:progress;transform:none}.ghostButton,.googleButton{padding:12px 16px;color:var(--text);background:var(--field)}.dangerButton{padding:13px 20px;color:white;background:#d92d20;box-shadow:0 12px 28px rgba(217,45,32,.2)}.dangerButton:hover,.deleteGameButton:hover{background:#b42318}.addButton{display:grid;place-items:center;width:44px;height:44px;color:white;background:var(--primary);font-size:30px;line-height:1;box-shadow:0 12px 28px rgba(34,197,94,.24)}.topbarActions{display:flex;align-items:center;gap:10px}.settingsMenu{position:relative}.settingsButton{padding:12px 16px;color:var(--text);background:var(--field)}.settingsPanel{position:absolute;top:calc(100% + 10px);right:0;z-index:12;display:grid;grid-gap:10px;gap:10px;width:230px;padding:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface-strong);box-shadow:var(--shadow)}.settingsPanel span{color:var(--muted);font-size:13px;font-weight:800}.heroShelf,.modal,.panel{border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}.heroShelf{display:grid;grid-gap:14px;gap:14px;padding:18px;border-radius:32px}.gameCard,.miniCard{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;grid-gap:14px;gap:14px}.miniCard{padding:14px;border-radius:22px;background:var(--field);transition:transform .22s var(--ease),box-shadow .22s var(--ease),background .22s var(--ease)}.miniCard:hover{transform:translateY(-3px);background:var(--surface-strong);box-shadow:0 14px 28px rgba(0,0,0,.18)}.historyList img,.miniCard img{width:58px;height:58px;border-radius:15px;object-fit:cover}.historyList a,.miniCard div,.profile div{min-width:0}.miniCard span,.miniCard strong,.profile span,.profile strong{display:block}.miniCard span,.muted,.profile span{color:var(--muted)}.miniCard span{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:18px;gap:18px;padding-bottom:24px}.panel{min-height:310px;padding:22px;border-radius:28px;animation:riseIn .56s var(--ease) .12s both}.emptyState h2,.modal h2,.sectionHeader h2{margin:0 0 16px;font-size:28px}.authForm,.modal{display:grid;grid-gap:12px;gap:12px}.fieldGroup{display:grid;grid-gap:8px;gap:8px}.fieldGroup span{color:var(--muted);font-size:14px;font-weight:800}.segmented{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:4px;gap:4px;padding:4px;border-radius:18px;background:var(--field)}.segmented button{border:0;border-radius:14px;padding:10px;color:var(--muted);background:transparent;font-weight:800;transition:transform .17s var(--ease),background .17s var(--ease),color .17s var(--ease),box-shadow .17s var(--ease)}.segmented .active{color:var(--text);background:var(--surface-strong);box-shadow:0 5px 16px rgba(0,0,0,.12)}input,textarea{width:100%;border:1px solid var(--line);border-radius:18px;padding:14px 15px;outline:none;background:var(--field);color:var(--text);transition:border-color .18s var(--ease),box-shadow .18s var(--ease),transform .18s var(--ease)}textarea{min-height:112px;resize:vertical}input:focus,textarea:focus{border-color:rgba(34,197,94,.48);box-shadow:0 0 0 4px rgba(34,197,94,.12);transform:translateY(-1px)}.error{margin:0;color:#d92d20;font-size:14px;font-weight:700}.historyList{display:grid;grid-gap:10px;gap:10px}.historyList a{display:flex;align-items:center;gap:12px;padding:10px;border-radius:18px;background:var(--field);font-weight:750;transition:transform .19s var(--ease),background .19s var(--ease)}.historyList a:hover{transform:translateX(4px);background:var(--surface-strong)}.pageTitle{padding:46px 0 24px;animation:riseIn .56s var(--ease) 70ms both}.searchInput{max-width:460px;margin-top:22px}.notice{margin:0 0 16px;padding:12px 16px;border-radius:16px;color:#05603a;background:#d1fadf;font-weight:750;animation:popIn .32s var(--ease) both}.gameGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px}.gameCard{grid-template-columns:auto minmax(0,1fr) auto;padding:16px;border:1px solid var(--line);border-radius:26px;background:var(--surface-strong);box-shadow:0 12px 28px rgba(0,0,0,.18);animation:riseIn .42s var(--ease) both;transition:transform .22s var(--ease),box-shadow .22s var(--ease),border-color .22s var(--ease)}.gameCard:hover{transform:translateY(-4px);border-color:rgba(34,197,94,.3);box-shadow:0 18px 38px rgba(0,0,0,.24)}.gameCard img{width:86px;height:86px;border-radius:22px;object-fit:cover}.gameInfo{min-width:0}.gameInfo h2{margin:0 0 6px;font-size:22px}.gameInfo p{display:-webkit-box;margin:0;overflow:hidden;color:var(--muted);line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.gameActions{display:grid;grid-gap:8px;gap:8px}.gameCard button{padding:11px 17px;color:white;background:var(--primary)}.gameCard .secondaryGameButton{color:#14532d;background:#bbf7d0}.gameCard .secondaryGameButton:hover{color:#052e16;background:#86efac}.gameCard .deleteGameButton{color:#b42318;background:#fee4e2}.emptyState{grid-column:1/-1;padding:40px;border:1px dashed var(--line);border-radius:28px;background:var(--surface);text-align:center}.modalBackdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:18px;overflow-y:auto;background:rgba(0,0,0,.52);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);animation:fadeIn .18s var(--ease) both}.modal{width:min(520px,100%);max-height:calc(100dvh - 36px);overflow-y:auto;padding:22px;border-radius:28px;animation:modalIn .26s var(--ease) both}.modalHeader{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.closeButton{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:50%;color:var(--muted);background:var(--field);font-weight:900;transition:transform .17s var(--ease),background .17s var(--ease)}.playerShell{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;margin:0;padding:0;overflow:hidden;background:#0b1220}.playerTopbar{position:fixed;top:12px;left:12px;right:12px;z-index:10;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:22px;background:var(--toolbar);box-shadow:0 10px 32px rgba(0,0,0,.18);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);animation:slideDown .26s var(--ease) both}.playerActions,.playerTopbar{display:flex;align-items:center}.playerActions{flex:0 0 auto;gap:10px}.showPlayerTopbar{position:fixed;top:12px;right:12px;z-index:11;border:1px solid var(--line);border-radius:999px;padding:12px 16px;color:var(--text);background:var(--toolbar);box-shadow:0 10px 32px rgba(0,0,0,.2);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);font-weight:900;animation:popIn .23s var(--ease) both;transition:transform .17s var(--ease),background .17s var(--ease)}.showPlayerTopbar:hover{transform:translateY(-1px);background:var(--surface-strong)}.adminAccessButton{display:block;margin:18px auto 0;padding:8px 12px;color:var(--muted);background:transparent;opacity:.38}.adminAccessButton:hover{color:var(--text);background:var(--field);opacity:1}.showPlayerTopbar:active{transform:scale(.97)}.playerFrame{position:absolute;inset:0;width:100vw;height:100vh;height:100dvh;min-height:0;overflow:hidden;border:0;border-radius:0;background:#0b1220;box-shadow:none}.playerFrame embed,.playerFrame iframe{display:block;width:100%;height:100%;border:0;background:white}@keyframes pageFadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideDown{0%{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:translateY(0)}}@keyframes riseIn{0%{opacity:0;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}@keyframes popIn{0%{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}@keyframes modalIn{0%{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:1ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:1ms!important}}@media (max-width:820px){.shell{width:min(100% - 22px,1120px);padding-top:12px;padding-bottom:36px}.gameGrid,.hero,.split{grid-template-columns:1fr}.hero{min-height:auto;gap:22px;padding:30px 0 22px}.heroText h1,.pageTitle h1{font-size:clamp(38px,13vw,58px);line-height:.98}.heroText p:not(.eyebrow){font-size:17px;line-height:1.45}.heroShelf,.panel{box-shadow:0 12px 30px rgba(20,32,56,.1)}.pageTitle{padding:34px 0 20px}.searchInput{max-width:none;margin-top:18px}.gameCard{grid-template-columns:auto minmax(0,1fr);align-items:start}.gameActions{grid-column:1/-1;grid-template-columns:1fr 1fr}.gameCard button{width:100%}.playerTopbar{top:8px;left:8px;right:8px;gap:8px;padding:10px;border-radius:18px}.playerTopbar .brand{gap:8px}.playerTopbar .brandIcon{width:34px;height:34px;border-radius:11px}.playerActions{gap:8px}.playerActions .ghostButton{padding:10px 12px}.showPlayerTopbar{top:8px;right:8px;padding:10px 14px}.playerFrame{height:100dvh;min-height:0;border-radius:0}}@media (max-width:520px){.shell{width:min(100% - 16px,1120px)}.topbar{top:8px;gap:10px;padding:10px;border-radius:18px}.brand{gap:9px;font-size:15px}.avatar,.brandIcon{width:34px;height:34px;border-radius:11px}.nav{gap:8px;font-size:14px}.settingsButton{padding:9px 11px;font-size:13px}.settingsPanel{right:-72px;width:min(230px,calc(100vw - 32px))}.nav .ghostButton{padding:9px 11px;font-size:13px}.addButton{width:40px;height:40px;font-size:26px}.heroText h1,.pageTitle h1{font-size:clamp(34px,12vw,48px)}.googleButton,.primaryButton{width:100%}.heroShelf{gap:10px;padding:12px}.heroShelf,.panel{border-radius:22px}.historyList img,.miniCard img{width:48px;height:48px}.panel{min-height:0;padding:16px}.emptyState h2,.modal h2,.sectionHeader h2{font-size:24px}.gameGrid{gap:12px}.gameCard{gap:12px;padding:12px;border-radius:22px}.gameActions{grid-template-columns:1fr}.gameCard img{width:68px;height:68px;border-radius:18px}.gameInfo h2{font-size:18px}.gameInfo p{font-size:14px;-webkit-line-clamp:3}.emptyState{padding:24px 16px;border-radius:22px}.modalBackdrop{align-items:end;padding:10px}.modal{width:100%;max-height:calc(100dvh - 20px);padding:16px;border-radius:24px}input,textarea{border-radius:16px;padding:13px 14px}textarea{min-height:96px}.playerTopbar{align-items:flex-start}.playerTopbar .brand{flex:1 1 auto}.playerActions .ghostButton{font-size:13px}.playerActions .closeButton{width:34px;height:34px}}@media (max-width:380px){.nav .ghostButton{display:none}.heroText h1,.pageTitle h1{font-size:32px}.gameCard img{width:60px;height:60px;border-radius:16px}.playerTopbar .brand span:last-child{max-width:150px}.footerAffiliation{width:100%;display:flex;justify-content:center;align-items:center;margin-top:80px;padding-bottom:35px;font-size:14px;font-weight:400;color:#9ca3af;text-align:center}.footerAffiliation a{margin-left:4px;color:#9ca3af;text-decoration:none}.footerAffiliation a:hover{text-decoration:underline}}