:root {
  --bg-0: #f7f3eb;
  --bg-1: #e9e0d3;
  --panel: #fffdf8;
  --ink: #1b232c;
  --muted: #637083;
  --accent: #2a7f62;
  --accent-2: #0e4e73;
  --danger: #a43f39;
  --line: #d7ccbe;
  --shadow: 0 8px 22px rgba(28, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
}

body {
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
  background:
    radial-gradient(1200px 600px at -20% -10%, #f8efe0 0%, transparent 70%),
    radial-gradient(900px 500px at 120% -20%, #e7f1ef 0%, transparent 70%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1));
}

.title-screen {
  height: 100dvh;
  max-width: 1420px;
  margin: 0 auto;
  padding: 12px;
  display: block;
  overflow: auto;
}

.title-main {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.title-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #05070b;
  border: 1px solid #1f2d44;
  box-shadow: 0 18px 38px rgba(7, 11, 20, 0.45);
}

.title-logo {
  width: 100%;
  max-height: min(66dvh, 640px);
  object-fit: contain;
  object-position: top center;
  display: block;
  background: #05070b;
}

.title-build-info {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(214, 228, 255, 0.56);
  background: rgba(8, 20, 42, 0.78);
  color: #d9ebff;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.title-actions {
  position: absolute;
  right: clamp(96px, 12vw, 220px);
  top: 70%;
  transform: translateY(-50%);
  width: min(300px, 34%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.title-sound-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(205, 225, 255, 0.64);
  background: rgba(8, 20, 42, 0.86);
  color: #d9ebff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.1;
}

.title-lang-btn {
  position: absolute;
  top: 10px;
  right: 96px;
  z-index: 2;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(205, 225, 255, 0.64);
  background: rgba(8, 20, 42, 0.86);
  color: #d9ebff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.1;
}

.title-lang-btn:hover {
  border-color: rgba(255, 238, 161, 0.78);
  color: #fff4cf;
}

.title-sound-btn.voted {
  border-color: rgba(124, 255, 228, 0.7);
  color: #d6fff7;
}

.title-actions button {
  min-height: 44px;
  font-size: clamp(0.82rem, 0.76rem + 0.3vw, 0.98rem);
  font-weight: 800;
  border: 1px solid rgba(130, 209, 255, 0.6);
  background: linear-gradient(135deg, rgba(8, 27, 53, 0.85), rgba(8, 52, 89, 0.92));
  color: #c6ecff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(33, 112, 184, 0.38), 0 5px 18px rgba(0, 0, 0, 0.35);
}

.title-settings-auth-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}

.title-settings-login-state {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c7ddf6;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: right;
  line-height: 1.35;
}

.title-settings-login-state.logged {
  color: #d8fff4;
}

.title-settings-login-state.settings-auth {
  color: #ffe8c8;
}

.mode-clap-status {
  min-width: 0;
  max-width: min(34vw, 320px);
  color: #b85a18;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}

.title-inline-auth-btn {
  flex: 0 0 auto;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(205, 225, 255, 0.64);
  background: rgba(8, 20, 42, 0.86);
  color: #d9ebff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.1;
}

.title-inline-auth-btn:hover {
  border-color: rgba(255, 238, 161, 0.78);
  color: #fff4cf;
}

.title-actions button.primary {
  border-color: rgba(124, 255, 228, 0.7);
  background: linear-gradient(135deg, rgba(14, 47, 82, 0.92), rgba(11, 98, 120, 0.95));
  color: #d6fff7;
}

.title-actions button.ghost {
  border-color: rgba(255, 188, 103, 0.68);
  background: linear-gradient(135deg, rgba(46, 23, 8, 0.88), rgba(92, 46, 12, 0.92));
  color: #ffe5c7;
}

.title-live-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  background: rgba(255, 253, 248, 0.9);
  padding: 8px;
}

.title-live-card h2 {
  margin-bottom: 4px;
}

#titleLiveSessionsPanel {
  min-height: 0;
  overflow: auto;
}

.title-lobby-head {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.title-battle-session-list {
  display: grid;
  gap: 10px;
}

.title-battle-session-card {
  border: 1px solid rgba(14, 78, 115, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 250, 0.92));
  padding: 8px 10px;
  box-shadow: 0 8px 18px rgba(14, 78, 115, 0.08);
  display: grid;
  gap: 6px;
}

.title-battle-session-card.selected {
  border-color: rgba(14, 78, 115, 0.5);
  box-shadow: 0 0 0 2px rgba(14, 78, 115, 0.16), 0 10px 22px rgba(14, 78, 115, 0.12);
}

.title-battle-session-shell {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.title-battle-session-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  border: 1px solid rgba(14, 78, 115, 0.18);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  display: block;
}

.title-battle-session-body {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.title-battle-session-title {
  font-size: 0.9rem;
  font-weight: 900;
  color: #0e4e73;
}

.title-battle-session-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  min-width: 0;
}

.title-battle-session-line-main {
  font-size: 0.8rem;
  color: #18445c;
}

.title-battle-session-line-meta {
  font-size: 0.72rem;
  color: #547082;
}

.title-battle-session-meta {
  min-width: 0;
  word-break: break-word;
}

.title-battle-session-player.is-online {
  color: #c63d3d;
  font-weight: 700;
}

.title-battle-session-inline-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

button.session-vote-self {
  border-color: #d84a4a;
  box-shadow: inset 0 0 0 2px #d84a4a;
  filter: saturate(1.06);
}

.title-battle-session-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.title-battle-session-badge.status-waiting {
  background: rgba(255, 212, 107, 0.22);
  color: #815200;
}

.title-battle-session-badge.status-active {
  background: rgba(49, 121, 214, 0.16);
  color: #124f9a;
}

.title-battle-session-badge.status-completed {
  background: rgba(69, 112, 76, 0.16);
  color: #285a31;
}

.title-battle-requests {
  display: grid;
  gap: 6px;
}

.title-battle-request-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: rgba(14, 78, 115, 0.06);
  border-radius: 10px;
  padding: 7px 9px;
}

.title-battle-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (max-width: 720px) {
  .title-battle-session-shell {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 8px;
  }

  .title-battle-session-thumb {
    width: 64px;
    height: 64px;
  }

  .title-battle-session-line,
  .title-battle-request-row {
    align-items: flex-start;
  }
}

.top-note {
  margin: 4px 0 0;
  font-size: 0.71rem;
  color: #0e4e73;
  font-weight: 700;
  line-height: 1.32;
  background: rgba(231, 241, 239, 0.9);
  border: 1px solid #bfd4d9;
  border-radius: 7px;
  padding: 3px 6px;
  max-width: min(94vw, 700px);
  word-break: break-word;
}

.app-shell {
  max-width: 1420px;
  margin: 0 auto;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 8px;
  gap: 8px;
}

body.ios-client.standalone-app .app-shell {
  padding-top: max(8px, env(safe-area-inset-top, 0px));
  padding-right: max(8px, env(safe-area-inset-right, 0px));
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  padding-left: max(8px, env(safe-area-inset-left, 0px));
}

body.ios-client.standalone-app .title-screen {
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  padding-left: max(12px, env(safe-area-inset-left, 0px));
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(1.05rem, 0.93rem + 0.8vw, 1.55rem);
  letter-spacing: 0.02em;
}

.title-login-state {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--muted);
}

