:root{--accent:#a8a8ae;color-scheme:dark;font-family:Inter,system-ui,-apple-system,sans-serif;background:#191a1f;color:#f0efec}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;background:var(--accent);border:0;border-radius:9px;padding:10px 14px;color:#17181a;font-weight:650}button.ghost{background:#393a41;color:#f0efec}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.shell{display:grid;grid-template-columns:225px 1fr;min-height:100vh}.sidebar{background:#222329;padding:24px 14px;border-right:1px solid #383940}.brand{font-size:19px;font-weight:800;letter-spacing:.04em;margin:0 10px 30px}.sidebar button{display:block;width:100%;text-align:left;margin:4px 0}.sidebar button.active{background:var(--accent);color:#151519}main{padding:28px;max-width:1300px;width:100%;margin:auto}.top{display:flex;justify-content:space-between;align-items:center;gap:12px}.muted{color:#b5b5bc}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.card{background:#2a2b32;border:1px solid #42434b;border-radius:16px;padding:20px;min-width:0}.card h3{margin:0 0 8px}.card p{color:#bdbdc5;font-size:14px}.card button{margin-top:8px}.auth{min-height:100vh;display:grid;place-items:center;padding:20px}.auth .card{width:min(420px,100%)}label{display:block;margin:14px 0 6px;color:#dedee2}input,select{width:100%;background:#202127;border:1px solid #575862;border-radius:9px;color:#f3f3f3;padding:11px}input[type=checkbox]{width:auto;accent-color:var(--accent)}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.news{border-left:3px solid var(--accent);padding-left:12px;margin:14px 0}.note{border:1px solid #69645a;border-radius:10px;padding:12px;color:#e3d7b8}.audio{position:sticky;bottom:0;background:#25262d;border-top:1px solid #474852;padding:12px 24px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.hidden{display:none}@media(max-width:700px){.shell{display:block}.sidebar{border-right:0;border-bottom:1px solid #383940;padding:12px}.brand{margin:5px 8px}.sidebar nav{display:flex;overflow:auto;gap:6px}.sidebar button{white-space:nowrap;width:auto}main{padding:18px}.top{align-items:flex-start}.cards{grid-template-columns:1fr}}

.auth .card{box-shadow:0 20px 80px rgba(0,0,0,.26)}.auth .row{margin-top:12px}.auth .row .ghost{font-size:13px;padding:9px 11px}.auth input{max-width:100%}.auth .note{overflow-wrap:anywhere}.auth form{margin-bottom:18px}.auth button:disabled{opacity:.6;cursor:wait}

/* Catalog action lives outside .hb, so its accent must come from the account theme. */
.game-launch-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 17px;margin-top:12px;border:1px solid color-mix(in srgb,var(--accent,#a8a8ae) 70%,white);border-radius:11px;background:var(--accent,#a8a8ae);color:#17181a;font-weight:750;line-height:1.2;box-shadow:0 4px 14px color-mix(in srgb,var(--accent,#a8a8ae) 20%,transparent)}
.game-launch-button:hover{filter:brightness(1.12)}
.game-launch-button:focus-visible{outline:2px solid #fff;outline-offset:3px}


/* Hall of Fame: a compact discoverable card in the right-hand space of Games. */
.games-titlebar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px}
.games-title-main h1{margin:0 0 8px}
.games-title-main p{font-size:13px;margin:0}
.hall-preview{display:flex;align-items:center;gap:13px;flex:0 0 clamp(235px,28vw,344px);
  min-height:106px;padding:16px!important;text-align:left!important;border-radius:18px!important;
  border:1px solid color-mix(in srgb,var(--accent) 48%,#45454d)!important;
  background:radial-gradient(circle at 91% 23%,color-mix(in srgb,var(--accent) 15%,transparent),transparent 55%),linear-gradient(135deg,#32323a,#292a30)!important;
  box-shadow:0 6px 26px #0003;color:#f5f1eb!important;line-height:1.3!important}
.hall-preview:hover{border-color:var(--accent)!important;filter:brightness(1.08)}
.hall-preview-icon{display:grid;place-items:center;flex:0 0 45px;height:45px;border-radius:14px;
  border:1px solid color-mix(in srgb,var(--accent) 55%,#55565d);background:color-mix(in srgb,var(--accent) 15%,#2b2c33);
  font-family:Georgia,serif;font-size:29px;color:color-mix(in srgb,var(--accent) 76%,white);text-shadow:0 0 15px var(--accent)}
.hall-preview-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
.hall-preview-copy strong{font-size:17px;font-weight:750}
.hall-preview-copy small{font-size:12px;color:#dad6d1}
.hall-preview-copy>span{font-size:10px;color:#aaa8ad;margin-top:4px}
.hall-preview-arrow{margin-left:auto;font-size:27px;color:var(--accent);font-weight:400}
.hall-page{max-width:1160px}
.hall-back{background:#33343b!important;border:1px solid #51525b!important;color:#f0eeec!important;
  font-size:13px!important;padding:9px 16px!important;border-radius:999px!important}
.hall-heading{display:flex;align-items:center;gap:16px;margin:28px 0}
.hall-heading h1{margin:0 0 6px;font-size:clamp(29px,4vw,46px)}
.hall-heading p{margin:0;color:#bab9c0;font-size:14px;line-height:1.5}
.hall-spark{width:70px;height:70px;border:1px solid color-mix(in srgb,var(--accent) 54%,#45464e);
  border-radius:20px;display:grid;place-items:center;font-size:43px;color:var(--accent);
  background:linear-gradient(140deg,#3d3d46,#27282e)}
.hall-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:17px}
.hall-summary-item{border-radius:14px;padding:16px;background:#2a2b32;border:1px solid #42434b}
.hall-summary-item span{font-size:12px;color:#b9b8be;display:block;margin-bottom:8px}
.hall-summary-item strong{font-size:clamp(15px,2vw,21px);color:color-mix(in srgb,var(--accent) 60%,white)}
.hall-sections{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr);gap:15px}
.hall-sections>.card h2{font-size:20px;margin:0 0 17px}
.hall-empty{padding:36px 20px;text-align:center;background:#212229;border:1px dashed #51525a;border-radius:16px}
.hall-empty>span{font-size:46px;color:var(--accent)}
.hall-empty h3{font-size:20px;margin:10px 0}
.hall-empty p{font-size:13px;line-height:1.6;margin:0 auto;max-width:420px}
.hall-sections>.card>p{line-height:1.7}
.hall-rules>h3{font-size:15px;margin:20px 0 10px}
.hall-game-row{display:flex;justify-content:space-between;gap:12px;align-items:center;
  border-bottom:1px solid #ffffff16;padding:9px 0;font-size:13px}
.hall-game-row:last-child{border-bottom:0}
.hall-game-row>.muted{font-size:11px;text-align:right}
@media(max-width:960px){.games-titlebar{align-items:flex-start}.hall-preview{flex-basis:250px}.hall-sections{grid-template-columns:1fr}}
@media(max-width:700px){.games-titlebar{flex-direction:column;gap:12px}.hall-preview{flex-basis:auto;width:100%;min-height:92px}
 .hall-summary{grid-template-columns:1fr}.hall-heading{gap:12px}.hall-spark{width:54px;height:54px;flex:0 0 54px;font-size:32px}
 .hall-heading p{font-size:12px}}

/* FR/EN selector is visible on login, home and every main portal page. */
.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:15px;flex-wrap:wrap}
.language-picker{display:inline-flex;align-items:center;gap:7px;margin:0!important;color:#cfccd0!important;
 font-size:12px!important;font-weight:650!important;white-space:nowrap}
.language-picker select{width:auto!important;min-width:73px!important;min-height:35px;padding:6px 24px 6px 10px!important;
 border:1px solid color-mix(in srgb,var(--accent) 55%,#45464c)!important;border-radius:10px!important;
 background:#303139!important;color:#f4f1ed!important;font-size:13px!important;cursor:pointer}
.language-picker select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.auth-language{display:flex;justify-content:flex-end;margin:0 0 14px}
.auth .language-picker{margin:0!important}
@media(max-width:700px){.top{flex-wrap:wrap}.top-actions{width:100%;justify-content:space-between;gap:9px}
 .language-picker select{min-height:40px}}


/* Unified HU accent: consistent bright border/halo and readable text, even for
   dark user-selected custom colors. */
:root{--accent-contrast:#17181a}
button:not(.ghost):not(.hall-preview):not(.hall-back):not(.accent-preset):not(.audio-toggle):not(.language-switch){
 border:1px solid color-mix(in srgb,var(--accent) 56%,white);
 box-shadow:0 2px 11px color-mix(in srgb,var(--accent) 15%,transparent);
 color:var(--accent-contrast)}
.sidebar button.active,.game-launch-button{
 border:1px solid color-mix(in srgb,var(--accent) 58%,white)!important;
 background:var(--accent)!important;color:var(--accent-contrast)!important;
 box-shadow:0 2px 12px color-mix(in srgb,var(--accent) 23%,transparent)}
.sidebar button.active:hover,.game-launch-button:hover{filter:brightness(1.08)}
.hall-preview{border-color:color-mix(in srgb,var(--accent) 58%,#676870)!important}
.hall-preview-icon,.hall-personal-star,.hall-spark{
 color:color-mix(in srgb,var(--accent) 36%,white)!important;text-shadow:none!important;
 background:linear-gradient(160deg,#404148,#27282e)!important;
 border-color:color-mix(in srgb,var(--accent) 58%,#767780)!important;
 box-shadow:inset 0 1px 0 #ffffff19,0 2px 9px #0003}
.hall-preview-icon{font-family:Georgia,serif;font-size:29px;font-weight:650;filter:none!important}
.hall-preview-arrow{color:color-mix(in srgb,var(--accent) 44%,white)!important}
/* Official HU swatch presets, plus the existing unconstrained color picker. */
.accent-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}
.accent-preset{display:flex;align-items:center;gap:8px;min-height:53px;border-radius:12px!important;
 border:1px solid #5b5d68!important;color:#f4f1ed!important;background:#34353b!important;
 padding:9px 11px!important;font-size:13px!important;font-weight:600!important;
 text-align:left;box-shadow:none!important}
.accent-preset[aria-pressed="true"]{border:2px solid var(--accent)!important;
 background:color-mix(in srgb,var(--accent) 16%,#313239)!important}
.accent-swatch{width:25px;height:25px;flex:0 0 25px;border-radius:50%;
 background:var(--swatch);border:1px solid #ffffff55;box-shadow:0 1px 5px #0005}
@media(max-width:430px){.accent-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Local signed-in player appears in Hall without inventing a global leaderboard. */
.hall-personal{margin-bottom:16px;overflow:hidden;
 border:1px solid color-mix(in srgb,var(--accent) 42%,#55565d);
 background:linear-gradient(130deg,#31313a,#292a30)}
.hall-personal-heading{display:flex;align-items:center;gap:15px}
.hall-personal-heading h2{margin:3px 0;font-size:clamp(20px,3vw,28px);overflow-wrap:anywhere}
.hall-personal-heading p{margin:2px 0}
.hall-personal-eyebrow{font-size:11px;letter-spacing:.10em;text-transform:uppercase;
 color:color-mix(in srgb,var(--accent) 42%,white)}
.hall-personal-star{display:grid;place-items:center;width:66px;height:66px;flex:0 0 66px;
 border-radius:18px;font-size:38px}
.hall-personal-stats{display:flex;gap:8px;align-items:baseline;margin-top:16px;color:#d4d0cc;font-size:13px}
.hall-personal-stats strong{color:color-mix(in srgb,var(--accent) 43%,white);font-size:26px}
.hall-local-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 25px;margin-top:8px}
.hall-local-records .hall-game-row{gap:15px}
.hall-local-records .hall-game-row strong{text-align:right;color:#eee9e1;font-variant-numeric:tabular-nums}
.hall-local-records .hall-game-row small{font-size:10px;font-weight:400;color:#bcb9b6}
.hall-disclaimer{margin:15px 0 0!important;font-size:12px!important;color:#bebbc0!important;
 line-height:1.5;border-top:1px solid #ffffff19;padding-top:12px}
@media(max-width:700px){.hall-local-records{grid-template-columns:1fr}}
/* Global audio remains visible as a discreet 1-row control on a phone, rather
   than covering multiple lines of the game. The future audio engine is untouched. */
.audio-status{display:flex;align-items:center;gap:9px;min-width:0}
.audio-status>span:first-child{font-size:21px;color:var(--accent);flex:0 0 auto}
.audio-status .muted{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.audio-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.audio-toggle{display:none!important}
@media(max-width:700px){
 .audio{min-height:50px;padding:7px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap}
 .audio-status{gap:7px;flex:1;min-width:0}
 .audio-status b{font-size:12px;white-space:nowrap}
 .audio-status .muted{font-size:11px}
 .audio-toggle{display:inline-flex!important;flex:0 0 38px;align-items:center;justify-content:center;
  border:1px solid color-mix(in srgb,var(--accent) 57%,#575862)!important;
  border-radius:9px!important;background:#33343b!important;color:#e5e2dd!important;
  min-height:37px!important;padding:6px!important;font-size:20px!important}
 .audio.audio-compact .audio-controls{display:none}
 .audio.audio-expanded{flex-wrap:wrap}
 .audio.audio-expanded .audio-controls{display:flex;width:100%;gap:7px}
 .audio-controls button{min-height:38px;padding:7px 10px;font-size:12px}
 .audio-controls button[aria-pressed="true"]{border:1px solid var(--accent);background:#37393f}
}


/* Consistent page layout: never vertically center short pages inside the 100vh grid.
 * Keep the sidebar full height while starting the main pane just below the header. */
.shell > main{align-self:start;margin:0 auto;padding-top:18px}
.shell > main > .top{margin:0 0 13px}
.shell > main > h1{margin:10px 0 14px;line-height:1.16}
.shell > main > h1 + p.muted{margin-top:0;margin-bottom:20px}
/* Accent-coloured titles with a little white mixed in for reliable contrast on
   charcoal, including dark custom accents such as burgundy and violet. */
:root{--accent-heading:color-mix(in srgb,var(--accent) 73%,white)}
.shell main h1,
.shell main .games-title-main h1,
.shell main .hall-heading h1,
.shell main .hb-classic-title h1,
.shell main .hg-header h1,
.shell main .hs-header h1{color:var(--accent-heading)!important}
.shell main .games-title-main h1{margin:3px 0 7px}
.shell main .hall-heading{margin:14px 0 16px}
/* Hall of Fame uses accessible in-place tabs, with personal results always
   available and the future verified global rankings on a separate tab. */
.hall-tabs{display:flex;gap:5px;padding:6px;margin:0 0 16px;
 border:1px solid #4b4c54;border-radius:15px;background:#25262c;width:max-content;max-width:100%}
.hall-tabs button{min-height:43px;border:1px solid transparent!important;
 border-radius:10px!important;background:transparent!important;color:#c9c7c8!important;
 padding:10px 17px!important;font-size:13px!important;font-weight:700!important;
 box-shadow:none!important;white-space:nowrap}
.hall-tabs button[aria-selected="true"]{background:var(--accent)!important;color:var(--accent-contrast)!important;
 border:1px solid color-mix(in srgb,var(--accent) 55%,white)!important;
 box-shadow:0 2px 10px color-mix(in srgb,var(--accent) 23%,transparent)!important}
.hall-tabs button:hover:not([aria-selected="true"]){background:#393a42!important;color:#f0efed!important}
.hall-tabs button:focus-visible{outline:2px solid var(--accent-heading)!important;outline-offset:3px}
.hall-page [data-hall-panel][hidden]{display:none!important}
.hall-page [data-hall-panel]{min-width:0}
.hall-page .hall-personal{margin-bottom:0}
@media(max-width:700px){
 .shell > main{padding-top:13px}
 .shell > main > .top{margin-bottom:10px}
 .shell > main > h1{margin-top:7px}
 .hall-tabs{width:100%}
 .hall-tabs button{flex:1;white-space:normal;padding:9px!important;font-size:12px!important}
}
