/* Discussion is a reading surface. Artwork never positions the text. */
body.wt-refresh.game-page .game-view { min-width: 0; width: 100%; }
body.wt-refresh.game-page .play-surface { min-width: 0; grid-template-columns: minmax(0, 1fr); }
body.wt-refresh.game-page .local-card-stack { min-width: 0; max-width: 100%; }
body.wt-refresh.game-page .secret-card { max-width: 100% !important; }
body.wt-refresh .secret-card.end-card.round-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: min(420px, calc(100vw - 32px)) !important;
  max-width: 100% !important;
  min-height: 560px !important;
  height: auto;
  aspect-ratio: auto !important;
  gap: 18px;
  padding: 26px;
  border: 1px solid #bd9a60;
  border-radius: 24px;
  background: linear-gradient(180deg, #071521d9, #081421f2 68%), url('/assets/optimized/tloend.webp') center / cover;
  color: #fff4da;
  text-align: center;
  isolation: isolate;
}
body.wt-refresh .round-card > * { position: relative; z-index: 1; min-width: 0; }
body.wt-refresh .round-card::after { opacity: .24; pointer-events: none; }
.round-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #d9c29c; font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.round-card-header span:last-child { color: #a6e5cf; }
.round-card-clock { display: flex; justify-content: center; }
body.wt-refresh .secret-card.round-card .game-timer { position: static; inset: auto; transform: none; margin: 0; min-height: 30px; color: #e9d6ac; background: #07121d; font-size: 12px; font-weight: 650; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.round-card-main { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-block: 2px 4px; }
.round-card-emblem { display: grid; place-items: center; width: 66px; height: 66px; margin: 0; border: 1px solid #aa8b57; border-radius: 50%; color: #e4c484; background: radial-gradient(circle, #224b4d, #0a222d); box-shadow: 0 0 0 7px #b7965910, inset 0 0 20px #77cbbd12; }
.round-card-emblem svg { width: 32px; height: 32px; }
body.wt-refresh .round-card-title { margin: 0; color: #fff0c9; font-size: clamp(28px, 7vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; text-transform: none; text-shadow: none; }
body.wt-refresh .round-card-description { margin: 0; max-width: 31ch; color: #d8e1e7; font-size: 15px; font-weight: 400; line-height: 1.65; text-shadow: none; }
body.wt-refresh .starter-picker-control { display: grid; justify-items: stretch; gap: 9px; width: 100%; max-width: 340px; }
body.wt-refresh .btn.starter-picker-trigger { display: inline-flex; justify-content: center; gap: 10px; min-height: 48px; width: 100%; padding: 12px 16px; border: 1px solid #80b8ae; border-radius: 12px; color: #f8f2dd; background: linear-gradient(125deg, #18403f, #102a35); font-size: 15px; font-weight: 750; line-height: 1.35; text-transform: none; text-shadow: none; box-shadow: inset 0 1px #d4f5e114, 0 6px 18px #0002; }
body.wt-refresh .btn.starter-picker-trigger:hover { border-color: #e7c783; background: #1c4546; }
body.wt-refresh .starter-picker-note { margin: 0; color: #b9c7d2; font-size: 12px; font-weight: 400; line-height: 1.5; text-align: center; }
.starter-picker-note [data-starter-left] { color: #e6c88d; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.starter-confirmed { display: grid; gap: 4px; width: 100%; max-width: 340px; padding: 14px 16px; border: 1px solid #78bea44a; border-radius: 12px; color: #c2d7d8; background: #123633b3; text-align: center; overflow-wrap: anywhere; }
.starter-confirmed span { font-size: 12px; }
.starter-confirmed strong { color: #f6e5bc; font-size: 20px; line-height: 1.3; }
.starter-confirmed small { color: #a9c8c4; font-size: 11px; }
body.wt-refresh .round-card-actions { display: grid; justify-content: stretch; justify-items: stretch; gap: 10px; margin: auto 0 0; width: 100%; }
body.wt-refresh .round-card-hint { margin: 0 0 2px; color: #b8c6d1; font-size: 12px; line-height: 1.5; }
body.wt-refresh .round-card-actions .btn { width: 100%; min-height: 46px; justify-content: center; font-size: 14px; }
body.wt-refresh .round-card-actions .round-card-resolve { border: 1px solid #edc87e; color: #15212a; background: linear-gradient(120deg, #f7dc9b, #dcb260); box-shadow: 0 5px 20px #bc8c3226, inset 0 1px #fff7; }
body.wt-refresh .round-card-actions .danger { border: 1px solid #a96d7a70; color: #f2c0ca; background: #2c202bb3; box-shadow: none; }
@media (max-width: 420px) {
  body.wt-refresh .secret-card.end-card.round-card { padding: 22px 20px; gap: 15px; min-height: 540px !important; }
  .round-card-header { font-size: 10px; letter-spacing: .04em; }
  .round-card-main { gap: 14px; }
  .round-card-emblem { width: 58px; height: 58px; }
  body.wt-refresh .round-card-description { font-size: 14px; }
}

/* The same audio controls are available during a game and in profile settings. */
.wt-audio-panel { border: 1px solid #e7bd7240; border-radius: 12px; padding: 12px 16px; background: #0a1c2be8; color: #e8e2d1; }
.wt-game-audio { width: min(420px, calc(100% - 24px)); margin: 16px auto 0; }
.wt-game-audio summary { cursor: pointer; font-size: 13px; font-weight: 650; list-style-position: inside; }
.wt-game-audio [data-wtyka-audio-settings] { margin-top: 12px; }
[data-wtyka-audio-settings] { display: grid; gap: 10px; color: #e5e5d8; font-size: 13px; }
[data-wtyka-audio-settings] label { display: flex; align-items: center; gap: 9px; }
[data-wtyka-audio-settings] input[type="range"] { flex: 1; min-width: 80px; accent-color: #e6bd72; }
[data-wtyka-audio-settings] button { border: 1px solid #e7bd7255; border-radius: 8px; padding: 8px 12px; background: #173337; color: #f7e3b8; font: inherit; cursor: pointer; }
.wt-audio-settings { display: grid; gap: 12px; }
.wt-audio-settings-heading { color: #f6e1b2; font-weight: 750; }
.wt-audio-toggle { min-height: 32px; }
.wt-audio-toggle input { accent-color: #dfbb74; width: 18px; height: 18px; flex: 0 0 18px; }
.wt-audio-volume { justify-content: space-between; }
.wt-audio-range { width: 100%; }
.wt-audio-preview { display: flex; flex-wrap: wrap; gap: 8px; }
body.wt-refresh .wt-audio-preview select { flex: 1 1 150px; min-width: 0; min-height: 44px; border: 1px solid #a6b9ba66; border-radius: 8px; color: #eee7d3; background: #0c2432; padding: 8px; font: inherit; }
body.wt-refresh .wt-audio-preview button { min-height: 44px; color: #f6e2b5; background: #193d3d; border-color: #8baea266; }
body.wt-refresh .wt-audio-help { color: #b6c5d1; font-size: 12px; line-height: 1.6; margin: 0; }
.wt-audio-status { margin: 0; color: #b3e1ce; min-height: 1.5em; }
