/* home.css - the landing page (landing.html), over landing.css (the site's type, colours, top bar and footer).
   Pictures come from the data volume (/media/*, online/server/site.go), never from git: the official card artwork
   (card-<passcode>, YGOPRODeck's crops), the duelists' bust-ups cut from the game, and pictures generated from the
   game's art as references (the hero video, Ways to play, the Discord table). */

/* the card artwork as a framed window (a card's picture: 187 x 201) */
.art { position: relative; overflow: hidden; border-radius: 4px; background: #000; box-shadow: 0 0 0 1px #ffc94d55, 0 0 0 4px #0b0a10, 0 0 0 5px #ffffff1f, 0 30px 60px -24px #000; }
.art img { width: 100%; height: 100%; aspect-ratio: 187 / 201; object-fit: cover; }

/* the top bar lies over the hero and scrolls away with it (no scroll behaviour on this page by default) */
.top { position: absolute; }
@media (min-width: 760px) and (max-width: 959.98px) { .landing-page .nav { gap: 16px; } }

/* ---- hero: hero.css ---- */
.app-download { display: none; margin-top: 16px; font-size: 15px; }
.poc-android .app-download { display: block; }
.app-download a { color: var(--soft); text-decoration: underline; text-underline-offset: 4px; }
.app-download a:hover { color: var(--accent); }

/* ---- sections ---- */
main > section { position: relative; }
.head { margin-bottom: clamp(32px, 4vw, 56px); }
.head.row { display: grid; gap: 16px; }
.head > p { color: var(--muted); max-width: 30rem; }
@media (min-width: 900px) { .head.row { grid-template-columns: 1fr auto; align-items: end; } .head.row > p { text-align: right; } }

/* ways to play: two cards, single player and online */
.modes { padding: clamp(72px, 9vw, 140px) 0 clamp(48px, 6vw, 96px); }
.duo { display: grid; gap: 18px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.mode { position: relative; overflow: hidden; isolation: isolate; display: grid; align-items: end; min-height: 560px; border-radius: 6px; background: var(--raise); box-shadow: 0 0 0 1px var(--line); }
.mode .bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.mode::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, #07070a 4%, #07070ab3 34%, #07070a00 62%), linear-gradient(90deg, #07070a99, #07070a00 55%); }
.mode .meta { display: grid; gap: 10px; justify-items: start; padding: clamp(22px, 3vw, 40px); max-width: min(30rem, 60%); text-shadow: 0 1px 12px #000; }
@media (max-width: 559.98px) { .mode .meta { max-width: none; } }
.mode h3 { font: 400 clamp(40px, 4.4vw, 68px)/.95 var(--display); text-transform: uppercase; margin: 0; }
.mode p { color: var(--soft); }
.mode .btn { margin-top: 8px; }
.tag { padding: 6px 10px; border-radius: 3px; background: #ffc94d24; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
@media (max-width: 559.98px) { .mode { min-height: 520px; } }

/* gods and legends: the cards' own artwork */
.gods { padding: clamp(48px, 6vw, 96px) 0; }
.trio, .legends { display: grid; gap: 14px; }
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.legends { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.legends li:first-child { grid-column: 1 / -1; }
.legends li:first-child .art img { aspect-ratio: 16 / 10; object-position: 50% 40%; }
@media (min-width: 900px) { .legends { grid-template-columns: repeat(5, minmax(0, 1fr)); } .legends li:first-child { grid-column: auto; } .legends li:first-child .art img { aspect-ratio: 187 / 201; } }
.tile { position: relative; }
.tile .art { transition: transform .8s var(--ease); }
.tile:hover .art { transform: translateY(-4px); }
.tile p { display: grid; gap: 2px; margin-top: 14px; }
.tile b { font: 400 clamp(20px, 2vw, 30px)/1 var(--display); text-transform: uppercase; }
.tile span { color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.trio .tile b { font-size: clamp(22px, 3vw, 48px); }
.trio .art { box-shadow: 0 0 0 1px #ffc94d88, 0 0 0 5px #0b0a10, 0 0 0 6px #ffc94d44, 0 40px 80px -30px #8f6dff88; }
@media (max-width: 559.98px) { .trio { gap: 10px; } .trio .tile b { font-size: 18px; } .trio .tile span { display: none; } }

/* the old game: four facts, four cards' artwork (the gods' treatment) */
.old { padding: clamp(48px, 6vw, 96px) 0; background: radial-gradient(60% 50% at 70% 50%, #8f6dff22, transparent 70%); }
.old-grid { display: grid; gap: 40px; align-items: center; }
.old .facts { margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); }
.old .facts li { position: relative; padding: 18px 0 18px 28px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.4; }
.old .facts li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 2px; background: var(--accent); }
.quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quad .art { box-shadow: 0 0 0 1px #ffc94d88, 0 0 0 5px #0b0a10, 0 0 0 6px #ffc94d44, 0 40px 80px -30px #8f6dff88; }
@media (min-width: 900px) { .old-grid { grid-template-columns: 5fr 7fr; gap: 64px; } .quad { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* rankings: the live top five */
.ladder { padding: clamp(72px, 9vw, 140px) 0; overflow: hidden; isolation: isolate; background: radial-gradient(40% 60% at 20% 70%, #ffc94d14, transparent 70%); }
.ladder-grid { display: grid; gap: 40px; align-items: center; }
.ladder-grid p { color: var(--soft); margin: 18px 0 28px; max-width: 28rem; }
.top5 li { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto 3.6em; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid #ffffff22; font-size: 18px; font-variant-numeric: tabular-nums; }
.top5 li:last-child { border-bottom: 0; }
.top5 a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; text-decoration: none; padding-block: 10px; margin-block: -10px; }   /* a 44 px tap target in its row */
.top5 a:hover { color: var(--accent); }
.top5 .rec { color: var(--muted); font-size: .85em; }
.top5 .place { font: 400 30px/1 var(--display); }
.top5 .elo { text-align: right; font: 400 26px/1 var(--display); color: var(--accent); }
.top5:empty { display: none; }
@media (min-width: 900px) { .ladder-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Discord: the five friends at a card table (the right two thirds), the words over the dark wall on the left */
.discord { padding: 0 0 clamp(48px, 6vw, 96px); }
.disc { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(440px, 44vw, 620px); display: grid; align-items: center; border-radius: 8px; background: #1a120c; box-shadow: 0 0 0 1px var(--line); }
.disc .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.disc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #07070ae6 0%, #07070aa6 26%, #07070a00 46%); }
.disc-in { padding: clamp(24px, 4vw, 56px); max-width: 30rem; }
.disc-in p { color: var(--soft); margin: 16px 0 24px; }
@media (max-width: 759.98px) {
  .disc { min-height: 600px; align-items: end; }
  .disc .bg { height: 62%; object-position: 65% center; }
  .disc::before { background: linear-gradient(0deg, #120c08 38%, #120c08cc 50%, #120c0800 66%); }
}

/* questions */
.faq-band { padding: clamp(48px, 6vw, 96px) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; gap: 40px; }
.about { margin-top: 24px; display: grid; gap: 14px; color: var(--muted); max-width: 32rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .35s var(--ease); opacity: .7; }
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 52ch; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 5fr 7fr; gap: 96px; } }

/* the last call: Yami Yugi pointing at the reader over the words */
.last { padding: clamp(72px, 9vw, 140px) 0 clamp(80px, 10vw, 150px); text-align: center; overflow: hidden; background: radial-gradient(50% 60% at 50% 40%, #8f6dff26, transparent 70%); }
.last h2 { position: relative; z-index: 2; font-size: clamp(72px, 13vw, 220px); text-shadow: 0 6px 24px #000c; }
.last .ctas { justify-content: center; margin-top: 32px; }
@media (max-width: 559.98px) { .last .ctas .btn { flex: 1 1 100%; } }

/* Your move: Yami Yugi pointing at the reader, the picture alone */
.last .yugi { display: block; width: min(80%, 420px); height: auto; aspect-ratio: 1; margin: 0 auto 8px; }
