/* Reference C: actual clean temple art behind real controls and a native circular dial. */
.starter-c-overlay[hidden], .starter-c-overlay [hidden] { display: none !important; }
.starter-c-overlay {
  position: fixed; inset: 0; z-index: 14100; display: grid; place-items: center; padding: 18px;
  overflow: auto; overscroll-behavior: contain; color: #edd0a2;
  background: linear-gradient(90deg, #080d15e8, #0c1423c7 50%, #080d15e8), url('../assets/img/ui/starter-selection-c.png') center/cover no-repeat, #0a121b;
  font: 16px/1.5 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; isolation: isolate;
}
.starter-c-overlay *, .starter-c-overlay *::before, .starter-c-overlay *::after { box-sizing: border-box; }
.starter-c-panel { position: relative; width: min(1050px, 100%); max-height: calc(100dvh - 36px); padding: 14px 26px 20px; overflow: auto; overscroll-behavior: contain; text-align: center; scrollbar-width: thin; scrollbar-color: #92714a #0c151e; }
.starter-c-brand { font: 18px/1.4 Georgia, serif; color: #d6b48a; letter-spacing: 5px; margin: 0 42px 10px; }
.starter-c-title { margin: 0 38px 7px; color: #f5cd85; font-size: 32px; line-height: 1.4; text-shadow: 0 2px 8px #000; word-break: keep-all; }
.starter-c-intro { color: #dfc597; margin: 0 0 16px; font-size: 16px; line-height: 1.7; word-break: keep-all; }
.starter-c-overlay button { font: inherit; cursor: pointer; }
.starter-c-overlay button:disabled { cursor: not-allowed; }
.starter-c-overlay button:focus-visible { outline: 3px solid #ade7ec; outline-offset: 5px; }
.starter-c-close { position: absolute; right: 4px; top: 0; width: 44px; height: 44px; border: 0; color: #e9c994; background: #09121c99; border-radius: 50%; font-size: 30px !important; }
.starter-c-wheel { position: relative; width: min(660px, 60dvh); aspect-ratio: 1; margin: 0 auto 20px; border: 2px solid #967043; border-radius: 50%; background: radial-gradient(circle, #121821e3 0 28%, #2d241eda 29% 42%, #1b222ad9 43% 61%, #413024c9 62% 64%, #18222cc4 65%); box-shadow: 0 0 0 7px #141b2399, 0 0 0 9px #6b5338, inset 0 0 0 8px #090f1c99, inset 0 0 0 11px #755b3866, 0 12px 35px #000b; }
.starter-c-wheel::before { content: ''; position: absolute; inset: 9%; border: 1px solid #bb874859; border-radius: 50%; pointer-events: none; }
.starter-c-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34%; aspect-ratio: 1; border: 2px solid #a17849; border-radius: 50%; background: radial-gradient(ellipse, #332819, #141b22 74%); box-shadow: inset 0 0 0 4px #0e141b, 0 0 0 3px #5b442f; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 10px; gap: 13px; }
.starter-c-count { display: block; color: #f6cd7e; font-size: 30px; line-height: 1.4; }
.starter-c-center-text { font-size: 13px; line-height: 1.6; word-break: keep-all; color: #d6bf95; }
.starter-c-attribute { position: absolute; width: 130px; padding: 0 6px 5px; border: 0; background: transparent; color: #ead1a0; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; }
.starter-c-fire { left: 20%; top: 28%; }
.starter-c-water { left: 50%; top: 12%; }
.starter-c-earth { left: 80%; top: 28%; }
.starter-c-wind { left: 80%; top: 72%; }
.starter-c-light { left: 50%; top: 88%; }
.starter-c-dark { left: 20%; top: 72%; }
.starter-c-icon { display: block; width: clamp(78px, 12dvh, 112px); aspect-ratio: 1; position: relative; overflow: hidden; border: 3px solid #816a52; border-radius: 50%; background: radial-gradient(ellipse, #1d2330, #050b16 76%); box-shadow: inset 0 0 0 3px #0e1721, 0 3px 10px #000a; }
.starter-c-icon > img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.starter-c-attribute:hover:not(:disabled) .starter-c-icon { border-color: #e4b571; }
.starter-c-attribute.is-selected .starter-c-icon { border-color: #ffcc6e; box-shadow: 0 0 0 3px #ba76289c, 0 0 20px #faab397d, inset 0 0 0 3px #2b1a13; }
.starter-c-selected-check { position: absolute; top: 0; left: calc(50% + 28px); width: 32px; height: 32px; display: grid; place-items: center; color: #fff2ab; font-size: 23px; font-weight: bold; background: #84510b; border: 2px solid #f0c66e; border-radius: 50%; z-index: 3; }
.starter-c-attribute-name { display: block; font-size: 20px; line-height: 1.4; }
.starter-c-card-count { display: block; font-size: 15px; line-height: 1.5; color: #c8b28f; }
.starter-c-selection { margin: 6px 0; font-size: 16px; color: #f0d4a3; }
.starter-c-status, .starter-c-error { font-size: 14px; line-height: 1.7; margin: 7px auto; max-width: 590px; word-break: keep-all; }
.starter-c-status { color: #c9dad8; }
.starter-c-status:empty { display: none; }
.starter-c-error { color: #f7baaa; }
.starter-c-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 13px 0 0; }
.starter-c-submit, .starter-c-confirm { min-height: 54px; min-width: 260px; padding: 9px 28px; color: #f8d391; font-size: 23px !important; border: 2px solid #c19758; border-radius: 9px; background: linear-gradient(135deg, #5c4831, #19222a 18%, #17232c 82%, #644a2c); box-shadow: inset 0 0 0 2px #0f161c, 0 4px 15px #000b; }
.starter-c-submit:disabled { color: #c6b292; border-color: #77674e; background: #18242b; }
.starter-c-check-state, .starter-c-retry, .starter-c-cancel, .starter-c-back { min-height: 44px; padding: 9px 15px; border: 1px solid #8a7252; border-radius: 4px; background: #14222c; color: #d9c29f; }
.starter-c-footnote { margin: 10px auto 0; max-width: 660px; font-size: 13px; line-height: 1.8; color: #bbae98; word-break: keep-all; }
@media (max-width: 760px), (max-height: 760px) {
  .starter-c-overlay { padding: 14px; }
  .starter-c-panel { max-height: calc(100dvh - 28px); padding: 16px 14px 20px; background: #091521d9; border: 1px solid #8e704b; border-radius: 8px; }
  .starter-c-brand { font-size: 14px; letter-spacing: 3px; margin: 0 28px 12px; }
  .starter-c-title { font-size: 24px; margin: 0 24px 10px; }
  .starter-c-intro { font-size: 14px; }
  .starter-c-wheel { width: 100%; aspect-ratio: auto; border: 0; border-radius: 0; background: none; box-shadow: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 6px; }
  .starter-c-wheel::before { display: none; }
  .starter-c-center { position: static; transform: none; width: auto; aspect-ratio: auto; grid-column: 1/-1; border: 1px solid #9b7a4e; border-radius: 8px; padding: 9px 10px; gap: 3px; }
  .starter-c-count { font-size: 24px; }
  .starter-c-attribute { position: relative; top: auto; left: auto; width: auto; min-width: 0; transform: none; padding: 0 2px 5px; }
  .starter-c-icon { width: min(90px, 100%); }
  .starter-c-selected-check { left: calc(50% + 13px); width: 28px; height: 28px; font-size: 19px; }
  .starter-c-attribute-name { font-size: 18px; }
  .starter-c-card-count { font-size: 14px; }
  .starter-c-submit, .starter-c-confirm { min-width: 0; width: 100%; font-size: 20px !important; }
  .starter-c-selection { font-size: 14px; }
}
@media (max-width: 360px) {
  .starter-c-wheel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 8px; }
  .starter-c-title { margin-inline: 17px; }
}
@media (prefers-reduced-motion: no-preference) { .starter-c-icon { transition: border-color .12s, box-shadow .12s; } }
