:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #efefeb;
  --text: #16181d;
  --muted: #5d6270;
  --line: #e2e2dc;
  --accent: #2f5bea;
  --accent-soft: #e6ecfd;
  --accent-text: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 8px 24px rgba(20, 20, 30, .06);
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a20;
    --surface-2: #1e222a;
    --text: #eceef2;
    --muted: #9aa0ad;
    --line: #2a2f39;
    --accent: #7c9cff;
    --accent-soft: #1d2640;
    --accent-text: #0f1115;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", "Noto Sans Thai", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.th { font-family: "Noto Sans Thai", "Inter", sans-serif; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px; cursor: pointer;
}

@media (max-width: 800px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; padding: 8px 12px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.section-title { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 40px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); letter-spacing: -.035em; }
.hero .name-th { color: var(--muted); font-size: 18px; margin-top: 8px; }
.hero .tagline { font-size: 18px; color: var(--muted); margin: 24px 0 32px; max-width: 540px; }
.hero .tagline strong { color: var(--text); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
  cursor: pointer; font-family: inherit;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.08); }
.portrait {
  position: relative; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, var(--accent-soft), var(--surface-2));
  aspect-ratio: 4 / 5; box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

@media (max-width: 800px) {
  .hero { padding: 40px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .portrait { max-width: 360px; order: -1; }
}

/* ---------- About / Resume ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin-bottom: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding-left: 22px; padding-bottom: 20px; border-left: 2px solid var(--line); margin-left: 5px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--surface);
}
.timeline li.applied { background: color-mix(in srgb, #3fae6a 14%, var(--surface)); border-radius: 0 10px 10px 0; padding-top: 8px; padding-right: 12px; padding-bottom: 10px; }
.timeline li.applied::before { background: #2e8f53; top: 14px; }
.timeline li.applied .when { color: #2e8f53; font-weight: 600; }
.timeline .when { font-size: 13px; color: var(--muted); font-weight: 500; }
.timeline .what { font-weight: 600; }
.timeline .where { color: var(--muted); font-size: 15px; }
.skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.skills li { display: flex; gap: 12px; align-items: flex-start; }
.skills li::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px;
  border-radius: 2px; background: var(--accent);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }

/* ---------- Academic record ---------- */
.grades { margin-top: 24px; }
.grade-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .grade-grid { grid-template-columns: 1fr 1fr; } .grade.main { grid-column: 1 / -1; } }
.grade { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.grade .label { font-size: 14px; font-weight: 600; }
.grade .value { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.grade.main .value { font-size: 44px; color: var(--accent); }
.grade .value small { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.grade .note { font-size: 13px; color: var(--muted); }
.grade-highlight {
  margin-top: 16px; padding: 14px 18px; border-radius: 10px;
  background: var(--accent-soft); color: var(--text); font-size: 15px;
}
.grade-highlight strong { color: var(--accent); }
.semesters { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.semesters .label { font-weight: 600; color: var(--text); }
.semesters b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Test scores ---------- */
.scores { margin-top: 24px; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .score-grid { grid-template-columns: 1fr; } }
.score { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.score .test { font-weight: 700; font-size: 15px; }
.score .test span { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.score .total {
  font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  color: var(--accent); margin: 8px 0 14px; font-variant-numeric: tabular-nums;
}
.score .total small { font-size: 16px; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.score dl { margin: 0; display: grid; gap: 6px; }
.score dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-top: 6px; border-top: 1px solid var(--line); }
.score dt { color: var(--muted); }
.score dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.score .date { font-size: 13px; color: var(--muted); margin-top: 12px; }
.score .date:empty { display: none; }

/* ---------- Certificates ---------- */
.certs { margin-top: 24px; }
.cert-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
@media (max-width: 520px) { .cert-grid { grid-template-columns: 1fr; } }
.cert {
  display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center;
  padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
.cert:hover { text-decoration: none; border-color: var(--accent); }
.cert img { width: 120px; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px var(--line), var(--shadow); background: #fff; }
.cert .issuer { font-size: 13px; color: var(--muted); font-weight: 500; }
.cert .cert-title { font-weight: 700; font-size: 17px; line-height: 1.3; margin: 4px 0 8px; }
.cert p { font-size: 14px; color: var(--muted); }
.cert .view { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }
@media (max-width: 420px) { .cert { grid-template-columns: 88px 1fr; gap: 14px; } .cert img { width: 88px; } }

.cert-subhead { font-size: 15px; margin: 28px 0 14px; }
.cert-thumbs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cert-thumbs figure {
  margin: 0; cursor: zoom-in; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: var(--bg);
}
.cert-thumbs img { width: 100%; aspect-ratio: 1.414 / 1; object-fit: cover; background: #fff; }
.cert-thumbs figcaption { padding: 10px 12px 12px; font-size: 13px; line-height: 1.4; }
.cert-thumbs figcaption b { display: block; font-size: 14px; }
.cert-thumbs figcaption span { color: var(--muted); }
.cert img { object-fit: cover; }

.sub-title { font-size: 18px; margin: 36px 0 4px; }
.renders.expo { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 800px) { .renders.expo { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Programs ---------- */
.programs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 400px) { .programs { grid-template-columns: 1fr; } }
.program {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.program.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.program .uni { display: flex; gap: 14px; align-items: center; }
.program .logo {
  flex: none; width: 56px; height: 56px; object-fit: contain; padding: 6px;
  background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line);
}
.program .uni strong { display: block; font-size: 16px; line-height: 1.35; }
.program .uni .th { display: block; font-size: 14px; color: var(--muted); }
.program .prog { font-size: 15px; }
.program .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.program .tag { font-size: 12px; padding: 3px 9px; }
.program .apply {
  align-self: flex-start; font-size: 14px; font-weight: 600;
  padding: 7px 12px; margin-top: 2px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
}
.program .apply:hover { text-decoration: none; filter: brightness(.97); }
.program.current .apply { background: var(--accent); color: var(--accent-text); }
.program.top {
  border-color: #c9477f;
  box-shadow: 0 0 0 1px #c9477f, var(--shadow);
  background: linear-gradient(160deg, color-mix(in srgb, #c9477f 9%, var(--surface)), var(--surface) 60%);
}
.program.top .badge, .program.top .apply { background: #c9477f; color: #fff; }
.program.second {
  border-color: #b5452f;
  box-shadow: 0 0 0 1px #b5452f, var(--shadow);
  background: linear-gradient(160deg, color-mix(in srgb, #b5452f 8%, var(--surface)), var(--surface) 60%);
}
.program.second .badge, .program.second .apply { background: #b5452f; color: #fff; }
.program.applied {
  border-color: #3fae6a;
  box-shadow: 0 0 0 1px #3fae6a, var(--shadow);
  background: color-mix(in srgb, #3fae6a 14%, var(--surface));
}
.program.applied .badge, .program.applied .apply { background: #2e8f53; color: #fff; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--accent); color: var(--accent-text); }

/* ---------- Schedule ---------- */
.sched-next { background: var(--accent-soft); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; }
.sched-next h3 { font-size: 17px; margin-bottom: 10px; }
.sched-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sched-next li { display: grid; grid-template-columns: 170px 110px 1fr; gap: 12px; font-size: 15px; }
.sched-next .when { font-weight: 600; }
.sched-next .who { font-weight: 600; color: var(--accent); }
@media (max-width: 640px) { .sched-next li { grid-template-columns: 1fr; gap: 0; padding-bottom: 6px; } }
.sched-grid { display: grid; gap: 24px; }
.sched-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.sched-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sched-card header .logo { width: 48px; height: 48px; object-fit: contain; flex: none; }
.sched-card h3 { font-size: 19px; margin: 0; }
.sched-card header p { margin: 0; color: var(--muted); font-size: 14px; }
.sched-card.applied { border-color: #3fae6a; box-shadow: 0 0 0 1px #3fae6a, var(--shadow); background: color-mix(in srgb, #3fae6a 10%, var(--surface)); }
.sched-card.applied .badge { background: #2e8f53; color: #fff; }
.sched-rounds { display: grid; gap: 20px 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sched-round h4 { font-size: 15px; margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sched-round .tag { font-size: 12px; padding: 2px 8px; font-weight: 500; }
.sched-round ol { list-style: none; margin: 0; padding: 0; }
.sched-round li { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 7px 0 7px 10px; border-top: 1px solid var(--line); border-left: 3px solid transparent; font-size: 14px; line-height: 1.45; }
.sched-round .d { font-weight: 600; font-variant-numeric: tabular-nums; }
.sched-round li.past { color: var(--muted); opacity: .55; }
.sched-round li.past .e { text-decoration: line-through; }
.sched-round li.done { opacity: 1; color: #2e8f53; font-weight: 600; }
.sched-round li.done .e { text-decoration: none; }
.sched-round li.next { border-left-color: var(--accent); background: var(--accent-soft); border-radius: 0 6px 6px 0; }
.sched-round .when-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 5px; background: var(--accent); color: var(--accent-text); white-space: nowrap; }
@media (max-width: 480px) { .sched-round li { grid-template-columns: 1fr; gap: 0; } }
.sched-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; }
.sched-note { color: var(--muted); font-size: 14px; margin-top: 20px; }

/* ---------- Projects ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.project { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.project .thumb { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project:hover .thumb img { transform: scale(1.04); }
.project .body { padding: 22px 24px 26px; }
.project h3 { margin-bottom: 8px; }
.project p { color: var(--muted); font-size: 15px; }

/* ---------- 3D work ---------- */
.reel { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .reel { grid-template-columns: 1fr; } }
.reel figure { margin: 0; }
.reel video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); background: #000; border: 1px solid var(--line);
}
.reel figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; font-weight: 500; }
.renders { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
@media (max-width: 700px) { .renders { grid-template-columns: 1fr 1fr; } }
.renders button {
  padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--surface-2); cursor: zoom-in; aspect-ratio: 16 / 9;
}
.renders img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Activities ---------- */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery figure {
  break-inside: avoid; margin: 0 0 16px; position: relative;
  border-radius: 12px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--line); cursor: zoom-in;
}
.gallery img { width: 100%; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 14px 12px; color: #fff; font-size: 14px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
}

/* ---------- Games teaser ---------- */
.games-teaser { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 700px) { .games-teaser { grid-template-columns: 1fr; } }
.game-card { display: flex; gap: 20px; align-items: center; color: var(--text); }
.game-card:hover { text-decoration: none; border-color: var(--accent); }
.game-card .icon {
  flex: none; width: 64px; height: 64px; border-radius: 14px;
  display: grid; place-items: center; font-size: 30px; background: var(--accent-soft);
}
.game-card h3 { margin-bottom: 4px; font-size: 18px; }
.game-card p { color: var(--muted); font-size: 15px; }

/* ---------- Visitors ---------- */
.stats { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; gap: 24px; } }
.stats-total .num { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats-total .num.small { font-size: 28px; margin-top: 18px; }
.stats-total .label { font-size: 14px; color: var(--muted); }
.stats-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stats-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 15px; }
.stats-list .flag { width: 28px; height: 20px; border-radius: 3px; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line); }
.stats-list .name { overflow: hidden; }
.stats-list .name span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-list .bar { height: 6px; border-radius: 3px; background: var(--accent); margin-top: 5px; min-width: 4px; }
.stats-list .count { font-weight: 600; font-variant-numeric: tabular-nums; }
.stats-list .you { font-size: 12px; color: var(--accent); font-weight: 600; margin-left: 6px; }
.stats-list .stats-empty { display: block; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.contact-list .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.contact-list a { font-size: 18px; font-weight: 600; color: var(--text); }
form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
input, textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(0, 0, 0, .88); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; border-radius: 10px; }
.lightbox .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 500; }

/* ---------- Games page ---------- */
.game-page { padding: 56px 0 88px; }
.game-page .games { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; margin-top: 32px; }
@media (max-width: 800px) { .game-page .games { grid-template-columns: 1fr; } }
.game { display: flex; flex-direction: column; gap: 16px; }
.game .row { display: flex; gap: 10px; }
.game .row input { flex: 1; }
.game .result {
  min-height: 56px; padding: 14px 16px; border-radius: 10px;
  background: var(--surface-2); font-weight: 500;
}
.game .result.win { background: var(--accent-soft); color: var(--accent); }
.game .meta { font-size: 14px; color: var(--muted); }
.fortune-card {
  min-height: 150px; border-radius: 12px; padding: 22px;
  display: grid; place-items: center; text-align: center;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
  font-size: 18px; font-weight: 600;
}
.fortune-card .en { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 6px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.pop { animation: pop .35s ease; }
