/* Build 61 experiment: visual layer only. Rater CSS and tracking state untouched. */
:root{
  --paper:#101119;--white:#1b1d29;--ink:#f5f2ff;--muted:#aaa7bd;
  --green:#9a75e8;--dark:#151620;--line:#383647;--gold:#bda4fc;
  --tracker-accent:#a983fb;--tracker-success:#a4ed79;
  color-scheme:dark;
}
html{background:#101119}
body{background:#101119;color:var(--ink);font-family:system-ui,-apple-system,'Segoe UI',sans-serif;
 background-image:radial-gradient(ellipse at 72% 0%,#36204522 0,transparent 44%)}
body [hidden]{display:none!important}
a,button{transition:border-color .16s,background-color .16s,color .16s}
a:hover{color:#d6c3ff}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ba9aff;outline-offset:3px}
input,select,textarea{color:#f8f5ff;background:#222332;border:1px solid #514863;border-radius:12px}
input::placeholder,textarea::placeholder{color:#8f8a9f}
.eyebrow,.nav-label,.gh-mini-eyebrow{color:#c09cf7;font-weight:760;letter-spacing:.12em}
.page-status{color:#bfb1da}

/* Shared Game Hub masthead for series library and every saved collection. */
.library-header{background:#171923;border-bottom:1px solid #353445;color:#f3f0ff;position:sticky;top:0;z-index:20;padding-block:0}
.mast-inner{max-width:1210px;margin:auto;min-height:76px;padding:13px 0}
.library-brand,.library-brand>span{color:#f6f3ff;font:bold 23px/1.05 system-ui,-apple-system,'Segoe UI',sans-serif!important;letter-spacing:-.7px!important;text-transform:none!important}
.library-brand small{color:#b89af3!important;font:600 11px/1.2 system-ui!important;letter-spacing:0!important}
.library-brand img{width:39px;height:39px;filter:hue-rotate(95deg) saturate(1.6)}
.library-header .quiet-button,.series-navigation .quiet-button{background:#222333;border:1px solid #47425d;border-radius:12px;color:#eee9ff;padding:10px 14px}
.library-header .quiet-button:hover,.series-navigation .quiet-button:hover{background:#332945;border-color:#9d7fe3}
#all-series-link{border:1px solid #49435f;border-radius:12px;color:#d9c9ff}
.category-tab{border:1px solid #464057;border-radius:12px;color:#beb5d5;padding:10px 14px}
.category-tab[aria-pressed=true]{background:#714dba;border-color:#b08ff5;box-shadow:none;color:#fff}
#signed-in-name{color:#bbb3d1}
body:not(.premium-rater) .gh-menu-root .gh-menu-trigger,body:not(.premium-rater) .gh-menu-trigger{background:#242133!important;border-color:#8871bd!important;color:#e3d3ff!important}
body:not(.premium-rater) .gh-menu-popover{background:#1c1b29;color:#f5f1ff;border-color:#5a4d72;box-shadow:0 18px 50px #05030990}
body:not(.premium-rater) .gh-menu-heading{color:#c2b2df}
body:not(.premium-rater) .gh-menu-item{color:#f3efff!important}
body:not(.premium-rater) .gh-menu-item-text small{color:#b4aac8}
body:not(.premium-rater) .gh-menu-item-icon{background:#3d3056;color:#c8aafa}
body:not(.premium-rater) .gh-menu-item.is-current{background:#3b2a54}
body:not(.premium-rater) .gh-menu-item:hover{background:#39304e;color:#fff!important}

/* Home: the Game Rater hero and artwork-first collection tiles. */
.library-main{max-width:1210px;padding-top:28px;padding-bottom:30px}
.library-intro{text-align:left;max-width:none;margin:16px 0 37px;padding:36px clamp(22px,4vw,44px);
 border-radius:23px;border:1px solid #5c437f;background:radial-gradient(ellipse at 92% 100%,#7940b765 0%,transparent 57%),linear-gradient(125deg,#241b34,#181925)}
.library-intro h1{font:bold clamp(34px,4vw,50px)/1.09 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:-1.5px;margin:7px 0 10px;color:#fff}
.library-intro>p:not(.eyebrow){color:#beb8cf;font-size:15px}
.series-search{max-width:830px;background:#202130;border:1px solid #524968;border-radius:16px;box-shadow:none;padding:8px 9px 8px 19px}
.series-search input{color:#f4f1ff;background:transparent;font-size:16px}
.series-search button,.series-app .primary-button{background:#7f5acb!important;color:#fff!important;border:1px solid #9871e2!important;border-radius:12px!important;font-weight:750}
.series-search button:hover,.series-app .primary-button:hover{background:#956feb!important}
.library-intro .search-note{color:#a9a2bd;font-size:12px}
.section-bar{margin-bottom:19px;flex-wrap:wrap}
.section-bar h2,.series-game-heading h2{font:bold clamp(24px,3vw,31px)/1.2 system-ui,sans-serif;letter-spacing:-.6px;color:#f6f3ff}
.section-bar .eyebrow{color:#bba0ee}
.quiet-button{background:#222432;border:1px solid #474256;border-radius:12px;color:#ded8ef;padding:9px 13px;font-weight:610}
.quiet-button:hover{background:#302b41;border-color:#8c6fca}
.series-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.library-card{background:#1b1d29;border:1px solid #393547;border-radius:21px;overflow:hidden}
.library-card:hover{border-color:#8c70c3}
.library-card .series-card{border:0;border-radius:20px;background:#1b1d29;box-shadow:none}
.card-world{min-height:166px;height:auto;justify-content:flex-start;align-content:center;display:grid;
 grid-template-columns:98px minmax(0,1fr);grid-template-rows:auto auto;gap:6px 20px;
 border:0;background:radial-gradient(ellipse at 90% 0%,#62388c80,transparent 64%),linear-gradient(115deg,#262032,#1c1d2b)!important;
 color:#f4efff;padding:21px}
.card-world:before,.card-world:after{pointer-events:none;border-color:#b58ce01a}
.card-world>.tracker-cover{grid-row:1/span 2;width:98px;height:126px}
.card-world>strong{grid-column:2;align-self:end;text-align:left;font:bold clamp(18px,2vw,23px)/1.18 system-ui,sans-serif;letter-spacing:-.5px;color:#fff;overflow-wrap:anywhere}
.card-world .tile-progress{grid-column:2;align-self:start;position:relative;z-index:1}
.card-world .tile-progress strong{font-weight:680;color:#d8ccec}
.card-world .tile-progress span{font-size:15px;color:#c7abff}
.card-world .tile-progress small{color:#b1a9c4}
.card-world .tile-progress progress{accent-color:#b18bff}
.card-copy{padding:13px 22px 19px;background:#1d1e2b}
.card-copy h3{display:none}
.card-copy p{color:#a8a6bc;margin:0 0 8px}
.card-copy>span{color:#c5a5ff;font-weight:750}
.card-remove{color:#c0a7e7;font-size:12px}
.library-footer{border-color:#383444;color:#9e9ab3}
.library-note,.search-note{color:#a5a0b6}
.search-panel,.search-result,.search-result.template-search-result{background:#1b1d2a;border-color:#413a52;color:#f4f1ff}
.search-panel{border-radius:18px}
.search-result strong,.series-app .template-search-result strong{color:#eeeaff}
.search-result p,.series-app .template-search-result p{color:#b5b0c7}
.series-app .template-recommend{background:#3c3155;color:#e0cdff;border-color:#74549e}

/* All normal collection pages and every timeline order. */
.series-navigation{border-color:#3a3748}
.series-navigation nav{color:#c1b8d0}
.collection-heading h1,.page-heading h1,.page-heading h2{font:bold clamp(28px,3.5vw,45px)/1.15 system-ui,sans-serif;letter-spacing:-1.2px;color:#f8f5ff}
.series-hero,#series-hero{background:radial-gradient(ellipse at 90% 110%,#7640aa88 0%,transparent 65%),linear-gradient(125deg,#261e36,#191b29)!important;
 border:1px solid #76549d!important;border-radius:23px;min-height:255px;color:#f5f0ff;box-shadow:none}
#series-hero::before{opacity:.26}
.series-hero-copy{padding:clamp(23px,3.5vw,40px)}
.series-hero h2,#banner-title{font:bold clamp(25px,4vw,41px)/1.14 system-ui,sans-serif;letter-spacing:-1.1px;color:#fff}
.series-hero .eyebrow,.series-hero-copy .eyebrow{color:#cdaafd}
.series-hero-copy>p,#series-description,#series-playing{color:#c5bbd7}
.series-progress strong{color:#fff}
#series-progress-bar{accent-color:#b88aff}
.banner-logo img{background:none;filter:drop-shadow(0 8px 22px #0a0614a8)}
.category-summary{background:#222331;border:1px solid #403a50;border-radius:13px;color:#f4efff}
.category-summary span{color:#b9b0ca}
.section-bar.series-game-heading{margin-top:32px}
.series-tools{background:transparent}
.series-tools input,.series-tools select{color:#f3efff;background:#1f202d;border:1px solid #4d445f;border-radius:12px}
.series-tools label{color:#b6aec9}
.status-tab{background:#212230;color:#c7bed6;border:1px solid #4a425d;border-radius:12px;padding:10px 15px;font-weight:650}
.status-tab[aria-pressed=true]{background:#7652c1;color:#fff;border-color:#a886ed}
.series-game-section>h3{color:#efebf9;font:bold 21px/1.3 system-ui,sans-serif;letter-spacing:-.45px;margin:23px 0 12px}
.series-rows{display:grid;gap:11px;border:0;background:transparent}
.series-row,.series-row.is-done{display:flex;align-items:center;gap:18px;
 background:linear-gradient(115deg,#1d1f2b,#1a1c28);border:1px solid #3a384b;border-radius:19px;padding:14px 18px;color:#f6f1ff}
.series-row:hover,.series-row.is-done:hover{border-color:#8e6bcc;background:#242333}
.series-row.is-done h4{color:#f5f1ff}
.series-row-copy{flex:1;min-width:0}
.series-row h4{font:bold 17px/1.27 system-ui,sans-serif;letter-spacing:-.35px;margin:0 0 6px}
.series-row-meta,.edition-original,.edition-dimension{color:#aaa5bd;font-size:12px}
.series-row-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.series-row-actions button{color:#c7a8f7!important;background:#2b263a;border:1px solid #5b4d76;border-radius:9px;padding:6px 9px;font-size:11px}
.series-row-actions button:hover{background:#43345c;border-color:#a67ce6}
.series-row-actions button+button{border-left:1px solid #5b4d76;padding-left:9px}
.series-row-actions a{color:#c5adf5!important}
.collection-badge,.edition-badge{background:#3c3050;border:1px solid #6d5488;color:#e7d5ff;border-radius:8px}
.complete-control{padding:6px 4px}
.complete-control input{border:2px solid #807393;background:#202333}
.complete-control input:checked{background:#7f5bc5;border-color:#ab85ef}
.tracker-status-badge{display:inline-flex;align-items:center;gap:5px;width:fit-content;padding:6px 10px;
 border-radius:10px;border:1px solid #555067;background:#292736;color:#ddd6ed;font-size:11px;font-weight:750;white-space:nowrap}
.tracker-status-done{border-color:#628c56;background:#223328;color:#b0f090}
.tracker-status-playing{border-color:#805eb3;background:#352847;color:#d2b1ff}
.tracker-status-todo{border-color:#555268;color:#c1bdd0}
.timeline-description,.timeline-notice,.branch-note{background:#211d2d;color:#c4b8d8;border:1px solid #584674;border-left:3px solid #986bd6;border-radius:12px;padding:14px 18px}
.timeline-description a{color:#d2b4ff}
.series-attribution,.series-attribution p,.series-attribution a{color:#bbb1c9}

/* Zelda's dedicated Nintendo chronology: all forks and timeline nodes stay live. */
.sidebar{background:#171822;border-right:1px solid #3d3849;color:#f2eeff}
.sidebar .brand{color:#e4d4ff;font:bold 20px/1.1 system-ui,sans-serif}
.sidebar .brand svg{stroke:#aa8af2}
.sidebar .brand-bottom{color:#c4b0e8;font-weight:750}
.owner{border-color:#393344;color:#e8e0f9}.owner small,.sidebar-bottom>p{color:#aaa2b7}
.avatar{background:#332847;border-color:#8b6dbb;color:#e0c8ff}
.nav-label{color:#ad95d2}
.nav-item{color:#c2b9d5;border-radius:12px}
.nav-item:hover,.nav-item.active{background:#2d2540;color:#fff}
.nav-item.active{box-shadow:inset 3px 0 #b18cff}
.nav-count,.nav-item.active .nav-count{color:#c5b2e3}
.backup-button{border-color:#544767;border-radius:12px;color:#e0d4ed}
.sidebar-quote{color:#c8bedb}.sidebar-quote>span{color:#ac8cf1}.sidebar-quote small{color:#a49ab5}
main{color:var(--ink)}
.topbar{background:#171822;border-color:#393546;color:#f3f0ff}
.topbar .quiet-button,.topbar .account-button{border:1px solid #514365;background:#262334;color:#e1d8ee;border-radius:10px}
.topbar .quiet-button:hover,.topbar .account-button:hover{background:#3a2e52;border-color:#9e7ddd}
.breadcrumb,.breadcrumb-slash,.private-tag{color:#beb1d2}
.private-tag{border-color:#514760}
.main-content{max-width:1230px}
.hero,body:has(#zelda-title) .hero{border:1px solid #674a86;border-radius:23px;
 background:radial-gradient(ellipse at 95% 115%,#61369288 0%,transparent 52%),linear-gradient(118deg,#211b30,#171927)!important;
 box-shadow:none;color:#f4f0ff}
.hero:after{background:linear-gradient(90deg,#211c30 15%,#211c30cb 45%,transparent 95%)}
.hero-art{opacity:.21;filter:hue-rotate(126deg) saturate(.7)}
.hero .eyebrow{color:#c5a4f4}
.hero h2{font:bold clamp(28px,3.5vw,42px)/1.1 system-ui,sans-serif;color:#fff}
.hero-description{color:#c1b9d6}
.hero-playing{color:#c2a8ec}
.hero-progress strong,.hero-percent{color:#fff}
.progress-track{background:#3a3549}
.progress-track>div{background:#a67bf1}
.overview-card{border:1px solid #3e3950;background:#1e202d;border-radius:15px;color:#f5f1ff}
.overview-copy strong,.overview-numbers>strong{color:#f5f1ff}
.overview-icon{background:#2f2941;color:#bd9efa}
.collection-heading{border-color:#373547}
.collection-heading p{color:#aeabc1}
.search-box{background:#222430;border:1px solid #544869;border-radius:14px}
.search-box input{background:transparent;color:#f7f2ff}
.filter-tabs{background:#222430;border:1px solid #3d354b;border-radius:14px}
.filter-tabs button{color:#c3b8d3;border-radius:10px}
.filter-tabs button.selected{background:#7551bb;color:#fff}
.sort-control{color:#c8bbdb}
.sort-control select{color:#f4f1ff;border:1px solid #594968;background:#242233;border-radius:10px}
.combined-control{color:#c7a9f7;border-color:#524264;background:#282335;border-radius:9px}
.combined-control:hover{background:#423253}
.edition-guide{color:#c8b1ec}
.section-title h3,.timeline-era-heading h3,.timeline-subsplit h4,.timeline-split h3{font:bold clamp(19px,2.5vw,28px)/1.18 system-ui,sans-serif;letter-spacing:-.5px;color:#f4efff}
.section-title small,.section-count{color:#aca1bf}
.table-labels{background:transparent;color:#aaa0ba}
.game-table{background:transparent;border:0;display:grid;gap:11px}
.game-row,.game-row.is-playing,.game-row.is-complete{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;
 background:linear-gradient(110deg,#1c1e2a,#1b1d28);border:1px solid #3c394b;border-radius:19px;padding:14px 18px;min-height:116px;color:#f5f1ff}
.game-row:hover,.game-row.is-playing:hover,.game-row.is-complete:hover{background:#252334;border-color:#9272c8}
.game-info{align-items:center;gap:16px;min-width:0}
.game-title{font:bold 16px/1.26 system-ui,sans-serif;color:#f4f1ff;text-decoration:none}
.game-meta,.edition-original,.original-year{color:#aba6c0}
.original-year{display:flex;flex-direction:column;gap:5px;font-size:11px}
.game-check{grid-column:2;grid-row:1/span 2;align-self:center}
.game-row input[type=checkbox]{accent-color:#9169d8;border-color:#7e6caf}
.playing-toggle{background:#2a263b;color:#c5abef;border:1px solid #5b4973;border-radius:10px}
.playing-toggle:hover,.playing-toggle.is-playing{background:#45345f;border-color:#9a6fdb;color:#ead9ff}
.timeline-game-label{color:#bfa0ee}
.branch-note{max-width:none}
.timeline-era-wild,#timeline-branch-content>.timeline-section{border-color:#40364e}
.timeline-fork,.triumphant-connector{color:#a48ccf}
.split-stem{background:#9480b8}
.timeline-branch,.timeline-branch:hover,.timeline-branch[aria-pressed=true]{border:1px solid #514260;border-radius:16px;background:#202030;color:#f4eeff;box-shadow:none;padding:18px 13px}
.timeline-branch:hover{border-color:#8f6fc8;background:#29273b}
.timeline-branch[aria-pressed=true]{background:#3b2d56;border-color:#bd93ff}
.branch-label{color:#f4efff;font-weight:740}
.branch-progress,.branch-matches,.branch-outcome,.branch-prompt,.split-description{color:#b8a9cc}
.branch-icon,.branch-child .branch-icon,.branch-adult .branch-icon,.branch-triumphant .branch-icon{background:#493460;color:#cfb2ff}
.branch-indicator{color:#c2a5f8}
.timeline-empty,.empty-state{background:#201d2c;border:1px dashed #6b5682;color:#c7bad6;border-radius:15px}
.timeline-empty button,.empty-state button{color:#c9a7ff}
.collection-footnote,.footer{color:#9f9ab1}

/* Artwork thumbnails mimic the actual Game Rater listing shape. */
.tracker-cover,.tracker-cover-slot{display:grid;place-items:center;flex:none;width:82px;height:105px;
 background:radial-gradient(ellipse at 28% 5%,#8055c9 0,transparent 67%),linear-gradient(150deg,#493268,#282134);
 border-radius:13px;overflow:hidden;position:relative;box-shadow:0 8px 22px #03020d35;color:#e5d6ff}
.tracker-cover-slot{background:transparent;box-shadow:none}
.tracker-cover-slot .tracker-cover{width:100%;height:100%}
.tracker-cover-letters{font:bold 24px/1 system-ui,sans-serif;letter-spacing:-1px;text-shadow:0 3px 18px #080412a8}
.tracker-cover>img,.card-world .tracker-cover>img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
 max-width:none;max-height:none;background:none;border:0;padding:0;border-radius:0;margin:0}
.tracker-cover.has-image .tracker-cover-letters{opacity:0}

/* Keep editor, backup, user-provisioning and detail dialogs usable. */
dialog,dialog.tracker-popup,.series-app dialog{background:#1c1d2a;color:#f5f1ff;border:1px solid #544568;border-radius:20px;box-shadow:0 30px 90px #02010ab5}
dialog::backdrop{background:#080712bd;backdrop-filter:blur(5px)}
dialog h2,.popup-heading h2,.series-app dialog h2{font:bold clamp(23px,4vw,34px)/1.17 system-ui,sans-serif;color:#fff}
dialog h3,dialog label,dialog p{color:#d0c9df}
dialog input,dialog select,dialog textarea,dialog.tracker-popup input,dialog.tracker-popup select{background:#292737;color:#f5f0ff;border:1px solid #584968;border-radius:10px;padding:9px}
dialog button,dialog.tracker-popup button{background:#322943;color:#eee4ff;border:1px solid #71588e;border-radius:10px}
dialog button:hover{background:#49375b}
.popup-times>div,.theme-preview,.editor-grid{background:#292636;color:#f6efff}
.tracker-popup a,.series-app .search-result a{color:#caaaff}
.sign-in{background:radial-gradient(ellipse at top,#3e2b5520,transparent 75%),#101119}
.sign-in-card{background:#1c1d29;border-color:#504264;color:#f4efff;box-shadow:0 18px 55px #02010a75}
.sign-in-card h1{color:#fff;font:bold 38px/1.12 system-ui,sans-serif}
.sign-in-card>p,.sign-in-card .small-note{color:#b9b1ca}
.sign-in-card input:not([type=checkbox]){background:#272638;color:#f9f6ff;border-color:#625473}
.auth-links button{color:#c9a6ff}

@media(max-width:900px){
 .series-grid{grid-template-columns:1fr}
 .mast-inner{padding-left:3px;padding-right:3px}
 .series-row{gap:12px}
 .series-row-actions{gap:6px}
}
@media(max-width:760px){
 .library-main{padding:12px 16px 38px}
 .library-header{padding:0 16px}
 .library-intro{padding:24px 20px;border-radius:20px;margin:12px 0 25px}
 .library-intro h1{font-size:34px}
 .series-search{margin-top:20px}
 .series-search button{font-size:12px}
 .card-world{grid-template-columns:75px minmax(0,1fr);padding:16px;gap:6px 12px;min-height:135px}
 .card-world>.tracker-cover{width:75px;height:99px}
 .card-world>strong{font-size:18px}
 .series-navigation{gap:11px}
 .series-navigation>div{display:flex;flex-direction:row;flex-wrap:wrap}
 .series-hero{min-height:205px}
 .series-hero-copy{padding:23px}
 .banner-logo{padding:8px}
 .series-tools{grid-template-columns:1fr}
 .series-row,.series-row.is-done{padding:12px 10px;gap:10px;border-radius:15px}
 .series-row .tracker-cover{width:65px;height:85px}
 .series-row h4{font-size:14px}
 .series-row-actions button{font-size:10px;padding:6px}
 .series-row-actions button+button{padding-left:6px}
 .series-row-meta{font-size:11px}
 .series-app .complete-control input{width:25px;height:25px}
 .sidebar{background:#171822}
 .main-content{padding:25px 16px 20px}
 .topbar{padding:12px 16px;min-height:62px}
 .topbar .account-button{font-size:10px;padding:7px 9px}
 .hero{min-height:235px}
 .hero-copy{width:78%;padding:24px 20px}
 .hero-art{opacity:.16}
 .game-row,.game-row.is-playing,.game-row.is-complete{padding:12px 10px;min-height:108px}
 .game-info{gap:10px}
 .tracker-cover-slot{width:62px;height:84px}
 .game-title{font-size:13px}
 .original-year{margin:0;display:flex!important;flex-direction:column;grid-row:1;grid-column:1;align-self:end;margin-left:72px}
 .game-check{grid-row:1;grid-column:2}
 .game-row:has(.playing-toggle){min-height:133px}
 .game-row .tracker-status-badge{padding:3px 6px;font-size:9px}
 .timeline-split h3,.timeline-era-heading h3{font-size:24px}
 .timeline-branches{gap:8px}
 .timeline-branch,.timeline-branch[aria-pressed=true]{padding:12px 7px}
}
@media(max-width:430px){
 .library-header nav{gap:5px}
 .library-header .quiet-button{padding:8px;font-size:10px}
 .card-world strong{font-size:16px}
 .card-copy{padding:12px 14px}
 .game-title{font-size:12px}
 .original-year{font-size:9px}
 .game-row:has(.edition-badge){min-height:125px}
}
@media(prefers-reduced-motion:reduce){.tracker-cover,button,a{transition:none!important}}
/* The legacy series tile progress selector has higher specificity; retain grid. */
.card-world:has(.tile-progress){display:grid;grid-template-columns:98px minmax(0,1fr);
 grid-template-rows:auto auto;align-items:center;justify-content:initial;align-content:center;
 gap:7px 18px;padding:21px;min-height:166px}
.card-world:has(.tile-progress)>.tracker-cover{grid-column:1;grid-row:1/span 2;justify-self:start}
.card-world:has(.tile-progress)>strong{grid-column:2;grid-row:1;align-self:end;justify-self:start;text-align:left}
.card-world:has(.tile-progress)>.tile-progress{grid-column:2;grid-row:2;align-self:start;width:100%}
@media(max-width:760px){.card-world:has(.tile-progress){grid-template-columns:75px minmax(0,1fr);gap:7px 12px;padding:16px;min-height:135px}}
