/* Farland homepage and game pages. Loaded after styles.css (the
   base stylesheet), which stays unchanged. */
body.site{background:radial-gradient(1200px 600px at 15% -10%,#1f3a52 0%,transparent 60%),radial-gradient(900px 500px at 100% 10%,#2a1f45 0%,transparent 55%),var(--bg);background-attachment:fixed}
body.site header,body.site main,body.site footer{width:min(1080px,calc(100% - 40px))}
body.site header{border-bottom:0}
body.site .brand img{border-radius:12px}

/* Hero */
.hero{display:grid;grid-template-columns:auto 1fr;gap:34px;align-items:center;padding:40px 0 18px}
.hero img{width:132px;height:132px;border-radius:32px;box-shadow:0 18px 50px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.06)}
.hero h1{font-size:clamp(34px,6vw,58px);margin:4px 0 10px;letter-spacing:-.03em}
.hero .lead{margin:0;max-width:640px}
.section-title{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 16px;margin:56px 0 20px}
.section-title h2{margin:0;font-size:28px;white-space:nowrap}
.section-title h2 span{font-size:18px;color:var(--muted);font-weight:500}
.section-title>span{color:var(--muted);font-size:14px}

/* Game cards: the whole card is a link to the game's page */
.game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.game-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:24px;background:linear-gradient(180deg,#1d3040 0%,#16232f 100%);overflow:hidden;color:var(--ink);text-decoration:none;box-shadow:0 10px 30px rgba(0,0,0,.25);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.game-card{position:relative}
.card-link{color:inherit;text-decoration:none}
.card-link::after{content:"";position:absolute;inset:0;z-index:1;border-radius:24px}
.card-link:focus-visible{outline:none}
.game-card:hover,.game-card:focus-visible,.game-card:focus-within{transform:translateY(-5px);border-color:var(--accent);box-shadow:0 22px 50px rgba(0,0,0,.45)}
.game-card .cover{aspect-ratio:1024/500;background:#0b1118;overflow:hidden}
.game-card .cover img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.game-card:hover .cover img{transform:scale(1.04)}
.card-body{display:flex;flex-direction:column;gap:12px;padding:20px 22px 22px;flex:1}
.card-head{display:flex;align-items:center;gap:14px}
.card-head img{width:56px;height:56px;border-radius:14px;flex:none;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.card-head h3{margin:0;font-size:21px;line-height:1.3}
.card-head p{margin:2px 0 0;color:var(--muted);font-size:14px;line-height:1.4}
.card-body .desc{margin:0;color:var(--muted);font-size:15px;line-height:1.7}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.tags li{font-size:12.5px;letter-spacing:.02em;color:var(--accent);border:1px solid #3d6168;border-radius:999px;padding:2px 11px;background:rgba(182,226,217,.06)}
.more{margin-top:auto;padding-top:6px;color:var(--accent);font-weight:600;font-size:15px}
.more::after{content:" →";transition:margin .18s}
.game-card:hover .more::after{margin-left:4px}

/* Store download buttons; add Google Play / Steam as more .store-btn links */
.stores{display:flex;flex-wrap:wrap;gap:10px;position:relative;z-index:2}
.store-btn{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:6px 18px 6px 14px;border-radius:12px;background:#000;color:#fff;border:1px solid #5d6b75;text-decoration:none;font-weight:600;font-size:18px;line-height:1.1;transition:border-color .18s,transform .18s}
.store-btn small{display:block;font-size:11px;font-weight:500;letter-spacing:.02em;opacity:.85}
.store-btn:hover{border-color:var(--accent);transform:translateY(-1px)}
.detail .stores{margin:22px 0 4px}

/* Game detail page */
.banner{border-radius:26px;overflow:hidden;border:1px solid var(--line);box-shadow:0 20px 60px rgba(0,0,0,.4);aspect-ratio:1024/400;background:#0b1118}
.banner img{width:100%;height:100%;object-fit:cover;display:block}
.title-row{display:flex;align-items:center;gap:22px;margin:-46px 0 0 28px;position:relative}
.title-row img{width:104px;height:104px;border-radius:26px;border:4px solid var(--bg);box-shadow:0 12px 30px rgba(0,0,0,.45)}
.title-row h1{margin:46px 0 0;font-size:clamp(28px,5vw,44px)}
.title-row p{margin:2px 0 0;color:var(--muted)}
.detail .lead{margin-top:26px}
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:30px 0;padding:0;list-style:none}
.features li{border:1px solid var(--line);border-radius:18px;background:var(--panel);padding:18px 20px;font-size:15px;color:var(--muted)}
.features strong{display:block;color:var(--ink);font-size:17px;margin-bottom:4px}
.shots{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:30px 0;max-width:820px}
.shots img{width:100%;height:auto;border-radius:20px;border:1px solid var(--line);box-shadow:0 14px 34px rgba(0,0,0,.4);display:block}
.button-row{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0}
.button-row a{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--ink);text-decoration:none;font-weight:600;font-size:15px}
.button-row a:hover{border-color:var(--accent)}
.button-row a.primary{background:var(--accent);color:#10202a;border-color:var(--accent)}

@media(max-width:700px){.hero{grid-template-columns:1fr;gap:18px;padding-top:24px}.hero img{width:96px;height:96px;border-radius:24px}.shots{grid-template-columns:repeat(3,minmax(140px,1fr));overflow-x:auto}.title-row{margin:-34px 0 0 14px;gap:14px}.title-row img{width:78px;height:78px;border-radius:20px}.title-row h1{margin-top:34px}.game-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.game-card,.game-card .cover img,.more::after{transition:none}}

/* Playable games */
.play-wrap{display:grid;grid-template-columns:auto 1fr;gap:34px;align-items:start;margin:34px 0 10px}
.player{position:relative;height:min(82vh,860px);aspect-ratio:var(--ratio,9/16);max-width:100%;border-radius:26px;overflow:hidden;border:1px solid var(--line);background:#0b1118;box-shadow:0 24px 60px rgba(0,0,0,.45)}
.player iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.player .start{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;border:0;padding:24px;cursor:pointer;color:var(--ink);font:inherit;background:radial-gradient(500px 400px at 50% 35%,rgba(182,226,217,.16),transparent 70%),#0d1822}
.player .start img{width:112px;height:112px;border-radius:28px;box-shadow:0 14px 36px rgba(0,0,0,.5)}
.player .start .go{display:inline-flex;align-items:center;gap:10px;min-height:54px;padding:0 30px;border-radius:999px;background:var(--accent);color:#10202a;font-weight:700;font-size:19px}
.player .start .go::before{content:"";border-style:solid;border-width:8px 0 8px 13px;border-color:transparent transparent transparent currentColor}
.player .start small{color:var(--muted);font-size:13px}
.player .start:hover .go,.player .start:focus-visible .go{filter:brightness(1.08)}
.play-side .title-row{margin:0;gap:18px}
.play-side .title-row h1{margin:0}
.play-side .title-row img{width:84px;height:84px;border-radius:22px;border:0}
.play-side .lead{margin-top:20px}
.play-side .features{grid-template-columns:1fr;gap:12px;margin:22px 0}
.coming{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:260px;border:1px dashed var(--line);border-radius:24px;color:var(--muted);text-align:center;padding:28px}
.coming strong{color:var(--ink);font-size:20px}
.free-badge{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;letter-spacing:.04em;color:#10202a;background:var(--accent);border-radius:999px;padding:3px 12px}
@media(max-width:900px){.play-wrap{grid-template-columns:1fr}.player{height:auto;width:100%;max-height:none}}
