* { box-sizing: border-box; }
:root { color-scheme: light; --primary: #ff8a3d; --ink: #693e32; --muted: #987666; }
html, body { margin: 0; min-height: 100%; background: #fff2df; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif; }
body { background: radial-gradient(ellipse at 0 16%, #ffe0e9 0, transparent 55%), linear-gradient(165deg, #fff8e9, #ffe7d3); }
button, input { font: inherit; }
button { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid #8d59a5; outline-offset: 4px; }
.page { width: 100%; max-width: 480px; min-height: 100svh; margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); }
.top h1 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: .02em; }
.sub { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.card { margin-top: 18px; background: #fffcf5; border: 2px solid #fff; border-radius: 24px; padding: 18px; box-shadow: 0 7px 0 #efc9b44d; line-height: 1.6; font-size: 15px; }
code { font-size: 13px; background: #ffecd8; padding: 2px 6px; border-radius: 6px; }
button { min-height: 48px; border-radius: 999px; cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
@media (max-width: 350px) { .page { padding-left: 12px; padding-right: 12px; } }

.live-room { display: flex; flex-direction: column; gap: 16px; }
.host-panel { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 10px 12px; background: #fffaf0e8; border: 2px solid #fff; border-radius: 24px; }
.host-avatar { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 3px solid #fff; border-radius: 50%; background: #ffd8ba; color: #be612f; font-size: 26px; }
.host-info { flex: 1; min-width: 0; }
.host-info strong { display: block; font-size: 15px; }
.host-info > span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.live-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 20px; background: #ffe1d9; color: #a54232; font-size: 11px; white-space: nowrap; }
.live-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #d45843; }
.showcase { position: relative; overflow: hidden; border: 3px solid #fffaf2; border-radius: 26px; background: #ffe8d6; box-shadow: 0 6px 0 #efc9b44d; }
.scene-image { display: block; width: 100%; height: auto; max-height: 44svh; object-fit: contain; }
.scene-caption { display: flex; flex-direction: column; gap: 5px; padding: 13px 16px; background: #fff8eb; }
.scene-caption span { font-size: 11px; color: #9a7160; }
.scene-caption strong { font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.opening-panel { padding: 20px 18px 15px; border: 2px solid #fff; border-radius: 28px; background: linear-gradient(160deg, #fffcf6, #fff2e6); box-shadow: 0 7px 0 #efc9b44d; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.eyebrow { font-size: 9px; letter-spacing: 1.6px; color: #a97c65; }
.section-heading h1 { margin: 5px 0 0; font-size: 22px; font-weight: 900; }
.pack-label { padding: 7px 10px; border: 1px dashed #e4a77c; border-radius: 10px; color: #ac622e; background: #fff0d3; font-size: 11px; transform: rotate(5deg); }
.card-stage { position: relative; display: grid; place-items: center; min-height: 255px; margin-top: 10px; isolation: isolate; }
.back-card { position: absolute; width: 158px; height: 205px; border: 4px solid #fff; border-radius: 16px; z-index: -1; }
.back-card-one { transform: rotate(-13deg) translateX(-24px); background: #fbd8e5; }
.back-card-two { transform: rotate(13deg) translateX(24px); background: #dbeaca; }
.pack { position: relative; width: 165px; min-height: 215px; padding: 24px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #ffe0a1, #ffc17a 55%, #ffdda8); border: 2px solid #fff5da; border-radius: 10px; box-shadow: 0 9px 17px #ae6b3d26; transition: transform .28s, opacity .28s; }
.pack-seal { position: absolute; top: 5px; left: 5px; right: 5px; height: 9px; border-top: 2px dashed #d18d50; border-bottom: 1px solid #e8a364; }
.pack-seal.bottom { top: auto; bottom: 5px; }
.pack-small { font-size: 10px; color: #925427; }
.pack strong { font-size: 20px; font-weight: 900; color: #8c4e29; }
.pack-paw { display: grid; place-items: center; width: 77px; height: 77px; border: 5px solid #fff8e8; border-radius: 50%; background: #fff0d7; color: #de8746; font-size: 45px; }
.card-stage.is-opening .pack { transform: translateY(-12px) rotate(-5deg) scale(1.04); opacity: .2; }
.revealed-card { width: 168px; min-height: 218px; padding: 12px; border: 5px solid #fff; border-radius: 17px; background: linear-gradient(145deg, #ffe5dc, #fff4cf); box-shadow: 0 7px 16px #ae6b3d26; text-align: center; }
.revealed-card[hidden], .pack[hidden] { display: none; }
.card-series { display: block; font-size: 10px; color: #a67360; }
.card-art { display: grid; place-items: center; height: 102px; margin: 6px 0; border-radius: 13px; background: #fff8ed; color: #e99250; font-size: 62px; }
.revealed-card strong { display: block; font-size: 18px; }
#card-note { display: block; margin-top: 5px; font-size: 11px; color: #956b57; }
.card-footer { display: block; margin-top: 10px; font-size: 9px; color: #ab806d; }
.opening-status { margin: 0 0 14px; text-align: center; color: #93654d; font-size: 13px; line-height: 1.6; }
.open-button { display: flex; align-items: center; justify-content: center; gap: 13px; width: 100%; min-height: 56px; padding: 12px; border: 2px solid #fff1cd; background: linear-gradient(#ffa75b, #ff8a3d); color: #602c12; box-shadow: 0 5px 0 #d76e2e; font-size: 20px; font-weight: 900; transition: transform .15s; }
.open-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #d76e2e; }
.helper { margin: 14px 0 0; font-size: 11px; color: #9b7a69; text-align: center; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
