/* Christmas event v3: full-width play surface, compact confirmed state, freely movable utility gift. */
body { background: #063b2e url("/winter.svg") center top / cover fixed; }
.game-world { background: transparent; isolation: auto; padding-bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.game-world::after { box-shadow: inset 0 0 110px #001f1838; }
#snowfall-canvas { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 12; pointer-events: none; opacity: .8; }
.game-world .game-header { max-width: 510px; min-height: 51px; padding: 9px 16px 7px; gap: 15px; z-index: 15; }
.game-world .wecard-logo > span { font-size: 26px; letter-spacing: -1px; color: #fff4c3; }
.game-world .wecard-logo::before { height: 4px; width: 35px; }
.game-world .game-header-tools { gap: 9px; }
.reset-demo-button { min-height: 30px; padding: 4px 8px; border: 1px solid #d4b568; border-radius: 9px; background: #174d3c; color: #fff0b6; font-size: 10px; font-weight: bold; white-space: nowrap; }
.reset-demo-button:hover { background: #28634a; }
.reset-dialog .reset-explanation { margin-bottom: 23px; text-align: left; }
.game-world .lang-switch { min-height: 32px; border-radius: 12px; padding: 6px 10px; font-size: 11px; gap: 7px; box-shadow: inset 0 2px 0 #fff8d1, 0 2px 0 #614111; }
.language-glyph { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #8b671b5c; border-radius: 5px; font-size: 12px !important; line-height: 1 !important; }
.game-world .game-header { flex-shrink: 0; }
.game-world .game-stage { width: 100%; max-width: 510px; margin: 0 auto; padding: 0 13px; display: flex; flex: 1; }
.game-world .game-main { width: 100%; min-height: calc(100dvh - 65px); display: flex; flex-direction: column; }
.game-world .christmas-heading, .game-world .game-tagline, .game-world .quiz-shell, .game-world .boost-card, .game-world .game-foot { flex-shrink: 0; }
.game-world .christmas-heading { height: auto; margin: 0; display: block; }
.christmas-key-art { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 524; border: 2px solid #d2a751; border-radius: 16px; box-shadow: 0 4px 0 #022f22, 0 9px 28px #00251c55; }
.game-world .christmas-heading h1.sr-only { position: absolute; margin: 0; }
.game-world .game-tagline { padding: 6px 4px 7px; font-size: 11px; font-weight: bold; max-width: 100%; line-height: 1.35; color: #fff5c5; }
.game-world .quiz-shell { padding: 6px; border-radius: 19px; border: 2px solid #123f29; box-shadow: inset 0 0 0 2px #8be6a8, 0 5px 0 #002c20, 0 9px 25px #00271d55; background: linear-gradient(110deg,#429e54,#18783e 48%,#62bd76); }
.game-world .quiz-paper { padding: 13px 17px 10px; border-radius: 11px; border: 2px solid #b0dcdf; background: linear-gradient(140deg,#fffef7,#f2fcfc 70%,#e8f5ed); }
.game-world .question-heading { margin-top: 8px; font-size: 10px; min-height: 25px; }
.question-help { display: grid; place-items: center; margin-left: auto; width: 29px; height: 29px; border: 1px solid #96bbb3; border-radius: 50%; background: #fffdf3; color: #407568; font-size: 17px; font-weight: bold; box-shadow: 0 2px 0 #c5d9ce; }
.game-world #quiz-title { font-size: 23px; line-height: 1.2; margin: 6px 0 10px; letter-spacing: -.5px; }
.game-world .answer-list { gap: 7px; margin-bottom: 12px; }
.game-world .game-answer { min-height: 44px; padding: 7px 10px; border-radius: 9px; gap: 10px; box-shadow: 0 2px 0 #c9ded3; }
.game-world .game-answer > b { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
.game-world .game-answer > span { font-size: 12px; line-height: 1.4; }
.game-world .game-button { min-height: 44px; padding: 10px 14px; border-radius: 11px; font-size: 16px; }
.game-world .submit-button:not(:disabled) { background: linear-gradient(#ff8260,#f34a42 54%,#dc293a); border-color: #a52731; box-shadow: inset 0 2px 0 #ffb99b, inset 0 -2px 0 #d32b35, 0 4px 0 #922631; text-shadow: 0 2px 0 #a82e31; }
.game-world .answer-note { font-size: 8px; margin-top: 10px; }
.game-world .participation { margin-top: 8px; font-size: 9px; }
.game-world .game-foot { padding: 6px 4px 2px; font-size: 8px; color: #d2e7d4; }
.game-world .game-foot > button { font-size: 9px; }
.game-world.has-entry .christmas-heading { height: auto; display: block; padding: 0; width: 91%; max-width: 440px; align-self: center; }
.diorama-mount { width: 124px; height: 99px; position: absolute; right: -4px; top: -17px; pointer-events: none; }
.diorama-mount canvas { display: block; width: 100%; height: 100%; }
.game-world.has-entry .game-tagline { padding-top: 6px; padding-bottom: 9px; font-size: 10px; }
.game-world.has-entry .quiz-paper { padding: 11px 15px 9px; }
.game-world.has-entry .countdown { margin-left: auto; }
.game-world.has-entry .question-meta .question-help { margin-left: 3px; width: 25px; height: 25px; }
.game-world.has-entry .question-heading { margin-top: 7px; min-height: 23px; }
.game-world.has-entry #quiz-title { font-size: 19px; margin: 6px 0 9px; }
.game-world.has-entry .answer-list { margin-bottom: 8px; }
.game-world.has-entry .game-answer { min-height: 36px; padding: 5px 8px; border-width: 1px; }
.game-world.has-entry .game-answer > b { height: 23px; width: 23px; }
.game-world.has-entry .answer-locked { min-height: 23px; border: 0; background: transparent; border-radius: 0; padding: 1px 0; font-size: 10px; margin: 0; }
.game-world.has-entry .answer-locked > span { display: none; }
.game-world.has-entry .answer-locked > .mini-icon { width: 13px; height: 13px; }
.game-world.has-entry .participation { margin-top: 0; font-size: 8px; }
.entry-meta { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.game-world .boost-card { margin-top: 13px; border-radius: 14px; }
.game-world .boost-title { padding: 8px; }
.game-world .boost-title h2 { font-size: 15px; }
.game-world.has-entry .boost-title { padding: 6px 8px; }
.game-world.has-entry .boost-title h2 { font-size: 14px; }
.game-world .boost-body { padding: 9px 15px 10px; }
.game-world .boost-meter-heading > strong { font-size: 28px; }
.game-world .boost-meter-heading > span { font-size: 10px; max-width: 230px; }
.game-world .meter-wrap { margin-top: 9px; }
.game-world .meter-wrap progress { height: 23px; }
.game-world .boost-explainer { margin: 6px 0 9px; font-size: 9px; }
.game-world .boost-explainer.guarantee-tag { justify-content: flex-start; font-size: 10px; min-height: 15px; }
.game-world .boost-explainer.guarantee-tag .holiday-art { width: 18px; height: 18px; }
.game-world .invite-button { background: linear-gradient(#ffe88b,#ffd14b 55%,#f2b32c); color: #6c4712; border-color: #b37e1d; box-shadow: inset 0 2px 0 #fff5c8, 0 3px 0 #9c6a16; text-shadow: 0 1px 0 #fff0a0; font-size: 15px; }
.game-world .boost-ranges { margin-top: 10px; gap: 10px; }
.game-world .boost-ranges > div { flex-direction: row; gap: 5px; justify-content: center; align-items: center; background: transparent; border: 0; padding: 0; }
.game-world .boost-ranges span { font-size: 8px; }
.game-world .boost-ranges b { font-size: 13px; white-space: nowrap; }
.game-world .boost-history { margin-top: 11px; }
.game-world .boost-history summary { padding: 8px 0; font-size: 10px; }
.prize-shelf { position: relative; flex: 1; min-height: 102px; max-height: 176px; display: flex; flex-direction: column; justify-content: center; margin-top: 9px; padding: 7px 10px; border: 1px solid #b4a365; border-radius: 15px; background: linear-gradient(135deg,#205b3ce8,#0b3c2fe8); box-shadow: inset 0 1px 0 #f4e4a838,0 3px 0 #052f22; }
.shelf-heading { display: flex; align-items: center; justify-content: center; gap: 9px; color: #ffe5a0; }
.shelf-heading h2 { font-size: 11px; font-family: var(--round); font-weight: bold; }
.shelf-heading > span { font-size: 11px; color: #dfb758; }
.shelf-gifts { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 6px; margin-top: 3px; }
.shelf-gifts::after { content: ""; position: absolute; left: 2px; right: 2px; height: 4px; bottom: 17px; border-radius: 5px; background: linear-gradient(#dcbb71,#94713b); box-shadow: 0 3px 0 #042c20; }
.shelf-prize { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 0; border: 0; background: none; color: #ffedbd; }
.shelf-art { width: 100%; height: 35px; display: grid; place-items: center; }
.shelf-art > .holiday-art { width: 35px; height: 35px; transition: transform .15s; }
.shelf-prize:hover .shelf-art > .holiday-art { transform: translateY(-3px); }
.shelf-prize > strong { font-size: 9px; font-weight: bold; min-height: 18px; line-height: 1.2; padding: 4px 2px 0; text-align: center; }
.prize-shelf > p { color: #d6e3bc; font-size: 8px; text-align: center; margin-top: 4px; line-height: 1.45; }
.prize-shelf .diorama-mount { position: static; display: block; width: 100%; height: 35px; }
.prize-shelf .miniature-fallback { width: 35px; height: 35px; margin: 0 auto; }
.prize-shelf .diorama-mount:has(canvas) .miniature-fallback { display: none; }
.prize-details-dialog .prize-rank { margin-top: 15px; }
.tier-probability { color: #5e765c; font-size: 11px; margin-top: 7px; }
.tier-probability > strong { display: block; color: #ab7026; font-size: 30px; font-family: var(--round); margin-top: 7px; }
.history-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 22px; }
.history-summary > div { border: 1px solid #d4e0c7; border-radius: 10px; padding: 10px; background: #f0f7e8; }
.history-summary span { display: block; font-size: 10px; color: #5f7756; }
.history-summary strong { display: block; font-size: 26px; font-family: var(--round); color: #3a7937; margin-top: 3px; line-height: 1.2; }
.history-summary > div:last-child { background: #faf2e5; border-color: #e5d2b9; }
.history-summary > div:last-child strong { color: #a5713c; }
.boost-history-list { margin-top: 16px; text-align: left; }
.boost-history-list .boost-record { padding: 12px 0; font-size: 11px; gap: 10px; border-color: #d7e2d1; }
.boost-history-list .boost-record > span { font-size: 10px; color: #657961; line-height: 1.6; }
.history-empty { padding: 24px 12px; text-align: center; color: #75886c; border: 1px dashed #cbd9bf; border-radius: 10px; }
.history-empty > .mini-icon { width: 30px; height: 30px; }
.history-empty p { font-size: 11px; line-height: 1.8; margin-top: 10px; }
.history-policy { font-size: 9px; line-height: 1.8; text-align: left; color: #64765a; background: #f3f7e9; border-radius: 7px; padding: 11px 12px; margin-top: 17px; }
.records-dialog { width: min(500px,calc(100% - 26px)); }
.history-title-art { width: 47px; height: 47px; margin: 0 auto 9px; }
.records-dialog h2 { font-size: 23px; padding: 0 15px; }
.log-timezone { font-size: 9px; color: #61765e; margin-top: 8px; }
.single-use-alert { display: flex; align-items: flex-start; gap: 8px; padding: 11px 12px; margin: 15px 0 13px; border: 1px solid #d5ad54; border-radius: 8px; background: #fff2c6; color: #82591b; font-size: 11px; font-weight: bold; text-align: left; line-height: 1.7; }
.single-use-alert > .mini-icon { width: 15px; height: 15px; margin-top: 2px; }
.history-count { text-align: left; font-size: 10px; color: #627759; margin-top: 15px; }

.records-dialog .log-list { padding: 0; margin: 12px 0 0; list-style: none; max-height: 46dvh; overflow: auto; scrollbar-gutter: stable; text-align: left; }
.records-dialog .log-row { display: block; padding: 12px 5px; border-bottom: 1px solid #d3dfcf; }
.log-row:last-child { border-bottom: 0; }
.log-heading { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.log-number { font-size: 10px; font-weight: bold; color: #90723e; min-width: 22px; }
.log-heading time { flex: 1; min-width: 120px; font-size: 9px; color: #5f765b; line-height: 1.6; }
.log-heading > strong { color: #3a7d38; font-size: 12px; white-space: nowrap; }
.log-heading > strong.rejected { color: #9d5a4f; }
.boost-log-detail { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; font-size: 11px; color: #365c43; }
.boost-log-detail > b { flex-shrink: 0; }
.boost-log-detail > span { color: #65765e; font-size: 10px; line-height: 1.7; }
.log-heading .prize-rank { border-width: 1px; border-radius: 6px; box-shadow: none; font-size: 10px; padding: 3px 6px; margin: 0; gap: 4px; max-width: 115px; }
.log-heading .prize-rank > span { font-size: 14px; }
.cdk-code-row { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.cdk-code-row > code { min-width: 0; flex: 1; word-break: break-all; color: #735322; font-size: 14px; font-weight: bold; line-height: 1.65; letter-spacing: .2px; }
.cdk-code-row .copy-cdk { margin-left: auto; flex-shrink: 0; max-width: 103px; min-height: 34px; padding: 7px 9px; font-size: 10px; line-height: 1.4; text-align: center; }
.cdk-box .cdk-code-row { text-align: left; }
.cdk-use-note { margin-top: 11px; font-size: 10px; line-height: 1.7; color: #8b601e; text-align: left; font-weight: bold; }
.log-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 9px; color: #6a7d61; }
.log-caption > b { font-size: 9px; background: #fff0be; color: #8d661e; padding: 2px 6px; border-radius: 4px; }
.log-prize-name { font-size: 10px; color: #6d805f; margin-top: 4px; }
.cdk-log-row .redeemed-stamp { font-size: 9px; color: #4f7746; margin-top: 6px; }
.history-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #cbdcc6; margin-top: 13px; padding-top: 12px; }
.history-pager button { min-height: 33px; padding: 6px 11px; border: 1px solid #adc79e; border-radius: 7px; background: #edf5e3; color: #3f713a; font-size: 10px; font-weight: bold; }
.history-pager button:disabled { opacity: .45; cursor: not-allowed; }
.history-pager > span { color: #5b7654; font-size: 10px; }
.game-world .game-foot .footer-identity { min-width: 0; max-width: 44%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.app-version { font-size: 8px; color: #d9e6bf; white-space: nowrap; }
.game-world .game-foot .version-update { color: #ffdb82; text-decoration: underline; }
.compact-result { padding-top: 22px; padding-bottom: 17px; }
.result-compact-header { display: flex; align-items: center; gap: 10px; padding-right: 18px; text-align: left; }
.result-mini-art { display: block; width: 40px; height: 40px; flex-shrink: 0; }
.compact-result .result-compact-header h2 { font-size: 19px; line-height: 1.2; margin: 0; }
.result-compact-header time { display: block; font-size: 10px; color: #688065; margin-top: 4px; }
.result-award-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 17px; }
.compact-result .result-award-line .win-title { font-size: 18px; margin: 0; }
.compact-result .result-award-line .prize-rank { font-size: 16px; padding: 5px 10px; margin: 0; gap: 6px; }
.compact-result .result-award-line .prize-rank > span { font-size: 20px; }
.compact-result .tier-name { text-align: left; font-size: 11px; margin-top: 8px; }
.compact-result .cdk-box { margin-top: 11px; padding: 11px; border-radius: 10px; }
.compact-result .cdk-code-row { margin-top: 5px; gap: 8px; }
.compact-result .cdk-code-row > code { font-size: 15px; line-height: 1.5; }
.compact-result .cdk-use-note { font-size: 9px; margin-top: 8px; line-height: 1.7; }
.result-answer-summary { display: flex; align-items: center; gap: 7px; text-align: left; margin-top: 13px; padding: 9px 10px; background: #eaf4df; border: 1px solid #c4d9b2; border-radius: 8px; }
.result-answer-summary > span { font-size: 9px; color: #5c784d; flex-shrink: 0; }
.result-answer-summary > b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: #49893a; color: #fff; font-size: 11px; flex-shrink: 0; }
.result-answer-summary > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: #3d6540; }
.result-question-details { border-bottom: 1px solid #d2dfc9; text-align: left; margin-top: 8px; padding-bottom: 5px; }
.result-question-details summary { color: #61765a; font-size: 10px; padding: 7px 1px; cursor: pointer; }
.result-question-details p { color: #536c4f; font-size: 11px; line-height: 1.7; margin: 6px 0; }
.compact-result .result-history-link { margin-top: 8px; padding: 5px 10px; }
.compact-result .not-win-title,.compact-result .pending-title { font-size: 21px; margin-top: 18px; }
.admin-version { color: #f8dda0; font-size: 10px; margin-left: 6px; font-weight: normal; white-space: nowrap; }
.admin-stat-label { font-size: 10px; color: #63795c; margin-top: 22px; }
.admin-stat-label + .admin-stats { margin-top: 8px; }
.analytics-filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.analytics-filters > .field { flex: 1; min-width: 145px; margin: 0; }
.analytics-filters > .primary { margin-bottom: 0; }
.analytics-ribbon { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); background: #f3f7ec; border-block: 1px solid #d0dfc6; margin-top: 23px; padding: 20px 0; }
.analytics-ribbon > div { padding: 0 14px; border-right: 1px solid #d3dfc8; min-width: 0; }
.analytics-ribbon > div:last-child { border-right: 0; }
.analytics-ribbon span { color: #5d7555; font-size: 10px; display: block; }
.analytics-ribbon strong { color: #215f3b; font-size: 28px; display: block; margin-top: 8px; line-height: 1; }
.analytics-explanation { color: #6e785b; font-size: 10px; line-height: 1.8; border-left: 2px solid #c5ac65; padding-left: 11px; margin-top: 18px; }
.chart-legend { display: flex; gap: 20px; flex-wrap: wrap; margin: 24px 0 8px; font-size: 10px; color: #4e6c48; }
.chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend > span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #237348; }
.chart-legend .legend-bindings::before { background: #c49b3e; }
.chart-legend .legend-new::before { background: #6595a6; }
.analytics-chart { margin-bottom: 20px; }
.analytics-chart > svg { display: block; }
.participant-table { min-width: 1040px; }
.participant-table small { font-size: 9px; color: #61765b; }
.participant-table td { font-size: 11px; }
.participant-table td:first-child { max-width: 200px; white-space: normal; word-break: break-all; }
.user-progress { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.user-progress progress { appearance: none; display: block; width: 80px; height: 8px; border: 0; border-radius: 10px; background: #e2eada; accent-color: #4b8a4a; }
.user-progress progress::-webkit-progress-bar { background: #e2eada; border-radius: 10px; }
.user-progress progress::-webkit-progress-value { background: #4b8a4a; border-radius: 10px; }
.user-progress > strong { color: #316c36; font-size: 11px; white-space: nowrap; }
.operator-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.operator-pager > span { color: #5e7556; font-size: 11px; }
.operator-dialog { width: min(920px,calc(100% - 28px)); max-height: 90dvh; border: 2px solid #6b9b79; border-radius: 12px; background: #fff; box-shadow: 0 15px 75px #001f2066; padding: 25px; text-align: left; }
.operator-dialog h2 { font-size: 21px; }
.operator-dialog td { font-size: 11px; }
.operator-dialog table { min-width: 650px; }
.source-overview { display: flex; gap: 9px 19px; flex-wrap: wrap; align-items: center; padding: 15px; border: 1px solid #d4e1cb; border-radius: 7px; background: #f3f8ed; font-size: 11px; margin: 20px 0; }
.source-overview > strong { color: #2c6740; overflow-wrap: anywhere; }
.source-overview > span { color: #5a7550; }
.risk-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.risk-presets > button { border: 1px solid #c6d8bb; border-radius: 8px; padding: 17px; background: #f9fbf4; text-align: left; display: flex; flex-direction: column; gap: 7px; color: #4b6e3f; }
.risk-presets > button.active { background: #e9f4dd; border: 2px solid #70a253; padding: 16px; }
.risk-presets strong { font-size: 17px; color: #326332; }
.risk-presets span { font-size: 11px; color: #658157; }
.risk-presets small { font-size: 10px; color: #5f7555; line-height: 1.8; }
.risk-checks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 8px 0 18px; }
.risk-form h3 { font-size: 14px; margin: 24px 0 18px; }
@media (max-width: 740px) {
  .admin-header { flex-wrap: wrap; row-gap: 6px; }
  .admin-header > div { margin-left: auto; }
  .admin-brand { min-width: 0; }
  .analytics-ribbon { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; }
  .analytics-ribbon > div { padding: 14px 9px; border-bottom: 1px solid #d3dfc8; }
  .analytics-ribbon > div:nth-child(3) { border-right: 0; }
  .analytics-ribbon > div:nth-child(n+4) { border-bottom: 0; }
  .analytics-ribbon strong { font-size: 25px; }
  .analytics-ribbon span { font-size: 9px; }
  .risk-presets { grid-template-columns: 1fr; gap: 11px; }
  .risk-presets > button { padding: 15px; }
  .risk-presets > button.active { padding: 14px; }
  .operator-dialog { padding: 22px 17px; }
  .operator-dialog h2 { font-size: 19px; }
}
.floating-hub { position: fixed; width: 68px; height: 68px; z-index: 40; }
.float-toggle { width: 68px; height: 68px; display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.float-toggle > .holiday-art { width: 55px; height: 55px; filter: drop-shadow(0 4px 4px #001e1980); animation: gift-hover 4s ease-in-out infinite; }
.float-toggle > span { background: #fff1b6; color: #674615; border: 1px solid #bb8c31; border-radius: 12px; padding: 2px 8px; font-size: 9px; line-height: 1.4; font-weight: bold; margin-top: -2px; box-shadow: 0 2px 0 #2b5334; white-space: nowrap; }
.floating-hub.is-dragging .float-toggle { cursor: grabbing; }
.floating-hub.is-dragging .holiday-art { animation: none; }
.floating-actions { position: fixed; left: 8px; top: 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 218px; background: #fff9e9f7; backdrop-filter: blur(10px); border: 2px solid #dab45e; border-radius: 17px; box-shadow: 0 8px 35px #00261a66; padding: 9px; }
.floating-actions[hidden] { display: none; }
.floating-hub.open-left .floating-actions { right: 74px; left: auto; }
.floating-hub.open-up .floating-actions { top: auto; bottom: 0; }
.floating-actions > button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 3px; border: 0; border-radius: 10px; background: none; font-size: 10px; color: #345540; font-weight: bold; line-height: 1.3; }
.floating-actions > button:hover { background: #f0e5c4; }
.floating-actions .holiday-art { width: 39px; height: 39px; }
.floating-actions span { min-height: 25px; display: grid; place-items: center; text-align: center; }
.language-dialog .dialog-art { margin-bottom: 13px; }
.welcome-art { display: block; width: 100%; height: auto; border-radius: 13px; border: 1px solid #d6b36c; margin-bottom: 18px; }
.enrollment-dialog { padding-top: 41px; }
.language-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 24px; max-height: 55dvh; overflow: auto; padding: 4px; }
.language-choices > button { border: 2px solid #cbdbd1; border-radius: 13px; background: #fffef6; color: #39614c; min-height: 99px; padding: 15px 8px; display: flex; flex-direction: column; gap: 7px; align-items: center; position: relative; }
.language-choices > button > span { font-size: 28px; line-height: 1.2; }
.language-choices > button > strong { font-size: 13px; }
.language-choices > button[aria-pressed="true"] { border-color: #48914b; background: #eff7df; box-shadow: 0 3px 0 #bfd5a6; }
.language-choices .mini-icon { position: absolute; right: 7px; top: 7px; width: 15px; height: 15px; color: #3d863a; }
.share-dialog { width: min(460px,calc(100% - 26px)); }
.share-dialog h2 { padding: 0 14px; font-size: 23px; }
.share-poster { display: block; width: 100%; height: auto; border-radius: 11px; margin-top: 21px; border: 1px solid #d2ad62; }
.share-caption { text-align: left; background: #eef5e9; border-radius: 8px; padding: 10px 12px; margin: 13px 0 15px; font-size: 11px; line-height: 1.7; color: #4b6a50; }
.share-link-label { display: flex; flex-direction: column; gap: 6px; text-align: left; font-size: 10px; color: #5d735e; margin-bottom: 13px; }
.share-link-label > input { width: 100%; min-height: 37px; border: 1px solid #b5cdbb; background: #fff; border-radius: 6px; font-size: 11px; color: #48684c; padding: 8px 10px; }
.share-dialog .game-button { min-height: 45px; font-size: 14px; padding: 10px 12px; }
.share-status { min-height: 18px; font-size: 10px; color: #8f5132; margin-top: 11px; }
.share-status.success { color: #377a38; font-weight: bold; }
.share-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 13px 0; }
.share-secondary > button, .share-secondary > a { display: flex; align-items: center; justify-content: center; text-align: center; padding: 9px 7px; min-height: 39px; border: 1px solid #b8cbb5; background: #f8fbf1; color: #486645; border-radius: 7px; font-size: 10px; }
.share-system { width: 100%; border: 1px solid #ba902f; background: #fff0b8; color: #7c591e; font-size: 12px; border-radius: 8px; min-height: 41px; padding: 8px 12px; font-weight: bold; }
.share-system:disabled { opacity: .55; }
.share-native-note { font-size: 9px; color: #5a705d; margin-top: 10px; line-height: 1.7; }
.prize-rank { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--round); font-weight: 900; font-size: 21px; padding: 8px 20px; border: 2px solid #ba8624; background: linear-gradient(#fff0aa,#ffcd4c); color: #80500a; border-radius: 10px 10px 15px 15px; box-shadow: inset 0 2px 0 #fff8d4, 0 3px 0 #c58d2e; margin: 8px 0 12px; }
.prize-rank > span { font-size: 25px; line-height: 1; }
.prize-rank.rank-2 { background: linear-gradient(#f8fdff,#c7dbe7); color: #435f73; border-color: #8ea9bb; box-shadow: inset 0 2px 0 #fff,0 3px 0 #8ea9bb; }
.prize-rank.rank-3 { background: linear-gradient(#ffebd3,#efbb83); color: #87532b; border-color: #c58a52; box-shadow: inset 0 2px 0 #fff2e1,0 3px 0 #c58a52; }
.prize-rank.rank-4 { background: linear-gradient(#e9f7d8,#b8d998); color: #476d2d; border-color: #87ac63; box-shadow: inset 0 2px 0 #f2ffe4,0 3px 0 #87ac63; }
.prize-rank.rank-5 { background: linear-gradient(#f0eaff,#d5b9ed); color: #75518f; border-color: #ac8dc4; box-shadow: inset 0 2px 0 #fff,0 3px 0 #ac8dc4; }
.reward-heading .prize-rank { font-size: 12px; padding: 5px 9px; margin: 0; gap: 5px; border-width: 1px; border-radius: 7px; box-shadow: none; }
.reward-heading .prize-rank > span { font-size: 16px; }
.reward-tier-name { font-size: 11px; color: #916528; margin-top: 12px; font-weight: bold; }
.winning-dialog .win-title { font-size: 25px; margin-top: 15px; }
.question-evidence { text-align: left; margin: 23px 0 0; }
.question-evidence dt { font-size: 10px; font-weight: bold; color: #7d6636; margin-top: 17px; }
.question-evidence dd { margin: 7px 0 0; padding: 11px 13px; background: #f2f7ec; border: 1px solid #d3e1cc; border-radius: 8px; font-size: 12px; color: #436449; white-space: pre-wrap; line-height: 1.8; word-break: break-word; }
.question-evidence a { display: block; text-decoration: underline; color: #a66b1b; font-size: 11px; margin-top: 5px; }
.resolution-editor { background: #f1f8f4; border: 1px solid #d8e5dc; border-radius: 7px; margin-top: 24px; padding: 19px; }
.resolution-editor h3 { font-size: 14px; margin-bottom: 15px; }
.risk-form .form-row { align-items: flex-start; }
.risk-form .field { min-width: 180px; }
@keyframes gift-hover { 50% { transform: translateY(-4px) rotate(3deg); } }
@media (max-width: 370px) {
  .game-world .game-header { min-height: 47px; padding: 8px 13px 6px; }
  .game-world .wecard-logo > span { font-size: 23px; }
  .game-world .game-stage { padding: 0 10px; }
  .game-world .game-main { min-height: calc(100dvh - 61px); }
  .game-world .game-tagline { font-size: 11px; padding: 8px 2px 10px; }
  .game-world .quiz-paper { padding: 13px 13px 10px; }
  .game-world #quiz-title { font-size: 21px; }
  .game-world .game-answer > span { font-size: 11px; }
  .game-world .game-answer { min-height: 44px; padding: 7px 9px; }
  .game-world .game-button { font-size: 14px; }
  .game-world .boost-ranges > div { flex-direction: column; gap: 1px; }
  .game-world.has-entry #quiz-title { font-size: 18px; }
  .game-world .boost-meter-heading > span { max-width: 165px; }
  .floating-actions { width: 202px; }
  .resolution-editor { padding: 14px; }
  .risk-form .field { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .float-toggle > .holiday-art { animation: none; } }