.topbar p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

#modeCaption {
  display: none;
}

.status-wrap {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.status-pill {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 9px;
  font-weight: 700;
  min-width: 68px;
  text-align: center;
  font-size: 0.76rem;
}

.auth-btn {
  cursor: pointer;
}

.auth-btn.leave-btn {
  border-color: rgba(56, 150, 95, 0.72);
  background: linear-gradient(135deg, rgba(32, 124, 74, 0.96), rgba(72, 173, 103, 0.96));
  color: #f1fff4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#bgmTrackSelect.status-pill {
  width: auto;
  min-width: 96px;
  padding: 4px 10px;
  font-weight: 700;
  text-align: center;
}

#sfxToggleBtn.status-pill {
  min-width: 92px;
}

.ios-client #sessionProgress,
.ios-client #sessionTimeInfo {
  display: none;
}

#authMenuBtn {
  max-width: min(36vw, 190px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#settingsBtn,
#historyTopBtn {
  margin-left: auto;
}

.layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(305px, 0.66fr);
  gap: 8px;
  align-items: stretch;
  overflow: hidden;
}

body.tesla-client .layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(276px, 0.58fr);
}

.board-panel,
.card,
.modal-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
}

.board-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.board-wrap {
  margin: 0 auto;
  width: min(100%, calc(100vh - 290px), calc(100vw - 390px));
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  outline: var(--board-outer-wall-width, 2px) solid #ca4332;
  outline-offset: 0;
  background: #fff;
  flex: 0 0 auto;
}

body.tesla-client .board-wrap {
  width: min(100%, calc(100vh - 246px), calc(100vw - 340px));
}

#board {
  width: 100%;
  height: 100%;
  display: block;
}

.board-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.action-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

.action-group-right {
  margin-left: auto;
}

.clap-control {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

#clapBtn {
  font-size: 1rem;
  line-height: 1;
}

#clapStatus {
  min-height: 1.1em;
  min-width: 0;
  max-width: 148px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-boards-panel {
  padding: 6px;
}

.saved-boards-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.saved-boards-title {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 1 1 auto;
}

