.p-play-root {
  color-scheme: light dark;
  --bg: #f7f3e9;
  --surface: #fffdf7;
  --soft: #f0eadc;
  --ink: #202b27;
  --muted: #52615b;
  --line: #d9d2c2;
  --accent: #944127;
  --accent-strong: #78321d;
  --value-ink: #78321d;
  --teal: #205b50;
  --teal-soft: #e4efe8;
  --gold: #b36b2d;
  --shadow: 0 14px 36px rgba(50, 42, 25, .08);
  --font: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}
.p-play-root, .p-play-root * { box-sizing: border-box; }
.p-play-root { min-width: 320px; scroll-behavior: smooth; }
.p-play-root {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 92% 4%, #f0e6d3 0, transparent 24rem), var(--bg);
  font: 500 16px/1.45 var(--font);
}
.p-play-root button,
.p-play-root input,
.p-play-root select { font: inherit; }
.p-play-root button,
.p-play-root select { color: inherit; }
.p-play-root a { color: var(--teal); }
.p-play-root :focus-visible { outline: 3px solid #a04d2e; outline-offset: 3px; }
.p-play-root [hidden] { display: none !important; }
.p-play-root .site-head,
.p-play-root .page-footer { width: min(100% - 28px, 820px); margin-inline: auto; }
.p-play-root .site-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 56px; }
.p-play-root .wordmark { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 880; letter-spacing: -.02em; }
.p-play-root .wordmark-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #f0d5b5; color: #6e3825; font-size: 1rem; }
.p-play-root .edition { color: var(--muted); font-size: .82rem; font-weight: 720; }
.p-play-root .language-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--teal); font-size: .88rem; font-weight: 820; text-decoration: underline; text-underline-offset: 3px; }
.p-play-root .app-shell { width: min(100% - 28px, 720px); margin: 0 auto; padding: 8px 0 42px; }
.p-play-root h1 { margin: 0; font-size: clamp(1.65rem, 6vw, 2.25rem); line-height: 1.12; letter-spacing: -.045em; }
.p-play-root .hook { margin: .18rem 0 .65rem; color: var(--accent); font-size: .96rem; font-weight: 810; }
.p-play-root .set-picker { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .65rem; margin-bottom: .6rem; }
.p-play-root .set-picker label { color: var(--muted); font-size: .87rem; font-weight: 800; }
.p-play-root .set-picker select { width: 100%; min-width: 0; min-height: 44px; padding: .45rem 2.2rem .45rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 750; }
.p-play-root .round-card { padding: 13px; border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow); }
.p-play-root .round-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; margin-bottom: .45rem; }
.p-play-root .round-heading h2 { margin: 0; font-size: 1.12rem; line-height: 1.2; letter-spacing: -.025em; }
.p-play-root .rank-rule { margin: .12rem 0 0; color: var(--muted); font-size: .82rem; font-weight: 720; }
.p-play-root .progress-label { flex: 0 0 auto; margin: 0; padding: .22rem .55rem; border-radius: 999px; background: var(--teal-soft); color: #16463f; font-size: .8rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.p-play-root .current-card { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: .65rem; min-height: 74px; padding: .42rem .55rem; border: 1px solid #dfd2bc; border-radius: 15px; background: linear-gradient(105deg, #fffaf0, #f3ead9); }
.p-play-root .item-illustration { display: inline-grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; }
.p-play-root .item-illustration svg { display: block; width: 100%; height: 100%; }
.p-play-root .current-art .item-illustration { width: 56px; height: 56px; }
.p-play-root .current-kicker { margin: 0 0 .05rem; color: var(--muted); font-size: .75rem; font-weight: 820; letter-spacing: .025em; }
.p-play-root .current-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.25; font-weight: 850; word-break: keep-all; overflow-wrap: anywhere; }
.p-play-root .current-prompt { margin: .3rem 0 .35rem; color: var(--muted); font-size: .88rem; line-height: 1.3; }
.p-play-root .slot-list { display: grid; gap: 5px; }
.p-play-root .slot-button { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: .5rem; width: 100%; min-height: 49px; padding: .35rem .45rem; border: 1px dashed #c9c0ae; border-radius: 13px; background: #fffefa; text-align: left; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .25s ease; overflow-wrap: anywhere; }
.p-play-root .slot-button:not(:disabled):hover { border-color: var(--teal); background: #f0f7f2; transform: translateY(-1px); }
.p-play-root .slot-button:disabled { cursor: default; opacity: 1; }
.p-play-root .slot-button.is-locked { border-style: solid; border-color: #c6d4c8; background: linear-gradient(100deg, #f6f8f1, #f2f1e8); }
.p-play-root .slot-button.is-revealed { border-color: #b6cbbd; animation: slot-flip .42s cubic-bezier(.2,.8,.2,1) both; }
.p-play-root .slot-number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #e9dfcc; color: #553c2c; font-size: .95rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.p-play-root .slot-empty { color: var(--muted); font-size: .89rem; font-weight: 700; }
.p-play-root .slot-main { display: flex; min-width: 0; align-items: center; gap: .5rem; }
.p-play-root .slot-main .item-illustration { width: 34px; height: 34px; }
.p-play-root .slot-name { min-width: 0; font-size: .91rem; line-height: 1.2; font-weight: 820; word-break: keep-all; overflow-wrap: anywhere; }
.p-play-root .slot-reveal { grid-column: 2; display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .55rem; margin: .18rem 0 0; }
.p-play-root .slot-value { color: var(--value-ink); font-size: .91rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.p-play-root .slot-marker { color: #805020; font-size: .78rem; font-weight: 850; }
.p-play-root .slot-marker.is-exact { color: var(--teal); }
.p-play-root .slot-wait { grid-column: 2; display: block; margin: .12rem 0 .04rem; color: #42534c; font-size: .82rem; line-height: 1.35; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
.p-play-root .keyboard-hint { margin: .4rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.25; }
.p-play-root .reveal-controls { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.p-play-root .running-score { margin: 0; color: var(--teal); font-size: .95rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.p-play-root .live-status { min-height: 1.25em; margin: .25rem 0 0; color: var(--teal); font-size: .82rem; font-weight: 760; }
.p-play-root .button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .8rem; border: 1px solid transparent; border-radius: 13px; font-weight: 830; line-height: 1.2; text-align: center; cursor: pointer; }
.p-play-root .button:disabled { opacity: .55; cursor: not-allowed; }
.p-play-root .button-primary { background: var(--accent); color: #fff; }
.p-play-root .button-primary:hover:not(:disabled) { background: var(--accent-strong); }
.p-play-root .button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.p-play-root .button-text { border-color: transparent; background: transparent; color: var(--teal); }
.p-play-root .result-section,
.p-play-root .sources-section { margin-top: .8rem; padding: 1rem; border: 1px solid #c9d8ca; border-radius: 20px; background: var(--teal-soft); box-shadow: var(--shadow); }
.p-play-root .result-section .eyebrow { margin: 0 0 .15rem; }
.p-play-root .result-section h2 { margin: 0; color: #173e35; font-size: clamp(1.5rem, 6vw, 2rem); line-height: 1.18; letter-spacing: -.035em; }
.p-play-root .score-line { margin: .4rem 0 0; color: #19483f; font-weight: 900; font-variant-numeric: tabular-nums; }
.p-play-root .score-explainer { margin: .3rem 0 0; color: #31574e; font-weight: 700; }
.p-play-root .result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-top: .8rem; }
.p-play-root .result-actions .button { min-width: 0; min-height: 48px; padding: .5rem .4rem; font-size: .9rem; }
.p-play-root .result-actions .button-text { border-color: #c8d8cb; background: rgba(255,255,255,.45); }
.p-play-root .share-status { min-height: 1.35em; margin: .45rem 0 0; color: var(--teal); font-size: .86rem; font-weight: 760; }
.p-play-root .manual-copy { display: grid; gap: .3rem; margin: .35rem 0; }
.p-play-root .manual-copy label { font-size: .82rem; font-weight: 750; }
.p-play-root .manual-copy input { width: 100%; min-height: 44px; padding: .45rem; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.p-play-root .privacy-note { margin: .35rem 0 0; color: var(--muted); font-size: .8rem; }
.p-play-root .sources-section { background: var(--surface); border-color: var(--line); }
.p-play-root .sources-section h2 { margin: 0; font-size: 1.25rem; line-height: 1.25; }
.p-play-root .sources-intro { margin: .35rem 0 .65rem; color: var(--muted); font-size: .9rem; }
.p-play-root .source-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.p-play-root .source-entry { padding: .7rem .75rem; border: 1px solid var(--line); border-radius: 13px; background: var(--bg); }
.p-play-root .source-entry h3 { margin: 0; font-size: .95rem; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.p-play-root .source-definition { margin: .3rem 0; color: var(--muted); font-size: .87rem; line-height: 1.45; }
.p-play-root .item-source { display: inline-flex; min-height: 40px; align-items: center; color: var(--teal); font-size: .83rem; font-weight: 720; line-height: 1.35; overflow-wrap: anywhere; }
.p-play-root .page-footer { display: flex; justify-content: space-between; gap: .75rem; padding: 0 0 24px; color: var(--muted); font-size: .8rem; }
.p-play-root .page-footer a { text-align: right; }
.p-play-root .noscript-message { width: min(100% - 28px, 720px); margin: 1rem auto; padding: .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
@keyframes slot-flip {
  0% { opacity: .45; transform: perspective(400px) rotateX(76deg); }
  100% { opacity: 1; transform: perspective(400px) rotateX(0); }
}
@media (min-width: 700px) {.p-play-root .app-shell { padding-top: 14px; }
.p-play-root .round-card { padding: 18px; }
.p-play-root .round-heading h2 { font-size: 1.28rem; }
.p-play-root .slot-list { gap: 7px; }
.p-play-root .slot-button { min-height: 56px; grid-template-columns: 40px minmax(0, 1fr); padding: .45rem .6rem; }
.p-play-root .slot-number { width: 34px; height: 34px; }
.p-play-root .slot-main .item-illustration { width: 40px; height: 40px; }
.p-play-root .slot-name { font-size: 1rem; }
.p-play-root .slot-value { font-size: 1rem; }}
@media (max-width: 360px) {.p-play-root .site-head,
.p-play-root .page-footer,
.p-play-root .app-shell { width: min(100% - 22px, 720px); }
.p-play-root .round-card { padding: 10px; }
.p-play-root .round-heading h2 { font-size: 1rem; }
.p-play-root .progress-label { font-size: .74rem; }
.p-play-root .current-card h3 { font-size: .96rem; }
.p-play-root .slot-button { grid-template-columns: 31px minmax(0, 1fr); gap: .4rem; min-height: 47px; }
.p-play-root .slot-number { width: 28px; height: 28px; }
.p-play-root .slot-name { font-size: .86rem; }}
@media (max-width: 440px) {.p-play-root .edition { display: none; }
.p-play-root .page-footer { flex-direction: column; gap: .25rem; }
.p-play-root .page-footer a { text-align: left; }}
@media (prefers-reduced-motion: reduce) {.p-play-root { scroll-behavior: auto; }
.p-play-root, .p-play-root *,
.p-play-root *::before,
.p-play-root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }}
@media (prefers-color-scheme: dark) {.p-play-root {
    --bg: #1e2926;
    --surface: #28332f;
    --soft: #354039;
    --ink: #f1eee5;
    --muted: #c0c8be;
    --line: #4e5a52;
    --accent: #95452f;
    --accent-strong: #ab5737;
    --value-ink: #f0b18f;
    --teal: #9ac7b4;
    --teal-soft: #2a423a;
    --gold: #e0ae68;
    --shadow: 0 14px 36px rgba(0, 0, 0, .18);
  }
.p-play-root { background: radial-gradient(circle at 92% 4%, #35423a 0, transparent 24rem), var(--bg); }
.p-play-root .wordmark-mark { background: #563f31; color: #ffe1bd; }
.p-play-root .progress-label { color: #d2eadb; }
.p-play-root .current-card { border-color: #59604f; background: linear-gradient(105deg, #303a33, #353d35); }
.p-play-root .slot-button { border-color: #657066; background: #2d3731; }
.p-play-root .slot-button:not(:disabled):hover { background: #31463b; }
.p-play-root .slot-button.is-locked { border-color: #52685b; background: linear-gradient(100deg, #2d3b34, #343b34); }
.p-play-root .slot-number { background: #514536; color: #f3e5cf; }
.p-play-root .slot-marker { color: #e4bd80; }
.p-play-root .slot-wait { color: #d6ddd4; }
.p-play-root .result-section { border-color: #52685b; }
.p-play-root .result-section h2,
.p-play-root .score-line,
.p-play-root .score-explainer { color: #d4eadc; }
.p-play-root .result-actions .button-text { border-color: #52685b; background: rgba(0, 0, 0, .12); }
.p-play-root .source-entry { background: #222d29; }
.p-play-root .set-picker select { color: var(--ink); }}
