/* Localized landing pages (/<lang>/). Same look as the arcade: sky gradient, chunky buttons, soft cards. */
:root {
  --ink: #1f2533; --ink-soft: #5b6478; --green: #2bd67b; --green-d: #17a55b; --gold: #ffc93c; --gold-d: #e09b00;
  --shadow: 0 6px 0 #c9d6e8, 0 14px 30px rgba(31, 37, 51, 0.08);
  --font: 'Fredoka', 'Nunito', system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Noto Sans Thai', 'Noto Sans Devanagari', sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: linear-gradient(180deg, #8fd3ff 0, #e6f5ff 560px, #fff8ee 100%); min-height: 100vh; line-height: 1.5; }
a { color: inherit; }
main, .top, .foot { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.top { display: flex; align-items: center; gap: 10px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 18px; min-width: 0; margin-right: auto; }
.brand b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { border-radius: 10px; box-shadow: 0 3px 0 rgba(31, 37, 51, 0.15); flex: none; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; background: rgba(255, 255, 255, 0.92); border-radius: 14px; padding: 10px 12px; box-shadow: 0 3px 0 #b9cce2; font-weight: 700; white-space: nowrap; }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(31, 37, 51, 0.2); display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 2px; width: max-content; max-width: calc(100vw - 32px); }
.langs li a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.langs li a:hover, .langs li a[aria-current] { background: #eef4ff; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 18px; padding: 13px 22px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; background: #fff; box-shadow: 0 5px 0 #c9d3e3; transition: transform 0.08s; text-align: center; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #c9d3e3; }
.btn.primary { background: linear-gradient(180deg, #46e693, var(--green)); color: #fff; box-shadow: 0 5px 0 var(--green-d), 0 10px 22px rgba(23, 165, 91, 0.3); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.12); }
.btn.gold { background: linear-gradient(180deg, #ffe07a, var(--gold)); color: #5a3300; box-shadow: 0 5px 0 var(--gold-d); }
.btn.ghost { background: rgba(255, 255, 255, 0.92); }
.btn.big { font-size: 18px; padding: 15px 24px; }
.btn.small { padding: 10px 14px; border-radius: 14px; background: linear-gradient(180deg, #46e693, var(--green)); color: #fff; box-shadow: 0 3px 0 var(--green-d); }
.btn:focus-visible, .sh:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #4c7cf0; outline-offset: 3px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: center; padding: 18px 0 10px; }
.badge { display: inline-block; background: #fff; color: #e0335a; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; box-shadow: 0 3px 0 #f3c3cf; }
h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.05; margin: 14px 0 12px; letter-spacing: -0.01em; text-shadow: 0 3px 0 rgba(255, 255, 255, 0.6); }
.lead { font-size: clamp(16px, 2.3vw, 20px); color: #2c3446; margin: 0 0 20px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 18px 40px rgba(31, 37, 51, 0.18); aspect-ratio: 3 / 2; object-fit: cover; }
h2 { font-size: clamp(24px, 4vw, 34px); margin: 0 0 16px; }
.features { margin: 40px 0 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.feat { background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.feat img { width: 72px; height: 72px; object-fit: contain; display: block; margin-bottom: 6px; }
.feat h3 { margin: 0 0 6px; font-size: 19px; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.arcade { margin: 44px 0 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; background: linear-gradient(135deg, #3b2a8f, #6c4ce0); color: #fff; border-radius: 28px; padding: 18px; box-shadow: 0 8px 0 #2a1e6b; }
.arcade img { width: 100%; height: auto; border-radius: 20px; aspect-ratio: 3 / 2; object-fit: cover; }
.arcade p { color: #e6e1ff; font-size: 17px; margin: 0 0 18px; }
.share { margin: 44px 0 0; text-align: center; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sh { border: 0; font: inherit; font-weight: 700; color: #fff; text-decoration: none; padding: 11px 18px; border-radius: 999px; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); }
.sh-x { background: #111; } .sh-facebook { background: #1877f2; } .sh-line { background: #06c755; } .sh-whatsapp { background: #25d366; } .sh-telegram { background: #229ed9; } .sh-reddit { background: #ff4500; } .sh-copy { background: #fff; color: var(--ink); box-shadow: 0 4px 0 #c9d3e3; }
.faq { margin: 44px 0 0; }
.faq details { background: #fff; border-radius: 18px; padding: 14px 18px; margin: 0 0 10px; box-shadow: 0 4px 0 #dbe5f2; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }
.foot { margin-top: 44px; padding-top: 18px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #dfe6f1; text-align: center; color: var(--ink-soft); font-size: 14px; }
.foot nav { margin: 0 0 10px; }
.foot-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); opacity: 0; transition: 0.25s; background: var(--ink); color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 16px; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) {
  .hero, .arcade { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .ctas .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .toast { transition: none; } }

/* Korean: break between words, never inside one. */
:lang(ko) h1, :lang(ko) p, :lang(ko) h2, :lang(ko) h3, :lang(ko) .lead { word-break: keep-all; overflow-wrap: anywhere; }
.arcade .covers { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.arcade .covers img { border-radius: 14px; aspect-ratio: 3 / 2; transition: transform 0.15s; }
.arcade .covers a:hover img { transform: translateY(-3px); }
@media (max-width: 760px) { .arcade .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Localized arcade pages (/<lang>/arcade/): every mini game with cover, name and how-to. */
body.arc { background: linear-gradient(180deg, #6c4ce0 0, #9f8cf5 420px, #f3efff 820px, #fff8ee 100%); }
body.arc .top .brand, body.arc .crumbs, body.arc .crumbs a { color: #fff; }
body.arc h1 { color: #fff; text-shadow: 0 4px 0 rgba(42, 30, 107, 0.45); }
body.arc .hero .lead { color: #f1edff; }
body.arc .badge { color: #6c4ce0; box-shadow: 0 3px 0 #c9bdf7; }
.crumbs { font-size: 14px; padding: 4px 0 0; opacity: 0.9; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.lead.sub { font-size: 16px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.cat-nav a { background: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 #d6cff3; }
.cat-nav small { color: var(--ink-soft); font-weight: 600; margin-left: 4px; }
.games { margin: 34px 0 0; scroll-margin-top: 12px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.game { background: #fff; border-radius: 22px; padding: 10px 10px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.game .cover img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; display: block; transition: transform 0.15s; }
.game .cover:hover img { transform: translateY(-3px); }
.game h3 { margin: 10px 6px 4px; font-size: 18px; }
.game p { margin: 0 6px 12px; color: var(--ink-soft); font-size: 14px; flex: 1; }
.game .btn { margin: 0 6px; padding: 10px 16px; font-size: 16px; }
@media (max-width: 520px) { .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .game h3 { font-size: 15px; } .game p { font-size: 13px; } .game .btn { font-size: 14px; padding: 9px 10px; } }
@media (prefers-reduced-motion: reduce) { .game .cover img { transition: none; } }
.foot .company { font-size: 12px; line-height: 1.6; max-width: 720px; margin: 8px auto 0; }
.foot .company a { text-decoration: underline; text-underline-offset: 2px; }
:lang(ko) .foot .company { word-break: keep-all; }
