/*
  ****************************** 공통 ******************************
*/
* {box-sizing:border-box;}
html, body {overflow:hidden; height:100%; margin:0;}
body {font-family:"Malgun Gothic", "Apple SD Gothic Neo", sans-serif; font-size:14px; line-height:1.4; color:#f2f2f2; background:#14161b;}
button, input, select {font-family:inherit; font-size:14px;}
button {cursor:pointer;}
button:disabled {cursor:default; opacity:0.62;}
:focus-visible {outline:3px solid #ffd84d; outline-offset:2px;}
[hidden] {display:none !important;}
.ir {position:absolute; overflow:hidden; width:1px; height:1px; margin:-1px; padding:0; border:0; clip:rect(0,0,0,0); white-space:nowrap;}
.skipNav {position:absolute; left:-9999px; top:0; overflow:hidden; width:1px; height:1px;}
.skipNav:focus {left:0; z-index:9999; overflow:visible; width:auto; height:auto; color:#ffffff; padding:8px 16px; background:#000000;}

/*
  ****************************** 유세 광장 ******************************
*/
.plaza {position:relative; width:100%; height:100%;}
.stage {display:block; width:100%; height:100%; touch-action:none;}

/*
  *** 상단 정보
*/
.hudTop {display:flex; flex-direction:column; align-items:flex-start; gap:8px; position:absolute; left:12px; right:76px; top:12px; pointer-events:none;}
.topBar {display:flex; flex-wrap:wrap; align-items:center; gap:8px; pointer-events:auto;}
.topChip {color:#ffffff; padding:8px 12px; border-radius:18px; background:rgba(0,0,0,0.65);}
.topChip:empty {display:none;}
.topButton {color:#ffffff; padding:8px 12px; border:1px solid rgba(255,255,255,0.5); border-radius:18px; background:rgba(0,0,0,0.65);}
.adminNotice {max-width:100%; color:#222222; font-size:14px; font-weight:700; line-height:1.4; margin:0; padding:8px 14px; border-radius:14px; background:#ffd84d; box-shadow:0 2px 8px rgba(0,0,0,0.25); pointer-events:auto; overflow-wrap:anywhere;}
.speechBar {color:#ffffff; background:#b8326b;}
.notice {max-width:100%; color:#ffffff; font-size:13px; margin:0; padding:6px 12px; border-radius:14px; background:rgba(0,0,0,0.6); pointer-events:none;}
.plaza[data-faction="blue"] #myName {background:#1a5cb0;}
.plaza[data-faction="red"] #myName {background:#b82a23;}
.plaza[data-faction="none"] #myName {background:#4f5560;}

/*
  *** 채팅
*/
.chatBox {display:flex; flex-direction:column; position:absolute; left:12px; bottom:12px; width:360px; max-width:calc(100% - 24px);}
.chatLog {overflow-y:auto; max-height:200px; color:#ffffff; margin:0 0 6px; padding:8px; border-radius:10px; background:rgba(0,0,0,0.6); list-style:none;}
.chatLog:empty {display:none;}
.chatLine {margin-bottom:5px; line-height:1.4; word-break:break-all;}
.chatName {color:#ffffff; font-weight:700; margin-right:6px; padding:1px 6px; border:0; border-radius:8px;}
.chatName.blue {background:#1a5cb0;}
.chatName.red {background:#b82a23;}
.chatName.none {background:#4f5560;}
.chatForm {display:flex; gap:6px;}
.chatInput {flex:1; min-width:0; height:40px; color:#ffffff; font-size:16px; padding:0 12px; border:1px solid rgba(255,255,255,0.4); border-radius:20px; background:rgba(0,0,0,0.7);}
.chatInput::placeholder {color:#d0d0d0;}
.chatSend {height:40px; color:#222222; font-weight:700; padding:0 16px; border:0; border-radius:20px; background:#ffd84d;}

/*
  *** 행동 버튼
*/
.actionBar {display:flex; flex-wrap:wrap; justify-content:center; gap:6px; position:absolute; left:50%; bottom:12px; padding:8px; border-radius:26px; background:rgba(0,0,0,0.6); transform:translateX(-50%);}
.actionButton {height:36px; color:#ffffff; padding:0 14px; border:1px solid rgba(255,255,255,0.4); border-radius:18px; background:rgba(255,255,255,0.12);}
.actionMain {color:#222222; font-weight:700; border-color:#ffd84d; background:#ffd84d;}
.truckBar {display:flex; gap:6px; position:absolute; left:0; top:0; padding:6px; white-space:nowrap; border-radius:24px; background:rgba(0,0,0,0.6); box-shadow:0 4px 14px rgba(0,0,0,0.35);}

/*
  *** 동작 도넛 메뉴
*/
.wheelBtn {display:flex; justify-content:center; align-items:center; position:absolute; left:0; top:0; width:38px; height:38px; color:#222222; padding:0; border:0; border-radius:19px; background:#ffd84d; box-shadow:0 3px 10px rgba(0,0,0,0.35);}
.wheel {position:absolute; left:50%; top:50%; width:340px; height:340px; max-width:calc(100% - 24px); transform:translate(-50%, -50%);}
.wheelSvg {display:block; width:100%; height:100%;}
.wheelWedge {cursor:pointer;}
.wheelWedge path {fill:rgba(15,18,26,0.88); stroke:#ffffff; stroke-width:1.5;}
.wheelWedge.pose path {fill:rgba(26,60,112,0.92);}
.wheelWedge.special path {fill:rgba(110,70,10,0.92);}
.wheelWedge text {font-size:14px; font-weight:700; fill:#ffffff; text-anchor:middle; pointer-events:none;}
.wheelWedge .wheelKey {font-size:11px; font-weight:400; fill:#ffd84d;}
.wheelWedge:hover path, .wheelWedge:focus-visible path {fill:#ffd84d;}
.wheelWedge:hover text, .wheelWedge:focus-visible text {fill:#222222;}
.wheelWedge:focus-visible {outline:none;}
.wheelWedge:focus-visible path {stroke:#ffffff; stroke-width:4;}
.wheelClose {position:absolute; left:50%; top:50%; width:84px; height:84px; color:#ffffff; font-weight:700; border:2px solid #ffffff; border-radius:42px; background:rgba(15,18,26,0.92); transform:translate(-50%, -50%);}
.actionSelect {height:36px; padding:0 8px; border:0; border-radius:18px;}

/*
  *** 시점 조절 버튼 (오른쪽 가운데, 모바일에서 엄지로 누르기 쉬운 자리)
*/
.camBar {display:flex; flex-direction:column; gap:8px; position:absolute; right:12px; top:50%; transform:translateY(-50%);}
.camButton {width:48px; height:48px; color:#ffffff; font-size:22px; font-weight:700; padding:0; border:1px solid rgba(255,255,255,0.5); border-radius:24px; background:rgba(0,0,0,0.65);}
.camView {height:auto; min-height:56px; font-size:12px; line-height:1.3; border-radius:16px;}
.camName {display:block; color:#ffd84d; font-size:13px;}

/*
  *** 이동 조이스틱 (터치 기기에서만 표시)
*/
.joystick {display:none; position:absolute; left:16px; bottom:170px; width:124px; height:124px; border:2px solid rgba(255,255,255,0.5); border-radius:62px; background:rgba(0,0,0,0.35); touch-action:none; user-select:none; -webkit-user-select:none;}
.joystickKnob {position:absolute; left:50%; top:50%; width:52px; height:52px; margin:-26px 0 0 -26px; border-radius:26px; background:rgba(255,216,77,0.9); box-shadow:0 3px 10px rgba(0,0,0,0.35); pointer-events:none;}

/*
  *** 악세서리 뽑기
*/
.topShop {color:#222222; font-weight:700; border-color:#ffd84d; background:#ffd84d;}
.shopDialog {width:400px; max-height:calc(100% - 32px); overflow-y:auto;}
.shopRow {display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:14px;}
.ticketCount {font-size:17px;}
.oddsTable {width:100%; font-size:13px; margin-bottom:16px; border-collapse:collapse;}
.oddsCaption {text-align:left; font-weight:700; margin-bottom:6px;}
.oddsTable th, .oddsTable td {text-align:left; padding:5px 6px; border-bottom:1px solid #e2e4e8;}
.oddsTable th {background:#f4f5f7;}
.shopTitle {font-size:16px; margin:0 0 6px;}
.payNotice {color:#555555; font-size:13px; line-height:1.5; margin:0 0 10px;}
.payHistory {display:flex; flex-direction:column; gap:6px; margin:0 0 8px; padding:0; list-style:none;}
.payHistoryItem {display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; font-size:14px; border:1px solid #dddddd; border-radius:10px;}
.payHistoryEmpty {color:#555555; font-size:14px;}
.refundButton {flex:none; height:32px; padding:0 12px; font-size:13px; border:1px solid #999999; border-radius:8px; background:#ffffff;}
.refundStatus {flex:none; color:#555555; font-size:13px; font-weight:700;}
.accountForm {display:flex; flex-direction:column; gap:6px; margin-bottom:16px;}
.accountPane {display:flex; flex-direction:column; gap:12px;}
.accountPane .dialogText {margin:0 0 4px;}
.accountGroup {display:flex; flex-direction:column; gap:6px; margin-top:12px;}
.accountInfo {font-size:15px; font-weight:700; margin:0;}
.fieldLabel {font-size:15px; font-weight:700; margin:0;}
.fieldHint {color:#595959; font-size:13px; line-height:1.5; margin:0;}
.fieldHint a, .payNotice a, .policyLinks a {color:#1a5cb0; text-underline-offset:2px;}
.fieldInput.accountInput {width:100%;}
.inlineField {display:flex; gap:8px;}
.inlineField .accountInput {flex:1; min-width:0;}
.inlineButton {flex:none; height:36px; padding:0 16px; color:#ffffff; font-weight:700; border:0; border-radius:8px; background:#222222;}
.accountActions {display:flex; flex-wrap:wrap; gap:8px; margin-top:16px;}
.socialButton {height:46px; font-size:15px; font-weight:700; border:1px solid #cccccc; border-radius:10px; background:#ffffff;}
.socialButton.google {display:flex; justify-content:center; align-items:center; gap:10px; width:100%; color:#1f1f1f; font-weight:500; padding:0 12px; border-color:#747775;}
.socialButton.google:hover {background:#f6f8fa;}
.socialButton.google:disabled {color:#8a8a8a; border-color:#d0d0d0; background:#f4f4f4; cursor:not-allowed;}
.checkLabel {display:flex; align-items:center; gap:8px; font-weight:700;}
.checkLabel input {width:18px; height:18px; margin:0; accent-color:#222222;}
.googleLogo {display:block; width:20px; height:20px;}
.policyLinks {color:#555555; font-size:13px; text-align:center; margin:12px 0 0;}
.policyDraft {color:#8a4b00; font-size:13px; font-weight:700; padding:8px 12px; margin:0 0 16px; border-radius:8px; background:#fff4e0;}
.accountMore {margin-top:24px; padding-top:12px; border-top:1px solid #e6e6e6;}
.moreItem {border-bottom:1px solid #e6e6e6;}
.moreItem summary {display:flex; align-items:center; justify-content:space-between; padding:14px 2px; font-weight:700; list-style:none; cursor:pointer;}
.moreItem summary::-webkit-details-marker {display:none;}
.moreItem summary::after {content:''; width:7px; height:7px; margin-right:4px; border-right:2px solid #8a8a8a; border-bottom:2px solid #8a8a8a; transform:rotate(45deg); transition:transform 0.2s ease-out;}
.moreItem[open] summary::after {transform:rotate(-135deg);}
.moreItem[open] {padding-bottom:16px;}
.moreItem .accountForm {margin:0 0 12px;}
.moreDanger summary {color:#b82a23;}
.inquiryText {height:auto; min-height:88px; resize:vertical; font:inherit;}
.inquiryItem {display:flex; flex-direction:column; gap:4px; padding:8px 10px; font-size:14px; border:1px solid #dddddd; border-radius:10px;}
.inquiryBody {margin:0; white-space:pre-wrap; overflow-wrap:anywhere;}
.inquiryAnswer {margin:0; padding:6px 8px; border-radius:8px; background:#fff6cc; white-space:pre-wrap; overflow-wrap:anywhere;}
.deleteButton {color:#ffffff; border-color:#b82a23; background:#b82a23;}
.productButton {height:44px; color:#222222; font-size:15px; font-weight:700; border:0; border-radius:10px; background:#ffd84d;}

.policyPage {overflow-y:auto; color:#222222; line-height:1.6; padding:24px 16px; background:#f4f5f7;}
.policyWrap {max-width:760px; margin:0 auto; padding:24px; border-radius:16px; background:#ffffff;}
.policyTitle {font-size:24px; margin:0 0 8px;}
.policyMeta {color:#666666; font-size:13px; margin:0 0 16px;}
.policyHeading {font-size:17px; margin:24px 0 8px;}
.policyList {margin:0; padding-left:20px;}
.policyTable {width:100%; font-size:13px; border-collapse:collapse;}
.policyTable th, .policyTable td {text-align:left; vertical-align:top; padding:8px; border:1px solid #e2e4e8;}
.policyTable th {background:#f4f5f7;}
.policyBack {margin-top:24px;}
.policyBack a {color:#1a5cb0;}

/*
  *** 지도 크게 보기
*/
.mapDialog {max-width:calc(100% - 16px); max-height:calc(100% - 16px); padding:12px; border:0; border-radius:16px; background:#0b0f1a;}
.mapDialog::backdrop {background:rgba(0,0,0,0.75);}
.mapCanvas {display:block; max-width:calc(100vw - 40px); max-height:calc(100vh - 100px); max-height:calc(100dvh - 100px);}
.mapClose {display:block; width:100%; height:44px; color:#222222; font-size:15px; font-weight:700; margin-top:10px; border:0; border-radius:10px; background:#ffd84d;}

/*
  *** 가까이 갔을 때 뜨는 상호작용 안내
*/
.interactHint {position:absolute; left:0; top:0; height:46px; color:#222222; font-size:16px; font-weight:800; padding:0 22px; white-space:nowrap; border:3px solid #ffffff; border-radius:23px; background:#ffd84d; box-shadow:0 0 0 4px rgba(255,216,77,0.35), 0 6px 16px rgba(0,0,0,0.45);}
.interactHint::after {content:""; position:absolute; inset:-3px; border-radius:23px; box-shadow:0 0 0 0 rgba(255,216,77,0.7); animation:interactPulse 1.4s ease-out infinite; pointer-events:none;}
@keyframes interactPulse {from {box-shadow:0 0 0 0 rgba(255,216,77,0.7);} to {box-shadow:0 0 0 14px rgba(255,216,77,0);}}
@media (prefers-reduced-motion: reduce) {.interactHint::after {animation:none;}}

/*
  *** 캐릭터 꾸미기 패널
*/
.lookPanel {display:flex; flex-direction:column; position:absolute; right:12px; top:12px; bottom:76px; width:300px; max-width:calc(100% - 24px); color:#ffffff; padding:16px; border-radius:14px; background:rgba(12,15,22,0.9);}
.lookTitle {font-size:17px; margin:0 0 6px;}
.lookHint {color:#d8d8d8; font-size:13px; line-height:1.4; margin:0 0 12px;}
.lookGroups {overflow-y:auto; flex:1; margin-bottom:12px; padding-right:4px;}
.lookGroup {margin-bottom:14px;}
.lookGroupTitle {font-size:13px; font-weight:700; color:#ffd84d; margin:0 0 6px;}
.lookTiles {display:flex; flex-wrap:wrap; gap:6px;}
.lookTile {display:flex; align-items:center; gap:6px; min-height:36px; color:#ffffff; font-size:13px; padding:0 10px; border:1px solid rgba(255,255,255,0.4); border-radius:10px; background:rgba(255,255,255,0.1);}
.lookTile[aria-pressed="true"] {color:#222222; font-weight:700; border-color:#ffd84d; background:#ffd84d;}
.lookSwatch {width:16px; height:16px; border:1px solid rgba(255,255,255,0.7); border-radius:8px;}
.lookButtons {display:flex; gap:8px;}
.lookButton {flex:1; height:42px; color:#ffffff; font-weight:700; border:1px solid rgba(255,255,255,0.5); border-radius:10px; background:rgba(255,255,255,0.1);}
.lookMain {color:#222222; border-color:#ffd84d; background:#ffd84d;}

/*
  *** 결투 조작 창
*/
.duelPanel {position:absolute; left:50%; top:140px; width:340px; max-width:calc(100% - 24px); color:#ffffff; padding:14px; border-radius:14px; background:rgba(0,0,0,0.82); transform:translateX(-50%);}
.duelTitle {font-size:15px; margin:0 0 6px;}
.duelStatus {min-height:20px; color:#ffd84d; line-height:1.4; margin:0 0 10px;}
.duelPicks {display:flex; flex-wrap:wrap; gap:6px;}
.duelButton {flex:1; height:44px; color:#222222; font-size:15px; font-weight:700; border:0; border-radius:10px; background:#ffd84d;}
.duelHint {width:100%; color:#e0e0e0; font-size:13px; line-height:1.4; margin:8px 0 0;}
.duelGauge {position:relative; height:26px; margin-bottom:8px; border-radius:13px; background:#3a4258;}
.duelCenter {position:absolute; left:42%; top:0; width:16%; height:100%; background:#ffd84d;}
.duelNeedle {position:absolute; left:0; top:-4px; width:4px; height:34px; margin-left:-2px; background:#ffffff;}
.duelPress {display:block; width:100%;}

/*
  *** 대화상자
*/
.dialog {width:340px; max-width:calc(100% - 32px); color:#222222; padding:24px; background:#ffffff; border:0; border-radius:16px; box-shadow:0 12px 40px rgba(0,0,0,0.35);}
.dialog::backdrop {background:rgba(0,0,0,0.5);}
.dialogTitle {font-size:21px; margin:0 0 12px;}
.dialogText {color:#555555; line-height:1.5; margin:0 0 16px;}
.factionButtons {display:flex; flex-direction:column; gap:10px;}
.factionButton {height:52px; color:#ffffff; font-size:16px; font-weight:700; border:0; border-radius:12px;}
.factionBlue {background:#1a5cb0;}
.factionRed {background:#b82a23;}
.factionNone {color:#222222; font-size:14px; border:1px solid #888888; background:#ffffff;}
.factionClose {display:block; margin:12px 0 0 auto;}
.field {display:flex; justify-content:space-between; align-items:center; margin-bottom:10px;}
.fieldInput {width:190px; height:36px; padding:0 8px; border:1px solid #999999; border-radius:8px;}
.dialogButtons {display:flex; justify-content:flex-end; gap:8px; margin-top:16px;}
.dialogButton {height:38px; padding:0 16px; border:1px solid #999999; border-radius:10px; background:#ffffff;}
.dialogMain {color:#ffffff; border-color:#222222; background:#222222;}
.photoImage {display:block; width:100%; height:auto; margin:0 0 12px; border-radius:10px; background:#14161b;}
.photoSave {display:inline-flex; align-items:center; text-decoration:none;}
.quizProgress {margin:0 0 12px;}
.quizQuestion {font-size:17px; font-weight:700; line-height:1.5; margin:0 0 14px;}
.quizChoices {display:flex; flex-direction:column; gap:8px;}
.quizChoice {min-height:46px; padding:10px 14px; font-size:15px; text-align:left; border:1px solid #cccccc; border-radius:10px; background:#ffffff; cursor:pointer;}
.quizChoice:hover {border-color:#222222; background:#f6f8fa;}
.quizPicked {border-color:#222222; background:#fff4c2;}
.quizBack {margin-top:12px;}
.quizScore {font-size:36px; font-weight:800; margin:0 0 8px;}
.quizReview {display:flex; flex-direction:column; margin:0; padding-left:20px;}
.quizReviewItem {padding:10px 0; font-size:14px; line-height:1.5; border-top:1px solid #ececec;}
.quizMark {margin-right:4px;}
.quizRight {color:#1f7a3a;}
.quizWrong {color:#b82a23;}

/*
  *** 안내 문구
*/
.toast {position:absolute; left:50%; top:56px; max-width:calc(100% - 24px); color:#ffffff; margin:0; padding:10px 16px; border-radius:20px; background:rgba(0,0,0,0.8); transform:translateX(-50%);}

@media(pointer:coarse) {
  .joystick {display:block;}
  .chatLog {margin-left:140px;}
}

@media(max-width:1200px) {
  .toast {top:92px;}
  .chatBox {width:300px;}
  .actionBar {left:auto; right:12px; max-width:calc(100% - 336px); border-radius:16px; transform:none;}
}

@media(max-width:768px) {
  .lookPanel {left:12px; top:auto; bottom:12px; width:auto; height:46%;}
  .topBar {flex-wrap:wrap;}
  .notice {white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .toast {top:132px;}
  .actionBar {max-width:none;}
  .chatBox {bottom:112px; width:auto; right:12px;}
  .chatLog {max-height:110px;}
  .actionBar {left:12px; right:12px; bottom:12px; border-radius:16px; transform:none;}
}
.spinButtons {display:flex; gap:6px;}
.spinButtons .dialogButton {white-space:nowrap; padding:0 12px;}
.ticketCount {white-space:nowrap;}
.wheelNote {position:absolute; left:0; top:0; max-width:min(420px, calc(100% - 24px)); color:#222222; font-size:17px; font-weight:800; line-height:1.4; text-align:center; margin:0; padding:12px 18px; border:3px solid #ffffff; border-radius:16px; background:#ffd84d; box-shadow:0 6px 18px rgba(0,0,0,0.45); pointer-events:none;}
.helpDialog {width:760px; max-width:calc(100% - 24px); max-height:calc(100% - 24px); overflow:auto; color:#ffffff; padding:22px 24px; border:2px solid #ffd84d; border-radius:16px; background:#14161c; box-shadow:0 16px 48px rgba(0,0,0,0.6);}
.helpDialog::backdrop {background:rgba(0,0,0,0.55);}
.helpTitle {font-size:22px; margin:0 0 14px; color:#ffd84d;}
.helpKeys {display:flex; flex-direction:column; gap:6px;}
.helpRow {display:flex; gap:6px;}
.helpKey {flex:1 1 0; min-width:0; height:40px; display:flex; justify-content:center; align-items:center; color:#2a2d36; font-size:14px; font-weight:800; border-radius:6px; background:#f2f3f5;}
.helpKey.isWide {flex-grow:1.7;}
.helpKey.isSpace {flex-grow:6;}
.helpKey.isMove {background:#ffd84d;}
.helpKey.isAct {color:#ffffff; background:#c2410c;}
.helpKey.isGap {visibility:hidden;}
.helpLists {display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:20px;}
.helpListTitle {display:inline-block; font-size:15px; margin:0 0 10px; padding:4px 12px; border-radius:6px;}
.helpMoveTitle {color:#ffd84d; border:1px solid #ffd84d;}
.helpActTitle {color:#ff7a2b; border:1px solid #ff7a2b;}
.helpItems {display:grid; gap:8px; margin:0; padding:0; list-style:none; font-size:14px;}
.helpItem {display:flex; align-items:center; gap:8px;}
.helpChip {min-width:30px; height:28px; display:inline-flex; justify-content:center; align-items:center; color:#2a2d36; font-size:13px; font-weight:800; padding:0 8px; border-radius:6px; background:#ffd84d;}
#helpActList .helpChip {color:#ffffff; background:#c2410c;}
.helpTip {color:#aab3c5; font-size:13px; margin:16px 0 0;}
.helpActions {display:flex; justify-content:flex-end; margin:14px 0 0;}
.helpClose {height:40px; color:#222222; font-weight:800; padding:0 24px; border:0; border-radius:10px; background:#ffd84d;}
@media (max-width: 600px) {.helpLists {grid-template-columns:1fr;} .helpKey {height:30px; font-size:12px;}}

/*
  *** UX 점검 반영: 상단 메뉴 접기·단축키 표시·상호작용 설명·도움말·확인 창·채팅 글자 수
*/
.topMenu {display:contents;}
.menuBtn {display:none;}
.keyHint {font:inherit; font-size:0.82em; opacity:0.8; padding:0 5px; margin-left:2px; border:1px solid currentColor; border-radius:4px;}
.interactHint {display:flex; flex-direction:column; align-items:center; justify-content:center; height:auto; min-height:46px; padding:6px 22px; line-height:1.35;}
.hintKey {margin:0 4px 0 0;}
.hintInfo {font-size:12px; font-weight:600; opacity:0.85;}
.chatCount {align-self:center; min-width:40px; color:#d0d0d0; font-size:13px; text-align:right; font-variant-numeric:tabular-nums;}
.askAmount {font-size:28px; font-weight:800; margin:0 0 8px;}
.helpTitle:focus {outline:none;}
.helpTouch {display:none; margin-bottom:16px;}
.helpPlay {margin-top:20px;}
.helpPlayItems {grid-template-columns:1fr 1fr; column-gap:18px;}
.helpPlay .helpChip {color:#ffffff; background:#c2410c;}
@media (max-width: 600px) {.helpPlayItems {grid-template-columns:1fr;}}
@media (max-width: 768px) {
  .topBar {position:relative;}
  .menuBtn {display:inline-flex; align-items:center;}
  .topMenu {display:none; position:absolute; left:0; top:calc(100% + 6px); z-index:5; flex-direction:column; align-items:stretch; gap:6px; padding:8px; border-radius:16px; background:rgba(0,0,0,0.85); box-shadow:0 8px 20px rgba(0,0,0,0.4);}
  .topMenu.isOpen {display:flex;}
  .noticeKeys {display:none;}
  .actionBar {flex-wrap:nowrap; justify-content:flex-start; overflow-x:auto;}
  .actionButton {flex:none;}
}
@media (pointer: coarse) {
  .keyHint, .noticeKeys {display:none;}
  .helpTouch {display:block;}
  .helpKeyboard {display:none;}
  .topButton, .actionButton, .chatSend, .chatInput, .dialogButton, .helpClose, .duelButton, .lookButton {min-height:44px;}
  .wheelBtn {width:44px; height:44px; border-radius:22px;}
}
.chatSys {color:#ffe08a; font-size:13px;}
.fieldError {color:#c62828; font-size:13px; font-weight:600; margin:-4px 0 10px;}
.helpChip {flex:none; white-space:nowrap;}
.helpItem {align-items:flex-start;}
.helpItem .helpChip {margin-top:-2px;}
.dialogTitle:focus, .helpTitle:focus {outline:none;}
.helpItems {line-height:1.45;}

/*
  *** UX 재점검 반영: 로그인 알림 버튼·응원권 얻는 법·확률표 접기·모바일 하단 바 흐림·카메라 버튼 위치
*/
.toast.hasAction {pointer-events:auto;}
.toastAction {height:32px; color:#222222; font-weight:800; margin-left:8px; padding:0 14px; border:0; border-radius:16px; background:#ffd84d;}
.ticketHowto {color:#3d2b00; margin:0 0 14px; padding:12px 14px; border-radius:10px; background:#fff4c2;}
.ticketHowtoTitle {display:block; font-size:15px; margin-bottom:6px;}
.ticketHowtoList {margin:0; padding-left:18px; font-size:14px; line-height:1.55;}
.oddsBox {margin:0 0 14px;}
.oddsBox summary {cursor:pointer; color:#333333; font-weight:700; padding:6px 0;}
.camSingle {font-size:13px;}
.actionBar.moreRight {-webkit-mask-image:linear-gradient(to right, #000 82%, transparent); mask-image:linear-gradient(to right, #000 82%, transparent);}
.actionBar.moreLeft {-webkit-mask-image:linear-gradient(to left, #000 82%, transparent); mask-image:linear-gradient(to left, #000 82%, transparent);}
.actionBar.moreLeft.moreRight {-webkit-mask-image:linear-gradient(to right, transparent, #000 18%, #000 82%, transparent); mask-image:linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);}
@media (max-width: 768px) {
  .camBar {top:auto; bottom:170px; transform:none;}
}
.toast {width:max-content;}

/*
  *** UX 3차 점검 반영: 도움말 키보드 접기·응원권 정의·뽑기 불가 이유·알림 버튼 크기
*/
.helpPlay {margin:0 0 18px;}
.helpKeysBox {margin:0 0 4px;}
.helpKeysBox summary {cursor:pointer; color:#ffd84d; font-weight:700; padding:6px 0;}
.helpKeysBox[open] summary {margin-bottom:10px;}
.ticketDefine {color:#222222; font-size:16px; font-weight:800; margin:0 0 8px;}
.defineOr {color:#666666; font-weight:600;}
.spinReason {color:#8a5a00; font-size:14px; font-weight:600; margin:-6px 0 14px;}
.toastAction {height:40px; padding:0 18px;}
@media (pointer: coarse) {.toastAction {min-height:44px;}}

/*
  *** UX 4차 점검 반영: 진영 점수 막대·오른쪽 버튼 묶음 분리·게스트 잠금 버튼·모바일 배치
*/
.scoreBar {display:flex; align-items:center; gap:8px; color:#ffffff; font-size:14px; font-weight:700; padding:6px 12px; border-radius:16px; background:rgba(0,0,0,0.65); pointer-events:none; font-variant-numeric:tabular-nums;}
.scoreBlue {color:#9fc8ff;}
.scoreRed {color:#ffb3ad;}
.scoreSide strong {color:#ffffff; font-size:16px;}
.scoreTrack {position:relative; width:90px; height:8px; overflow:hidden; border-radius:4px; background:#ff5a4f;}
.scoreFill {position:absolute; left:0; top:0; bottom:0; width:50%; background:#3d8bff;}
.sideBar {display:flex; flex-direction:column; gap:14px; position:absolute; right:12px; top:50%; transform:translateY(-50%);}
.sideBar .camBar {position:static; transform:none;}
.infoBar {display:flex; flex-direction:column; gap:8px;}
.mobileOnly {display:none;}
.actionButton.isLocked {color:#ffffff; border-color:rgba(255,255,255,0.4); background:rgba(255,255,255,0.12);}
.actionButton.isLocked::after {content:"로그인"; margin-left:6px; padding:1px 6px; color:#222222; font-size:11px; font-weight:800; border-radius:8px; background:#ffd84d;}
@media (max-width: 768px) {
  .sideBar {top:auto; bottom:170px; transform:none;}
  .infoBar {display:none;}
  .topMenu.isOpen .mobileOnly {display:block;}
  .toast {top:150px;}
  .actionBar {gap:4px; padding:6px;}
  .actionButton {padding:0 11px;}
  .scoreBar {font-size:13px; padding:5px 10px;}
  .scoreTrack {width:56px;}
}

/*
  *** UX 5차 점검 반영: 첫 진입 카드·데려다주기·응원권 +1 줄·모바일 도움말 단서·진영 버튼
*/
.introDialog {width:480px;}
.introList {display:grid; gap:12px; margin:0 0 14px; padding:0; list-style:none; font-size:15px; line-height:1.55;}
.introList strong {display:block; color:#ffd84d; margin-bottom:2px;}
.introActions {gap:8px;}
.introMore {height:40px; color:#ffffff; font-weight:700; padding:0 16px; border:1px solid rgba(255,255,255,0.5); border-radius:10px; background:transparent;}
.helpText {flex:1;}
.helpGo {flex:none; height:30px; color:#222222; font-size:12px; font-weight:800; padding:0 10px; border:0; border-radius:15px; background:#ffd84d;}
.shopCheerText {font-weight:700;}
.noticeMobile {display:none;}
.factionButton:disabled {opacity:0.55; cursor:default;}
@media (max-width: 768px) {.noticeMobile {display:inline;}}
@media (pointer: coarse) {.helpGo, .introMore {min-height:44px;}}
@media (max-width: 768px) {.interactHint {max-width:250px; white-space:normal; text-align:center;}}
@media (max-width: 768px) {.notice {white-space:normal; overflow:visible;}}

/*
  *** UX 6차 점검 반영: 하루 한 진영 안내·누적 표시·한국어 줄바꿈·모바일 도움말 순서·메뉴 점
*/
body {word-break:keep-all; overflow-wrap:anywhere;}
.chatLine {word-break:break-all;}
.factionRule {color:#7a4b00; font-size:13px; font-weight:600; line-height:1.5; margin:-8px 0 14px; padding:8px 10px; border-radius:8px; background:#fff4c2;}
.scoreLabel {color:#d0d6e2; font-size:12px; font-weight:700;}
.dialog.shopDialog {width:400px;}
.menuBtn.hasDot::after {content:""; width:8px; height:8px; margin-left:6px; border-radius:4px; background:#ffd84d;}
@media (max-width: 768px) {
  .notice {display:none;}
  .toast {top:120px;}
}
@media (pointer: coarse) {
  .helpDialog[open] {display:flex; flex-direction:column;}
  .helpDialog .helpTitle {order:-2;}
  .helpDialog .helpTouch {order:-1;}
  .helpDialog .helpActions {position:sticky; bottom:-22px; margin:10px -24px -22px; padding:10px 24px 14px; background:#14161c;}
}

/*
  *** 응원 문구·채팅 (정해진 문구 + 최근 문구 빠른 버튼, 로그인 계정은 직접 입력)
*/
.phraseBar {display:flex; gap:6px; align-items:center;}
.phraseRecent {display:flex; flex:1; gap:6px; min-width:0; overflow-x:auto; scrollbar-width:none;}
.phraseRecent::-webkit-scrollbar {display:none;}
.phraseChip {flex:none; min-height:36px; color:#ffffff; font-size:14px; font-weight:600; padding:0 12px; border:1px solid rgba(255,255,255,0.35); border-radius:18px; background:rgba(0,0,0,0.65); cursor:pointer;}
.phraseChip:hover:not(:disabled) {border-color:#ffd84d; background:rgba(40,36,10,0.85);}
.phraseChip:focus-visible, .phraseTab:focus-visible {outline:2px solid #ffd84d; outline-offset:2px;}
.phrasePanel {margin-bottom:6px; padding:10px; border-radius:12px; background:rgba(12,14,20,0.92);}
.phraseTabs {display:flex; flex-wrap:wrap; gap:4px; margin-bottom:8px;}
.phraseTab {min-height:32px; color:#c9cfdb; font-size:13px; font-weight:700; padding:0 10px; border:0; border-radius:16px; background:transparent; cursor:pointer;}
.phraseTab[aria-selected="true"] {color:#14161c; background:#ffd84d;}
.phraseList {display:flex; flex-wrap:wrap; gap:6px; max-height:180px; overflow-y:auto;}
.phraseList .phraseChip {flex:none;}
#phraseBtn {flex:none; white-space:nowrap;}


/* 휴대폰에서는 누적 점수 막대를 숨긴다 (가운데 큰 전광판에 같은 점수가 보임) */
@media (max-width: 768px) {
  .scoreBar {display:none;}
}

/*
  *** 하단 정리 (2026-11-17): 행동 버튼 줄은 유세차 앞 '응원 동작'만 남기고, 채팅은 한 줄([응원 문구][입력][보내기])
*/
.actionBar[hidden] {display:none;}
.chatBox {flex-direction:row; flex-wrap:wrap; align-items:center; column-gap:6px;}
.chatLog, .phrasePanel {flex-basis:100%;}
.phraseBar {flex:none;}
.chatForm {flex:1; min-width:0;}
.chatBox:has(.chatForm:not([hidden])) .phraseRecent {display:none;}
.chatBox:has(.chatForm[hidden]) .phraseBar {flex:1; min-width:0;}
@media (max-width: 768px) {
  .chatBox {bottom:12px; left:12px; right:12px; width:auto;}
  .chatLog {margin-left:0; max-height:100px;}
  .chatCount {display:none;}
  .actionBar {top:180px; bottom:auto; left:50%; right:auto; padding:6px; border-radius:24px; transform:translateX(-50%);}
}
/* 채팅 줄 너비: 입력창이 충분히 보이게 넓히고, 입력창이 있으면 문구 버튼의 Enter 표시와 글자 수는 숨긴다 */
.chatBox {width:420px;}
.chatCount {display:none;}
.chatBox:has(.chatForm:not([hidden])) #phraseBtn .keyHint {display:none;}
@media (max-width: 1200px) and (min-width: 769px) {
  .chatBox {width:380px;}
}