.saved-boards-head h2 {
  margin: 0;
  font-size: 0.8rem;
  flex: 0 0 auto;
}

.saved-boards-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

#savedBoardsQuickSaveBtn {
  padding: 3px 7px;
  font-size: 0.66rem;
  white-space: nowrap;
}

#savedBoardsViewToggleBtn {
  padding: 3px 7px;
  font-size: 0.66rem;
  white-space: nowrap;
}

#savedBoardsMeta {
  max-width: min(52vw, 560px);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 5px;
  max-height: 190px;
  overflow: auto;
}

.saved-board-item {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 2px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.saved-board-item:hover {
  transform: translateY(-1px);
  border-color: #8d8174;
  box-shadow: 0 3px 8px rgba(18, 16, 12, 0.08);
}

.saved-board-item:focus-visible {
  outline: 2px solid #5a8bd6;
  outline-offset: 1px;
}

.saved-board-hover-comment {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translate(-50%, 2px);
  max-width: min(260px, 72vw);
  padding: 5px 7px;
  border-radius: 7px;
  border: 1px solid #bfae98;
  background: rgba(28, 25, 20, 0.94);
  color: #f8efe3;
  font-size: 0.66rem;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  word-break: break-word;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.saved-board-item:hover .saved-board-hover-comment,
.saved-board-item:focus-visible .saved-board-hover-comment {
  opacity: 1;
  transform: translate(-50%, 0);
}

.saved-board-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: block;
  background: #fff;
}

.saved-board-row-meta {
  display: none;
  min-width: 0;
}

.saved-board-row-main {
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-board-row-sub {
  margin-top: 1px;
  font-size: 0.6rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-board-list-line {
  display: none;
  font-size: 0.67rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-boards-grid.list-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}

.saved-boards-grid.list-view .saved-board-item {
  display: block;
  padding: 4px 6px;
}

.saved-boards-grid.list-view .saved-board-thumb {
  display: none;
}

.saved-boards-grid.list-view .saved-board-row-meta {
  display: none;
}

.saved-boards-grid.list-view .saved-board-list-line {
  display: block;
}

@media (min-width: 980px) {
  .saved-boards-grid.list-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.saved-board-name {
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.saved-board-sub {
  font-size: 0.62rem;
  color: var(--muted);
  line-height: 1.2;
}

.saved-board-comment {
  font-size: 0.64rem;
  color: var(--ink);
  line-height: 1.25;
  min-height: 1.6em;
}

.saved-board-actions {
  display: flex;
  gap: 4px;
}

.saved-board-actions button {
  flex: 1 1 0;
  padding: 3px 4px;
  font-size: 0.66rem;
}

.context-menu {
  position: fixed;
  z-index: 80;
  min-width: 138px;
  display: grid;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: 0 8px 20px rgba(18, 16, 12, 0.18);
}

.context-menu button {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: 5px 8px;
  font-size: 0.72rem;
}

.context-menu button[disabled] {
  opacity: 0.45;
  cursor: default;
}

.info-grid {
  display: none;
  gap: 2px;
  grid-template-columns: 1fr 1fr;
}

.mobile-controls {
  margin-top: 2px;
}

.side-panel {
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  gap: 6px;
  align-content: start;
  padding-right: 2px;
  padding-bottom: 6px;
  scrollbar-gutter: stable;
}

.dual-cards {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 6px;
}

.card {
  padding: 6px;
  min-width: 0;
}

.slim-card {
  padding: 6px;
}

.card h2 {
  margin: 0 0 5px;
  font-size: 0.83rem;
  line-height: 1.2;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 5px 7px;
  cursor: pointer;
  font-size: 0.76rem;
  touch-action: manipulation;
}

button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

button.ghost {
  background: #f6f7fb;
}

button:disabled {
  opacity: 0.52;
  cursor: default;
}

button.voted {
  box-shadow: inset 0 0 0 2px #1f6f54;
}

button.vote-pressed {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 0 rgba(0, 0, 0, 0.18),
    inset 0 0 0 2px #1f6f54;
  filter: saturate(1.08);
}

button.primary.vote-pressed {
  filter: brightness(0.92) saturate(1.03);
}

@keyframes votePromptPulse {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 1px #d84a4a,
      0 0 0 0 rgba(216, 74, 74, 0.05);
    filter: saturate(1);
  }
  50% {
    box-shadow:
      inset 0 0 0 2px #e34f4f,
      0 0 0 5px rgba(227, 79, 79, 0.25);
    filter: saturate(1.15);
  }
}

button.vote-prompt {
  animation: votePromptPulse 0.9s ease-in-out infinite;
  border-color: #d84a4a;
}

@media (prefers-reduced-motion: reduce) {
  button.vote-prompt {
    animation: none;
    box-shadow: inset 0 0 0 2px #d84a4a;
  }
}

.row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 5px;
  align-items: center;
  margin-bottom: 5px;
}

.tight-row {
  margin-bottom: 4px;
}

.button-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.compact-gap {
  gap: 4px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 5px;
  color: var(--ink);
  font-size: 0.76rem;
}

.short-input {
  width: 76px;
}

.mini-info {
  color: var(--muted);
  font-size: 0.72rem;
}

.mini-info.error {
  color: var(--danger);
  font-weight: 700;
}

.guide {
  margin: 0;
  color: var(--muted);
  line-height: 1.28;
  font-size: 0.72rem;
}

.controls-card .compact-guide {
  white-space: normal;
  overflow-wrap: anywhere;
}

kbd {
  border: 1px solid #b3becd;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 4px;
  background: #f4f7fb;
  font-family: "SF Mono", "Menlo", monospace;
}

.mono {
  margin: 3px 0 0;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.68rem;
  color: var(--muted);
  white-space: pre-wrap;
}

.bid-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
}

.bid-form {
  display: grid;
  gap: 4px;
  align-content: start;
}

.bid-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

#submitBidBtn {
  padding: 3px 7px;
  font-size: 0.68rem;
  min-height: 28px;
}

.bid-history-wrap {
  min-width: 0;
}

.bid-countdown {
  font-size: clamp(2.2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  text-align: right;
  margin: 0 0 2px;
  color: #2a7f62;
}

.bid-countdown.safe {
  color: #2a7f62;
}

.bid-countdown.warn {
  color: #b88d14;
}

.bid-countdown.danger {
  color: #b12f2f;
}

.bid-countdown.lock {
  color: #0e4e73;
}

.bid-history-list,
.solution-list {
  list-style: none;
  margin: 3px 0 0;
  padding: 0;
  display: grid;
  gap: 3px;
  max-height: min(26vh, 210px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.bid-history-list li {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcff;
  padding: 3px 5px;
  font-size: 0.68rem;
}

.solutions-timer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  min-width: 0;
}

.solutions-timer-row > .card {
  min-width: 0;
}

.solutions-timer-row > #winTimerCard {
  grid-column: 2;
  grid-row: 1;
}

.solutions-timer-row > :not(#winTimerCard) {
  grid-column: 1;
  grid-row: 1;
}

.timer-side-card .bid-countdown {
  text-align: center;
  font-size: clamp(2.2rem, 4.1vw, 3rem);
}

.timer-side-card .mono {
  font-size: 0.64rem;
}

.timer-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

#forceCountdownBtn {
  white-space: nowrap;
  padding: 3px 6px;
  font-size: 0.68rem;
}

#giveUpRoundBtn {
  white-space: nowrap;
  padding: 3px 6px;
  font-size: 0.68rem;
}

