/* shared by index.html (와인터널), arena.html (소싸움경기장) and luge.html (군파크 루지): customiser, map picker, boot messages */
/* ---------- avatar customiser (pre-game) */
#customizer { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 38%, #d6e0dd 0%, #bccbc8 55%, #a9bbb7 100%); color: #22302d; }
.cz-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 0; }
.cz-logo { font-size: 22px; font-weight: 800; letter-spacing: -.5px; color: #3b1d2a; }
.cz-logo span { font-size: 15px; font-weight: 600; color: #5d6f6b; margin-left: 6px; }
.cz-gender { display: flex; background: #fff9; border-radius: 999px; padding: 4px; box-shadow: 0 2px 10px #0001; }
.cz-gender button { border: 0; background: transparent; padding: 7px 18px; border-radius: 999px; font-weight: 700; color: #4d5c59; cursor: pointer; }
.cz-gender button.on { background: #7a2140; color: #fff; }
.cz-stage { position: relative; flex: 1; min-height: 200px; cursor: grab; touch-action: none; }
.cz-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.cz-hint { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); font-size: var(--font-size-small); color: #5d6f6b; pointer-events: none; }
.cz-panel { width: min(920px, 100vw); box-sizing: border-box; margin: 0 auto 14px; padding: 12px 16px 14px; background: #ffffffe8; border-radius: 22px; box-shadow: 0 10px 40px #2a3b3818; }
.cz-tabs { display: flex; gap: 4px; align-items: center; border-bottom: 1px solid #e3e9e7; padding-bottom: 8px; overflow-x: auto; }
.cz-tabs button { border: 0; background: transparent; padding: 8px 12px; border-radius: 10px; font-weight: 700; color: #6b7c78; cursor: pointer; white-space: nowrap; }
.cz-tabs button.on { color: #7a2140; background: #f6e7ec; }
.cz-tabs .cz-random { margin-left: auto; color: #22302d; background: #eef3f2; }
.cz-options { display: flex; gap: 8px; padding: 12px 2px 8px; overflow-x: auto; min-height: 86px; }
.cz-tile { flex: 0 0 auto; width: 96px; height: 94px; border-radius: 16px; border: 2px solid #e3e9e7; background: #f6f9f8; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; color: #33423f; }
.cz-tile .i { font-size: 28px; line-height: 1; }
.cz-tile .l { font-size:var(--font-size-small); font-weight:600; line-height:1.4; padding-inline:4px; text-align:center; word-break:keep-all; }
.cz-tile .dot { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 -3px 6px #0002; }
.cz-tile.on { border-color: #7a2140; background: #fff; box-shadow: 0 4px 14px #7a214026; }
.cz-swatches { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; min-height: 30px; padding: 2px 2px 10px; }
.cz-swl { font-size: var(--font-size-small); color: #6b7c78; margin-right: 4px; }
.cz-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9d3d1; cursor: pointer; padding: 0; }
.cz-sw.on { box-shadow: 0 0 0 2px #7a2140; }
.cz-sw.custom { position: relative; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.cz-sw.custom input { position: absolute; inset: -6px; opacity: 0; cursor: pointer; }
.cz-enter { display: flex; gap: 8px; border-top: 1px solid #e3e9e7; padding-top: 10px; }
.cz-name { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid #cfd9d6; background: #fff; color: #22302d; }
.cz-go { padding: 11px 22px; border-radius: 12px; border: 0; background: linear-gradient(#9b2c52, #6d1a36); color: #fff; font-weight: 800; cursor: pointer; }
@media (max-width: 560px) { .cz-tile { width: 96px; height: 94px; } .cz-logo span { display: none; } }
#boot-msg { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 50; width: min(520px, 90vw); padding: 22px 24px; border-radius: 16px; background: #fff6e2; color: #3a2410; border: 3px solid #c0392b; font-size: 15px; line-height: 1.6; box-shadow: 0 20px 60px #000a; }
#boot-msg code { background: #0001; padding: 1px 5px; border-radius: 4px; }
#boot-msg button { margin-top: 12px; padding: 9px 16px; border-radius: 10px; border: 0; background: #7a2140; color: #fff; font-weight: 700; cursor: pointer; }
.cz-ver { font-size: var(--font-size-small); font-weight: 700; color: #7a2140; background: #fff9; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

/* ---------- map picker (after the customiser) */
#mapsel { position: fixed; inset: 0; z-index: 21; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle at 50% 38%, #d6e0dd 0%, #bccbc8 55%, #a9bbb7 100%); color: #22302d; font-family:var(--font-ui); }
#mapsel h2 { margin: 0; font-size: 24px; color: #3b1d2a; }
#mapsel p { margin: 0; color: #5d6f6b; font-size: var(--font-size-small); }
.ms-cards { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; padding: 0 12px; }
.ms-card { width: min(300px, 86vw); border: 3px solid transparent; border-radius: 22px; background: #fff; padding: 0 0 16px; cursor: pointer; text-align: left; box-shadow: 0 10px 34px #2a3b3826; overflow: hidden; color: #22302d; font: inherit; transition: transform .15s; }
.ms-card:hover, .ms-card:focus-visible { transform: translateY(-4px); border-color: #7a2140; outline: none; }
.ms-card .art { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.ms-card.tunnel .art { background: linear-gradient(135deg, #3a1d10, #8a4a22 60%, #f0b060); }
.ms-card.luge .art { background: linear-gradient(135deg, #2e6b3a, #9fd08a 55%, #c8442e); }
.ms-card.arena .art { background: linear-gradient(135deg, #2f6fd6, #e9d3a0 50%, #d64040); }
.ms-card b { display: block; font-size: 19px; margin: 12px 16px 4px; }
.ms-card span { display: block; font-size: var(--font-size-small); color: #5d6f6b; margin: 0 16px; line-height: 1.5; }
.ms-card em { display: inline-block; margin: 8px 16px 0; font-style: normal; font-size: var(--font-size-small); color: #7a2140; background: #f6e7ec; padding: 2px 9px; border-radius: 999px; }
.ms-back { border: 0; background: transparent; color: #4d5c59; text-decoration: underline; cursor: pointer; font: inherit; font-size: var(--font-size-small); }
.portal-wrap { position: fixed; right: 14px; top: 12px; z-index: 7; display: flex; gap: 6px; }
.portal-btn { padding: 9px 14px; border-radius: 999px; border: 1px solid #ffffff55; background: #1e1008cc; color: #ffe2b8; font-weight: 700; cursor: pointer; font-size: var(--font-size-small); }
.portal-btn:hover { background: #3a2010ee; }
