/* Face32: Draw Poker — face32.com
   Self-contained. No external fonts, no analytics, no third-party requests. */

:root {
    --bg:        #06110d;
    --bg-alt:    #0a1c15;
    --felt:      #0d2a20;
    --felt-lit:  #124234;
    --wine:      #6d1b26;
    --wine-lit:  #8f2632;
    --gold:      #d9b061;
    --gold-lit:  #f0d79a;
    --gold-deep: #96702a;
    --gold-line: rgba(217, 176, 97, 0.28);
    --ivory:     #f3ead6;
    --muted:     #9fae9f;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ivory);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lit); text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* ---------- header ---------- */

header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6, 17, 13, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-line);
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 68px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.brand span {
    font-family: var(--serif);
    font-size: 20px;
    letter-spacing: 0.06em;
    color: var(--ivory);
}

/* The bar is a flex row, but this nav was not: the links are inline and the
   language picker is a <div>, so the div forced a line break and the picker
   dropped under them. It looked like a responsive-width problem and was not —
   it happened at every width. */
nav.site {
    display: flex;
    align-items: center;
}

nav.site a {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 26px;
    text-decoration: none;
    white-space: nowrap;
}
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--gold); }

/* ---------- language picker ---------- */

/* The width is reserved before the picker exists. i18n.js builds the <select>
   after the document parses, and an empty slot that then grows would shove the
   nav sideways in front of the reader. */
.lang-pick {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 26px;
    min-width: 150px;
    justify-content: flex-end;
}

.lang-label {
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 1;
    opacity: 0.75;
}

.lang-select {
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: rgba(13, 42, 32, 0.85);
    border: 1px solid var(--gold-line);
    border-radius: 7px;
    padding: 6px 9px;
    cursor: pointer;
    max-width: 150px;
}
.lang-select:hover { color: var(--gold); border-color: var(--gold-deep); }
.lang-select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Safari and Firefox paint the drop-down list itself with the OS palette, so
   each row is given the site's colours rather than dark-on-dark. */
.lang-select option { background: #0a1c15; color: var(--ivory); }

/* The picker is the only control that has to stay legible to someone who
   cannot read the page, so it survives the mobile nav wrap on its own row. */
@media (max-width: 860px) {
    .lang-pick { margin-left: 0; min-width: 0; justify-content: center; }
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

/* ---------- the translation gate ---------- */

/* Held for the few milliseconds a same-origin language file takes to arrive,
   so nobody reads a sentence in English and watches it change under them.
   Three things guarantee it always lifts: i18n.js removes it on apply, on the
   script's onerror, and on a 2.5s timer. It is only ever added by script, so
   a visitor without JavaScript can never be caught behind it. */
html.i18n-loading body { visibility: hidden; }

/* ---------- hero ---------- */

.hero {
    position: relative;
    padding: 96px 0 84px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--gold-line);
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/lobby-bg.jpg") center/cover no-repeat;
    opacity: 0.30;
    filter: saturate(0.8);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 35%, rgba(18,66,52,0.55) 0%, rgba(6,17,13,0.92) 62%, var(--bg) 100%);
}
.hero > * { position: relative; z-index: 2; }

.hero-mark { width: 168px; margin: 0 auto 26px; border-radius: 26px; box-shadow: 0 18px 50px rgba(0,0,0,0.55); }

h1 {
    font-family: var(--serif);
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.06;
    margin: 0 0 6px;
    letter-spacing: 0.01em;
    color: var(--ivory);
}
.hero .sub {
    font-family: var(--serif);
    font-size: clamp(18px, 2.6vw, 24px);
    color: var(--gold);
    letter-spacing: 0.04em;
    margin: 0 0 22px;
}
.hero .lede {
    max-width: 620px;
    margin: 0 auto 30px;
    color: var(--muted);
    font-size: 18px;
}

.badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--gold-line);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(13, 42, 32, 0.6);
}
.pill.age { border-color: var(--wine-lit); color: #ffd7db; background: rgba(109, 27, 38, 0.5); }

/* ---------- get it on ---------- */

.get-it {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-top: 32px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #000;
    color: var(--ivory);
    border: 1px solid var(--gold-line);
    border-radius: 16px;
    padding: 14px 30px 14px 22px;
    text-align: left;
    text-decoration: none;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}
a.store-btn:hover {
    border-color: var(--gold);
    color: var(--ivory);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.store-btn .st-ico { flex: none; display: flex; }
.store-btn small {
    display: block;
    font-size: 12.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    line-height: 1.3;
}
.store-btn b {
    display: block;
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
}
.store-btn.disabled { opacity: 0.5; cursor: default; }

.get-it-note {
    margin: 18px auto 0;
    max-width: 560px;
    color: var(--muted);
    font-size: 14px;
}

/* ---------- sections ---------- */

section { padding: 76px 0; border-bottom: 1px solid rgba(217,176,97,0.12); }
section.alt { background: var(--bg-alt); }

h2 {
    font-family: var(--serif);
    font-size: clamp(28px, 4.2vw, 40px);
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--ivory);
}
h3 {
    font-family: var(--serif);
    font-size: 22px;
    margin: 34px 0 8px;
    color: var(--gold-lit);
}
.kicker {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0 0 12px;
}
p { margin: 0 0 18px; }
.muted { color: var(--muted); }

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 54px;
    align-items: center;
}

/* ---------- card fan ---------- */

.fan { display: flex; justify-content: center; padding: 10px 0; }
.fan img {
    width: 108px;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.55);
    margin-left: -26px;
    border: 1px solid rgba(0,0,0,0.4);
}
.fan img:first-child { margin-left: 0; }
.fan img:nth-child(1) { transform: rotate(-9deg) translateY(10px); }
.fan img:nth-child(2) { transform: rotate(-4.5deg) translateY(2px); }
.fan img:nth-child(3) { transform: rotate(0deg); }
.fan img:nth-child(4) { transform: rotate(4.5deg) translateY(2px); }
.fan img:nth-child(5) { transform: rotate(9deg) translateY(10px); }

/* ---------- showdown (flush vs full house) ---------- */

.showdown-intro { max-width: 760px; margin-bottom: 40px; }
.showdown-intro p:last-child { margin-bottom: 0; }

.showdown {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 26px;
}

.hand {
    border: 1px solid rgba(217,176,97,0.16);
    border-radius: 16px;
    padding: 24px 20px 18px;
    background: rgba(13, 42, 32, 0.38);
    text-align: center;
}
.hand.win {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(18,66,52,0.62) 0%, rgba(13,42,32,0.42) 100%);
    box-shadow: 0 0 0 1px rgba(217,176,97,0.18), 0 22px 48px rgba(0,0,0,0.45);
}
.hand.lose { opacity: 0.86; }

.hand-rank {
    font-family: var(--serif);
    font-size: 25px;
    color: var(--ivory);
    margin: 0 0 4px;
    letter-spacing: 0.02em;
}
.hand.win .hand-rank { color: var(--gold-lit); }

.hand-rank .tag {
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #06110d;
    background: var(--gold);
    border-radius: 999px;
    padding: 3px 11px;
    line-height: 1.5;
}

.hand-name {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 18px;
    min-height: 42px;
}

.hand .odds {
    margin: 14px 0 0;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.hand .odds b {
    font-family: var(--serif);
    font-size: 21px;
    margin-left: 5px;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--gold);
    margin-right: 7px;
}
.hand.lose .odds b { color: var(--muted); }

.beats {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    flex: none;
    border-radius: 50%;
    border: 1px solid var(--gold-line);
    background: var(--wine);
    box-shadow: 0 10px 26px rgba(0,0,0,0.5);
}
.beats span {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-lit);
}

.fan.duo { padding: 0; }
.fan.duo img { width: 88px; margin-left: -30px; }
.fan.duo img:first-child { margin-left: 0; }
.fan.duo img:nth-child(1) { transform: rotate(-7deg) translateY(8px); }
.fan.duo img:nth-child(2) { transform: rotate(-3.5deg) translateY(2px); }
.fan.duo img:nth-child(3) { transform: rotate(0deg); }
.fan.duo img:nth-child(4) { transform: rotate(3.5deg) translateY(2px); }
.fan.duo img:nth-child(5) { transform: rotate(7deg) translateY(8px); }

.showdown-foot { max-width: 760px; margin: 40px auto 0; text-align: center; }
.showdown-foot p:last-child { margin-bottom: 0; }

/* ---------- ranking ---------- */

