:root{font-family:Pretendard,'Apple SD Gothic Neo','Noto Sans KR',system-ui,sans-serif;color:#f3f2e7;background:#132932;color-scheme:dark}*{box-sizing:border-box}body.dice-standalone{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 75% -10%,#34525b 0%,#1b3740 34%,#102934 73%);line-height:1.6}a{color:inherit;text-decoration:none}button,select,input{font:inherit}button{cursor:pointer}[hidden]{display:none!important}:is(a,button,input,select,summary):focus-visible{outline:3px solid #f7db9d;outline-offset:3px}
.local-header{height:68px;max-width:1160px;margin:auto;padding:0 24px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;border-bottom:1px solid #52737c66}.local-header strong{font-size:15px;letter-spacing:-.025em}.local-back,.local-sibling{display:inline-flex;align-items:center;min-height:44px;font-size:12px;font-weight:750;white-space:nowrap}.local-sibling{justify-self:end;background:#2a4a54;border:1px solid #587680;padding:10px 14px;border-radius:10px}.local-back:hover,.local-sibling:hover{color:#ffd79e}
.local-page{max-width:1040px;margin:auto;padding:24px 20px 62px}.local-hero{display:flex;align-items:center;justify-content:space-between;gap:25px;min-height:210px;padding:16px 26px 30px}.local-hero>div:first-child{max-width:680px}.local-overline{font-size:12px;font-weight:800;color:#edc78b;letter-spacing:.01em}.local-hero h1{margin:9px 0 12px;font-size:clamp(32px,4.7vw,51px);font-weight:850;letter-spacing:-.055em;line-height:1.25}.local-hero p{margin:0;color:#c9d9d6;font-size:14px;line-height:1.8;word-break:keep-all}.local-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.local-tags span{font-size:11px;font-weight:650;border:1px solid #66838a;color:#e1eadd;padding:5px 12px;border-radius:999px}.local-hero-art{width:155px;height:155px;flex-shrink:0;display:grid;place-content:center;justify-items:center;gap:2px;border-radius:25px;background:radial-gradient(circle at 30% 20%,#f9e2b4,#b98163 78%);border:1px solid #eacfa8;box-shadow:0 16px 38px #0004,inset 0 2px 14px #fff4;transform:rotate(7deg);color:#523d36}.local-hero-art span{font-size:79px;line-height:1.2}.local-hero-art small{font-weight:900;letter-spacing:.09em;font-size:8px}body[data-local-game='hwatu'] .local-hero-art{background:radial-gradient(circle at 35% 25%,#f4d9b3,#a9524b 90%)}
.local-game-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.local-game-nav a{display:inline-flex;align-items:center;min-height:42px;padding:9px 16px;font-size:12px;font-weight:750;color:#c7d8d4;background:#213e49;border:1px solid #4d6d79;border-radius:10px}.local-game-nav a[aria-current='page']{color:#36291f;background:#ecc497;border-color:#efd09f}.local-game-nav a:hover{border-color:#ecc497}
#diceModal.local-play{padding:0;max-width:100%;border:1px solid #577681;border-radius:21px;overflow:hidden;background:#182f38;box-shadow:0 22px 60px #05192380}#diceModal .dice-panel{max-width:none;max-height:none;margin:0;display:block;width:100%;background:transparent;border:0;box-shadow:none}#diceModal .dice-content{padding:24px;overflow:visible;overscroll-behavior:auto}#diceModal .dice-play-modes{max-width:570px}.local-play-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:21px 24px;border-bottom:1px solid #48616b;background:linear-gradient(115deg,#254653,#19343c)}.local-play-heading h2{margin:7px 0 0;font-size:23px;letter-spacing:-.035em}.online-link{color:#293c33;font-size:12px;font-weight:800;background:#d5efb4;padding:12px 16px;border-radius:10px;white-space:nowrap}.online-link:hover{background:#e2f6ca}
#diceModal .dice-settings{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}#diceModal .dice-rule-field{grid-column:span 2}#diceModal .dice-names{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}#diceModal .dice-name-field{min-width:0;padding:0 9px}#diceModal .dice-actions{padding:18px 24px;display:flex;align-items:center;gap:11px;flex-wrap:wrap}#diceModal .dice-actions .btn-primary,#diceModal .dice-actions .btn-secondary{width:auto;flex:1 1 220px;min-height:49px;border-radius:11px;font-weight:800}#diceModal .dice-actions .btn-primary{border:1px solid #f1bc94;background:#f3c69f;color:#3a3028}#diceModal .dice-actions .btn-secondary{border:1px solid #7d9b9c;background:#2b4b54;color:#e6efe3}#diceModal .dice-actions .dice-hint{flex:1 1 100%;margin:0}.dice-standalone .dice-play-modes a{min-height:44px;flex:1;display:grid;place-content:center;color:#e4ded1;text-align:center;font-size:12px;border-radius:7px}.dice-standalone .dice-play-modes a:hover{background:#355663}
#diceModal .dice-roll-stage{min-height:180px}#diceModal #dice-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#diceModal .dice-result{min-width:0}.dice-standalone .dice-result-top{flex-wrap:wrap}#diceModal .dice-result-score{max-width:none}.dice-standalone .dice-names-title{font-size:17px}.dice-standalone #dice-results-title{margin:0}.local-guide{padding:22px 20px;margin:20px 0;border:1px solid #44616b;border-radius:14px;background:#19333c}.local-guide h2{margin:0 0 8px;font-size:17px}.local-guide p{font-size:12px;color:#c0d0ce;line-height:1.9;margin:0}.local-footer{display:flex;justify-content:space-between;gap:15px;max-width:1040px;margin:auto;padding:20px 25px 33px;border-top:1px solid #415d67;font-size:12px;color:#b2c8c7}.local-footer a:hover{color:#f1d0a5}
@media(max-width:750px){.local-page{padding:16px 14px 48px}.local-header{padding:0 14px}.local-hero{padding:12px 6px 28px}.local-hero-art{width:95px;height:95px;border-radius:17px}.local-hero-art span{font-size:46px}.local-hero-art small{font-size:5px}#diceModal .dice-settings{grid-template-columns:repeat(2,minmax(0,1fr))}#diceModal .dice-rule-field{grid-column:1 / -1}#diceModal .dice-names{grid-template-columns:repeat(2,minmax(0,1fr))}#diceModal #dice-results{grid-template-columns:1fr}#diceModal .dice-content{padding:18px}.local-play-heading{padding:18px}.dice-standalone #diceModal .dice-actions{padding:16px 18px}}
@media(max-width:430px){.local-header strong{font-size:12px}.local-back,.local-sibling{font-size:10px}.local-sibling{padding:8px 7px}.local-hero-art{display:none}.local-hero h1{font-size:33px}.local-hero p{font-size:12px}.local-hero{min-height:0}.local-game-nav a{flex:1 1 calc(50% - 6px);justify-content:center;padding:9px 6px}.local-play-heading h2{font-size:19px}.online-link{font-size:10px;padding:10px}.dice-standalone #diceModal .dice-settings>.dice-field:first-child{grid-column:1 / -1}.dice-standalone #diceModal .dice-names{grid-template-columns:1fr}.dice-standalone #diceModal .dice-actions{flex-direction:column;align-items:stretch}.dice-standalone #diceModal .dice-actions .btn-primary,.dice-standalone #diceModal .dice-actions .btn-secondary{flex:none;width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.local-hero-art{transform:none}}

/* Compact credits: licensed CC0 audio is disclosed without interrupting play. */
.hwatu-audio-credits {max-width:1040px;margin:0 auto 24px;padding:0 22px;color:#adcbc4;font-size:11px;}
.hwatu-audio-credits summary {display:list-item;width:fit-content;cursor:pointer;min-height:32px;}
.hwatu-audio-credits p {line-height:1.8;margin:5px 0 0;}
.hwatu-audio-credits a {color:#e8d49f;text-decoration:underline;text-underline-offset:2px;}
