@font-face{font-family:Outfit;src:url('/fonts/outfit.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{--ink:#173d32;--muted:#58675f;--green:#174b3c;--accent:#edb85d;--paper:#f7f8f2;--line:#d9e1d6;--white:#fff;--soft:#e7eee3;--danger:#a62d2d;--radius:14px;color-scheme:light;font-family:Outfit,'Noto Sans TC','Microsoft JhengHei',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none;text-underline-offset:4px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,input,select,textarea{border-radius:8px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bb6f19;outline-offset:4px}::selection{background:#f2cd85;color:#173d32}input,textarea{caret-color:var(--green)}html{scrollbar-color:#9bad9f var(--paper);scroll-behavior:smooth}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance}h1{font-size:38px;letter-spacing:-.025em;line-height:1.35}h2{font-size:23px;line-height:1.5}p{line-height:1.8}svg.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}.skip{position:fixed;top:-100px;left:16px;z-index:50;background:white;padding:12px}.skip:focus{top:12px}.site-header{background:var(--green);color:#fff}.header-inner{max-width:1240px;margin:auto;min-height:84px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:13px}.brand>svg{width:34px;height:34px;fill:var(--accent);color:var(--accent)}.brand>span{display:flex;gap:8px;align-items:baseline}.brand strong{font-size:30px;font-weight:750;letter-spacing:.02em}.brand span span{font-size:19px;font-weight:700}.header-inner nav{display:flex;gap:30px;align-items:center;font-size:14px}.header-inner nav a{padding:12px 0;border-bottom:2px solid transparent}.header-inner nav a.active{border-color:var(--accent);color:var(--accent)}#saved-count{display:inline-block;padding:0 6px;border-radius:4px;background:#2a6250;margin-left:4px;font-variant-numeric:tabular-nums}#main{max-width:1240px;margin:auto;padding:0 32px;min-height:65vh;outline:none}.intro{display:flex;justify-content:space-between;align-items:center;gap:35px;padding:45px 0 28px}.intro p{color:var(--muted);font-size:15px;margin-top:10px}.shuffle{display:flex;align-items:center;gap:14px;padding:18px 24px;background:#e7eddc;border:0;text-align:left;color:var(--green);min-width:245px}.shuffle strong{font-size:17px;display:block}.shuffle span span{font-size:12px;display:block;margin-top:3px;color:#4a604b}.shuffle>.icon{width:30px;height:30px}.shuffle:hover{background:#dce6d0}.search-form{display:flex;align-items:center;gap:12px;background:var(--white);border:1px solid #b8c9bb;border-radius:12px;padding:8px 8px 8px 18px}.search-form>.icon{color:var(--muted);width:23px;height:23px}.search-form input{width:100%;border:0;background:transparent;padding:10px 0;font-size:16px;color:var(--ink);min-width:0}.search-form input:focus-visible{outline:none}.search-form:focus-within{outline:2px solid var(--green);outline-offset:2px}input::placeholder,textarea::placeholder{color:#68766d;opacity:1}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:9px 18px;border:0;font-weight:600;line-height:1.5}.primary{background:var(--green);color:white}.primary:hover{background:#23634d}.secondary{background:var(--soft);color:var(--ink)}.secondary:hover{background:#d9e5d4}.danger{background:#f8e7e4;color:var(--danger)}.category-nav{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 28px}.category{border:1px solid var(--line);background:transparent;color:var(--muted);padding:8px 13px;font-size:13px;border-radius:7px;white-space:nowrap}.category:hover{border-color:#72927a;color:var(--green)}.category.active{background:var(--green);border-color:var(--green);color:white}.results-header{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:23px}.result-heading{display:flex;align-items:baseline;gap:11px}.result-heading h2{font-size:23px}.result-heading span{font-size:13px;color:var(--muted)}.sort-tabs{display:flex;gap:20px}.sort-tabs button{border:0;background:transparent;color:var(--muted);padding:7px 0;border-radius:0;font-size:14px}.sort-tabs button.active{color:var(--green);font-weight:700;box-shadow:0 2px 0 var(--green)}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 22px}.game-card{min-width:0;position:relative}.cover-link{display:block;overflow:hidden;aspect-ratio:16/9;border-radius:var(--radius);background:#e2e9df}.cover-link img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .2s ease}.cover-link:hover img{transform:scale(1.035)}.save-button{position:absolute;top:10px;right:10px;width:34px;height:34px;border:0;background:#fffffff2;color:#315a45;border-radius:50%;display:grid;place-items:center;box-shadow:0 3px 8px #00000020}.save-button[aria-pressed=true]{background:var(--accent);color:var(--green)}.save-button[aria-pressed=true] .icon{fill:currentColor}.game-card h3{font-size:16px;line-height:1.55;margin:12px 0 5px;font-weight:650;overflow-wrap:anywhere}.game-card h3 a:hover{text-decoration:underline}.card-description{font-size:12px;color:var(--muted);line-height:1.7;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:40px;margin-top:6px}.card-meta{font-size:11px;display:flex;gap:9px;color:var(--muted);align-items:center;justify-content:space-between;margin-top:7px}.card-category{font-size:11px;color:#416447}.card-numbers{display:flex;align-items:center;gap:4px;white-space:nowrap}.card-numbers .icon{width:13px;height:13px}.more-wrap{display:flex;justify-content:center;margin:38px 0}.more-wrap button{min-width:160px}.empty{padding:64px 20px;text-align:center;grid-column:1/-1}.empty p{color:var(--muted);margin:10px 0 22px}.loading{padding:100px 0;text-align:center;color:var(--muted)}.site-footer{max-width:1176px;margin:60px auto 0;padding:28px 0 32px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:12px}.site-footer>div{display:flex;gap:17px;align-items:center}.footer-brand{font-size:18px;font-weight:700;color:var(--green)}.site-footer a:hover{text-decoration:underline}.site-footer p>a{margin-left:10px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:calc(100% - 30px);padding:12px 22px;background:var(--green);color:white;box-shadow:0 5px 20px #00000030;border-radius:9px;z-index:20;display:none}#toast.show{display:block}.breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);padding:26px 0}.breadcrumb .icon{width:14px;height:14px}.detail-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:36px;align-items:start}.detail-image{aspect-ratio:16/9;width:100%;height:auto;display:block;object-fit:contain;border-radius:16px;background:#e2e9df}.detail-summary h1{font-size:31px;line-height:1.45;margin:12px 0 18px;overflow-wrap:anywhere}.detail-summary>.chips{display:flex;gap:8px;flex-wrap:wrap}.chip{font-size:12px;background:#e5ebde;padding:5px 9px;border-radius:5px}.detail-description{font-size:15px;color:#475e50;margin-bottom:22px}.detail-stats{display:flex;gap:22px;font-size:13px;color:var(--muted);margin:20px 0}.detail-stats strong{color:var(--green);font-size:18px;margin-right:4px}.detail-actions{display:flex;gap:10px}.play-button{font-size:17px;padding:13px 28px;min-height:52px;flex:1;border-radius:9px}.detail-actions button{min-width:52px}.external-note{font-size:12px;color:var(--muted);margin-top:10px}.detail-bottom{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:36px;margin-top:40px}.section-block{padding-top:25px;border-top:1px solid var(--line);margin-bottom:32px}.rating-stars{display:flex;gap:7px;margin:16px 0 8px}.rating-stars button{padding:5px;background:transparent;border:0;color:#899a89}.rating-stars .icon{width:30px;height:30px}.rating-stars button.selected{color:#a36a11}.rating-stars button.selected .icon{fill:#edb85d}.small-note{font-size:12px;color:var(--muted)}.field{display:grid;gap:7px;margin:16px 0;font-size:14px}.field input,.field textarea,.field select,.admin-search{border:1px solid #b7c6b7;background:white;padding:11px;color:var(--ink);min-width:0;width:100%}.field textarea{resize:vertical;min-height:100px}.field small{font-size:12px;color:var(--muted)}.form-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.comment{padding:20px 0;border-bottom:1px solid var(--line)}.comment header{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}.comment time{font-size:11px;color:var(--muted);margin-left:10px}.comment p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:8px}.text-button{border:0;background:none;color:var(--muted);font-size:12px;padding:5px}.text-button:hover{text-decoration:underline}.related{display:grid;grid-template-columns:110px 1fr;gap:13px;padding:15px 0;align-items:center;border-bottom:1px solid var(--line)}.related img{width:110px;height:auto;aspect-ratio:16/9;object-fit:contain;background:#e2e9df;border-radius:7px}.related strong{font-size:14px;display:block}.related span{color:var(--muted);font-size:12px}.prose{max-width:750px;margin:35px auto 60px}.prose h2{margin:30px 0 10px}.prose p{margin:12px 0;color:#475e50}.prose a{text-decoration:underline}.notice{padding:16px;background:#f3e7c9;border-radius:8px;font-size:14px;margin:20px 0}.admin-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:30px 0}.admin-top h1{font-size:30px}.admin-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.admin-tabs button.active{background:var(--green);color:white}.admin-login{max-width:400px;margin:60px auto}.admin-toolbar{display:flex;justify-content:space-between;gap:16px;margin:22px 0;align-items:center}.admin-search{max-width:400px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left}th{background:#e8eee2;color:#37533e}td button{white-space:nowrap}.status{display:inline-block;padding:3px 7px;border-radius:4px;font-size:12px;background:#e4e9df}.status.published{color:#245637;background:#d9eadb}.admin-form{max-width:760px;margin:25px 0 60px}.checkboxes{display:flex;flex-wrap:wrap;gap:12px 20px;margin:12px 0}.checkboxes label{font-size:13px;display:flex;gap:7px;align-items:center}.checkboxes input{accent-color:var(--green)}.error-text{color:var(--danger);margin:12px 0;font-size:14px}.admin-note{font-size:12px;color:#796525;white-space:pre-wrap;line-height:1.7}.spaced{margin-top:24px}.hidden{display:none!important}
@media(min-width:1500px){.header-inner,#main{max-width:1360px}.site-footer{max-width:1296px}.grid{gap:34px 24px}.game-card h3{font-size:17px}}
@media(max-width:1050px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}.site-footer{margin-left:32px;margin-right:32px;align-items:flex-start;flex-direction:column}.detail-layout,.detail-bottom{gap:24px;grid-template-columns:minmax(0,1.2fr) minmax(270px,1fr)}.detail-summary h1{font-size:27px}}
@media(max-width:700px){.header-inner{min-height:72px;padding:0 18px;gap:10px}.brand{gap:8px}.brand>svg{width:26px;height:26px}.brand strong{font-size:25px}.brand span span{font-size:15px}.brand>span{gap:5px}.header-inner nav{gap:17px;font-size:12px}.nav-home{display:none}.header-inner nav a{padding:10px 0}#main{padding:0 18px}.intro{padding:28px 0 23px;gap:16px;align-items:flex-start;flex-direction:column}h1{font-size:29px}.intro p{font-size:13px;margin-top:7px}.shuffle{min-width:0;padding:11px 14px;gap:10px;width:100%;justify-content:flex-start}.shuffle strong{font-size:14px}.shuffle span span{display:inline;font-size:12px;margin-left:12px}.shuffle span{display:flex;align-items:center}.shuffle>.icon{width:21px;height:21px}.search-form{padding-left:12px;gap:8px}.search-form input{font-size:14px}.search-form button{padding:8px 14px;font-size:13px}.category-nav{flex-wrap:nowrap;overflow-x:auto;margin:18px -18px 23px;padding:0 18px 8px;scrollbar-width:thin;max-width:calc(100% + 36px)}.category{font-size:12px;padding:8px 11px}.results-header{gap:10px;align-items:center;margin-bottom:18px;padding-bottom:11px}.result-heading{gap:7px}.result-heading h2{font-size:20px}.result-heading span{font-size:11px}.sort-tabs{gap:14px}.sort-tabs button{font-size:12px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 13px}.cover-link{border-radius:10px}.game-card h3{font-size:14px;margin-top:9px;margin-bottom:4px;line-height:1.5}.card-description{font-size:11px;min-height:37px}.card-meta{font-size:10px;gap:4px;flex-wrap:wrap}.card-category{font-size:10px}.save-button{top:7px;right:7px;width:30px;height:30px}.save-button .icon{width:17px;height:17px}.site-footer{margin:40px 18px 0;padding-top:24px;gap:10px}.site-footer>div{flex-wrap:wrap;gap:10px}.site-footer p{font-size:11px}.detail-layout,.detail-bottom{grid-template-columns:1fr;gap:24px}.breadcrumb{padding:20px 0;overflow:hidden;white-space:nowrap;font-size:12px}.breadcrumb span{overflow:hidden;text-overflow:ellipsis}.detail-summary h1{font-size:27px;margin:12px 0}.detail-description{font-size:14px;margin-bottom:16px}.detail-stats{margin:16px 0}.detail-bottom{margin-top:28px}.detail-summary>.chips{margin-top:0}.detail-bottom>aside{order:2}.related{grid-template-columns:120px 1fr}.related img{width:120px}.admin-toolbar{align-items:stretch;flex-direction:column}.admin-search{max-width:none}.admin-top h1{font-size:25px}.admin-top{align-items:flex-start}.admin-top .primary{font-size:13px}.comment time{display:block;margin:3px 0 0}.prose{margin-top:26px}.detail-image{border-radius:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

.pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:38px 0 12px}.page-numbers{display:flex;gap:6px;align-items:center}.page-number{min-width:42px;min-height:42px;border:1px solid var(--line);background:transparent;color:var(--ink);font-variant-numeric:tabular-nums}.page-number:hover{background:var(--soft)}.page-number.active{background:var(--green);border-color:var(--green);color:white;font-weight:700}.pagination button:disabled{cursor:default;opacity:.4}.page-summary{text-align:center;color:var(--muted);font-size:12px}.page-gap{padding:0 3px}.results-header{scroll-margin-top:20px}@media(max-width:700px){.pagination{gap:8px;margin-top:30px}.pagination .secondary{padding:8px;min-width:36px}.pagination .secondary span{display:none}.page-numbers{gap:5px}.page-number{min-width:36px;min-height:38px}.pagination .icon{width:18px;height:18px}}

[data-save][aria-pressed=true] .icon{fill:currentColor}

.category-count{display:inline-block;margin-left:4px;font-size:.85em;font-variant-numeric:tabular-nums;font-weight:600}

.search-form button{flex:0 0 auto;min-width:72px;white-space:nowrap}.search-form input{flex:1 1 0;width:auto}@media(max-width:700px){.search-form button{min-width:64px}}


@media(max-width:700px){.results-header{align-items:flex-start;flex-direction:column;gap:10px}.sort-tabs{width:100%;justify-content:space-between;gap:12px}.sort-tabs button{white-space:nowrap;min-height:40px}}

.sort-tabs #saved-count{background:var(--soft);color:var(--ink);font-size:10px;padding:1px 5px;margin-left:3px}.sort-tabs .active #saved-count{background:var(--green);color:white}@media(max-width:700px){.sort-tabs{gap:8px}.sort-tabs button{font-size:12px}.sort-tabs #saved-count{margin-left:2px;padding:1px 4px}}

.site-header{position:sticky;top:0;z-index:30;background:var(--green);color:white;border-bottom:1px solid #123e31;box-shadow:0 3px 12px #00000012}
.header-inner{gap:28px;min-height:84px}
.header-inner .brand{flex-shrink:0}
.header-inner .brand>svg{fill:var(--accent);color:var(--accent)}
.header-inner nav{flex-shrink:0}
.header-inner nav .nav-saved{display:flex;align-items:center;gap:6px;white-space:nowrap}
.header-inner nav a.active{color:var(--accent);border-color:var(--accent)}
.header-inner #saved-count{background:#2a6250;color:white}
.header-search{flex:1;min-width:0;padding:0 0 0 13px;border-radius:8px;gap:10px}
.header-search input{padding:10px 0;font-size:14px}
.header-search>.icon{width:18px;height:18px}
.header-search button{align-self:stretch;border-radius:0 7px 7px 0;min-height:42px}
.results-header{scroll-margin-top:105px}
.skip{z-index:50}
@media(max-width:700px){
 .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:12px 18px;min-height:0}
 .header-inner .brand{grid-column:1;grid-row:1}
 .header-inner nav{grid-column:2;grid-row:1;font-size:12px}
 .header-inner nav a{padding:3px 0}
 .header-inner nav .icon{width:19px;height:19px}
 .header-search{grid-column:1/-1;grid-row:2;width:100%;padding-left:12px}
 .header-search input{font-size:14px;padding:10px 0}
 .header-search button{min-height:42px}
 .intro{padding-top:24px}
 .results-header{scroll-margin-top:145px}
}

.header-inner .brand>svg{width:40px;height:30px;flex-shrink:0}@media(max-width:700px){.header-inner .brand>svg{width:34px;height:26px}}

@media(max-width:480px){.grid{grid-template-columns:minmax(0,1fr);gap:26px}.game-card h3{font-size:16px}.card-description{font-size:13px;min-height:0}.card-category,.card-meta{font-size:12px}.cover-link{border-radius:12px}}

/* Readable type for category navigation and game discovery. */
.category{font-size:15px;min-height:44px;padding:10px 14px}
.category-count{font-size:13px}
.result-heading h2{font-size:25px}
.result-heading span{font-size:14px}
.sort-tabs button{font-size:16px;min-height:44px}
.game-card h3{font-size:20px;line-height:1.5}
.card-description{font-size:15px;line-height:1.8}
.card-category{font-size:14px;line-height:1.7}
.card-meta{font-size:14px;line-height:1.7}
.card-numbers .icon{width:16px;height:16px}
@media(max-width:700px){
 .category{font-size:14px;padding:9px 12px}
 .category-count{font-size:12px}
 .result-heading h2{font-size:24px}
 .result-heading span{font-size:14px}
 .sort-tabs button{font-size:15px}
 .game-card h3{font-size:18px}
 .card-description{font-size:14px}
 .card-category,.card-meta{font-size:13px}
}
@media(max-width:480px){
 .game-card h3{font-size:20px}
 .card-description{font-size:16px}
 .card-category,.card-meta{font-size:14px}
}

.detail-stats>span{display:inline-flex;align-items:baseline;gap:9px}
.detail-stats strong{margin-right:0}
.rating-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:16px 0 8px}
.rating-row .rating-stars{margin:0}
.rating-reset{font-size:14px;min-height:40px;padding:8px 14px}

.card-category{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.category-pill{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;background:var(--soft);color:#345b42;font-size:inherit;line-height:1.6;white-space:nowrap}

.category-pill:hover{background:#d4e2cd;color:var(--green);text-decoration:none}

.install-button{position:fixed;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;width:76px;height:76px;padding:6px;border:0;border-radius:14px;background:#dce8cf;color:var(--green);box-shadow:0 4px 12px #173e3024;font-weight:700;font-size:12px;line-height:1.4}
.install-button:hover{background:#cfdfbf}
.install-button>.icon{width:23px;height:23px;flex-shrink:0}
.install-button>span{white-space:nowrap}
.install-button:focus-visible{outline:3px solid var(--accent);outline-offset:4px}
.install-guide{width:min(440px,calc(100% - 36px));max-height:80dvh;overflow:auto;padding:0;border:0;border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:0 14px 50px #00000033}
.install-guide::backdrop{background:#00000066}
.install-guide-content{position:relative;padding:30px 26px}
.install-guide h2{padding-right:30px}
.install-guide p{margin:12px 0;color:var(--muted);font-size:15px}
.install-guide ol{padding-left:22px;font-size:16px;line-height:1.9}
.install-guide li+li{margin-top:12px}
.install-close{position:absolute;right:10px;top:10px;display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:var(--ink)}
.site-footer{padding-bottom:135px}
#toast{bottom:124px}
@media(max-width:700px){.install-button{right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));}.install-guide-content{padding:28px 22px}}



/* Keep browse tabs grouped at the left and separate the title from its count. */
.sort-tabs{justify-content:flex-start;gap:28px;overflow-x:auto}
.sort-tabs button{flex-shrink:0}
.result-heading{gap:16px}
@media(max-width:700px){.sort-tabs{gap:24px}.result-heading{gap:14px}}

/* Release accessibility: preserve the approved layout while enlarging touch areas. */
.save-button{width:44px;height:44px;top:6px;right:6px;background:transparent;box-shadow:none;isolation:isolate}
.save-button::before{content:"";position:absolute;inset:5px;border-radius:50%;background:#fffffff2;box-shadow:0 3px 8px #00000020;z-index:-1}
.save-button[aria-pressed=true]{background:transparent}
.save-button[aria-pressed=true]::before{background:var(--accent)}
.rating-stars button{min-width:44px;min-height:44px}
.rating-reset,.page-number,.pagination .secondary,.text-button{min-width:44px;min-height:44px}
.sort-tabs button{padding-left:4px;padding-right:4px}
.sort-tabs{padding-bottom:3px}
.card-category .category-pill{min-height:36px}
.detail-stats{flex-wrap:wrap;row-gap:10px}
.result-heading{flex-wrap:wrap}
.game-card h3,.detail-summary h1,.related strong{overflow-wrap:anywhere}
@media(max-width:700px){
 .header-search input,.field input,.field textarea,.field select,.admin-search{font-size:16px}
 .header-inner nav a{min-height:44px}
 .header-inner{padding-top:8px;padding-bottom:8px}
 .save-button{top:2px;right:2px}
 .save-button::before{inset:6px}
 .category-pill{min-height:40px}
 .pagination{flex-wrap:wrap}
 .checkboxes label{min-height:44px}
}
@media(min-width:701px) and (max-width:900px){.header-inner{gap:16px;padding-left:24px;padding-right:24px}.brand strong{font-size:26px}.brand span span{font-size:17px}}

.primary,.secondary,.header-search button{min-height:44px}
@media(max-width:700px){.header-search input{min-height:44px}}

.admin-form{scroll-margin-top:105px}
@media(max-width:700px){.admin-form{scroll-margin-top:145px}}

.header-search .search-clear{display:flex;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);align-self:center}
.header-search .search-clear:hover{background:var(--soft);color:var(--green)}
.header-search .search-clear .icon{width:18px;height:18px}

.header-inner nav{gap:16px}
.header-inner nav .nav-submit{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:12px 0;border:0;border-bottom:2px solid transparent;border-radius:0;white-space:nowrap;font-weight:inherit}
.header-inner nav .nav-submit:hover{color:var(--accent);border-bottom-color:var(--accent)}
@media(max-width:700px){.header-inner nav{gap:8px}.header-inner nav .nav-submit{padding:3px 0}}
@media(max-width:480px){.header-inner nav .nav-saved{gap:4px;min-width:44px;justify-content:center}.header-inner nav #saved-count{margin-left:0;padding:0 4px}}
@media(max-width:360px){.header-inner{column-gap:8px}.brand strong{font-size:23px}.brand span span{font-size:14px}.header-inner .brand>svg{width:28px;height:24px}.brand{gap:5px}}
@media(min-width:701px) and (max-width:900px){.header-inner{gap:12px}.header-inner nav{gap:8px}.header-inner nav .nav-submit{padding:12px 0}.header-search{gap:6px;padding-left:8px}.header-inner .brand>svg{width:30px}.brand{gap:8px}}

/* Match browser autofill and history completion to the white search surface. */
.header-search input{background:var(--white);border-radius:0}
.header-search input:autofill{box-shadow:0 0 0 1000px var(--white) inset;color:var(--ink)}
.header-search input:-webkit-autofill,.header-search input:-webkit-autofill:hover,.header-search input:-webkit-autofill:focus,.header-search input:-webkit-autofill:active{-webkit-box-shadow:0 0 0 1000px var(--white) inset;-webkit-text-fill-color:var(--ink);caret-color:var(--green)}

@media(max-width:360px){.header-inner nav{gap:6px}.header-inner nav .nav-submit{gap:4px}.header-inner nav .nav-submit .icon{width:17px;height:17px}}

/* Outlined submission button, matching the user's reference. */
.header-inner nav .nav-submit{padding:8px 12px;border:1px solid #90b19d;border-radius:8px;font-weight:600}
.header-inner nav .nav-submit:hover{background:#2a6250;color:white;border-color:#c2d6c7}
@media(max-width:700px){.header-inner nav .nav-submit{padding:6px 8px}}
@media(max-width:360px){.header-inner nav .nav-submit{padding:6px 4px;gap:3px}.header-inner nav{gap:4px}.header-inner{column-gap:6px}}

/* Both header actions share their shape, spacing and hover treatment. */
.header-inner nav :is(.nav-submit,.nav-saved,.nav-share){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;border:1px solid #90b19d;border-radius:8px;font-weight:600;white-space:nowrap}
.header-inner nav .nav-saved.active{background:#2a6250;color:var(--accent);border-color:var(--accent)}
.header-inner nav :is(.nav-submit,.nav-saved,.nav-share):hover{background:#2a6250;color:white;border-color:#c2d6c7}
.header-inner .saved-label{display:inline}
.header-inner.compact-saved .saved-label{display:none}
@media(max-width:700px){.header-inner nav :is(.nav-submit,.nav-saved,.nav-share){padding:6px 8px}}
@media(max-width:360px){.header-inner nav :is(.nav-submit,.nav-saved,.nav-share){padding:6px 4px;gap:3px}}



/* Share actions stay separate from opening or saving a game. */
.intro-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
.site-share,.detail-share,.card-share{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}
.card-share{min-width:44px;min-height:44px;padding:6px 8px;border:0;border-radius:8px;background:transparent;color:var(--green);font-size:13px;margin-left:auto}
.card-share:hover{background:#e4ecdd}
.card-meta{flex-wrap:wrap;column-gap:10px}
.detail-actions{flex-wrap:wrap}
.detail-share{min-height:44px}
#share-dialog{width:min(440px,calc(100% - 32px));padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--paper,#f7f8f2);color:var(--ink)}
#share-dialog::backdrop{background:#102d2466}
#share-dialog h2{font-size:22px}#share-dialog p{margin:12px 0;color:var(--muted)}#share-dialog input{width:100%;font-size:16px}#share-dialog button{margin-top:16px}
@media(max-width:900px){.intro-actions{flex-wrap:wrap;gap:10px}}
@media(max-width:700px){.intro-actions{width:100%;justify-content:space-between}.intro-actions .shuffle{width:auto;flex:1}.site-share{min-height:44px}}
@media(max-width:360px){.intro-actions{align-items:stretch}.intro-actions .shuffle{flex-basis:100%}}

@media(max-width:700px){.intro-actions .shuffle>span{display:block}.intro-actions .shuffle strong{white-space:nowrap}.intro-actions .shuffle span span{display:block;margin-left:0;margin-top:3px}.intro-actions .shuffle{gap:8px;padding:10px}}


.header-inner nav .nav-share{width:44px;min-width:44px;padding:0;background:transparent;color:white}

.header-inner .brand{white-space:nowrap}
@media(max-width:480px){.header-inner .brand strong{font-size:23px}.header-inner .brand span span{font-size:14px}.header-inner .brand>svg{width:28px;height:24px;flex-shrink:0}.header-inner .brand{gap:5px}.header-inner{column-gap:6px}.header-inner nav{gap:4px}}


@media(max-width:340px){.header-inner .brand span span{display:none}}


.sort-tabs{flex-wrap:wrap;column-gap:32px;row-gap:12px}
@media(max-width:480px){.sort-tabs{gap:12px 24px}.sort-tabs button{font-size:14px;padding-left:0;padding-right:0}}