.ranking { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.ranking li {
    counter-increment: rank;
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 11px 16px;
    border: 1px solid rgba(217,176,97,0.14);
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(13, 42, 32, 0.35);
}
.ranking li::before {
    content: counter(rank);
    font-family: var(--serif);
    color: var(--gold-deep);
    width: 22px;
    text-align: right;
    flex: none;
}
.ranking li.flag {
    border-color: var(--gold);
    background: rgba(109, 27, 38, 0.34);
}
.ranking li.flag::before { color: var(--gold); }
.ranking .note { color: var(--muted); font-size: 14px; margin-left: auto; padding-left: 14px; text-align: right; }

/* ---------- faces ---------- */

.faces {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 14px;
    margin-top: 30px;
}
.faces figure { margin: 0; }
.faces img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--gold-line);
    filter: saturate(0.94);
}
.faces figcaption {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 7px;
    text-align: center;
}

/* ---------- fact grid ---------- */

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
    gap: 16px;
    margin-top: 26px;
}
.fact {
    border: 1px solid var(--gold-line);
    border-radius: 12px;
    padding: 20px 20px 18px;
    background: rgba(13, 42, 32, 0.4);
}
.fact b {
    display: block;
    font-family: var(--serif);
    font-size: 19px;
    color: var(--gold-lit);
    font-weight: 600;
    margin-bottom: 4px;
}
.fact span { color: var(--muted); font-size: 15px; }

/* ---------- callout / disclaimer ---------- */

.callout {
    border: 1px solid var(--gold-line);
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
    background: rgba(13, 42, 32, 0.5);
    padding: 22px 24px;
    margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }

.disclaimer {
    background: var(--wine);
    background: linear-gradient(180deg, rgba(109,27,38,0.85), rgba(70,16,24,0.9));
    text-align: center;
    padding: 46px 0;
    border-bottom: none;
}
.disclaimer p { max-width: 760px; margin: 0 auto; color: #fbe7e9; font-size: 16px; }
.disclaimer strong { color: #fff; }

/* ---------- contact ---------- */

.contact-card {
    border: 1px solid var(--gold-line);
    border-radius: 14px;
    padding: 28px;
    background: rgba(13, 42, 32, 0.45);
    margin-bottom: 18px;
}
.contact-card .email {
    font-family: var(--serif);
    font-size: clamp(20px, 3.4vw, 28px);
    color: var(--gold-lit);
    word-break: break-word;
}

/* ---------- legal pages ---------- */

.legal { padding: 56px 0 76px; }
.legal h2 { font-size: 26px; margin-top: 40px; }
.legal ul { padding-left: 22px; color: var(--ivory); }
.legal li { margin-bottom: 9px; }
.updated { color: var(--muted); font-size: 14px; letter-spacing: 0.06em; }

/* The "English governs" notice on the three legal pages.
   It exists ONLY in a translation: the English page has nothing to say about
   which version prevails, so the element is left empty there and `:empty`
   removes it along with its margins. Without that rule an English reader gets
   a silent blank gap under the date. */
.xlate-note {
    margin: 18px 0 26px;
    padding: 12px 16px;
    border-left: 3px solid var(--gold-deep);
    background: rgba(217, 176, 97, 0.06);
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
}
.xlate-note:empty { display: none; }

/* ---------- footer ---------- */

footer.site {
    background: var(--bg);
    padding: 44px 0 56px;
    text-align: center;
    border-top: 1px solid var(--gold-line);
}
footer.site nav { margin-bottom: 18px; }
footer.site nav a {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 13px;
    display: inline-block;
    line-height: 2.2;
}
footer.site nav a:hover { color: var(--gold); }
.copyright { color: #6f7d6f; font-size: 13px; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; gap: 34px; }
    .bar { height: auto; padding: 12px 0; flex-direction: column; gap: 8px; }
    nav.site { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }
    nav.site a { margin: 0; font-size: 13px; }
    section { padding: 58px 0; }
    .hero { padding: 64px 0 58px; }
    .get-it { gap: 12px; }
    .store-btn { padding: 12px 24px 12px 18px; gap: 12px; min-width: 236px; }
    .store-btn b { font-size: 21px; }
    .store-btn .st-ico svg { width: 29px; height: auto; }
    .fan img { width: 76px; margin-left: -20px; }
    .showdown { grid-template-columns: 1fr; gap: 16px; }
    .beats { margin: 0 auto; width: 62px; height: 62px; }
    .hand-name { min-height: 0; }
    .fan.duo img { width: 74px; margin-left: -24px; }
    .showdown-foot { margin-top: 32px; }
    .ranking li { flex-wrap: wrap; }
    .ranking .note { margin-left: 36px; padding-left: 0; text-align: left; width: 100%; }
}
