
/* LUDIRIFT / Gallery Edition
   Neutral editorial shell; every game's original artwork retains its color. */
:root {
 --bg:#f6f7f5;--panel:#ffffff;--panel-2:#eff1f0;--line:#e0e5e4;
 --muted:#65747a;--text:#1d2b35;--mint:#416b63;--mint-2:#416b63;
 --gallery-ink:#20343b;--gallery-blue:#375b75;--gallery-accent:#406e63;
 --gallery-border:#e1e5e4;--gallery-surface:#ffffff;
 --sans:Inter,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
 --mono:"Space Grotesk",Inter,Consolas,sans-serif;
 color-scheme:light;
}
html {scroll-padding-top:88px;}
body {
 background:#f6f7f5;
 background-image:none;
 color:var(--gallery-ink);
 letter-spacing:.005em;
}
.ambient{display:none}
::selection{background:#b9dbcf;color:#173b36}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{
 outline:3px solid #346e9b;outline-offset:3px;
}
.shell{width:min(1180px,calc(100% - 64px))}
.site-header{
 position:sticky;top:0;z-index:20;
 background:rgba(250,251,250,.95);
 border-bottom:1px solid #e2e6e4;
 box-shadow:0 1px 12px rgba(21,44,48,.025);
 backdrop-filter:blur(18px);
}
.header-inner{height:78px;gap:34px}
.brand{gap:11px}
.brand-icon{
 border:0;background:#24443f;
 color:#fff;border-radius:12px;box-shadow:none;
 width:40px;height:40px;
}
.brand-icon svg{width:26px;height:26px}
.brand-icon path:first-child{stroke:#ffffff}
.brand-icon path:nth-child(2){stroke:#b8d7cd}
.brand-wordmark strong{color:#203832;font-size:22px;letter-spacing:-.05em;line-height:1.05}
.brand-wordmark .brand-slashes{color:#456e65}
.brand-wordmark small{color:#7a908e;font-size:8px;letter-spacing:.08em;margin-top:3px}
.nav-links{gap:29px}
.nav-links a{font-size:13px;font-weight:600;color:#55676c;transition:color .15s}
.nav-links a:hover{color:#234c61}
.header-status{
 background:#edf2ef;border:1px solid #dce6df;
 border-radius:999px;padding:10px 15px;
 color:#356357;font-size:11px;letter-spacing:.01em;
}
.header-status strong{font-size:13px}
.header-status-arrow{color:#507a70}
.status-pulse{width:7px;height:7px;background:#6d9b86;box-shadow:none}
.hero{
 grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
 gap:clamp(26px,5vw,70px);align-items:center;
 padding-top:64px;padding-bottom:42px;min-height:auto;
}
.hero-copy{max-width:495px}
.eyebrow,.section-eyebrow{
 font-family:var(--mono);font-size:11px;letter-spacing:.11em;
 font-weight:700;color:#638177;
}
.pill-indicator{color:#6e9d89;font-size:11px}
.line-mark{color:#9bb2aa}
.hero h1{
 font-family:var(--sans);font-size:clamp(49px,5.25vw,72px);
 font-weight:780;line-height:1.28;letter-spacing:-.08em;
 margin:23px 0 22px;color:#21383d;
}
.gradient-text{
 background:linear-gradient(110deg,#253e49,#547b77);
 -webkit-background-clip:text;background-clip:text;color:transparent;
}
.hero-lead{font-size:14px;line-height:2.04;color:#53646a}
.hero-actions{margin-top:30px;gap:11px;display:flex;flex-wrap:wrap}
.primary-cta,.ghost-cta{
 min-height:50px;border-radius:9px;font-family:var(--sans);
 font-size:13px;padding:0 19px;
 box-shadow:none;transition:transform .2s,background .2s,border-color .2s;
}
.primary-cta{color:#fff;background:#2e504a;border-color:#2e504a}
.primary-cta:hover{background:#406b60;color:#fff}
.cta-play-icon{width:25px;height:25px;background:#537b6d;color:#fff}
.ghost-cta{background:#fff;border:1px solid #d9e2dd;color:#34585b}
.ghost-cta:hover{background:#f0f4f0;border-color:#b8cfc2}
.dice-icon{color:#5e8779}
.cta-end{color:#c3ded2}
.hero-stats{
 margin-top:38px;gap:17px;flex-wrap:wrap;
}
.stat-number strong{font-size:34px;color:#315d54;letter-spacing:-.055em}
.stat-number small,.stat-feature b{color:#516865;font-size:10px;letter-spacing:.06em}
.stat-feature small{font-size:11px;color:#718483}
.stat-split{background:#dbe3df}
.hero-feature{padding:0;min-width:0}
.feature-frame{
 overflow:hidden;border:1px solid #e2e6e4;border-radius:17px;
 background:#fff;box-shadow:0 14px 42px rgba(32,54,58,.075);
}
.frame-bar,.frame-footer,.feature-background-text{display:none}
.feature-screen{display:flex;flex-direction:column;height:auto;background:#fff;overflow:hidden}
.feature-screen>img{
 position:relative;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;
 object-position:center;filter:none;transition:transform .4s;
}
.feature-frame:hover .feature-screen>img{transform:none}
.feature-screen-shade{display:none}
.feature-screen-upper{
 position:absolute;top:14px;left:15px;right:15px;
 justify-content:flex-start;align-items:center;gap:7px;flex-wrap:wrap;
 z-index:1;
}
.onscreen-tag{
 background:rgba(255,255,255,.95);backdrop-filter:blur(10px);
 color:#34594f;border:1px solid rgba(255,255,255,.8);
 box-shadow:0 2px 12px rgba(0,0,0,.12);
 border-radius:6px;padding:7px 10px;
 font:700 10px var(--mono);letter-spacing:.03em;
}
.tag-muted{color:#526873;border-color:rgba(255,255,255,.8)}
.live-tiny{background:#69a48a}
.feature-screen-bottom{
 position:static;display:flex;align-items:flex-start;flex-direction:column;
 padding:22px 25px 24px;gap:0;
 background:#fff;color:#26393c;
}
.feature-label{font:700 10px var(--mono);letter-spacing:.13em;color:#748c8a}
.feature-label span{color:#9aaca8}
.feature-screen-bottom strong{
 font-size:clamp(26px,2.65vw,38px);color:#23383d;line-height:1.2;
 font-weight:750;margin-top:10px;letter-spacing:-.048em;
}
.feature-eng{
 font-size:11px;color:#6e8388;letter-spacing:.07em;
 margin-top:6px;line-height:1.55;
}
.feature-play-btn{
 background:#2c514b;color:#fff;
 min-height:45px;border-radius:8px;padding:10px 15px;
 font-size:12px;margin-top:19px;transition:background .2s;
}
.feature-play-btn:hover{background:#416f64;transform:none}
.feature-arrow{color:#bdd9cc}
.feature-detail-link{color:#456c62;font-size:12px;font-weight:600;margin-top:13px}
.feature-detail-link:hover{text-decoration:underline}
.quick-discovery{
 padding:25px 0 45px;
 grid-template-columns:minmax(180px,.7fr) minmax(0,1.8fr);
 gap:30px;border-top:1px solid #e1e6e2;
}
.quick-discovery-intro h2{
 color:#253b43;font-size:clamp(23px,2.3vw,30px);
 margin:8px 0;letter-spacing:-.055em;
}
.quick-discovery-intro p:last-child{color:#7b8b8e;font-size:12px}
.quick-discovery-links{gap:9px}
.quick-discovery-links a{
 min-height:44px;background:#fff;
 color:#3f555a;border:1px solid #e0e5e4;
 border-radius:9px;font-size:12px;font-weight:650;padding:10px 14px;
 box-shadow:0 1px 5px rgba(27,51,56,.02);
}
.quick-discovery-links a span{color:#9bb0aa}
.quick-discovery-links a:hover,.quick-discovery-links a:focus-visible{
 border-color:#83a89d;background:#f1f6f3;color:#2f5850;
}
.ticker{display:none}
.new-arrivals{padding-top:42px;padding-bottom:20px}
.section-marker{font-size:10px;color:#74908b;letter-spacing:.1em;gap:11px}
.section-marker>span:first-child{
 border:0;background:#e6eeea;color:#527267;
 font-size:10px;padding:6px 8px;
}
.marker-line{width:21px;background:#adc5bb}
.marker-right{color:#9aa9a8}
.section-eyebrow{font-size:10px;margin-bottom:12px;color:#719087}
.discovery-heading{margin:17px 0 24px}
.discovery-heading h2,.library-header h2{
 font-family:var(--sans);font-size:clamp(30px,3vw,41px);
 font-weight:770;color:#243943;letter-spacing:-.065em;
}
.discovery-heading h2{margin:0 0 7px}
.punctuation{color:#88aa9a}
.discovery-heading p:not(.section-eyebrow){color:#728287;font-size:13px}
.discovery-all{color:#486d62;border-bottom:1px solid #97b5a9;font-size:12px;font-weight:650}
.new-arrivals-grid{gap:20px}
.recent-card{
 background:#fff;border:1px solid #e2e7e5;border-radius:13px;
 padding-bottom:19px;box-shadow:0 4px 16px rgba(40,61,67,.024);
 transition:transform .2s,box-shadow .2s;
}
.recent-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(35,59,61,.09)}
.recent-preview{background:#ebefee;aspect-ratio:16/9}
.recent-preview img{
 filter:none;object-fit:cover;transition:transform .3s;
}
.recent-preview:hover img,.recent-preview:focus-visible img{transform:scale(1.035)}
.recent-play{
 background:rgba(255,255,255,.95);color:#284e47;
 border:1px solid rgba(255,255,255,.9);border-radius:8px;
 padding:9px 12px;box-shadow:0 2px 14px rgba(0,0,0,.1);
 font:700 10px var(--mono);
}
.recent-meta{
 color:#809196;font-family:var(--mono);font-size:10px;
 padding:18px 20px 7px;
}
.recent-type{color:#4d756b;font-weight:700}
.recent-card h3{
 font-size:20px;letter-spacing:-.045em;line-height:1.38;
 color:#26383c;margin:0 20px 7px;
}
.recent-card p{color:#677b80;font-size:12px;line-height:1.5;margin:0 20px}
.recent-detail{color:#486e62;margin:14px 20px 0;font-size:12px;font-weight:650}
.new-arrivals+.collection{padding-top:68px}
.collection{padding-top:66px;padding-bottom:96px}
.library-header{margin-top:17px}
.library-lead{color:#76878a;font-size:13px;margin-top:10px}
.counter-box{
 color:#436d60;border:1px solid #dbe4df;background:#ecf2ee;
 border-radius:9px;padding:11px 13px;
 font-size:11px;
}
.counter-led{background:#72a08a}
.counter-box small{color:#729085}
.toolbar{
 border-top:1px solid #e1e6e4;padding-top:22px;
 margin:28px 0 22px;gap:20px;
}
.filter-scroll{gap:8px}
.filter{
 min-height:41px;padding:0 15px;border:1px solid #e0e5e3;
 border-radius:100px;background:#fff;color:#65757a;
 font-family:var(--sans);font-size:12px;font-weight:650;
 transition:background .15s,border-color .15s,color .15s;
}
.filter span{font-family:var(--sans)}
.filter.active,.filter:hover{
 background:#305950;border-color:#305950;color:#fff;
}
.search-box{
 max-width:280px;min-width:200px;height:43px;padding:0 14px;
 border:1px solid #dce3e0;background:#fff;border-radius:9px;
}
.search-box:focus-within{border-color:#669b88;box-shadow:0 0 0 3px #6b9c8223}
.search-box svg{stroke:#82918f;width:18px;flex:none}
.search-box input{font-family:var(--sans);font-size:13px;color:#2b4146}
.search-box input::placeholder{color:#8c9a9b}
.discovery-controls{color:#5d7075;margin:0 0 27px;gap:12px 20px}
.sort-label,.touch-filter{font-family:var(--sans);font-size:12px}
.sort-label select{
 color:#35494e;background:#fff;
 border:1px solid #dee4e2;border-radius:8px;
 min-height:42px;font-size:12px;
}
.touch-filter input{accent-color:#376859}
.discovery-note{color:#8a9a9e;font-size:11px;line-height:1.7}
.game-grid{gap:22px}
.game-card{
 background:#fff;border:1px solid #e2e7e5;
 border-radius:13px;min-width:0;
 display:flex;flex-direction:column;
 box-shadow:0 4px 17px rgba(36,58,62,.025);
 transition:transform .22s,box-shadow .22s,border-color .22s;
}
.game-card:hover{
 transform:translateY(-3px);border-color:#c6d6ce;
 box-shadow:0 18px 36px rgba(37,62,67,.09);
}
.card-media{background:#e9edeb}
.card-media::after{
 content:"";position:absolute;inset:auto 0 0;
 height:4px;background:var(--game-accent,#b2c6b9);
 z-index:2;pointer-events:none;
}
.media-play{
 background:#e9edeb;aspect-ratio:16/9;
 color:#223d39;
}
.media-play img,.game-card:hover .media-play img,.media-play:focus-visible img{
 filter:none;
 object-fit:cover;object-position:center;
}
.game-card:hover .media-play img,.media-play:focus-visible img{transform:scale(1.025)}
.media-shade{
 background:linear-gradient(180deg,rgba(0,0,0,.12),transparent 36%,transparent 72%,rgba(0,0,0,.08));
}
.media-top{left:12px;top:12px;right:12px}
.card-index{display:none}
.card-genre{
 display:inline-flex;align-items:center;
 font:700 10px var(--sans);background:rgba(255,255,255,.96);
 color:#335c53;border:1px solid rgba(255,255,255,.85);
 border-radius:7px;padding:7px 10px;
 box-shadow:0 2px 11px rgba(0,0,0,.11);
}
.media-top{justify-content:flex-end}
.media-bottom-label{display:none}
.media-play-overlay{gap:6px}
.media-play-overlay .play-icon{
 width:51px;height:51px;
 background:#fff;color:#315d54;box-shadow:0 8px 20px rgba(0,0,0,.18);
}
.media-play-overlay strong{
 color:#fff;background:rgba(27,46,49,.75);
 border-radius:5px;padding:5px 9px;
 font:700 10px var(--sans);letter-spacing:.09em;
}
.card-details{
 padding:21px 21px 20px;display:flex;flex-direction:column;flex:1;
}
.card-header{align-items:flex-start;gap:8px}
.card-subtitle{
 color:#84918f;font:650 10px var(--sans);
 letter-spacing:.06em;margin:0 0 7px;line-height:1.5;
}
.card-title{
 font-family:var(--sans);color:#263a41;
 font-size:21px;line-height:1.34;letter-spacing:-.055em;
 font-weight:750;
}
.card-title a:hover{color:#397766}
.favorite{
 width:39px;height:39px;flex:none;
 background:#f4f6f5;color:#849a95;
 border:1px solid #e5e9e8;border-radius:10px;
}
.favorite:hover,.favorite.active{background:#fceaf0;color:#d56589;border-color:#f2cad7}
.card-description{
 color:#657980;font-size:12.5px;line-height:1.8;
 min-height:0;margin:12px 0 11px;
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
 overflow:hidden;
}
.card-detail-link{
 color:#456e62;font-size:12px;font-weight:700;margin:0 0 19px;
}
.card-detail-link:hover{text-decoration:underline}
.card-specs{
 margin-top:auto;padding:16px 0 17px;
 border-top:1px solid #ebefed;
 grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:14px;
}
.card-specs small{
 color:#8b9996;font:700 10px var(--sans);letter-spacing:.04em;
}
.card-specs strong{
 font-family:var(--sans);color:#465c61;
 font-size:11px;font-weight:550;line-height:1.6;
}
.card-play{
 min-height:46px;padding:0 15px;
 border-radius:9px;background:#eef3ef;
 border:1px solid #e2e9e4;color:#315f55;
 font-size:13px;font-weight:750;
}
.card-play:hover{background:#305b51;border-color:#305b51;color:#fff}
.card-play-right{color:#789d90}
.card-play:hover .card-play-right{color:#fff}
.empty-state{
 background:#fff;border:1px dashed #cedad3;color:#2a3e44;
 border-radius:13px;
}
.empty-icon{color:#6f9786}
.empty-state p{color:#718486}
.about-section{padding-bottom:72px}
.about-frame{
 background:#e9efeb;
 border:1px solid #dde6df;border-radius:16px;
 min-height:200px;padding:30px 40px;gap:25px;
}
.about-glyph{color:#8ca99c;opacity:.75;font-size:70px}
.glyph-orbit{border-color:#a3bdb2}
.about-info h2{color:#2c4646;font-size:29px}
.about-info p:not(.section-eyebrow){color:#657b77;font-size:13px}
.about-link{
 background:#fff;color:#376559;border:1px solid #cbdcd2;
 border-radius:9px;font-size:12px;font-weight:700;padding:14px 17px;
}
.about-link:hover{background:#e0ebe2}
.site-footer{border-top:1px solid #dbe3dd;min-height:90px}
.footer-brand{color:#28413c;font-size:16px}
.footer-brand span{color:#648c80}
.site-footer p,.back-to-top{color:#889896;font-size:10px}
.back-to-top:hover{color:#3c6f60}
.ludi-game-directory{border-top:1px solid #e0e5e2;padding:28px 0 46px!important}
.ludi-game-directory h2{color:#6a827c!important;font-size:11px!important}
.ludi-game-directory nav{gap:7px!important}
.ludi-game-directory a{
 border:1px solid #dce5df!important;border-radius:7px!important;
 padding:9px 12px!important;color:#526a65!important;background:#fff;
 font-size:11px!important;
}
.ludi-game-directory a:hover{background:#edf4ef;border-color:#8fae9b!important;color:#274d42!important}
/* Keep the actual playable game in an immersive dark frame. */
body.modal-open{background:#070c14}
.player-shell{color:#e3eeee}
.player-topbar{background:#11212a;border-color:#2d4248}
.player-back{color:#d9e8e5}
.player-controls button{color:#ecf1ef}
.toast{background:#eaf6ec;color:#244c3f}
@media (max-width:1120px){
 .shell{width:min(100% - 48px,1180px)}
 .hero{grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:30px}
 .hero h1{font-size:clamp(43px,5.45vw,61px)}
 .game-grid{gap:16px}
 .card-details{padding:18px}
 .card-specs{gap:9px}
 .recent-card h3{font-size:18px}
}
@media(max-width:900px){
 .header-inner{height:69px;gap:16px}
 .hero{grid-template-columns:1fr 1fr;gap:22px;padding:48px 0 32px;min-height:0}
 .hero h1{font-size:clamp(39px,5vw,55px);margin:17px 0}
 .hero-lead{font-size:12.5px}
 .hero-stats{margin-top:24px}
 .feature-screen-bottom{padding:16px 18px 20px}
 .feature-screen-bottom strong{font-size:25px}
 .quick-discovery{grid-template-columns:1fr;gap:16px;padding:25px 0 39px}
 .game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .toolbar{flex-direction:column-reverse;align-items:stretch;gap:15px}
 .search-box{max-width:none}
 .nav-links{gap:13px}
 .about-frame{padding:26px 28px}
}
@media(max-width:700px){
 .shell{width:calc(100% - 32px);max-width:calc(100% - 32px)}
 .site-header{padding-top:env(safe-area-inset-top,0px)}
 .header-inner{min-height:66px;height:auto;padding-block:10px;gap:12px}
 .brand-icon{width:36px;height:36px}
 .brand-wordmark strong{font-size:18px}
 .brand-wordmark small{font-size:7px}
 .nav-links{display:none}
 .header-status{margin-left:auto;min-height:38px;padding:8px 11px}
 .header-status>span:not(.status-pulse):not(.header-status-arrow){display:none}
 .hero{display:flex;flex-direction:column;align-items:stretch;gap:25px;padding:39px 0 24px}
 .hero-copy{max-width:none}
 .hero h1{font-size:clamp(45px,11vw,62px);margin:17px 0 15px}
 .hero-lead{font-size:13px;line-height:1.85}
 .hero-actions{display:flex;gap:9px;margin-top:21px}
 .primary-cta,.ghost-cta{flex:1;white-space:normal;min-width:0;font-size:12px;padding:0 11px}
 .hero-stats{margin-top:20px}
 .stat-feature:last-child,.hero-stats .stat-split:nth-last-child(2){display:none}
 .hero-feature{padding:0;width:100%}
 .feature-screen{height:auto}
 .feature-screen>img{height:auto;aspect-ratio:16/9}
 .feature-screen-upper{top:10px;left:10px;right:10px}
 .onscreen-tag{font-size:9px;padding:6px 8px}
 .feature-screen-bottom{position:static;padding:18px 18px 21px}
 .feature-screen-bottom strong{font-size:29px}
 .feature-play-btn{margin-top:13px;min-height:44px}
 .quick-discovery{padding:24px 0 27px;gap:17px}
 .quick-discovery-intro h2{font-size:25px}
 .quick-discovery-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .quick-discovery-links a{min-width:0;min-height:44px;font-size:11px;padding:8px 10px}
 .section-marker{font-size:10px}
 .new-arrivals{padding-top:29px}
 .discovery-heading{margin:15px 0 18px;gap:10px;flex-direction:row;align-items:end}
 .discovery-heading h2,.library-header h2{font-size:30px}
 .discovery-all{font-size:11px;white-space:normal;text-align:right}
 .new-arrivals-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .recent-card:last-child{display:none}
 .recent-card{padding-bottom:13px}
 .recent-preview{aspect-ratio:16/10}
 .recent-meta{padding:11px 11px 5px;font-size:9px}
 .recent-card h3{font-size:15px;margin:0 11px 5px}
 .recent-card p{font-size:11px;margin:0 11px;line-height:1.5}
 .recent-detail{font-size:10px;margin:10px 11px 0}
 .recent-play{padding:6px 8px;font-size:9px;right:6px;bottom:6px}
 .new-arrivals+.collection{padding-top:55px}
 .collection{padding-bottom:70px}
 .library-header{align-items:flex-start}
 .library-header h2{font-size:30px}
 .library-lead{font-size:12px}
 .counter-box{font-size:10px;padding:9px 10px}
 .toolbar{margin:23px 0 16px}
 .filter{min-height:43px;font-size:12px}
 .search-box input{font-size:16px}
 .discovery-controls{margin:0 0 18px;gap:8px 14px}
 .game-grid{grid-template-columns:1fr;gap:18px}
 .game-card{border-radius:12px}
 .media-play{aspect-ratio:16/9}
 .card-details{padding:19px}
 .card-title{font-size:22px}
 .card-description{font-size:13px;-webkit-line-clamp:4}
 .favorite{width:43px;height:43px}
 .card-specs strong{font-size:12px}
 .card-play{min-height:49px}
 .about-section{padding-bottom:42px}
 .about-frame{padding:27px 23px;display:block}
 .about-glyph{display:none}
 .about-info h2{font-size:24px}
 .about-link{display:inline-flex;margin-top:22px}
 .site-footer{gap:7px}
 .player-topbar{padding:env(safe-area-inset-top,0px) max(10px,env(safe-area-inset-right,0px)) 4px max(10px,env(safe-area-inset-left,0px))}
 .player-shell{height:100dvh}
}
@media(max-width:380px){
 .hero h1{font-size:42px}
 .hero-actions{display:grid;grid-template-columns:1fr}
 .quick-discovery-links{grid-template-columns:1fr 1fr}
 .new-arrivals-grid{grid-template-columns:1fr}
 .recent-card:last-child{display:block}
 .discovery-heading{align-items:flex-start;flex-direction:column}
 .recent-card h3{font-size:18px}
}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* DISCOVERY shelves use the existing neutral gallery card language. */
.personal-picks{padding-top:40px;padding-bottom:10px;border-top:1px solid #e0e6e2}
.personal-picks[hidden]{display:none!important}
.personal-picks .discovery-heading{margin-top:17px}
.personal-picks .discovery-heading p:not(.section-eyebrow){max-width:690px;line-height:1.7}
.personal-picks .recent-meta{flex-wrap:wrap}
.personal-picks .recent-card{min-height:0}
.personal-picks .recent-card .recent-detail{margin-top:12px}
@media(max-width:700px){.personal-picks{padding-top:25px}.personal-picks .discovery-heading h2{font-size:25px}}


/* LUDIRIFT first-play guide: short, per-title, shown before loading the game. */
/* The game canvas remains a fixed touch surface; the guide itself can scroll. */
body.modal-open .player-frame-box:has(.game-guide:not([hidden])) {touch-action:pan-y}
body.modal-open .game-guide,body.modal-open .game-guide-panel {touch-action:pan-y;-webkit-overflow-scrolling:touch}

.player-frame-box{position:relative}
.player-guide-trigger{
 display:inline-flex;align-items:center;justify-content:center;gap:5px;
 min-height:35px;min-width:98px!important;padding:7px 11px;
 font:650 12px Inter,"Yu Gothic",sans-serif!important;letter-spacing:0;
 background:#263e47!important;color:#edf8f5!important;border:1px solid #5f7b7e!important;
 border-radius:7px!important;white-space:nowrap;
}
.player-guide-trigger:hover{background:#375861!important}
.game-guide{
 position:absolute;inset:0;z-index:5;
 display:flex;align-items:center;justify-content:center;
 overflow:auto;overscroll-behavior:contain;
 padding:clamp(14px,3.5vw,34px);
 background:radial-gradient(ellipse at 50% 10%,#203b47,#101c2a 76%);
}
.game-guide[hidden]{display:none!important}
.game-guide-panel{
 width:min(580px,100%);max-height:100%;overflow-y:auto;
 background:#f8faf8;color:#263e40;
 border:1px solid #dce8df;border-radius:17px;
 box-shadow:0 24px 65px #0006;padding:clamp(22px,3vw,34px);
}
.guide-eyebrow{
 display:flex;align-items:center;flex-wrap:wrap;gap:8px;
 font-size:11px;font-weight:750;letter-spacing:.06em;color:#477769;
}
.guide-spark{font-size:19px;color:#699c87}
.guide-time{margin-left:auto;font-size:10px;color:#7d9790}
.game-guide-panel h2{
 color:#253e40;font-weight:790;font-size:clamp(23px,4vw,32px);
 letter-spacing:-.055em;line-height:1.35;margin:12px 0 22px;
 overflow-wrap:anywhere;
}
.guide-steps{display:grid;gap:15px;margin-bottom:24px}
.guide-steps section{display:flex;align-items:flex-start;gap:14px}
.guide-step-number{
 flex:none;display:grid;place-items:center;
 height:34px;width:34px;border-radius:10px;
 background:#e4eee8;color:#3d705d;font:750 11px "Space Grotesk",sans-serif;
}
.guide-steps h3{font-size:12px;letter-spacing:.01em;color:#66847a;margin:0 0 4px}
.guide-steps p{font-size:14px;line-height:1.65;color:#263e40;margin:0;overflow-wrap:anywhere}
.guide-start{
 width:100%;min-height:52px;
 border:0;background:#2f5c51;color:#fff;font-size:15px;font-weight:760;
 border-radius:9px;text-align:center;cursor:pointer;
}
.guide-start:hover{background:#407366}
.guide-footer-note{font-size:11px;text-align:center;color:#738582;line-height:1.6;margin:12px 0 0}
@media(max-width:700px){
 .player-save-info{display:none}
 .player-guide-trigger{min-width:38px!important;min-height:37px;padding:7px!important;font-size:13px!important}
 .player-guide-trigger span{display:none}
 .game-guide{padding:12px;align-items:flex-start}
 .game-guide-panel{max-height:100%;padding:21px 19px;border-radius:14px}
 .guide-steps{gap:13px;margin-bottom:18px}
 .game-guide-panel h2{font-size:23px;margin:9px 0 18px}
 .guide-steps p{font-size:13px}
 .guide-step-number{height:30px;width:30px}
 .guide-start{min-height:48px}
 .guide-time{font-size:10px}
}
@media(max-height:560px){.game-guide{align-items:flex-start}.game-guide-panel{max-height:100%}}
@media(prefers-reduced-motion:reduce){.guide-start{transition:none}}

/* Japanese-first cards and restored contrast in the neutral gallery edition. */
.starter{padding-top:54px;padding-bottom:32px}
.starter-heading{margin:18px 0 22px}
.starter-heading h2{color:#203842;font-weight:790;letter-spacing:-.05em}
.starter-heading p:not(.section-eyebrow){color:#596d72;line-height:1.7}
.starter-card{background:#ffffff;border:1px solid #dbe5e0;box-shadow:0 6px 22px rgba(28,57,60,.06);border-radius:13px}
.starter-preview{background:#e9efed}
.starter-preview img{filter:none;object-fit:cover}
.starter-preview span{background:#f6fff9;color:#27554a;border:1px solid rgba(56,95,86,.18);box-shadow:0 3px 12px rgba(7,35,31,.12)}
.starter-label{color:#386a5f;font-size:11px}
.starter-body h3{color:#1f333b;font-size:21px;font-weight:790;text-shadow:none;line-height:1.35;margin-bottom:6px}
.starter-original{color:#5c7377;font-size:11px;margin:0 0 8px;line-height:1.55}
.starter-desc{color:#455f65;font-size:13px;line-height:1.65;min-height:0}
.starter-play{background:#2e584f;color:#fff;border-color:#2e584f;font-weight:750;min-height:46px}
.starter-play:hover,.starter-play:focus-visible{background:#42776a;color:#fff}
.starter-note{color:#607975}
.recent-original{color:#627e81!important;font-size:11px!important;letter-spacing:.02em;line-height:1.5;margin:0 20px 7px!important}
.recent-pitch{color:#435e63!important;line-height:1.55!important}
.card-title a{color:#243c42}
.card-subtitle{color:#667f80;font-size:11px;font-weight:600;letter-spacing:.035em}
.card-description{color:#475f66}
.feature-pitch{color:#47636b;font-size:13px;line-height:1.55;margin:7px 0 0}
@media(max-width:700px){
  .starter{padding-top:30px;padding-bottom:18px}
  .starter-body h3{font-size:17px}
  .starter-original{font-size:10px;margin-bottom:5px}
  .starter-desc{font-size:12px;line-height:1.55}
  .starter-card{grid-template-columns:minmax(0,42%) minmax(0,1fr)}
  .recent-original{margin:0 11px 5px!important;font-size:10px!important}
  .feature-pitch{font-size:12px}
}
@media(max-width:380px){.starter-card{grid-template-columns:1fr}}

/* Curated third-party game invitations: visible on mobile even when nav hides. */
.community-callout{margin-top:26px;margin-bottom:36px;padding:27px 32px;background:#eaf2ed;border:1px solid #d7e4dc;border-radius:14px;display:flex;align-items:center;gap:22px}
.community-symbol{display:grid;place-items:center;flex:none;background:#315d52;color:#eefbf3;width:62px;height:62px;border-radius:14px;font-size:30px}
.community-copy{flex:1;min-width:0}.community-copy .section-eyebrow{margin:0 0 7px;color:#52776b}
.community-copy h2{font-size:clamp(20px,2.3vw,29px);font-weight:790;letter-spacing:-.045em;color:#243e42;line-height:1.3;margin:0 0 6px}
.community-copy p:last-child{font-size:12px;line-height:1.7;color:#58716f;margin:0}
.community-link{background:#315b50;color:white;display:inline-flex;gap:12px;justify-content:center;align-items:center;flex:none;min-height:47px;border-radius:8px;padding:13px 18px;font-size:12px;font-weight:750}
.community-link:hover,.community-link:focus-visible{background:#427468;color:#fff}
@media(max-width:800px){.community-callout{flex-wrap:wrap;gap:15px}.community-copy{flex-basis:calc(100% - 82px)}.community-link{margin-left:84px}}
@media(max-width:550px){.community-callout{padding:21px 18px;gap:11px;margin-bottom:25px}.community-symbol{height:43px;width:43px;font-size:23px}.community-copy{flex-basis:calc(100% - 54px)}.community-copy h2{font-size:19px}.community-copy p:last-child{font-size:11px}.community-link{width:100%;margin:8px 0 0;min-height:46px}}

/* Creator-first discovery. Public entries are always verified build metadata. */
.creator-discovery{display:flex;flex-wrap:wrap;align-items:center;gap:13px 22px;margin:4px 0 25px;padding:20px 23px;background:#eaf1eb;border:1px solid #dae7df;border-radius:13px}
.creator-discovery-label{display:flex;flex-direction:column;gap:3px;min-width:135px}
.creator-discovery-label strong{font-size:13px;color:#31574e;letter-spacing:-.01em}
.creator-discovery-label>span:last-child{color:#728981;font-size:10px;line-height:1.5}
.creator-discovery-dot{display:none}
.creator-filter-options{display:flex;flex-wrap:wrap;gap:7px}
.creator-filter{cursor:pointer;border:1px solid #c9dcd0;background:white;border-radius:8px;color:#4c6c61;padding:10px 12px;min-height:40px;font-size:11px;font-weight:750;font-family:var(--sans)}
.creator-filter.active,.creator-filter:hover{background:#315b50;color:#fff;border-color:#315b50}
.creator-filter:focus-visible{outline:3px solid #83ac9a;outline-offset:3px}
.creator-discovery-link{margin-left:auto;color:#3d715f;font-size:11px;white-space:nowrap;font-weight:750;border-bottom:1px solid #99b9a4;padding:5px 0}
.card-author{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid #e7eeea;border-bottom:1px solid #e7eeea;padding:11px 0;margin:13px 0 12px;line-height:1.5}
.card-author-label{color:#768d85;font-size:10px;white-space:nowrap}
.card-author a{font-weight:800;color:#376b5d;font-size:12px}
.card-author a:hover,.recent-author:hover{text-decoration:underline;text-underline-offset:3px}
.card-origin-label{margin-left:auto;background:#edf4ef;color:#567a69;border-radius:5px;padding:5px 7px;font-size:10px;font-weight:700;white-space:nowrap}
.recent-author{display:inline-block;color:#4d796b;font-size:11px;font-weight:750;margin:5px 0 9px 20px}
@media(max-width:700px){.recent-card .recent-author{margin-left:11px}}
.community-empty-note{font-size:12px;color:#5c766b;margin:12px 0}
.community-empty-note a{color:#356d58;text-decoration:underline;text-underline-offset:3px}
@media(max-width:830px){.creator-discovery-link{margin-left:0}}
@media(max-width:550px){.creator-discovery{padding:16px;gap:11px}.creator-discovery-label{width:100%}.creator-filter-options{gap:6px}.creator-filter{font-size:10px;padding:10px}.creator-discovery-link{margin-top:3px}.card-origin-label{margin-left:0}}

/* Compact gallery cards: descriptions and specs are previews, never full manuals.
   Longer text is accessible on the linked detail page and in the game's guide. */
.game-card .card-header > div {min-width:0;flex:1}
.game-card .card-title,
.game-card .card-subtitle,
.game-card .card-specs strong,
.game-card .card-author a {overflow-wrap:anywhere}
.game-card .card-title,
.game-card .card-subtitle,
.game-card .card-specs strong {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.game-card .card-title {-webkit-line-clamp:2;line-clamp:2}
.game-card .card-subtitle {-webkit-line-clamp:2;line-clamp:2}
.game-card .card-specs > span {min-width:0}
.game-card .card-specs strong {
  -webkit-line-clamp:2;
  line-clamp:2;
  max-height:calc(2 * 1.6em);
  white-space:normal;
}
.game-card .card-author a {min-width:0;max-width:100%}

/* Transparent, low-key explanation of first-party anonymous play counts. */
.play-count-disclosure{position:relative;font-size:11px;color:#667c78;max-width:260px}
.play-count-disclosure summary{cursor:pointer;list-style:none;text-decoration:underline;text-underline-offset:3px}
.play-count-disclosure summary::-webkit-details-marker{display:none}
.play-count-disclosure[open]{max-width:330px}
.play-count-disclosure p{font-size:11px;line-height:1.65;margin:6px 0 0;color:#516d67;overflow-wrap:anywhere}

/* Real, opt-in-to-play community rankings. No placeholder scores. */
.rankings{padding-top:33px;padding-bottom:43px}
.ranking-heading{align-items:end;gap:20px}
.ranking-switch{display:inline-flex;align-items:center;gap:4px;background:#e8f0ea;border:1px solid #d6e3da;border-radius:10px;padding:4px;flex:none}
.ranking-switch-button{border:0;background:transparent;color:#547367;padding:10px 19px;cursor:pointer;border-radius:7px;font:750 12px var(--sans);min-height:42px}
.ranking-switch-button.active{background:white;color:#2a5946;box-shadow:0 2px 9px rgba(21,57,44,.08)}
.ranking-switch-button:hover:not(.active){background:#f4f8f5}
.ranking-switch-button:focus-visible,.ranking-play:focus-visible,.ranking-row-play:focus-visible,.ranking-retry:focus-visible{outline:3px solid #75ab95;outline-offset:2px}
.ranking-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;font-size:11px;color:#79938a;margin:6px 0 16px}
.ranking-state{min-height:120px;padding:26px 22px;border:1px dashed #cbdcd0;background:#f8faf8;border-radius:13px;color:#567268;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;font-size:13px;text-align:center}
.ranking-state strong{font-size:16px;color:#3e6254}
.ranking-state a{color:#306d57;text-decoration:underline;text-underline-offset:3px;font-weight:700}
.ranking-retry{border:1px solid #a9c5b3;background:white;color:#315e4d;border-radius:7px;padding:9px 13px;font-weight:700;cursor:pointer}
#rankingGrid[hidden],#rankingState[hidden]{display:none}
.ranking-grid{display:grid;gap:16px}
.ranking-podium{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,238px),1fr));gap:15px}
.ranking-featured{min-width:0;border:1px solid #dfebe3;border-radius:14px;background:white;box-shadow:0 5px 22px rgba(35,73,58,.045);overflow:hidden;position:relative}
.ranking-featured:only-child{max-width:440px}
.ranking-featured-image{display:block;aspect-ratio:16/9;overflow:hidden;background:#e0ebe4}
.ranking-featured-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.ranking-featured-image:hover img{transform:scale(1.04)}
.ranking-rank{display:flex;flex-direction:column;align-items:center;position:absolute;z-index:1;left:12px;top:12px;min-width:51px;padding:5px 8px;background:rgba(247,252,248,.96);border:1px solid #e1eae3;border-radius:8px;color:#32614c;box-shadow:0 3px 12px rgba(18,49,34,.12)}
.ranking-rank small{font:700 9px var(--sans);letter-spacing:.11em;color:#6b877a}
.ranking-rank strong{font-size:25px;font-weight:850;line-height:1.05;letter-spacing:-.055em}
.ranking-place-1 .ranking-rank{background:#f6f1df;border-color:#e9dfb6;color:#77602a}
.ranking-featured-copy{padding:15px 17px 17px}
.ranking-genre{display:inline-block;font-size:10px;letter-spacing:.04em;color:#628577;font-weight:750}
.ranking-featured h3{font-size:17px;line-height:1.45;margin:4px 0 8px;font-weight:800;color:#2d4e43;overflow-wrap:anywhere}
.ranking-featured h3 a:hover,.ranking-row-content h3 a:hover{color:#397a5a;text-decoration:underline;text-underline-offset:3px}
.ranking-featured-copy>p{font-size:12px;line-height:1.55;color:#688177;margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em}
.ranking-featured-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}
.ranking-starts{font-size:11px;color:#6b8076}
.ranking-starts strong{font-size:21px;font-variant-numeric:tabular-nums;color:#315b48;letter-spacing:-.03em}
.ranking-play{min-height:39px;padding:10px 15px;background:#315b4b;border:0;border-radius:8px;color:#fff;font-size:11px;font-weight:750;cursor:pointer}
.ranking-play:hover,.ranking-row-play:hover{background:#42765e;color:#fff}
.ranking-others{border:1px solid #dfe8e1;border-radius:12px;overflow:hidden;background:white;display:grid}
.ranking-row{display:flex;gap:14px;align-items:center;min-width:0;padding:10px 17px;border-bottom:1px solid #edf1ed}
.ranking-row:last-child{border-bottom:0}
.ranking-row-place{width:32px;flex:none;font-size:18px;font-weight:850;color:#789587;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.ranking-row-image{width:85px;aspect-ratio:16/9;flex:none;border-radius:6px;overflow:hidden;background:#eef3ed}
.ranking-row-image img{width:100%;height:100%;object-fit:cover;display:block}
.ranking-row-content{flex:1;min-width:0}
.ranking-row-content h3{font-size:13px;color:#284b3c;line-height:1.4;margin:0 0 3px;overflow-wrap:anywhere}
.ranking-row-content span{font-size:10px;color:#799187}
.ranking-row-count{white-space:nowrap;font-size:16px;font-variant-numeric:tabular-nums;color:#385f4b}
.ranking-row-count small{font-size:10px;font-weight:500;color:#718b7b}
.ranking-row-play{width:39px;height:39px;flex:none;display:grid;place-items:center;border:0;border-radius:8px;background:#eaf2ec;color:#32654b;font-weight:750;cursor:pointer}
.ranking-footnote{margin:14px 0 0;color:#81958b;font-size:11px;line-height:1.75}
@media(max-width:690px){
 .rankings{padding-top:25px;padding-bottom:28px}
 .ranking-heading{align-items:start}
 .ranking-switch{margin-top:4px}
 .ranking-row{gap:10px;padding:10px}
 .ranking-row-image{width:62px}
 .ranking-row-place{font-size:15px;width:24px}
 .ranking-row-count{font-size:14px}
 .ranking-row-play{width:36px;height:36px}
 .ranking-row-content h3{font-size:12px}
 .ranking-meta{font-size:10px}
}
