@import url('/fonts.css');
:root{--bg:#0b100e;--panel:#151c18;--ink:#f4f4e9;--muted:#a4b1a7;--lime:#d7fa78;--gold:#e6bf78;--line:#ffffff20}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.75 Tahoma,'Segoe UI',sans-serif}button,input{font:inherit}a{color:inherit;text-decoration:none}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--lime);outline-offset:5px}header{height:92px;padding:0 6%;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);background:#0b100ef2;position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:10px;font-size:20px;line-height:1}.brand>b{font:italic 900 42px/1 'Arial Black',Arial,sans-serif;letter-spacing:-4px}.brand span,.mini-logo span{color:var(--lime)}.brand div{font-weight:bold;letter-spacing:4px}.brand small{display:block;font:8px/2 'Segoe UI',sans-serif;letter-spacing:2px}nav{display:flex;gap:34px;color:#b5c0b8;font-size:13px}nav a:hover{color:var(--lime)}.outline{background:transparent;border:1px solid var(--line);color:var(--ink);padding:10px 22px;border-radius:4px;font-size:13px}.outline span{margin-left:15px}.hero{height:720px;min-height:640px;position:relative;overflow:hidden}.hero-image,.hero-shade{position:absolute;inset:0}.hero-image{background:url('/assets/stadium-night.png') center/cover;transform:scale(1.02)}.hero-shade{background:linear-gradient(90deg,#08100ef2 0%,#08100ed4 30%,#08100e35 74%),linear-gradient(0deg,var(--bg),transparent 40%)}.hero-content{position:relative;padding:68px 6%;max-width:1100px}.eyebrow{font:11px/1.5 'Segoe UI',Tahoma,sans-serif;letter-spacing:2.8px;color:var(--lime);font-weight:600}.live-dot{display:inline-block;background:var(--lime);width:6px;height:6px;border-radius:50%;margin-right:10px;box-shadow:0 0 16px #c5fd87}h1{font-size:64px;line-height:1.3;letter-spacing:-2px;margin:24px 0}h1 .serif{color:var(--gold)}h1 em{color:var(--lime);font-size:42px;font-style:normal;font-weight:400;letter-spacing:-1px}.lead{color:#c2ccc4;line-height:1.9;font-size:16px}.hero-actions{display:flex;align-items:center;gap:30px;margin-top:32px}.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:36px;background:var(--lime);color:#12190d;padding:16px 28px;border:0;border-radius:3px;font-weight:bold;font-size:14px;transition:background .2s,transform .2s}.primary:hover{background:#e7ffab;transform:translateY(-2px)}.primary span{font-size:21px;font-weight:400}.text-button{background:none;color:var(--ink);border:0;padding:8px 0;font-size:13px}.text-button:hover{color:var(--lime)}.hero-caption{font:10px 'Segoe UI',Tahoma,sans-serif;letter-spacing:1.5px;color:#8b9a8e;margin-top:24px}.hero-caption i{display:inline-block;width:3px;height:3px;background:#66786a;margin:0 14px;vertical-align:middle}.season-stamp{position:absolute;right:7%;top:110px;display:flex;align-items:flex-start;gap:16px;opacity:.7}.season-stamp span{font:10px/1.6 'Segoe UI';letter-spacing:3px;margin-top:12px}.season-stamp b{font:900 90px/.85 'Arial Black',sans-serif;letter-spacing:-8px;color:#ffffff17;-webkit-text-stroke:1px #ffffff60}.scroll-hint{position:absolute;right:6%;bottom:34px;color:#a1afa6;font-size:11px}.scroll-hint span{margin-left:20px}.ticker{border-block:1px solid var(--line);display:flex;justify-content:space-around;gap:40px;overflow:hidden;white-space:nowrap;padding:22px 24px;font:italic 800 22px Arial;letter-spacing:1px}.ticker span{color:#7a887e}.ticker b{color:var(--lime)}.section{padding:86px 6%;max-width:1600px;margin:auto}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:32px;gap:30px}h2{font-size:34px;line-height:1.5;letter-spacing:-.8px;margin:16px 0;font-weight:500}h2 span{color:var(--muted)}.section-heading>p,.muted{color:var(--muted);font-size:14px}.features{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.feature{height:310px;position:relative;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#101a17}.feature img{width:100%;height:100%;object-fit:cover;transition:transform .6s}.feature:hover img{transform:scale(1.04)}.feature:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#07110ef5,transparent)}.feature>div{position:absolute;bottom:25px;left:28px;right:20px;z-index:1}.tag{color:var(--gold);font:9px/1.6 'Segoe UI';letter-spacing:2px}.feature h3{font-size:23px;margin:12px 0 3px;font-weight:500}.feature p{margin:0;color:#c0c7bd;font-size:13px}.download{display:grid;grid-template-columns:1fr 460px;gap:70px;align-items:center;border-top:1px solid var(--line)}.download h2{font-size:40px}.platform{display:flex;align-items:center;gap:12px;margin-top:36px;color:var(--muted);font-size:28px}.platform span{font:10px 'Segoe UI';letter-spacing:1.5px}.download-box{background:linear-gradient(145deg,#1e2c20,#131b16);border:1px solid #bddd713d;border-radius:8px;padding:30px 34px;box-shadow:0 20px 60px #0003}.download-top{display:flex;align-items:center;justify-content:space-between}.mini-logo{font:italic 900 36px Arial;letter-spacing:-3px}.download-box h3{font:800 23px 'Segoe UI';margin-bottom:0}.download-box>p{margin-top:4px;color:var(--muted);font-size:12px}.release-line{display:flex;justify-content:space-between;font-size:12px;border-bottom:1px solid var(--line);padding:12px 0}.release-line span{color:var(--muted)}.wide{width:100%;margin-top:22px}.download-note{font-size:11px!important;line-height:1.7;margin:14px 0 0!important}.guide{border-top:1px solid var(--line)}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:50px}.steps article{border-top:1px solid var(--line);padding-top:24px}.steps article>span:first-child{font:italic 50px Arial;color:#c5df8647}.steps h3{font-size:19px;font-weight:500}.steps p{color:var(--muted);font-size:13px;min-height:48px;max-width:300px}.steps a{font-size:12px;color:var(--lime)}.small-muted{font-size:11px;color:#84938a}.faq{padding-top:20px;padding-bottom:90px;max-width:1100px}.faq details{border-bottom:1px solid var(--line);padding:20px 0}.faq summary{cursor:pointer;font-size:14px}.faq details p{font-size:13px;color:var(--muted);max-width:800px}footer{padding:36px 6%;border-top:1px solid var(--line);display:flex;align-items:center;gap:30px;justify-content:space-between}footer .brand{font-weight:bold}footer .brand small{margin-left:6px}footer p{font-size:12px;color:var(--muted)}footer>span{font-size:10px;color:#728177}dialog{padding:0;border:1px solid #ffffff30;border-radius:12px;color:var(--ink);background:var(--bg);width:min(880px,94vw);max-height:92vh;box-shadow:0 40px 140px #000b}dialog::backdrop{background:#030805c9;backdrop-filter:blur(7px)}dialog[open]:not(#member-dialog){display:grid;grid-template-columns:1fr 1fr}.close{position:absolute;right:16px;top:12px;z-index:2;border:0;color:var(--ink);background:transparent;font-size:27px}.auth-art{background:linear-gradient(0deg,#071b12cf,#0c1c15a0),url('/assets/stadium-aerial.png') center/cover;padding:45px 35px;display:flex;flex-direction:column;justify-content:center;min-height:580px}.auth-art h2{font-size:38px;line-height:1.6}.auth-art em{font-style:normal;color:var(--lime)}.auth-art>p{font:10px 'Segoe UI';letter-spacing:3px;margin-top:65px;color:var(--muted)}.auth-body{padding:48px 35px 25px}.auth-body h2{font-size:28px;margin:8px 0}.auth-body>.muted{font-size:12px;margin-bottom:24px}label{display:block;font-size:12px;margin:17px 0}input{display:block;width:100%;border:1px solid #ffffff28;border-radius:4px;background:#141c17;color:var(--ink);padding:13px 14px;margin:8px 0 2px;outline:none;font-size:13px}input:focus{border-color:var(--lime)}label small{font-size:9px;color:#91a295}.password-wrap{position:relative}.password-wrap input{padding-right:55px}.password-wrap button{position:absolute;right:10px;top:13px;border:0;background:none;color:var(--muted);font-size:10px}.switch-auth{width:100%;margin-top:12px}.privacy-note{text-align:center;font-size:9px;color:#75867b;line-height:1.8;margin-top:25px}#auth-message,#member-message{color:var(--gold);font-size:12px;min-height:22px}#auth-submit{margin-top:2px}[hidden]{display:none!important}#member-dialog{width:min(480px,94vw)}.member-content{padding:45px}.member-id{border-block:1px solid var(--line);padding:14px 0;font:10px 'Segoe UI';letter-spacing:2px;display:flex;justify-content:space-between}.member-content h2 span{color:var(--lime);overflow-wrap:anywhere}#logout{margin-top:12px}
@media(min-width:1600px){.hero-content{padding-top:100px}.hero{height:800px}}@media(max-width:900px){header{height:78px;padding-inline:5%}nav{gap:16px;font-size:11px}.hero{height:690px}.hero-content{padding:70px 5%}.season-stamp{display:none}.hero-shade{background:linear-gradient(90deg,#08100ef0,#08100e66),linear-gradient(0deg,var(--bg),transparent)}.section{padding:65px 5%}.download{grid-template-columns:1fr 390px;gap:30px}.download h2{font-size:31px}.download-box{padding:24px}.section-heading>p{display:none}footer>span{max-width:180px}.steps{gap:24px}}@media(max-width:640px){header .brand>b{font-size:32px}.brand div{font-size:14px}header{gap:12px}header nav{display:none}.outline{padding:8px 14px}h1{font-size:49px}h1 em{font-size:29px}.hero{height:680px}.hero-content{padding-top:65px}.eyebrow{font-size:9px;letter-spacing:2px}.lead{font-size:13px}.hero-actions{gap:20px;flex-wrap:wrap}.primary{padding:14px 22px}.hero-caption{font-size:8px}.hero-image{background-position:60%}.ticker{font-size:17px;justify-content:flex-start;gap:30px}.section-heading h2,h2{font-size:27px}.features,.download,.steps{grid-template-columns:1fr}.feature{height:250px}.section{padding:50px 6%}.download{gap:30px}.download h2{font-size:32px}.steps{gap:30px}.steps p{min-height:0;max-width:none}.faq{padding-top:10px}footer{flex-direction:column;align-items:flex-start;gap:14px}footer p{margin:0}footer>span{max-width:none}dialog[open]:not(#member-dialog){grid-template-columns:1fr}.auth-art{display:none}.auth-body{padding:35px 28px 20px}.auth-body>.muted{margin-bottom:12px}.privacy-note{margin:18px 0}.member-content{padding:36px 28px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Old Engine editorial section */
.memory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin-top:38px}.memory-grid article{border-top:1px solid var(--line);padding-top:22px}.memory-grid article>span{font:9px/1.6 "Segoe UI",sans-serif;letter-spacing:1.8px;color:var(--gold)}.memory-grid h3{font-size:18px;font-weight:500;margin:13px 0}.memory-grid p{color:var(--muted);font-size:13px;line-height:1.9;margin:0;max-width:350px}.hero .lead{font-size:14px}.hero-content{padding-top:50px}.hero h1{margin:20px 0;line-height:1.24}@media(max-width:640px){.memory-grid{grid-template-columns:1fr;gap:24px}.memory-grid p{max-width:none}.hero .lead{font-size:12px}.hero-content{padding-top:55px}.hero h1{font-size:47px;line-height:1.32}.hero h1 em{font-size:36px}.hero{height:700px}}

/* Player portraits and original start-screen artwork. */
.roster{border-top:1px solid var(--line);background:radial-gradient(ellipse at 50% 40%,#21302050,transparent 65%)}
.roster-stats{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line);margin:34px 0 38px;padding:27px 0}
.roster-stats>div{padding:0 28px;border-right:1px solid var(--line)}.roster-stats>div:first-child{padding-left:0}.roster-stats>div:last-child{border:0}
.roster-stats strong{display:block;font:600 44px/1.2 'Segoe UI',sans-serif;letter-spacing:-2px;color:var(--lime);font-variant-numeric:tabular-nums}.roster-stats span{display:block;font-size:12px;color:var(--muted);margin-top:9px}
.player-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:17px}.player-card{background:linear-gradient(145deg,#1d2a20,#111914);border:1px solid #ffffff18;border-radius:5px;overflow:hidden;transition:transform .2s,border-color .2s}.player-card:hover{transform:translateY(-5px);border-color:#d7fa7880}
.portrait{height:165px;position:relative;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;background:radial-gradient(ellipse at 50% 90%,#d0e3ab30,transparent 68%)}.portrait:after{content:'';position:absolute;inset:auto 0 0;height:38px;background:linear-gradient(transparent,#141e17)}.portrait img{width:140px;height:140px;object-fit:contain;position:relative;z-index:0}.card-no{position:absolute;top:12px;left:15px;font:11px 'Segoe UI';color:#8a9b79;letter-spacing:1px}
.player-info{padding:12px 15px 17px;border-top:1px solid #ffffff0a}.player-info h3{font:600 14px/1.5 'Segoe UI',sans-serif;margin:0;color:#edf1e6;overflow-wrap:anywhere}.player-info p{font-size:10px;color:#8d9f90;margin:7px 0 0}.player-info b{color:var(--gold);font-weight:400}
.roster-tail{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:30px;border-bottom:1px solid var(--line);padding-bottom:22px}.roster-tail p{font-size:13px;color:var(--muted);margin:0}.roster-tail strong{color:var(--ink);font-size:19px;font-weight:400}.roster-tail a{color:var(--lime)}.catalog-note{font-size:10px;color:#7e8e81;line-height:1.9;max-width:950px;margin-top:18px}
.game-art{display:grid;grid-template-columns:1.15fr 1fr;gap:48px;align-items:center;padding-top:10px;padding-bottom:80px}.game-art-image{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:6px;border:1px solid var(--line);background:#101818}.game-art-image img{position:absolute;top:0;left:0;width:100%;height:auto;display:block}.game-art-image:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,#0b100e20)}.game-art-copy h2{font-size:31px}.game-art-copy>p:not(.eyebrow){color:var(--muted);font-size:13px;line-height:1.9}.art-caption{color:#788b7f;font-size:10px}
.auth-art{background-image:linear-gradient(0deg,#071b12df,#0c1c1580),url('/assets/game-start-1.png');background-size:auto 200%;background-position:25% top}
.download{position:relative;isolation:isolate}.download:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0b100ef5,#0b100edc),url('/assets/world-cup-background.png') center/cover;opacity:.8}
@media(max-width:900px){.player-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.portrait{height:135px}.portrait img{width:115px;height:115px}.player-info{padding:10px}.player-info h3{font-size:12px}.player-info p{font-size:9px}.game-art{gap:25px}.game-art-copy h2{font-size:25px}}
@media(max-width:640px){.roster-stats{gap:12px;padding:22px 0}.roster-stats>div{padding:0 9px}.roster-stats strong{font-size:29px;letter-spacing:-1px}.roster-stats span{font-size:9px}.player-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.portrait{height:155px}.portrait img{width:135px;height:135px}.player-info{padding:12px 14px}.player-info h3{font-size:13px}.player-info p{font-size:10px}.roster-tail{flex-direction:column;align-items:flex-start;gap:12px}.roster-tail strong{font-size:17px}.game-art{grid-template-columns:1fr;gap:20px;padding-top:0;padding-bottom:45px}.game-art-copy h2{font-size:27px}.catalog-note{font-size:9px}.roster .section-heading{margin-bottom:24px}}

/* Community-supplied classic artwork, retaining the dark green palette. */
.hero-image{background-image:url('/assets/classic-trio.png');background-position:70% center;filter:saturate(.82)}
.hero-shade{background:linear-gradient(90deg,#08100ef5 0%,#08100ee5 29%,#08100e80 48%,#08100e1a 78%),linear-gradient(0deg,var(--bg),transparent 40%)}
.auth-art{background-image:linear-gradient(0deg,#071b12eb,#0c1c158a),url('/assets/classic-trio.png');background-size:cover;background-position:65% center}
.player-info{padding:17px 15px 20px}.player-info h3{text-align:center}.portrait{height:170px}
.native-menu{border-top:1px solid var(--line)}.game-menu-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.menu-card{padding:24px 21px;display:flex;flex-direction:column;align-items:flex-start;gap:17px;background:linear-gradient(145deg,#1c2b21,#121b16);border:1px solid #ffffff18;border-radius:5px}.menu-card h3{font:600 17px 'Segoe UI',sans-serif;margin:0 0 3px;color:var(--lime)}.menu-card h4{font-size:12px;font-weight:400;color:var(--gold);margin:0 0 12px}.menu-card p{font-size:12px;color:var(--muted);line-height:1.9;margin:0}.game-menu-icon{display:block;width:54px;height:48px;flex-shrink:0;border-radius:4px;background-image:url('/assets/menu-reference.png');background-size:918px 921px;background-repeat:no-repeat;box-shadow:0 5px 15px #0003}.icon-manager{background-position:-280px -304px}.icon-league{background-position:-335px -304px}.icon-friendly{background-position:-393px -304px}.icon-ranking{background-position:-452px -304px}.icon-team{background-position:-509px -304px}.icon-transfer{background-position:-566px -304px}.icon-club{background-position:-623px -304px}.icon-shop{background-position:-681px -304px}
@media(max-width:900px){.game-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.menu-card{flex-direction:row;gap:17px}.hero-image{background-position:62% center}}
@media(max-width:640px){.hero-image{background-position:66% center}.hero-shade{background:linear-gradient(90deg,#08100ef2,#08100eab 53%,#08100e50),linear-gradient(0deg,var(--bg),transparent 65%)}.game-menu-grid{grid-template-columns:1fr}.menu-card{padding:20px}.menu-card h4{margin-bottom:6px}.menu-card p{font-size:12px}.portrait{height:155px}.player-info{padding:14px 10px 18px}}

/* Additional user-supplied game imagery. */
.download-art{position:relative;margin:28px 0 0;max-width:560px;border-radius:6px;overflow:hidden;border:1px solid #d7fa7826;background:#132019;aspect-ratio:742/386}.download-art img{width:100%;height:100%;display:block;object-fit:cover}.download-art:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0c1a17b8,#0c1a1730 67%),linear-gradient(0deg,#0b100ee6,transparent 50%);pointer-events:none}.download-art figcaption{position:absolute;left:22px;bottom:20px;z-index:1;font:600 10px 'Segoe UI',sans-serif;letter-spacing:2.5px;color:var(--lime)}.game-art-image.gameplay-image{aspect-ratio:1264/712}.gameplay-image img{height:100%;object-fit:contain}.gameplay-image:after{background:linear-gradient(0deg,#0b100e20,transparent 35%);pointer-events:none}@media(max-width:640px){.download-art{margin-top:24px}.download-art figcaption{font-size:8px;left:16px;bottom:16px}}

/* Auto-advancing in-game gallery. */
.game-gallery{min-width:0}.gallery-frame{position:relative;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#101b16}.gallery-slide{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;transition:opacity 800ms ease,visibility 800ms;pointer-events:none}.gallery-slide.is-active{opacity:1;visibility:visible}.gallery-slide img{display:block;width:100%;height:100%;object-fit:cover}.gallery-slide .gameplay-shot{object-fit:contain}.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}.gallery-dots{display:flex;gap:7px;align-items:center}.gallery-dot{border:0;padding:0;width:25px;height:28px;background:transparent;position:relative}.gallery-dot:before{content:'';position:absolute;inset:11px 0;background:#667665;border-radius:8px;transition:background .3s}.gallery-dot.is-active:before{background:var(--lime)}.gallery-caption{color:var(--muted);font-size:10px;margin-right:auto}.gallery-actions{display:flex;align-items:center;gap:6px}.gallery-actions button{border:1px solid var(--line);border-radius:3px;background:#152017;color:#c4d1c2;padding:5px 11px;min-height:34px;font-size:12px}.gallery-actions button:hover{border-color:var(--lime);color:var(--lime)}.gallery-toggle{font-size:10px!important;min-width:62px}.gallery-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.gallery-frame{touch-action:pan-y}@media(max-width:900px){.gallery-controls{flex-wrap:wrap}.gallery-caption{order:3;flex-basis:100%;font-size:10px}.gallery-actions{margin-left:auto}}@media(prefers-reduced-motion:reduce){.gallery-slide{transition:none}}

/* Cross-fading hero backgrounds; foreground copy stays fixed. */
.hero>.hero-image{opacity:0;transition:opacity 1100ms ease;pointer-events:none}.hero>.hero-image.is-active{opacity:1}.hero>.hero-trio{background-image:url('/assets/classic-trio.png')}.hero>.hero-messi{background-image:url('/assets/world-cup-background.png?art=messi-classic');background-position:75% center}.hero-slider-controls{position:absolute;left:6%;bottom:25px;z-index:2;display:flex;align-items:center;gap:9px}.hero-slide-dot{border:0;padding:0;width:30px;height:32px;background:none;position:relative}.hero-slide-dot:before{content:'';position:absolute;left:0;right:0;top:14px;height:3px;border-radius:4px;background:#a8b1a367}.hero-slide-dot.is-active:before{background:var(--lime)}.hero-slide-toggle{margin-left:9px;padding:5px 12px;border:1px solid #ffffff28;border-radius:3px;color:#cad7c7;background:#0b100e85;font-size:10px;min-height:32px}.hero-slide-toggle:hover{border-color:var(--lime);color:var(--lime)}@media(max-width:640px){.hero-slider-controls{left:6%;bottom:20px}.hero>.hero-messi{background-position:68% center}.scroll-hint{bottom:28px;font-size:9px}}@media(prefers-reduced-motion:reduce){.hero>.hero-image{transition:none}}

/* Keep low-resolution classic artwork near its original pixel dimensions. */
.hero{height:640px;min-height:0;background:radial-gradient(ellipse at 78% 42%,#28302155,transparent 60%),#0b100e}
.hero>.hero-image{inset:85px 5% auto auto;width:min(52vw,712px);height:auto;aspect-ratio:712/392;background-size:contain;background-repeat:no-repeat;background-position:center;transform:none;filter:none;mask-image:radial-gradient(ellipse 78% 85% at 58% 47%,#000 35%,transparent 86%)}
.hero>.hero-messi{width:min(52vw,742px);aspect-ratio:742/386;background-position:center}
.hero-content{padding-top:36px}.hero h1{font-size:56px;margin:18px 0;line-height:1.24}.hero h1 em{font-size:36px}.hero .lead{font-size:13px;line-height:1.85}.hero-actions{margin-top:26px}.hero-caption{margin-top:20px}
.hero-shade{background:linear-gradient(90deg,#0b100ef0 0%,#0b100ed9 31%,#0b100e30 63%,transparent 85%),linear-gradient(0deg,#0b100e,transparent 45%)}
.season-stamp{top:62px;right:6%;opacity:.45}
@media(max-width:1100px){.hero>.hero-image{right:0;top:110px;width:min(60vw,712px)}.hero>.hero-messi{width:min(60vw,742px)}.hero-shade{background:linear-gradient(90deg,#0b100ef5,#0b100ebb 37%,#0b100e30 75%),linear-gradient(0deg,#0b100e,transparent 50%)}}
@media(max-width:640px){.hero{height:650px}.hero-content{padding-top:42px}.hero h1{font-size:46px;line-height:1.3}.hero h1 em{font-size:33px}.hero .lead{font-size:12px;line-height:1.9}.hero>.hero-image{width:100%;right:-19%;top:185px}.hero>.hero-messi{width:100%}.hero-shade{background:linear-gradient(90deg,#0b100ef2,#0b100ec5 40%,#0b100e60),linear-gradient(0deg,#0b100e,transparent 65%)}.hero-caption{font-size:8px}.hero-actions{gap:20px}}

/* The original start-screen texture stores its illustration in the top portion. */
.gallery-slide .start-screen-shot{height:auto;min-height:100%;width:100%;object-fit:initial;object-position:top;position:absolute;top:0;left:0}

.gallery-slide .promo-shot{object-fit:contain;max-width:550px;max-height:344px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}

/* Additional original start-screen and supplied promotional hero artwork. */
.hero>.hero-start{background-image:url('/assets/game-start-original.png');width:min(52vw,900px);aspect-ratio:2048/1080;background-size:100% auto;background-position:center top;mask-image:radial-gradient(ellipse 78% 85% at 58% 47%,#000 35%,transparent 86%)}
.hero>.hero-promo{background-image:url('/assets/messi-classic-cropped.png');width:min(48vw,550px);aspect-ratio:550/344;background-size:contain;background-position:center;top:105px;mask-image:radial-gradient(ellipse 85% 90% at 50% 48%,#000 48%,transparent 92%)}
@media(max-width:1100px){.hero>.hero-start{width:min(60vw,900px)}.hero>.hero-promo{width:min(60vw,550px)}}
@media(max-width:640px){.hero>.hero-start,.hero>.hero-promo{width:100%;right:-19%;top:185px}.hero-slider-controls{gap:6px}.hero-slide-dot{width:23px}}

/* User-requested crop removes the right-hand logo; retain native image size. */
.hero>.hero-promo{width:min(44vw,326px);aspect-ratio:326/344;right:12%;top:105px;background-size:contain}.gallery-slide .promo-shot{max-width:326px;max-height:344px;width:auto;height:auto;max-inline-size:min(100%,326px)}@media(max-width:1100px){.hero>.hero-promo{width:min(44vw,326px);right:8%}}@media(max-width:640px){.hero>.hero-promo{width:min(72vw,326px);right:3%;top:180px}.gallery-slide .promo-shot{max-height:100%;width:auto;height:100%}}

/* Readable Thai typography across desktop and mobile. */
body{font-family:"Leelawadee UI",Tahoma,"Segoe UI",sans-serif;font-size:17px;line-height:1.85}
h1,h2,h3,h4,p,nav,label,input,button,summary{font-family:inherit}
p,.hero .lead,.memory-grid p,.feature p,.steps p,.faq details p,.menu-card p,.game-art-copy>p:not(.eyebrow),.section-heading>p,.muted,.auth-body>.muted{font-size:17px;line-height:1.85}
nav,.outline,.primary,.text-button,.steps a,.faq summary,label,input,.release-line,.download-box>p,.roster-stats span,.roster-tail p{font-size:16px}
small,label small,.small-muted,.download-note,.catalog-note,.art-caption,.gallery-caption,.gallery-toggle,.hero-caption,.scroll-hint,footer p,footer>span,.player-info p,.menu-card h4{font-size:14px!important;line-height:1.8}
.eyebrow{font-size:13px;letter-spacing:1.8px}.menu-card h3,.player-info h3{font-size:18px;line-height:1.6}.memory-grid h3,.steps h3{font-size:22px}
.hero-caption{letter-spacing:1px}.hero-content{max-width:1150px}.hero .lead{max-width:570px}.hero{height:auto;min-height:720px}.hero-slider-controls{bottom:20px}.hero-caption{padding-bottom:48px}
@media(max-width:640px){body{font-size:16px}.hero .lead,.memory-grid p,.menu-card p,.game-art-copy>p:not(.eyebrow),.steps p{font-size:16px}.hero{height:auto;min-height:780px}.hero-content{padding-top:38px;padding-bottom:70px}.hero-caption{max-width:310px}.hero h1{font-size:44px}.hero-actions{gap:16px}.roster-stats span{font-size:14px}.player-info h3{font-size:16px}.menu-card h4{margin-bottom:10px}}

/* Live server rankings */
.rank-page {
  min-height: 90vh;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.rank-intro {
  background:
    linear-gradient(0deg, var(--bg), transparent 60%),
    linear-gradient(90deg, #0b100ef2, #101d16b5 47%, #0b181c38),
    url('/assets/stadium-night.png') center 43% / cover;
}
.rank-intro-inner {
  display: grid;
  grid-template-columns: 1fr minmax(200px, .8fr);
  align-items: center;
  gap: 32px;
  width: min(1150px, calc(100% - 2 * clamp(18px, 6vw, 104px)));
  min-height: 370px;
  margin-inline: auto;
  padding-block: 38px 52px;
}
.rank-intro h1 {
  margin: 8px 0 14px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.25;
  letter-spacing: -.035em;
}
.rank-description {
  margin: 0;
  color: #d2dcd4;
  font-size: clamp(15px, 1.5vw, 18px);
}
.rank-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 25px 0 0;
  color: #d2dcd4;
}
.rank-count strong {
  color: var(--lime);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}
.rank-pyramid {
  width: clamp(200px, 24vw, 290px);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 12px 25px #0009);
}
.rank-board {
  width: min(1150px, calc(100% - 2 * clamp(18px, 6vw, 104px)));
  margin-inline: auto;
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #121c16;
}
.rank-board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rank-board h2 {
  margin: 0;
  font-size: clamp(19px, 2.7vw, 30px);
  font-weight: 700;
}
.rank-board-heading button {
  flex: none;
  padding: 8px 12px;
}
.rank-board-heading button span { margin-left: 4px; }
.rank-table-wrap { overflow-x: auto; }
.rank-table-wrap:focus-visible { outline: 2px solid var(--lime); }
.rank-table {
  width: 100%;
  min-width: 590px;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.rank-table th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.rank-table td {
  padding: 18px 10px;
  border-bottom: 1px solid #ffffff12;
  font-size: 16px;
}
.rank-table tbody tr:last-child td { border-bottom: 0; }
.rank-table td:nth-child(2) { font-weight: 700; overflow-wrap: anywhere; }
.rank-table small { display: block; color: var(--muted); font-weight: 400; }
.rank-position { color: var(--muted); font-weight: 700; }
.rank-place-1 { color: #f7d27b; }
.rank-place-2 { color: #b7c9ce; }
.rank-place-3 { color: #d9a581; }
.rank-points { color: var(--lime); font-weight: 700; }
.rank-division { color: var(--gold); }
#rank-status { margin: 8px 0 15px; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .rankings header .brand small { font-size: 9px; letter-spacing: 1px; }
  .rankings header .outline { white-space: nowrap; padding-inline: 10px; }
  .rank-intro-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 32px;
  }
  .rank-pyramid { width: 184px; }
  .rank-table { min-width: 465px; table-layout: fixed; }
  .rank-table th:first-child { width: 49px; }
  .rank-table th:nth-child(2) { width: 108px; }
  .rank-table th:nth-child(3) { width: 94px; }
  .rank-table th:nth-child(4) { width: 48px; }
  .rank-table th, .rank-table td { padding-inline: 8px; }
  .rank-table td { font-size: 14px; }
}

.download-box .download-obt{color:var(--lime);font-size:20px;font-weight:700}
.download-access-form{margin-top:20px}
.download-access-controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.download-access-controls input{flex:1 1 130px;width:0;min-width:0;margin:0}
#download-access-submit{padding:10px 13px}
#download-button:disabled{opacity:.45;cursor:not-allowed;transform:none}
#download-button:disabled:hover{background:var(--lime)}


/* Mobile-only FO3 THAI Classic layout (desktop styles intentionally unchanged). */
.mobile-menu{display:none}
@media (max-width:900px){
  header>nav{display:none}
  .mobile-menu{display:block;position:relative;flex:0 0 auto;margin-left:auto;z-index:35}
  .mobile-menu>summary{list-style:none;display:flex;align-items:center;justify-content:center;width:46px;height:46px;border:1px solid #ffffff42;border-radius:6px;background:#16221b;color:var(--lime);font:26px/1 Arial,sans-serif;cursor:pointer;user-select:none}
  .mobile-menu>summary::-webkit-details-marker{display:none}
  .mobile-menu>summary::marker{content:""}
  .mobile-menu[open]>summary{border-color:var(--lime);background:#233427}
  .mobile-menu>summary:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
  .mobile-menu-panel{position:absolute;right:0;top:calc(100% + 12px);width:min(296px,calc(100vw - 24px));padding:8px;border:1px solid #d7fa7840;border-radius:9px;background:#101b15;box-shadow:0 20px 45px #000c}
  .mobile-menu-panel a{display:block;padding:12px 15px;border-radius:5px;color:#f1f5ea;font-size:16px;line-height:1.5}
  .mobile-menu-panel a:hover,.mobile-menu-panel a:focus-visible,.mobile-menu-panel a[aria-current="page"]{background:#253b29;color:var(--lime)}
  header>.outline{flex:0 0 auto;white-space:nowrap}
  .download{grid-template-columns:minmax(0,1fr);gap:28px}
  .download-box{width:100%;max-width:570px}
  .game-art{grid-template-columns:minmax(0,1fr);gap:24px}
  .game-gallery,.rank-board,.rank-intro-copy{min-width:0}
  .memory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  html{scroll-padding-top:74px}
  header{height:68px;padding-inline:12px;gap:8px}
  header .brand{flex:0 1 auto;min-width:0;gap:6px}
  header .brand>b{font-size:30px;letter-spacing:-3px}
  header .brand div{font-size:13px;letter-spacing:1px;white-space:nowrap}
  header .brand small{font-size:8px!important;letter-spacing:.5px;line-height:1.45}
  header #nav-account,.rankings header>.outline{padding:8px 9px;font-size:12px;min-height:42px}
  header #nav-account span{display:none}
  .mobile-menu>summary{width:42px;height:42px;font-size:23px}
  .hero{height:auto;min-height:0}
  .hero-content{padding:36px 6% 92px}
  .hero h1{font-size:clamp(34px,10.5vw,44px);line-height:1.27}
  .hero h1 em{font-size:clamp(27px,8.4vw,34px)}
  .hero .lead{font-size:15px;line-height:1.8;max-width:36ch;overflow-wrap:break-word}
  .hero .lead br{display:none}
  .hero-actions{gap:12px;align-items:center;flex-wrap:wrap;margin-top:22px}
  .hero-actions .primary{min-height:48px}
  .hero-actions .text-button{min-height:44px}
  .hero-caption{padding-bottom:24px;overflow-wrap:anywhere}
  .hero-slider-controls{bottom:14px}
  .scroll-hint{display:none}
  .ticker{font-size:14px;padding:15px 18px;gap:25px}
  .section{padding:42px 5%}
  .section-heading{margin-bottom:24px}
  .section-heading h2,h2{font-size:clamp(25px,7vw,30px);line-height:1.46}
  .features,.steps,.memory-grid,.download,.game-art{grid-template-columns:minmax(0,1fr)}
  .feature{height:235px}
  .feature>div{left:18px;right:16px;bottom:18px}
  .feature h3{font-size:20px}
  .roster-stats{gap:0}
  .roster-stats>div{padding-inline:6px}
  .roster-stats strong{font-size:clamp(21px,6.5vw,30px);letter-spacing:-1px}
  .roster-stats span{font-size:12px!important;line-height:1.45}
  .player-grid{gap:10px}
  .download-box{padding:22px 18px}
  .download-access-controls{flex-direction:column;align-items:stretch}
  .download-access-controls input{flex:none;width:100%;min-height:48px;font-size:16px}
  #download-access-submit{min-height:46px}
  .gallery-controls{gap:9px}
  .gallery-actions button{min-height:40px}
  .rank-intro-inner{width:calc(100% - 36px)}
  .rank-board{width:calc(100% - 24px);padding:15px 11px}
  .rank-board-heading{align-items:flex-start}
  .rank-board-heading button{min-height:40px}
  .rank-table-wrap{-webkit-overflow-scrolling:touch}
  dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto}
  .auth-body,.member-content{padding:30px 20px 20px}
  .auth-body input{font-size:16px}
}
@media (max-width:370px){
  header .brand div{font-size:11px;letter-spacing:.2px}
  header .brand>b{font-size:28px}
  .rankings header>.outline{font-size:11px;padding:7px 6px}
  .mobile-menu>summary{width:40px;height:40px}
  .hero .lead{font-size:14px}
  .roster-stats strong{font-size:20px}
}


/* Keep expanded navigation fully inside narrow mobile viewports. */
@media (max-width:900px){
  .mobile-menu-panel{position:fixed;right:12px;top:79px;max-height:calc(100dvh - 92px);overflow-y:auto;overscroll-behavior:contain}
}
@media (max-width:640px){
  .mobile-menu-panel{top:69px;max-height:calc(100dvh - 80px)}
}