#giveUpStatus {
  text-align: right;
}

.giveup-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}

#autoSolveStatus {
  min-height: 1em;
  font-weight: 700;
}

.ai-solve-control {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.ai-anim-section {
  display: block;
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
}

#autoSolveStatus.computing {
  color: #b88d14;
}

#autoSolveStatus.done {
  color: #2a7f62;
}

.ai-anim-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.ai-anim-row button,
.ai-anim-row select {
  flex: 0 0 auto;
  font-size: 0.68rem;
  padding: 2px 5px;
  min-height: 28px;
}

.ai-anim-row select {
  width: auto;
  min-width: 54px;
  max-width: 68px;
  padding: 2px 3px;
}

.icon-btn {
  width: 30px;
  min-width: 30px;
  text-align: center;
  padding: 0;
  font-size: 0.9rem;
}

.solution-list li button {
  width: 100%;
  text-align: left;
  background: #fbfcff;
  font-size: 0.71rem;
  padding: 4px 5px;
  white-space: normal;
  word-break: break-all;
}

.solution-list li.top-solution-item button,
.solution-list li button.top-solution-btn {
  border-color: #cf2f2f;
  background: #fff0f0;
  color: #8f1111;
  font-weight: 800;
}

.solution-list li.ai-solution-item button {
  color: #1f8b49;
  font-weight: 800;
}

.table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.67rem;
  table-layout: fixed;
  word-break: break-word;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 3px 2px;
  text-align: left;
}

.table th {
  color: var(--muted);
  font-weight: 700;
}

#onlineUsersStatus {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.online-users-table {
  table-layout: fixed;
  min-width: 0;
  word-break: break-word;
}

.online-users-table th,
.online-users-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.live-sessions-table {
  table-layout: fixed;
  min-width: 0;
  width: 100%;
  word-break: normal;
}

