/* The legal gate blocks registered play until server-verified agreement. */
.wcsm-legal-gate{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;background:rgba(9,18,30,.78);backdrop-filter:blur(12px);padding:16px;padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(16px,env(safe-area-inset-bottom));box-sizing:border-box}
.wcsm-legal-gate.is-hidden{display:none!important}
body.wcsm-legal-locked{overflow:hidden}
.wcsm-legal-panel{width:min(100%,440px);max-height:100%;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;border-radius:18px;padding:22px 20px 16px;background:#f8f6f1;color:#1c2931;border:1px solid rgba(255,255,255,.75);box-shadow:0 25px 90px rgba(0,0,0,.46);font-family:system-ui,-apple-system,'Noto Sans KR',sans-serif}
.wcsm-legal-kicker{font-size:10px;font-weight:800;color:#647d8e;letter-spacing:.16em}
.wcsm-legal-panel h2{font-size:22px;color:#213b4b;margin:9px 0 6px;font-weight:900;line-height:1.3}
.wcsm-legal-lead{font-size:12px;line-height:1.65;margin:0 0 16px;color:#536775}
.wcsm-legal-option{display:flex;align-items:flex-start;gap:10px;padding:12px 4px;border-top:1px solid #dde3e7;cursor:pointer}
.wcsm-legal-option input{margin:3px 0 0;flex:none;width:18px;height:18px;accent-color:#d96b56}
.wcsm-legal-option span{flex:1;min-width:0}
.wcsm-legal-option b{display:block;font-size:13px;line-height:1.45}
.wcsm-legal-option small{display:block;margin-top:5px;font-size:11px;color:#61717b;line-height:1.5}
.wcsm-legal-option a{flex:none;font-size:11px;color:#45657b;text-decoration:underline;white-space:nowrap}
.wcsm-legal-note{border-radius:9px;background:#ebf1f4;padding:10px;font-size:11px;color:#536775;line-height:1.55;margin:5px 0 10px}
.wcsm-legal-error{font-size:12px;color:#b83f33;line-height:1.5;margin:4px 0 8px;min-height:0}
.wcsm-legal-error:empty{display:none}
.wcsm-legal-submit,.wcsm-legal-guest{width:100%;border:0;border-radius:10px;cursor:pointer;padding:13px;font-family:inherit;font-size:13px;font-weight:800}
.wcsm-legal-submit{background:#d96b56;color:white}
.wcsm-legal-submit:disabled{opacity:.48;cursor:not-allowed}
.wcsm-legal-guest{margin-top:8px;background:#e6ebed;color:#4f626d}
.wcsm-legal-version{text-align:center;margin-top:10px;color:#8b979d;font-size:10px}
@media(max-height:630px){.wcsm-legal-panel{padding:14px}.wcsm-legal-option{padding:8px 2px}.wcsm-legal-lead{margin-bottom:9px}}

.wcsm-legal-age-group{display:grid;grid-template-columns:1fr;gap:8px;border:1px solid #dde3e7;border-radius:10px;margin:8px 0 12px;padding:11px 12px}
.wcsm-legal-age-group legend{font-size:12px;font-weight:800;color:#283f4a;padding:0 5px}
.wcsm-legal-age-group label{font-size:12px;display:flex;align-items:center;gap:9px;cursor:pointer}
.wcsm-legal-age-option{padding:10px 12px;border:1px solid #dce4e8;border-radius:10px;background:#fff;line-height:1.45}
.wcsm-legal-age-option:has(input:checked){border-color:#d96b56;background:#fff8f5}
.wcsm-legal-age-option span{display:flex;flex-direction:column;gap:4px}
.wcsm-legal-age-option b{font-size:13px;color:#253e4a}
.wcsm-legal-age-option small{font-size:11px;color:#647882}
.wcsm-legal-age-group input{accent-color:#d96b56}
.wcsm-guardian-panel{border:1px solid #e3b6a9;background:#fff9f6;border-radius:12px;padding:13px;margin-bottom:12px}
.wcsm-guardian-panel[hidden]{display:none!important}
.wcsm-guardian-panel h3{font-size:15px;margin:0 0 5px}
.wcsm-guardian-panel p{font-size:11px;color:#596d79;line-height:1.5;margin:0 0 9px}
.wcsm-guardian-service-note{color:#b83f33!important;background:#ffede9;border-radius:8px;padding:8px 10px}
.wcsm-guardian-service-note[hidden]{display:none!important}
.wcsm-guardian-field{display:block;font-size:12px;font-weight:700;margin:9px 0;color:#253e4a}
/* Force legible, editable guardian fields across browsers and dark-mode defaults. */
.wcsm-legal-panel .wcsm-guardian-field input[type="text"],
.wcsm-legal-panel .wcsm-guardian-field input[type="tel"]{
  display:block;
  width:100%;
  box-sizing:border-box;
  min-height:46px;
  padding:11px 12px;
  margin-top:4px;
  border:1px solid #ced7dd;
  border-radius:8px;
  background-color:#fff;
  color:#253e4a;
  -webkit-text-fill-color:#253e4a;
  caret-color:#d96b56;
  color-scheme:light;
  font:400 16px/1.4 system-ui,-apple-system,'Noto Sans KR',sans-serif;
  opacity:1;
  -webkit-user-select:text;
  user-select:text;
  touch-action:manipulation;
}
.wcsm-legal-panel .wcsm-guardian-field input::placeholder{
  color:#7b8b96;
  opacity:1;
}
.wcsm-legal-panel .wcsm-guardian-field input:focus{
  border-color:#d96b56;
  outline:2px solid rgba(217,107,86,.2);
  outline-offset:0;
}
.wcsm-legal-panel .wcsm-guardian-field input:-webkit-autofill{
  -webkit-text-fill-color:#253e4a;
  box-shadow:0 0 0 1000px #fff inset;
}
.wcsm-guardian-approval{margin-top:10px;padding:10px 0 3px}
.wcsm-guardian-disclaimer{display:block;color:#6a7d85;font-size:10px;line-height:1.5}


.wcsm-guardian-info{background:#f2f6f8;padding:9px 10px;border-radius:9px}
.wcsm-guardian-check-approval{display:block;width:100%;border:0;border-radius:10px;margin-top:8px;padding:13px;background:#45657b;color:#fff;font-size:13px;font-weight:800;cursor:pointer}
.wcsm-guardian-check-approval[hidden],.wcsm-legal-submit[hidden]{display:none!important}
