@charset "UTF-8";
.card-vote-count {display:inline-flex;align-items:center;gap:.24em;white-space:nowrap;font-variant-numeric:tabular-nums}
.card-vote-count .icon {width:1em;height:1em;color:var(--purple)}
.guess-summary {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px;font-size:clamp(12px,1.2vw,17px)}
.guess-summary:empty {display:none}
.guess-summary .role-badge {padding:2px 10px;font-size:inherit}
.header-nickname {display:inline-flex;align-items:center;gap:4px;font-weight:750;white-space:nowrap}
.header-nickname input {width:12em;max-width:35vw;text-align:right;border:1px solid transparent;padding:6px 8px;background:transparent;font-weight:800}
.header-nickname input:hover,.header-nickname input:focus {border-color:var(--border);background:var(--solid)}
.tile-title {display:flex;align-items:baseline;justify-content:space-between;gap:6px 12px;flex-wrap:wrap}
.tile-title .game-guide {color:var(--purple-dark);font-size:13px;text-decoration:underline;text-underline-offset:3px}
.site-header .account>.google {display:inline-flex}
@media(max-width:760px) {
  .site-header .account {max-width:100%;flex-wrap:wrap}
  .header-nickname input {width:10em}
}
.phase-action .rematch-primary {
  background:linear-gradient(145deg,#9135e6,#681acc);
  border-color:transparent;
  color:white;
  box-shadow:0 3px 10px #6622b52b;
}
.phase-action .rematch-primary:hover {background:#691bcc}
.full-player-name {
  margin:5px 0 0;
  padding:4px 8px;
  background:var(--soft);
  border-radius:6px;
  color:var(--ink);
  font-size:.95em;
  font-weight:700;
  overflow-wrap:anywhere;
}
.player-card .clue-expanded p {
  display:block;
  overflow:visible;
  white-space:pre-wrap;
  -webkit-line-clamp:unset;
}
.clue-content button[hidden] {display:none}
.player-grid:has(.full-player-name:not([hidden]),.clue-expanded) {
  grid-template-rows:none;
  grid-auto-rows:minmax(125px,auto);
}
.player-card:has(.full-player-name:not([hidden]),.clue-expanded) .clue-content {flex:1 0 auto}
@media(max-width:1000px) and (orientation:landscape) {
  .player-grid:has(.full-player-name:not([hidden]),.clue-expanded) {grid-auto-rows:minmax(105px,auto)}
}
.card-heading .rematch-state{margin-left:auto;flex:none;white-space:nowrap;border-radius:999px;padding:3px 7px;font-weight:750;font-size:clamp(10px,1vw,13px);color:var(--ink);background:var(--bg);border:1px dashed var(--border)}
.card-heading .rematch-state.is-ready{background:var(--soft);color:var(--purple);border:1px solid transparent}
.player-card:has(.rematch-state){opacity:1}
.phase-notice {
  position: fixed;
  z-index: 12;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  border-radius: 999px;
  padding: .38em 1.22em .43em;
  background: linear-gradient(145deg,#a240f5,#7728e8 52%,#601cc7);
  color: white;
  font-size: clamp(23px,3.1vw,44px);
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 24px #54209838;
  animation: stage-arrival 2s ease-out both;
}
@keyframes stage-arrival {
  0% {opacity:0;translate:0 8px}
  12%,88% {opacity:1;translate:0 0}
  100% {opacity:0}
}
.time-adjust {display:flex;gap:3px;flex:none}
.time-adjust button {border:1px solid var(--border);border-radius:8px;background:var(--solid);color:var(--purple);font-size:18px;font-weight:800;width:29px;min-height:30px;padding:0}
.status-row .time-adjust + .timer {padding-left:8px}
.finish-panel {text-align:center}
.finish-panel h2 {color:var(--purple);font-size:clamp(30px,4vw,52px);margin-bottom:8px}
.finish-panel dl {display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 18px;text-align:left;background:var(--bg);border-radius:14px;padding:16px 20px}
.finish-panel dt {color:var(--muted)}
.finish-panel dd {margin:0;text-align:right;font-weight:800;overflow-wrap:anywhere}
dialog:has(.finish-panel) {width:min(540px,calc(100vw - 32px))}
dialog:has(.finish-panel) .dialog-footer {justify-content:center}
dialog:has(.finish-panel) .dialog-error:empty {display:none}
.chat-messages {overflow-anchor:none}
@media(max-width:850px) {
  .time-adjust button {width:24px;min-height:26px}
}
:root{font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",system-ui,sans-serif;color:#102d49;background:#f8f5ff;font-synthesis:none;--bg:#f9f7ff;--surface:#ffffffb8;--solid:#fff;--soft:#ede5ff;--border:#d6c4fc;--ink:#102d49;--muted:#7a7d90;--purple:#7426ed;--purple-dark:#5511ca;--danger:#e12838;--shadow:0 22px 80px #572c9d0b;--track:190px}
*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 85% 5%,#e7dcff70,transparent 42%),radial-gradient(ellipse at 5% 95%,#e7dcff60,transparent 40%),var(--bg);min-height:100dvh;color:var(--ink)}body[data-theme=dark]{--bg:#151425;--surface:#221f35e8;--solid:#242138;--soft:#35274d;--border:#56436e;--ink:#ece8ff;--muted:#a7a0ba;--purple:#b17bff;--purple-dark:#8245d8;--danger:#ff7a85;background:var(--bg);color:var(--ink);color-scheme:dark}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #a76dff;outline-offset:3px}input,select,textarea{color:var(--ink);background:var(--solid);border:1px solid var(--border);border-radius:11px;padding:12px 14px;min-width:0;width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--purple);box-shadow:0 0 0 3px #9154f118}input:disabled{background:var(--soft)}input[type=range]{padding:0;accent-color:var(--purple);box-shadow:none}input[type=checkbox]{width:auto;accent-color:var(--purple)}input[type=color]{padding:3px}textarea{resize:vertical;min-height:100px}h1,h2,h3,p{margin:0}h1{font-size:clamp(30px,3.4vw,54px);letter-spacing:-.055em;font-weight:900}h2{font-size:24px;letter-spacing:-.04em}small,.small{font-size:13px}.muted{color:var(--muted)}.hidden{display:none!important}.icon{width:24px;height:24px;display:inline-block;flex-shrink:0;vertical-align:middle}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;min-height:43px;border:1px solid var(--border);border-radius:12px;padding:10px 19px;background:var(--surface);color:var(--ink);font-weight:800;transition:background .15s,box-shadow .15s,transform .15s}.btn:hover:not(:disabled){background:var(--soft);box-shadow:0 3px 10px #5d2bb512}.btn:active:not(:disabled){transform:translateY(1px)}.btn.primary{color:white;background:linear-gradient(160deg,#a53bfc,#6919e6);border-color:transparent;box-shadow:0 4px 10px #7929e91b}.btn.primary:hover:not(:disabled){background:linear-gradient(160deg,#b45aff,#7a30ec)}.btn.quiet{background:transparent;border-color:transparent}.btn.icon-only{width:45px;padding:9px}.btn.soft{background:var(--soft);color:var(--purple)}.btn.danger{color:var(--danger);border-color:color-mix(in srgb,var(--danger),transparent 45%)}.btn.text-button{background:none;border:0;padding:4px;min-height:28px;white-space:normal}.btn.large{min-height:58px;font-size:21px}.btn.small-icon{min-height:30px;width:32px;padding:3px;border:0;background:none}.google-g{font-family:Arial,sans-serif;font-weight:900;font-size:26px;color:#4285f4}.btn.google{background:var(--solid);font-size:14px;border-color:#bdb3d5}.brand-group,.account,.toolbar{display:flex;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:12px;font-size:30px;letter-spacing:-.06em;font-weight:900;color:var(--ink)}.brand>.icon{width:38px;height:38px;color:var(--purple)}.site-header{height:94px;padding:18px clamp(20px,4vw,68px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);background:var(--surface)}.account>.text-button{font-size:16px}.eyebrow{font-size:13px;letter-spacing:.05em;font-weight:800;color:var(--purple);margin-bottom:12px}.entry-page{display:flex;align-items:center;flex-direction:column;padding:50px 20px}.login-panel{background:var(--surface);border:1px solid var(--border);border-radius:26px;width:min(100%,640px);padding:48px 54px;box-shadow:var(--shadow);text-align:center}.login-panel h1{font-size:36px}.lead{font-size:18px;color:var(--muted);margin:16px 0 32px}.login-panel form{text-align:left}.login-panel label{font-size:16px;font-weight:800;display:block;margin-bottom:9px}.login-panel input{height:55px;font-size:18px}.login-panel .large{width:100%;margin-top:18px}.login-panel>.google{width:100%;min-height:54px;font-size:18px}.divider{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:14px;margin:24px 0}.divider:before,.divider:after{content:"";height:1px;background:var(--border);flex:1}.footnote{font-size:13px;line-height:1.9;color:var(--muted);margin-top:22px}.entry-bottom{font-size:14px;color:var(--muted);margin-top:26px}.invite-hint{background:var(--soft);color:var(--purple);padding:11px;border-radius:10px;margin-bottom:20px}.catalog-page{max-width:1440px;margin:auto;padding:35px 48px}.page-title{text-align:center;margin-bottom:32px}.page-title p{color:var(--muted);font-size:17px;margin-top:12px}.game-catalog{display:grid;grid-template-columns:1fr 1fr;gap:20px}.game-tile{display:flex;align-items:center;gap:25px;padding:28px;border:1.5px solid var(--purple);border-radius:22px;background:var(--surface);box-shadow:var(--shadow)}.game-art{width:clamp(100px,12vw,154px);display:flex;align-items:center;justify-content:center;flex-shrink:0}.game-art .icon{width:75px;height:90px;stroke-width:1.4}.game-detail{flex:1;min-width:0}.game-detail h2{font-size:29px;font-weight:900;margin-bottom:8px}.game-detail>p{font-size:15px;color:var(--muted);line-height:1.6}.room-counts{margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.45;font-variant-numeric:tabular-nums;word-break:keep-all}.accent{color:var(--purple)}.tile-actions{display:flex;gap:10px}.tile-actions .btn{flex:1}.coming-soon{border-color:var(--border);opacity:.65}.coming-badge{display:inline-flex;border-radius:9px;background:var(--soft);color:var(--muted);font-weight:800;padding:8px 18px;margin:17px 0 7px}.catalog-footer{display:flex;align-items:center;flex-direction:column;gap:12px;margin-top:28px}.invite-button{width:min(100%,520px);font-size:20px;min-height:54px}.catalog-footer small{color:var(--muted)}.rooms-page{max-width:1380px;margin:auto;padding:42px 45px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.section-heading h1{font-size:40px}.filters{display:flex;align-items:center;gap:10px;margin-bottom:24px}.filters>.muted{margin-left:auto}.room-list{border:1px solid var(--border);border-radius:20px;background:var(--surface);overflow:hidden}.room-row{display:flex;align-items:center;gap:24px;padding:25px 28px;border-bottom:1px solid var(--border)}.room-row:last-child{border:0}.room-row-title{flex:1;min-width:0}.room-row-title h2{font-size:22px;display:inline;margin-right:8px;overflow-wrap:anywhere}.room-row-title>.small{display:block;margin-top:9px}.mode-chip{display:inline-flex;align-items:center;gap:7px;background:var(--soft);border-radius:20px;padding:6px 15px;white-space:nowrap}.occupancy{font-size:24px;white-space:nowrap}.occupancy small{margin-left:3px}.room-row>.btn{min-width:110px}.empty-state{text-align:center;padding:75px 20px}.empty-state>.icon{width:65px;height:65px;color:var(--purple);margin-bottom:18px}.empty-state p{color:var(--muted);margin:12px 0 22px}
/* 게임 화면: 카드와 채팅을 항상 나란히 유지한다. */
.game-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.game-header{flex-shrink:0;min-height:76px;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:5px solid var(--purple);background:var(--surface)}.room-brand{display:flex;align-items:center;gap:12px;min-width:0;white-space:nowrap}.room-brand>strong{font-size:24px;letter-spacing:-.05em}.header-separator{height:30px;width:2px;background:var(--purple);margin:0 3px}.room-title{font-size:21px;font-weight:900;overflow:hidden;text-overflow:ellipsis;max-width:260px;display:flex;gap:6px;align-items:center}.room-meta{font-size:16px;font-weight:800}.game-tools{display:flex;gap:9px;flex-shrink:0}.game-tools .btn{font-size:15px;border-color:var(--purple);padding:8px 12px;min-height:42px}.game-tools .icon-only{width:44px;padding:8px}.game-tools .translation-button{background:var(--soft)}.game-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,2.15fr) minmax(270px,1fr);gap:14px;padding:18px 16px 20px}.play-side{min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px}.game-status{border:1px solid var(--border);border-radius:18px;padding:10px 18px 12px;background:var(--surface);flex-shrink:0}.status-row{display:flex;align-items:center;min-height:41px;gap:12px}.status-row>strong:first-child{font-size:24px;white-space:nowrap;padding-right:18px;border-right:1px solid var(--purple)}.current-status{flex:1;text-align:center;font-size:19px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.current-status b{color:var(--purple)}.flow-arrow{padding:0 8px}.timer{font-variant-numeric:tabular-nums;font-size:26px;padding-left:20px;border-left:1px solid var(--purple)}.timer.urgent{color:var(--danger)}.phase-row{display:grid;grid-template-columns:minmax(0,1fr) var(--track);align-items:center;gap:16px;margin-top:7px;min-height:58px}.phase-track{display:flex;align-items:center;gap:24px;padding:0;margin:0;list-style:none;min-width:0}.phase-track li{flex:1;text-align:center;border-radius:50px;background:color-mix(in srgb,var(--muted),transparent 83%);color:var(--muted);font-size:clamp(13px,1.25vw,19px);font-weight:900;padding:9px 3px;white-space:nowrap;position:relative}.phase-track li+li:before{content:'→';position:absolute;left:-21px;top:8px;color:var(--ink);font-size:19px}.phase-track li.active{color:white;background:linear-gradient(150deg,#bb4aff,#7630f1)}.phase-action{min-height:58px;display:flex;align-items:center;justify-content:center}.skip-button{width:100%;min-height:58px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1.5px solid var(--purple);border-radius:13px;background:var(--surface);color:var(--purple);font-weight:900;padding:5px 9px}.skip-button span{white-space:nowrap;font-size:17px;letter-spacing:-.04em}.skip-button small{font-size:16px}.lobby-status{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:90px}.lobby-facts{display:flex;align-items:center;gap:20px}.lobby-facts strong{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:21px}.status-tag{border-radius:40px;background:linear-gradient(140deg,#a643f5,#5a16c2);color:white;font-weight:900;font-size:25px;padding:10px 20px;white-space:nowrap}.start-area{text-align:center}.start-button{border-radius:40px;min-width:210px;font-size:25px;min-height:55px}.start-area small{display:block;margin-top:9px;font-weight:700;color:var(--muted)}.waiting-host{font-size:17px;color:var(--purple);font-weight:800}.player-grid{display:grid;gap:10px;flex:1;min-height:0;overflow:auto;align-content:stretch}.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.rows-2{grid-template-rows:repeat(2,minmax(145px,1fr))}.rows-3{grid-template-rows:repeat(3,minmax(130px,1fr))}.rows-4{grid-template-rows:repeat(4,minmax(125px,1fr))}.rows-5{grid-template-rows:repeat(5,minmax(125px,1fr))}.player-card{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:15px;padding:11px 12px;min-width:0;display:flex;flex-direction:column;align-items:stretch;overflow:hidden;transition:border-color .12s,background .12s}.player-card.current-turn{border:2px solid var(--purple);padding:10px 11px;background:color-mix(in srgb,var(--soft),transparent 30%)}.player-card.selected{border:3px solid var(--purple);padding:9px 10px;background:var(--soft)}.player-card.selectable{cursor:pointer}.player-card.selectable:hover{background:var(--soft);border-color:var(--purple)}.player-card.eliminated{background:color-mix(in srgb,var(--muted),transparent 93%);opacity:.7}.card-heading{display:flex;align-items:center;gap:9px;min-width:0}.player-number{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:31px;padding:0 7px;background:var(--soft);border-radius:8px;color:var(--ink);font-size:24px;font-weight:900;line-height:1;flex-shrink:0}.player-name{color:var(--ink);font-size:23px;font-weight:900;border:0;background:none;padding:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.host-crown{color:var(--purple);width:21px;height:21px;flex-shrink:0}.mark{width:25px;height:25px;min-width:25px;border:1.5px solid var(--ink);border-radius:6px;background:var(--solid);margin-left:auto;padding:0;font-size:24px;line-height:20px;display:flex;align-items:center;justify-content:center}.mark-1{color:#08a447}.mark-2{color:#ee334c}.mark-3{color:#e89300}.secret{margin-top:10px;background:var(--soft);border-radius:9px;display:flex;align-items:center;gap:7px;padding:5px 8px}.secret>.icon{color:var(--purple);width:18px;height:18px}.secret-word{background:none;border:0;font-weight:900;font-size:17px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left;padding:0}.eye{border:0;background:none;color:var(--purple);display:flex;padding:0}.eye .icon{width:20px;height:20px}.clue-content{margin-top:8px;min-height:0;flex:1}.clue-content p{font-size:17px;font-weight:700;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.more{color:var(--purple);float:right;font-size:13px}.card-wait{color:var(--muted);font-size:13px}.card-badge{align-self:center;background:linear-gradient(150deg,#b34dff,#7430ee);color:white;border-radius:30px;font-size:14px;line-height:1.3;padding:4px 12px;margin-top:5px;font-weight:800;white-space:nowrap}.spectator-label{font-size:12px;color:var(--muted);margin-top:4px}.offline-dot{font-size:11px;color:#ba7e19;position:absolute;right:9px;bottom:6px}.vacant{color:var(--muted)}.vacant>span:last-child{margin:auto;font-size:18px;font-weight:700}.card-result{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;flex:1;font-size:24px}.role-badge{background:var(--soft);padding:5px 20px;border-radius:30px;font-size:21px;color:var(--purple)}.role-badge.liar-role{color:white;background:linear-gradient(140deg,#b23fff,#6f26e8)}.chat-panel{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--border);border-radius:18px;background:var(--surface);padding:13px 14px}.chat-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 15px;border-bottom:1px solid var(--border)}.chat-heading h2{font-size:28px;font-weight:900}.chat-heading>div{display:flex;gap:8px}.chat-messages{flex:1;min-height:0;overflow:auto;padding:14px 0;scrollbar-width:thin}.message{display:flex;align-items:flex-start;gap:9px;font-size:15px;line-height:1.6;margin-bottom:10px;background:color-mix(in srgb,var(--muted),transparent 92%);border-radius:10px;padding:7px 9px;overflow-wrap:anywhere}.message-number{background:var(--soft);border-radius:6px;font-size:18px;font-weight:900;min-width:28px;text-align:center;line-height:1.5;flex-shrink:0}.message strong{font-weight:900}.message-colon{padding:0 3px}.system-message{color:var(--purple);background:var(--soft);font-size:13px}.system-message>.icon{width:18px;height:18px;margin-top:2px}.round-label{font-size:10px;color:var(--muted);display:block}.translated{font-size:13px;border-top:1px solid var(--border);margin-top:4px;padding-top:4px;color:var(--purple)}.translate-link{border:0;background:none;color:var(--purple);font-size:11px;float:right;padding:2px}.chat-compose{flex-shrink:0}.input-hint{display:flex;align-items:flex-start;gap:6px;font-size:13px;font-weight:700;line-height:1.5;margin:8px 0 12px}.input-hint .icon{width:17px;height:17px;color:var(--muted);margin-top:1px}.chat-compose form{display:flex;gap:8px}.input-wrap{position:relative;flex:1;min-width:0}.input-wrap input{height:48px;padding:10px 12px 18px;font-size:14px}.input-wrap small{position:absolute;right:9px;bottom:3px;font-size:9px;color:var(--muted)}.chat-compose form>.btn{padding:8px 13px}.voice-finish{font-size:12px;min-height:30px;width:100%;margin-top:5px}.voice-finish .icon{width:17px;height:17px}.vote-footer{display:flex;align-items:center;gap:14px;font-size:14px;min-height:43px;font-weight:800;color:var(--purple);flex-shrink:0}.vote-footer .btn{min-height:35px;font-size:13px;padding:7px 20px}.result-summary{display:flex;align-items:center;gap:18px;min-height:59px}.result-summary>div{flex:1;min-width:0}.result-summary h2{font-size:20px}.result-summary p{margin-top:5px;font-size:13px}.result-summary b{color:var(--purple)}.mode-notice{background:var(--soft);padding:8px 12px;border-radius:8px;color:var(--purple);font-size:13px;font-weight:700}.danger-notice{color:var(--danger)}.selected-tool{background:color-mix(in srgb,var(--danger),transparent 88%)}.connection-bar{text-align:center;padding:6px;background:#fff0c5;color:#845f04;font-size:12px;flex-shrink:0}
/* 공통 팝업 */
dialog{border:1px solid var(--border);background:var(--solid);color:var(--ink);padding:0;border-radius:22px;width:min(650px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-shadow:0 25px 120px #13042e38;overflow:hidden}dialog[open]{display:flex;flex-direction:column}dialog::backdrop{background:#170c284d;backdrop-filter:blur(5px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 24px;border-bottom:1px solid var(--border);flex-shrink:0}.dialog-header h2{font-size:24px}.dialog-body{padding:24px;overflow:auto;min-height:0}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--border);flex-shrink:0}.dialog-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:700}.field.wide{grid-column:1/-1}.field small{font-size:12px;font-weight:400;color:var(--muted);line-height:1.5}.field>label{display:block}.checkbox-field{display:flex;align-items:center;gap:10px}.settings-tabs{display:flex;padding:12px 20px 0;gap:6px;border-bottom:1px solid var(--border);flex-shrink:0}.settings-tabs .btn{flex:1;border-radius:10px 10px 0 0;border-bottom:0}.settings-pane{display:flex;flex-direction:column;gap:20px}.settings-pane h3{font-size:17px}.settings-divider{height:1px;background:var(--border);margin:2px 0}.voice-user{display:flex;align-items:center;gap:12px}.voice-user label{min-width:95px;max-width:150px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:14px}.voice-user input{flex:1}.voice-user output{font-size:12px;width:36px}.share-code{font-size:32px;letter-spacing:.18em;font-weight:900;color:var(--purple);text-align:center;padding:20px;background:var(--soft);border-radius:14px;margin-bottom:18px}.share-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}.dialog-note{color:var(--muted);font-size:13px;line-height:1.7;margin-top:14px}.dialog-error{color:var(--danger);font-size:13px;min-height:18px;margin-top:10px}.reading{font-size:17px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.round-history{padding:15px;border:1px solid var(--border);border-radius:13px;margin-bottom:15px}.round-history h3{margin-bottom:12px}.round-history ul{padding-left:20px;line-height:1.8}.boot{min-height:70dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:var(--muted)}.spinner{border:3px solid var(--border);border-top-color:var(--purple);width:30px;height:30px;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(15px);background:#28213e;color:white;padding:13px 23px;border-radius:13px;max-width:min(560px,90vw);font-size:14px;z-index:20;pointer-events:none;opacity:0;transition:opacity .18s,transform .18s;box-shadow:0 5px 25px #0002}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.rotation{display:none}.audio-status{font-size:13px;color:var(--muted);line-height:1.6}.test-meter{height:7px;border-radius:8px;background:var(--soft);overflow:hidden}.test-meter span{display:block;height:100%;background:var(--purple);width:0}.version-note{font-size:12px;color:var(--muted)}
@media(min-width:1800px){.game-layout{max-width:1920px;width:100%;margin:0 auto}.player-name{font-size:28px}.clue-content p{font-size:21px}.message{font-size:18px}.phase-track li{font-size:21px}}
@media(max-width:1200px){.game-header{padding:10px 12px;gap:8px}.room-brand{gap:8px}.room-brand>strong{font-size:20px}.room-title{font-size:18px;max-width:180px}.room-meta{font-size:13px}.game-tools{gap:5px}.game-tools .btn{padding:7px 9px;font-size:13px;min-height:37px}.game-tools .icon{width:20px;height:20px}.game-tools .icon-only{width:37px}.game-tools .translation-button span{display:none}.game-layout{gap:10px;padding:12px 10px}.game-status{padding:8px 12px}.status-row>strong:first-child{font-size:19px;padding-right:12px}.current-status{font-size:16px}.timer{font-size:21px;padding-left:12px}.phase-row{gap:10px;--track:165px}.phase-track{gap:17px}.phase-track li+li:before{left:-16px;font-size:15px}.skip-button span{font-size:15px}.skip-button small{font-size:14px}.player-card{padding:9px}.player-card.current-turn{padding:8px}.player-card.selected{padding:7px}.player-name{font-size:19px}.player-number{font-size:21px;min-width:29px;height:27px}.card-heading{gap:6px}.mark{min-width:21px;width:21px;height:21px;font-size:20px}.clue-content p{font-size:15px}.secret-word{font-size:15px}.secret{padding:4px 6px;gap:4px}.chat-panel{padding:10px}.chat-heading h2{font-size:23px}.message{font-size:14px}.input-hint{font-size:12px}.lobby-facts{gap:12px}.lobby-facts strong{font-size:17px}.status-tag{font-size:21px;padding:10px 15px}.start-button{font-size:21px;min-width:165px}.start-area small{font-size:11px}.game-art{width:clamp(92px,10.5vw,120px)}.game-art .icon{width:58px}.game-tile{padding:23px;gap:20px}.game-detail h2{font-size:24px}.game-detail>p{font-size:13px}.catalog-page{padding:30px}.tile-actions .btn{padding:10px}.result-summary h2{font-size:17px}.result-summary{gap:12px}}
@media(max-width:800px){.site-header{height:auto;min-height:70px;padding:15px 18px;gap:10px;flex-wrap:wrap}.brand{font-size:25px}.account{gap:7px}.account .btn{font-size:12px;padding:7px 10px;min-height:35px}.account>.google{display:none}.game-catalog{grid-template-columns:1fr}.catalog-page{padding:25px 20px}.page-title h1{font-size:33px}.page-title p{font-size:14px}.game-tile{padding:24px}.game-art{width:clamp(78px,21vw,138px)}.game-detail h2{font-size:25px}.rooms-page{padding:25px 18px}.section-heading{align-items:flex-start;flex-direction:column}.section-heading h1{font-size:31px}.room-row{gap:12px;padding:20px 16px;flex-wrap:wrap}.room-row-title{flex-basis:calc(100% - 120px)}.room-row-title h2{font-size:19px}.occupancy{font-size:21px}.room-row>.btn{margin-left:auto}.login-panel{padding:30px 24px}.login-panel h1{font-size:29px}.form-grid{gap:13px}.dialog-body{padding:18px}.dialog-header{padding:14px 18px}.dialog-footer{padding:12px 18px}}
@media(max-width:1000px) and (orientation:landscape){:root{--track:145px}.game-header{min-height:51px;padding:6px 9px;border-bottom-width:3px}.room-brand>strong{font-size:17px}.room-title{font-size:15px;max-width:150px}.room-meta{font-size:11px}.header-separator{height:23px}.game-tools .btn{min-height:31px;padding:5px 7px}.game-tools .btn:not(.translation-button)>span{display:none}.game-tools .icon-only{width:31px}.game-tools .icon{width:18px;height:18px}.game-layout{padding:8px;gap:8px;grid-template-columns:minmax(0,1.85fr) minmax(235px,1fr)}.play-side{gap:7px}.game-status{padding:5px 8px;border-radius:12px}.status-row{min-height:29px;gap:6px}.status-row>strong:first-child{font-size:15px;padding-right:8px}.current-status{font-size:13px}.timer{font-size:17px;padding-left:8px}.status-row .small-icon{display:none}.phase-row{margin-top:3px;min-height:44px;gap:8px;grid-template-columns:minmax(0,1fr) 130px}.phase-track{gap:12px}.phase-track li{font-size:11px;padding:7px 1px}.phase-track li+li:before{font-size:12px;left:-11px;top:7px}.phase-action{min-height:44px}.skip-button{min-height:44px;padding:3px 5px;gap:0;border-radius:9px}.skip-button span{font-size:12px}.skip-button small{font-size:12px}.player-grid{gap:6px}.rows-4{grid-template-rows:repeat(4,minmax(105px,1fr))}.rows-3{grid-template-rows:repeat(3,minmax(105px,1fr))}.rows-2{grid-template-rows:repeat(2,minmax(105px,1fr))}.player-card{border-radius:10px;padding:7px}.player-card.current-turn{padding:6px}.player-card.selected{padding:5px}.player-name{font-size:15px}.player-number{font-size:17px;min-width:23px;height:23px;padding:0 3px}.host-crown{width:15px;height:15px}.mark{min-width:17px;width:17px;height:17px;font-size:17px}.card-heading{gap:4px}.clue-content p{font-size:13px}.secret{margin-top:6px}.secret-word{font-size:12px}.secret .icon,.eye .icon{width:14px;height:14px}.card-badge{font-size:11px;padding:3px 7px}.card-wait{font-size:10px}.chat-panel{padding:8px;border-radius:12px}.chat-heading{padding-bottom:7px}.chat-heading h2{font-size:20px}.chat-heading .btn{min-height:30px;width:31px;padding:5px}.chat-heading .icon{width:18px;height:18px}.chat-messages{padding:8px 0}.message{font-size:12px;padding:5px 6px;gap:6px;margin-bottom:7px}.message-number{font-size:14px;min-width:22px}.input-hint{font-size:10px;margin:4px 0 7px}.input-hint .icon{width:14px;height:14px}.input-wrap input{height:38px;font-size:11px;padding:5px 7px 13px}.chat-compose form{gap:5px}.chat-compose form>.btn{min-height:38px;font-size:12px;padding:5px 8px}.lobby-status{min-height:65px;gap:8px}.lobby-facts{gap:10px}.lobby-facts strong{font-size:13px}.lobby-facts .icon{width:17px}.status-tag{font-size:17px;padding:8px 11px}.start-button{font-size:16px;min-width:130px;min-height:40px}.start-area small{font-size:9px;margin-top:5px}.result-summary{min-height:40px;gap:9px}.result-summary h2{font-size:13px}.result-summary p{font-size:10px;margin-top:4px}.result-summary>.icon-only{display:none}.role-badge{font-size:16px;padding:3px 12px}.card-result{font-size:18px;gap:5px}.vote-footer{font-size:11px;min-height:30px}.vote-footer .btn{font-size:11px;min-height:28px;padding:4px 12px}.dialog-header h2{font-size:20px}.dialog-body{padding:14px 20px}.settings-tabs{padding-top:6px}.settings-tabs .btn{min-height:34px;padding:6px}.dialog-header{padding:9px 20px}.dialog-footer{padding:9px 20px}.mode-notice{font-size:10px;padding:5px 8px}}
@media(orientation:portrait){body.in-room .rotation{display:flex;position:fixed;inset:0;background:var(--bg);z-index:30;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px;gap:20px}body.in-room .game-shell{visibility:hidden}.rotate-device{font-size:90px;color:var(--purple)}.rotation p{font-size:15px;line-height:1.7}.rotation small{color:var(--muted)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
fieldset.form-grid{border:0;margin:0;padding:0;min-width:0}.form-grid>.wide{grid-column:1/-1}.settings-tabs{overflow-x:auto}.player-name:focus-visible{outline:2px solid var(--purple);border-radius:4px}.room-title .icon{flex-shrink:0}.google-g{display:inline-block;line-height:1}.connection-bar:not(.hidden)+.game-layout{padding-top:9px}

.game-art .animal-portrait {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-logo {
  display: block;
  width: clamp(144px, 16vw, 185px);
  height: auto;
}
body[data-theme=dark] .brand-logo {
  background: #faf8ff;
  border-radius: 8px;
  padding: 4px 7px;
}

@media (max-width: 480px) {
  .game-tile { padding: 16px; gap: 12px; }
  .tile-actions { flex-wrap: wrap; gap: 6px; }
  .tile-actions .btn { padding: 7px 9px; font-size: 13px; }
}