.live-sessions-table th,
.live-sessions-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-sessions-table td.participants-cell {
  min-width: 0;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-sessions-table td.wins-cell {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-history-head {
  margin-top: 8px;
  margin-bottom: 4px;
}

.session-history-toggle-btn {
  min-height: 28px;
  padding: 3px 8px;
  font-size: 0.7rem;
  white-space: nowrap;
}

.session-history-table {
  table-layout: fixed;
  min-width: 0;
  width: 100%;
  word-break: normal;
}

.session-history-table th,
.session-history-table td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-history-table td.participants-cell {
  min-width: 0;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-history-table tr.session-history-row {
  cursor: pointer;
}

.session-history-table tr.session-history-row:hover td {
  background: rgba(222, 232, 243, 0.75);
}

.live-sessions-table tr.archived-session-row td,
.session-history-table tr.archived-session-row td {
  color: #6d7380;
  background: rgba(236, 239, 245, 0.55);
}

#roundHistory {
  overflow-x: hidden;
  overflow-y: visible;
  max-width: 100%;
}

#leaderboard,
#liveSessionsPanel,
#onlineUsersStatus {
  min-width: 0;
  max-width: 100%;
}

.round-history-table {
  table-layout: fixed;
  min-width: 0;
  width: 100%;
  word-break: break-word;
}

.round-history-table th,
.round-history-table td {
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.round-history-table th.col-game,
.round-history-table td.col-game {
  width: 3ch;
  min-width: 3ch;
  max-width: 3ch;
  white-space: nowrap;
  text-align: right;
}

.round-history-table th.col-ai-best,
.round-history-table td.col-ai-best {
  width: 10ch;
  min-width: 10ch;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.round-history-table th.col-ai-gap,
.round-history-table td.col-ai-gap {
  width: 6ch;
  min-width: 6ch;
  max-width: 6ch;
  white-space: nowrap;
  text-align: right;
}

.round-history-table th.col-shortest,
.round-history-table td.col-shortest {
  width: 18ch;
  min-width: 18ch;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

.vote-needed {
  color: #c83333;
  font-weight: 700;
}

.vote-done {
  color: #1f6f54;
  font-weight: 700;
}

.login-state {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.login-online {
  color: #0f684a;
  background: rgba(54, 189, 129, 0.18);
  border: 1px solid rgba(22, 150, 98, 0.45);
}

.login-offline {
  color: #6b7482;
  background: rgba(130, 138, 150, 0.16);
  border: 1px solid rgba(130, 138, 150, 0.42);
}

.notice {
  min-height: 24px;
  font-size: 0.74rem;
  color: var(--muted);
}

.notice.error {
  color: var(--danger);
}

.notice.info {
  color: var(--accent-2);
}

.robot-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.robot-btn {
  font-weight: 700;
}

.robot-btn.active {
  outline: 2px solid #172b3e;
  outline-offset: -2px;
}

.robot-r {
  color: #ef4f52;
}

.robot-g {
  color: #2fa368;
}

.robot-b {
  color: #3179d6;
}

.robot-y {
  color: #b88d14;
}

.touch-pad {
  margin-top: 5px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.ios-robot-picker {
  display: none;
  margin: 0;
}

.ios-touch-pad {
  display: none;
  margin-top: 0;
  width: var(--ios-touch-pad-total, 180px);
  min-width: var(--ios-touch-pad-total, 180px);
  grid-template-columns: repeat(3, var(--ios-touch-pad-button-size, 56px));
  grid-template-rows: repeat(3, var(--ios-touch-pad-button-size, 56px));
  gap: var(--ios-touch-pad-gap, 6px);
  place-items: center;
}

.fixed-ui-enabled .ios-robot-picker {
  display: grid;
  grid-template-columns: repeat(4, 42px);
  gap: 6px;
  position: fixed;
  right: var(--fixed-ui-base-right, calc(env(safe-area-inset-right, 0px) + 10px));
  top: var(--fixed-ui-base-top, 8px);
  transform: translate(var(--fixed-ui-offset-x, 0px), var(--fixed-ui-offset-y, 0px));
  z-index: 36;
}

.ios-robot-picker .robot-btn {
  min-width: 42px;
  width: 42px;
  min-height: 42px;
  height: 42px;
  padding: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(247, 250, 255, 0.98);
}

.ios-robot-picker .robot-btn .ios-robot-icon {
  display: block;
  height: 30px;
  width: auto;
  max-width: 34px;
  aspect-ratio: var(--ios-robot-aspect, 5 / 7);
  border-radius: 55% 55% 44% 44%;
  background: currentColor;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.22);
}

.ios-robot-picker .robot-btn .ios-robot-icon.sprite {
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.ios-robot-picker .robot-btn.active {
  outline: 2px solid #111b28;
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(30, 108, 173, 0.24);
}

.fixed-ui-enabled .ios-touch-pad {
  display: grid;
  position: fixed;
  right: var(--fixed-ui-base-right, calc(env(safe-area-inset-right, 0px) + 10px));
  top: calc(var(--fixed-ui-base-top, 8px) + 52px);
  transform: translate(var(--fixed-ui-offset-x, 0px), var(--fixed-ui-offset-y, 0px));
  z-index: 35;
}

.ios-touch-pad button {
  min-height: var(--ios-touch-pad-button-size, 56px);
  min-width: var(--ios-touch-pad-button-size, 56px);
  width: var(--ios-touch-pad-button-size, 56px);
  height: var(--ios-touch-pad-button-size, 56px);
  padding: 0;
  border-radius: calc(var(--ios-touch-pad-button-size, 56px) * 0.214);
  font-size: calc(var(--ios-touch-pad-button-size, 56px) * 0.52);
  line-height: 1;
  font-weight: 800;
  touch-action: manipulation;
}

.ios-touch-pad button[data-dir="U"] {
  grid-column: 2;
  grid-row: 1;
}

.ios-touch-pad button[data-dir="L"] {
  grid-column: 1;
  grid-row: 2;
}

.ios-touch-pad button[data-action="undo"] {
  grid-column: 2;
  grid-row: 2;
}

.ios-touch-pad button[data-dir="R"] {
  grid-column: 3;
  grid-row: 2;
}

.ios-touch-pad button[data-dir="D"] {
  grid-column: 2;
  grid-row: 3;
}

.ios-touch-pad button[data-action="toggle-ios-fixed-ui"] {
  grid-column: 3;
  grid-row: 3;
  touch-action: manipulation;
  cursor: pointer;
}

.fixed-ui-enabled:not(.ios-client) .ios-touch-pad button[data-action="toggle-ios-fixed-ui"] {
  touch-action: none;
  cursor: grab;
}

.fixed-ui-enabled.ipad-client .ios-touch-pad button[data-action="toggle-ios-fixed-ui"] {
  touch-action: none;
  cursor: grab;
}

.fixed-ui-enabled:not(.ios-client) .ios-touch-pad button[data-action="toggle-ios-fixed-ui"]:active {
  cursor: grabbing;
}

.fixed-ui-enabled.ipad-client .ios-touch-pad button[data-action="toggle-ios-fixed-ui"]:active {
  cursor: grabbing;
}

.ios-client:not(.ipad-client).fixed-ui-enabled .ios-robot-picker {
  right: calc(env(safe-area-inset-right, 0px) + 10px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + var(--ios-touch-pad-total, 180px) + 36px);
  top: auto;
  transform: translate(var(--fixed-ui-offset-x, 0px), var(--fixed-ui-offset-y, 0px));
}

.ios-client:not(.ipad-client).fixed-ui-enabled .ios-touch-pad {
  right: calc(env(safe-area-inset-right, 0px) + 10px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  top: auto;
  transform: translate(var(--fixed-ui-offset-x, 0px), var(--fixed-ui-offset-y, 0px));
}

.ios-touch-pad .ios-undo-btn {
  display: grid;
  place-items: center;
}

.ios-touch-pad .ios-undo-icon {
  width: calc(var(--ios-touch-pad-button-size, 56px) * 0.52);
  height: calc(var(--ios-touch-pad-button-size, 56px) * 0.52);
  object-fit: contain;
  display: block;
}

.ios-touch-pad .ios-toggle-fixed-btn {
  font-size: calc(var(--ios-touch-pad-button-size, 56px) * 0.43);
  font-weight: 800;
}

.fixed-ui-enabled.ios-fixed-ui-hidden .ios-robot-picker {
  display: none;
}

.fixed-ui-enabled.ios-fixed-ui-hidden .ios-touch-pad {
  width: var(--ios-touch-pad-total, 180px);
  min-width: var(--ios-touch-pad-total, 180px);
  grid-template-columns: repeat(3, var(--ios-touch-pad-button-size, 56px));
  grid-template-rows: repeat(3, var(--ios-touch-pad-button-size, 56px));
  gap: var(--ios-touch-pad-gap, 6px);
  pointer-events: none;
}

.fixed-ui-enabled.ios-fixed-ui-hidden .ios-touch-pad button:not([data-action="toggle-ios-fixed-ui"]) {
  display: none;
}

.fixed-ui-enabled.ios-fixed-ui-hidden .ios-touch-pad button[data-action="toggle-ios-fixed-ui"] {
  grid-column: 3;
  grid-row: 3;
  pointer-events: auto;
}

.touch-pad:not(.ios-touch-pad) button {
  min-height: 30px;
  font-size: 0.88rem;
}

.touch-pad:not(.ios-touch-pad) button[data-dir="U"] {
  grid-column: 2;
}

.touch-pad:not(.ios-touch-pad) button[data-dir="L"] {
  grid-column: 1;
}

.touch-pad:not(.ios-touch-pad) button[data-dir="D"] {
  grid-column: 2;
}

.touch-pad:not(.ios-touch-pad) button[data-dir="R"] {
  grid-column: 3;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 20, 0.42);
  touch-action: manipulation;
}

.modal-panel {
  position: relative;
  width: min(94vw, 420px);
  padding: 10px;
  z-index: 1;
  touch-action: manipulation;
}

#sessionDetailModal .session-detail-modal-panel {
  width: min(96vw, 1040px);
  max-height: min(88dvh, 820px);
  overflow: auto;
}

#sessionDetailDeleteBtn {
  display: none;
  margin-left: auto;
  margin-right: 4px;
  border-color: rgba(198, 71, 71, 0.55);
  background: #fff0f0;
  color: #8c1f1f;
}

.session-detail-body {
  display: grid;
  gap: 8px;
}

.session-detail-meta-table th {
  width: 110px;
}

.session-detail-meta-table,
.session-detail-rounds-table {
  table-layout: fixed;
  min-width: 0;
  width: 100%;
  word-break: break-word;
}

.session-detail-meta-table th,
.session-detail-meta-table td,
.session-detail-rounds-table th,
.session-detail-rounds-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.session-detail-rounds-table td.participants-cell {
  min-width: 0;
  white-space: normal;
  word-break: break-word;
}

.session-detail-play-btn {
  min-height: 24px;
  padding: 1px 6px;
  font-size: 0.64rem;
  white-space: nowrap;
}

#settingsModal .modal-panel {
  width: min(94vw, 500px);
  max-height: min(88dvh, 760px);
  overflow: auto;
  padding: 10px;
}

.win-popup-main {
  font-size: 1.22rem;
  line-height: 1.45;
  font-weight: 800;
  color: #1b232c;
  margin: 2px 0 8px;
}

.win-popup-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.presence-modal-panel {
  width: min(92vw, 440px);
}

.inline-setting {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-layout {
  display: grid;
  gap: 7px;
}

.settings-block {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
  padding: 7px;
}

#settingsModal .row {
  grid-template-columns: 84px 1fr;
  margin-bottom: 4px;
}

#settingsModal input,
#settingsModal select {
  padding: 4px 5px;
}

#settingsModal .inline-setting {
  gap: 6px;
}

#settingsModal .settings-audio-controls {
  gap: 5px;
}

