/* Fundream Games: fun by day (sunny cartoon), dreamy by night (blue-hour indigo). */
:root {
  color-scheme: light;
  --cream: #fbf3e2;
  --paper: #fffaf0;
  --ink: #2a1a14;
  --ink-soft: #6a5546;
  --line: #e7d7b9;
  --sun: #f7c95a;
  --sun-pale: #ffe7a3;
  --red: #d9412b;
  --red-deep: #b8321f;
  --night: #2b2e7c;
  --night-deep: #15163f;
  --night-ink: #f3eeff;
  --night-soft: #c9c2f2;
  --lamp: #ffd27f;
  --radius: 28px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:lang(zh) {
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-display: ui-rounded, "Arial Rounded MT Bold", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
:lang(ja) {
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;
  --font-display: ui-rounded, "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, "Noto Sans JP", sans-serif;
}
:lang(ko) {
  --font-body: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --font-display: ui-rounded, "Arial Rounded MT Bold", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.62 var(--font-body); overflow-x: hidden; }
:lang(ko) body, body:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja), :lang(zh) { line-break: strict; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.12; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid #3d6bff; outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- brand ---------- */
.brand { display: inline-flex; text-decoration: none; border-radius: 12px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; }
.mark { width: 42px; height: 42px; flex: none; }
.wordmark { height: 27px; width: auto; display: block; }
.wm-fun { stroke: var(--red); }
.wm-dream { stroke: var(--night); }
.brand-lockup--small .mark { width: 34px; height: 34px; }
.brand-lockup--small .wordmark { height: 22px; }

/* ---------- header ---------- */
.site-header { padding: 18px 0 6px; }
.bar { display: flex; align-items: center; gap: 28px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; list-style: none; }
.nav a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.nav a:hover { background: var(--sun-pale); }

.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-weight: 800; line-height: 1.2; white-space: nowrap; box-shadow: 0 3px 0 var(--ink); user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { background: #fff; }
.lang .caret { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.lang[open] .caret { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 190px; padding: 6px; list-style: none; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); }
.lang-list a { display: block; padding: 9px 14px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.lang-list a:hover { background: var(--cream); }
.lang-list a[aria-current] { background: var(--sun); }
@media (max-width: 720px) {
  .nav { display: none; }
  .lang--head { margin-left: auto; }
  .bar { gap: 12px; }
  .mark { width: 36px; height: 36px; }
  .wordmark { height: 23px; }
}
@media (max-width: 380px) { .wordmark { height: 19px; } .brand-lockup { gap: 8px; } }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 22px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 800; line-height: 1.2; text-decoration: none; text-align: center; box-shadow: 0 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #e24b34; }
.btn--quiet { background: transparent; box-shadow: none; border-width: 2px; min-height: 44px; padding: 9px 18px; }
.btn--quiet:hover { background: rgba(255, 255, 255, .45); box-shadow: none; transform: none; }
.btn--lamp { background: var(--lamp); color: var(--night-deep); border-color: var(--night-deep); box-shadow: 0 4px 0 var(--night-deep), 0 0 34px rgba(255, 210, 127, .45); }
.btn--lamp:hover { box-shadow: 0 6px 0 var(--night-deep), 0 0 44px rgba(255, 210, 127, .6); }
.btn--sun { background: var(--sun); color: var(--ink); border-color: var(--paper); box-shadow: 0 4px 0 #000; }
.btn--big { min-height: 58px; padding: 14px 26px; font-size: 18px; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 6px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(90deg, var(--red) 50%, var(--night) 50%); }
.hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.06; letter-spacing: -.02em; }
.hero h1 .t1 { background: linear-gradient(transparent 64%, var(--sun) 64% 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero h1 .t2 { color: var(--night); }
:lang(zh) .hero h1, :lang(ja) .hero h1, :lang(ko) .hero h1 { letter-spacing: 0; line-height: 1.18; font-weight: 800; }
.lede { margin: 24px 0 32px; max-width: 34em; font-size: 19px; color: var(--ink-soft); }
.hero-art { position: relative; aspect-ratio: 5 / 4; border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--sun); box-shadow: 10px 10px 0 var(--ink); }
.hero-svg { display: block; width: 100%; height: 100%; }
@media (max-width: 900px) {
  .hero { padding: 24px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { box-shadow: 7px 7px 0 var(--ink); margin-right: 7px; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 16px; }
  .section { padding: 44px 0; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .lede { font-size: 17.5px; margin: 18px 0 26px; }
  .actions .btn { flex: 1 1 auto; }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 30px; }
.section h2 { font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -.01em; }
.section-head p { color: var(--ink-soft); font-size: 18px; font-weight: 600; }

/* ---------- games ---------- */
.game { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); border-radius: var(--radius); overflow: hidden; margin-bottom: 34px; }
.game-media { position: relative; min-height: 100%; }
.game-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-body { display: flex; flex-direction: column; gap: 18px; padding: 36px 40px 38px; }
.game-head { display: flex; align-items: center; gap: 16px; }
.game-icon { width: 64px; height: 64px; flex: none; border-radius: 16px; }
.game h3 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.01em; }
.game-tag { margin-top: 4px; font-weight: 700; font-size: 16px; }
.game-desc { font-size: 17.5px; }
.game-points { list-style: none; display: grid; gap: 8px; }
.game-points li { position: relative; padding-left: 26px; }
.game-points li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; font-size: 15px; }
.facts div { display: flex; gap: 8px; }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; }
.status:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 800; }

.game--poker { background: var(--sun); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.game--poker .game-media { border-right: 3px solid var(--ink); }
.game--poker .game-icon { border: 2.5px solid var(--ink); }
.game--poker .game-tag { color: var(--red-deep); }
.game--poker .game-points li::before { background: var(--red); }
.game--poker .pill--soon { border: 2px dashed var(--ink); background: rgba(255, 250, 240, .55); }

.game--cat { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); color: var(--night-ink); background: radial-gradient(120% 90% at 85% 110%, #6b4b95 0%, rgba(107, 75, 149, 0) 60%), linear-gradient(165deg, #1f2166 0%, #2b2e7c 55%, #3a3484 100%); box-shadow: 0 28px 60px -24px rgba(21, 22, 63, .75); }
.game--cat .game-media { order: 2; }
.game--cat .game-media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 34px 0 40px -30px #23256c; pointer-events: none; }
.game--cat .game-tag { color: var(--lamp); }
.game--cat .pill--demo { border: 2px dashed var(--lamp); color: var(--lamp); }
.game--cat .pill--demo .ico { fill: currentColor; stroke: none; }
.game--cat .game-desc, .game--cat .facts { color: var(--night-ink); }
.game--cat .game-points li::before { background: var(--lamp); border-radius: 50%; transform: none; box-shadow: 0 0 10px 2px rgba(255, 210, 127, .7); }
.game--cat .facts dt { color: var(--night-soft); }
.game--cat :focus-visible { outline-color: var(--lamp); }

.more { display: flex; align-items: center; gap: 20px; padding: 26px 30px; border: 3px dashed #b9a487; border-radius: var(--radius); color: var(--ink-soft); }
.more h3 { font-size: 22px; color: var(--ink); }
.more p { margin-top: 2px; }
.more-ico { width: 44px; height: 44px; flex: none; fill: var(--sun); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }

@media (max-width: 900px) {
  .game, .game--cat { grid-template-columns: 1fr; }
  .game--cat .game-media { order: 0; }
  .game-media { aspect-ratio: 16 / 10; }
  .game--poker .game-media { border-right: 0; border-bottom: 3px solid var(--ink); }
  .game--poker { box-shadow: 7px 7px 0 var(--ink); margin-right: 7px; }
  .game--cat .game-media::after { box-shadow: inset 0 -34px 40px -30px #23256c; }
}
@media (max-width: 640px) {
  .game-body { padding: 24px 20px 28px; gap: 16px; }
  .game-icon { width: 56px; height: 56px; }
  .more { padding: 20px; align-items: flex-start; }
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: center; }
.about-badge svg { display: block; width: 100%; max-width: 220px; height: auto; border-radius: 52px; transform: rotate(-6deg); box-shadow: 10px 10px 0 var(--ink); border: 3px solid var(--ink); }
.about-copy { max-width: 46em; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { font-size: 19px; }
.about-copy p + p { margin-top: 14px; }
.about-copy .member { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 8px 16px 8px 12px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper); box-shadow: 0 3px 0 var(--ink); font-size: 16px; font-weight: 800; }
.about-copy .member .ico { width: 1.35em; height: 1.35em; stroke-width: 2; color: var(--night); }
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-badge svg { max-width: 120px; border-radius: 30px; box-shadow: 6px 6px 0 var(--ink); }
  .about-copy p { font-size: 17.5px; }
}

/* ---------- contact ---------- */
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 44px 48px; border-radius: var(--radius); background: var(--ink); color: var(--paper); }
.contact-card h2 { color: var(--sun); margin-bottom: 8px; }
.contact-card p { font-size: 18px; max-width: 32em; color: #f1e4cc; }
@media (max-width: 640px) { .contact-card { padding: 30px 20px; } .contact-card .btn { width: 100%; font-size: 15.5px; padding: 12px 14px; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 24px; padding: 48px 0 64px; border-top: 2px solid var(--line); font-size: 15px; color: var(--ink-soft); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { margin-top: 14px; max-width: 30em; }
.foot-brand .rights { margin-top: 6px; }
.site-footer h2 { font-family: var(--font-body); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a[aria-current] { font-weight: 800; color: var(--ink); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf-main { padding-top: 40px; padding-bottom: 80px; }
.nf-main h1 { font-size: 88px; margin: 40px 0 8px; color: var(--night); }
.nf-list { list-style: none; display: grid; gap: 10px; margin-top: 28px; }