#settingsModal .settings-audio-controls select {
  flex: 1 1 auto;
  min-width: 0;
}

#settingsModal .settings-audio-controls button {
  white-space: nowrap;
  flex: 0 0 auto;
}

#settingsModal #animationSpeedValue {
  min-width: 70px;
  text-align: right;
  font-weight: 700;
}

#settingsModal #fixedUiButtonScaleValue,
#settingsModal #fixedUiGapScaleValue {
  min-width: 52px;
  text-align: right;
  font-weight: 700;
}

.settings-main-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

.settings-main-actions button {
  flex: 1 1 170px;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#settingsModal .check-inline {
  align-items: flex-start;
  line-height: 1.28;
}

.check-inline input[type="checkbox"] {
  width: auto;
  margin: 0;
}

#animationSpeedInput {
  flex: 1;
}

#fixedUiButtonScaleInput,
#fixedUiGapScaleInput {
  flex: 1;
}

.admin-tools {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.admin-tools h3 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: var(--accent-2);
}

.admin-users-list {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-height: 120px;
  overflow: auto;
}

.admin-users-list li button {
  width: 100%;
  font-size: 0.7rem;
  text-align: left;
}

#adminHistorySessionSelect {
  font-size: 0.71rem;
}

#adminHistoryHint {
  margin-top: -1px;
  margin-bottom: 3px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.modal-head h2 {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 1140px) {
  html,
  body {
    overflow: auto;
    height: auto;
    min-height: 100dvh;
  }

  .app-shell {
    height: auto;
    min-height: 100dvh;
  }

  .title-screen {
    height: auto;
    min-height: 100dvh;
  }

  .title-logo {
    max-height: min(56dvh, 420px);
  }

  .title-actions {
    width: min(360px, 64%);
  }

  body:not(.ipad-client) .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  body:not(.ipad-client) .side-panel {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  body:not(.ipad-client) .board-wrap {
    width: min(100%, calc(100svh - 210px), calc(100vw - 16px));
  }

  body:not(.ipad-client) .board-panel {
    overflow: visible;
  }
}

html.ipad-client,
body.ipad-client {
  overflow: auto;
  height: auto;
  min-height: 100dvh;
}

body.ipad-client .app-shell {
  height: auto;
  min-height: 100dvh;
}

body.ipad-client .layout {
  grid-template-columns: minmax(0, 1.36fr) minmax(260px, 0.64fr);
  grid-template-rows: 1fr;
  overflow: visible;
}

body.ipad-client .board-panel {
  overflow: hidden;
}

body.ipad-client .board-wrap {
  width: 100%;
  max-width: none;
}

body.ipad-client .side-panel {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

body.ipad-client .app-shell {
  padding: 6px;
  gap: 6px;
}

body.ipad-client .topbar h1 {
  font-size: clamp(0.98rem, 0.86rem + 0.64vw, 1.28rem);
}

body.ipad-client .topbar p {
  font-size: 0.72rem;
}

body.ipad-client .status-wrap {
  gap: 4px;
}

body.ipad-client .status-pill {
  padding: 3px 7px;
  font-size: 0.7rem;
}

body.ipad-client .card {
  padding: 5px;
}

body.ipad-client .card h2 {
  font-size: 0.78rem;
  margin-bottom: 4px;
}

body.ipad-client .row {
  grid-template-columns: 58px 1fr;
  gap: 4px;
  margin-bottom: 4px;
}

@media (max-width: 1024px) {
  body.ipad-client .layout {
    grid-template-columns: minmax(0, 1.44fr) minmax(240px, 0.56fr);
    gap: 6px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 6px;
    gap: 6px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .title-actions {
    position: static;
    transform: none;
    width: 100%;
    padding: 8px;
    background: linear-gradient(180deg, rgba(6, 10, 16, 0), rgba(6, 10, 16, 0.82));
  }

  .title-sound-btn {
    top: 8px;
    right: 8px;
  }

  .title-lang-btn {
    top: 8px;
    right: 92px;
  }

  .status-wrap {
    width: 100%;
  }

  .status-pill {
    flex: 1;
    min-height: 34px;
    display: grid;
    align-items: center;
    font-size: 0.75rem;
  }

  .ai-anim-row button,
  .ai-anim-row select {
    min-height: 34px;
    font-size: 0.78rem;
  }

  .icon-btn {
    width: 38px;
    min-width: 38px;
    font-size: 1rem;
  }

  .win-popup-main {
    font-size: 1.04rem;
  }

  #settingsModal .modal-panel {
    width: min(96vw, 460px);
    padding: 8px;
  }

  #settingsModal .row {
    grid-template-columns: 76px 1fr;
  }

  .settings-main-actions button {
    flex: 1 1 100%;
  }

  .layout {
    grid-template-rows: auto auto;
  }

  .board-wrap {
    width: min(100%, calc(100svh - 200px), calc(100vw - 12px));
  }

  .board-actions,
  .action-group,
  .button-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .saved-boards-grid {
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    max-height: 220px;
  }

  .action-group-right {
    margin-left: 0;
  }

  .row,
  .side-panel,
  .info-grid,
  .bid-layout,
  .solutions-timer-row {
    grid-template-columns: 1fr;
  }

  .solutions-timer-row > #winTimerCard,
  .solutions-timer-row > :not(#winTimerCard) {
    grid-column: auto;
    grid-row: auto;
  }

  .side-panel {
    overflow: visible;
  }

  .touch-pad:not(.ios-touch-pad) button,
  .robot-picker:not(.ios-robot-picker) button,
  .board-actions .action-group > button,
  .button-row button,
  .auth-btn {
    min-height: 38px;
    font-size: 0.86rem;
  }
}

body.ios-client:not(.ipad-client) .solutions-timer-row {
  grid-template-columns: minmax(0, 1fr);
}

body.ios-client:not(.ipad-client) .solutions-timer-row > #winTimerCard {
  grid-column: 1;
  grid-row: 1;
}

body.ios-client:not(.ipad-client) .solutions-timer-row > :not(#winTimerCard) {
  grid-column: 1;
  grid-row: 1;
}

body.ios-client:not(.ipad-client).casual-mode .solutions-timer-row {
  grid-template-columns: minmax(0, 1fr);
}

body.ios-client:not(.ipad-client).casual-mode .solutions-timer-row > :not(#winTimerCard) {
  grid-column: 1;
  grid-row: 1;
}

body.ios-client:not(.ipad-client).casual-mode .solutions-timer-row > #winTimerCard {
  grid-column: 1;
  grid-row: 1;
}

body:not(.ios-client) .solutions-timer-row,
body.ipad-client .solutions-timer-row {
  grid-template-columns: minmax(0, 1fr);
}

body:not(.ios-client) .solutions-timer-row > #winTimerCard,
body.ipad-client .solutions-timer-row > #winTimerCard {
  grid-column: 2;
  grid-row: 1;
}

body:not(.ios-client) .solutions-timer-row > :not(#winTimerCard),
body.ipad-client .solutions-timer-row > :not(#winTimerCard) {
  grid-column: 1;
  grid-row: 1;
}
