/* taqu-score-mobile/app/globals.css と quiz.tana-lab/public/style.css のUI規則に準拠 */
:root {
  --background: #f4f5f7;
  --surface: #ffffff;
  --text-main: #111827;
  --text-sub: #6b7280;
  --border: #c6c6c6;
  --border-light: #e5e7eb;
  --soft: #f3f4f6;
  --primary: #ea580c;
  --primary-hover: #c2410c;
  --primary-soft: #fff7ed;
  --correct: #ef4444;
  --correct-soft: #fff7f7;
  --wrong: #2563eb;
  --wrong-soft: #f5f8ff;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--background);
  color: var(--text-main);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
}

button,
input,
textarea,
select,
summary {
  color: inherit;
  font: inherit;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.home-screen {
  display: flex;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  align-items: center;
  padding: 16px;
  border-inline: 1px solid var(--border-light);
  background: var(--surface);
}

.home-content {
  display: grid;
  width: 100%;
  gap: 28px;
}

.home-title {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  width: max-content;
  margin: 0 auto;
  line-height: 1;
}

.home-title strong {
  color: var(--primary);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.home-title span {
  color: var(--text-main);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.home-title small {
  position: absolute;
  right: 0;
  bottom: -13px;
  color: var(--text-sub);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.home-actions {
  display: grid;
  width: 100%;
  gap: 8px;
}

.home-button {
  width: 100%;
  min-height: 58px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.home-button-create {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.home-button-create:active {
  background: var(--primary-hover);
}

.home-button-create:disabled {
  border-color: #9ca3af;
  background: #9ca3af;
  cursor: wait;
}

.home-button-join {
  border: 1px solid var(--border);
  background: #fff;
}

.home-button-join:active {
  background: var(--soft);
}

.setup-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  border-inline: 1px solid var(--border-light);
  background: var(--surface);
}

.page-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.back-button {
  min-width: 36px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
}

.back-button:active {
  background: var(--soft);
}

.mini-brand {
  display: block;
  color: var(--text-sub);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.page-header h1 {
  margin: 2px 0 0;
  font-size: 1rem;
  line-height: 1.1;
}

.setup-form {
  padding: 22px 12px;
}

.form-section {
  display: grid;
  gap: 16px;
}

.form-section h2 {
  margin: 0;
  font-size: 1.05rem;
  text-align: center;
}

.form-section > p {
  margin: -8px 0 4px;
  color: var(--text-sub);
  font-size: .76rem;
  line-height: 1.5;
  text-align: center;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  color: var(--text-main);
  font-size: .78rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.field input,
.field select {
  min-height: 44px;
  padding: 8px 10px;
}

.field textarea {
  min-height: 100px;
  padding: 10px;
  line-height: 1.5;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  outline: none;
}

.room-code-field input {
  min-height: 54px;
  text-align: center;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.room-code-button > span:first-child {
  font-family: Consolas, "SFMono-Regular", "Roboto Mono", monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

.form-error {
  min-height: 18px;
  margin: -2px 0 !important;
  color: #dc2626 !important;
  font-size: .75rem !important;
  font-weight: 700;
  text-align: left !important;
}

.primary-submit {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
}

.primary-submit:active {
  background: var(--primary-hover);
}

.primary-submit:disabled {
  cursor: wait;
  opacity: .6;
}

.score-shell {
  display: flex;
  min-height: 100dvh;
  justify-content: center;
  background: var(--background);
}

.score-app {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  min-height: 520px;
  flex-direction: column;
  border-inline: 1px solid var(--border-light);
  background: var(--surface);
  overflow: hidden;
}

.score-header {
  display: flex;
  min-height: 58px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 7px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.header-info {
  min-width: 0;
}

.brand-home-button {
  min-height: 44px;
  padding: 3px 5px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand-home-button:active,
.brand-home-button:focus-visible {
  border-color: var(--border);
  background: var(--soft);
}

.brand-heading {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.brand-heading > small {
  color: var(--text-sub);
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
}

.brand-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.brand-line strong {
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-line span {
  color: var(--text-sub);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.header-rule-name {
  display: block;
  max-width: 140px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--text-sub);
  font-size: .7rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
}

.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.room-code-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.room-code-button .material-icons {
  font-size: 17px;
}

.room-code-button:hover,
.room-code-button:focus-visible {
  border-color: var(--border);
  background: #fff;
  color: var(--text-main);
}

.md-icon-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
}

.md-icon-button .material-icons {
  font-size: 24px;
}

.md-icon-button:hover,
.md-icon-button:focus-visible {
  border-color: var(--border);
  background: #fff;
  color: var(--text-main);
}

.md-icon-button.active {
  border-color: #fed7aa;
  background: var(--primary-soft);
  color: var(--primary);
}

.connection-status {
  display: flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid #fed7aa;
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.connection-status.is-offline {
  border-bottom-color: #fecaca;
  background: #fff7f7;
  color: #b91c1c;
}

.connection-status .material-icons {
  flex: 0 0 auto;
  font-size: 22px;
}

.connection-status:not(.is-offline) .material-icons {
  animation: reconnect-spin 1.2s linear infinite;
}

.connection-status strong {
  min-width: 0;
  flex: 1 1 auto;
  font-size: .86rem;
}

.connection-status button {
  min-width: 76px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: var(--radius-md);
  background: #fff;
  color: inherit;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 800;
}

@keyframes reconnect-spin {
  to { transform: rotate(360deg); }
}

.player-list {
  flex: 1 1 auto;
  min-height: 180px;
  overflow-y: auto;
  background: #fff;
}

.empty-player-list {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text-sub);
  font-size: .78rem;
  font-weight: 700;
}

.player-row {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 38px minmax(0, 1fr) repeat(var(--stat-count), minmax(48px, 55px));
  align-items: center;
  padding: 5px 12px;
  border: 0;
  border-bottom: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-main);
  text-align: left;
}

.player-row:not(:disabled) {
  cursor: pointer;
}

.player-row:not(:disabled):active {
  background: #f8fafc;
}

.player-row:disabled {
  opacity: 1;
}

.player-row.is-target {
  background: #f7fbff;
}

.player-row.is-winner {
  background: #fff3f3;
}

.player-row.is-winner .stat-cell {
  background: #fdeaea;
}

.player-row.is-lost {
  background: #f3f4f6;
  color: var(--text-sub);
}

.player-row.win-reach::after,
.player-row.lose-reach::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 2px;
  left: 10px;
  height: 2px;
  pointer-events: none;
}

.player-row.win-reach:not(.lose-reach)::after {
  background: var(--correct);
}

.player-row.lose-reach:not(.win-reach)::after {
  background: var(--wrong);
}

.player-row.win-reach.lose-reach::after {
  background: linear-gradient(to right, var(--correct) 0 50%, var(--wrong) 50% 100%);
}

.rank-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rank-cell b {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
}

.is-winner .rank-cell {
  width: 28px;
  height: 28px;
  justify-self: center;
  border: 2px solid var(--correct);
  border-radius: var(--radius-sm);
}

.is-winner .rank-cell b {
  color: var(--text-main);
  font-size: .9rem;
}

.player-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 0 8px 0 5px;
}

.player-name > b {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-name > b.name-medium {
  font-size: 1.25rem;
}

.player-name > b.name-short {
  font-size: 1.5rem;
  line-height: 1.08;
}

.player-name > b.is-self-name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.player-name small {
  flex: 0 0 auto;
  color: var(--text-sub);
  font-size: .58rem;
  font-weight: 800;
}

.player-name .target-label {
  color: var(--primary);
}

.stat-cell {
  display: flex;
  width: 47px;
  min-height: 46px;
  justify-self: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: var(--radius-md);
  background: var(--soft);
  font-variant-numeric: tabular-nums;
}

.stat-cell small {
  color: var(--text-sub);
  font-size: .55rem;
  font-weight: 800;
  line-height: 1;
}

.stat-cell b {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.score-footer {
  flex: 0 0 auto;
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: #fff;
}

.spectator-footer {
  display: flex;
  min-height: 58px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--text-sub);
  font-size: .78rem;
}

.spectator-footer .material-icons {
  font-size: 19px;
}

.action-context {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.undo-button,
.score-reset-button,
.modal-actions button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 700;
}

.undo-button:disabled {
  color: #b6bbc3;
  cursor: default;
}

.score-reset-button {
  border-color: #dc2626;
  color: #dc2626;
}

.judge-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.host-judge-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.judge-button {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
}

.judge-button span {
  font-size: 1.55rem;
  line-height: 1;
}

.judge-button strong {
  font-size: 1.12rem;
  letter-spacing: .04em;
}

.correct-button {
  border: 2px solid var(--correct);
  color: var(--correct);
}

.correct-button:active {
  background: var(--correct-soft);
}

.wrong-button {
  border: 2px solid var(--wrong);
  color: var(--wrong);
}

.wrong-button:active {
  background: var(--wrong-soft);
}

.through-button {
  border: 2px solid #4b5563;
  color: #4b5563;
}

.through-button:active {
  background: #f3f4f6;
}

.through-button .material-icons {
  font-size: 1.45rem;
}

.host-through-footer .through-button {
  width: 100%;
}

.judge-button:disabled {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #9ca3af;
  cursor: default;
}

.modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(0 0 0 / 42%);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #fff;
}

.modal-content h2 {
  margin: 0 0 20px;
  font-size: 1.3rem;
  text-align: center;
}

.settings-list {
  margin: 0;
  border-top: 1px solid var(--border-light);
}

.settings-list > div {
  display: grid;
  min-height: 50px;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--border-light);
}

.settings-list dt {
  color: var(--text-sub);
  font-size: .86rem;
  font-weight: 700;
}

.settings-list dd {
  margin: 0;
  overflow: hidden;
  font-size: .96rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-description {
  margin: 16px 0;
  color: var(--text-sub);
  font-size: .9rem;
  line-height: 1.6;
}

.modal-content details {
  margin-bottom: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.modal-content summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 700;
}

.modal-content pre {
  max-height: 220px;
  margin: 0;
  overflow: auto;
  padding: 10px;
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: .8rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.rule-settings-form {
  display: grid;
  gap: 16px;
  margin: 16px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.rule-settings-form .rule-code-details {
  margin: 0;
}

.rule-settings-form .field > span {
  font-size: .9rem;
}

.rule-settings-form .field select {
  min-height: 48px;
  font-size: 1rem;
}

.constant-settings {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.constant-settings h3 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.constant-setting {
  display: grid;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

.constant-setting-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.constant-setting-main b {
  min-width: 0;
  overflow: hidden;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.constant-setting-main input {
  width: 112px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: right;
}

.constant-setting small,
.constant-settings-empty {
  margin: 0;
  color: var(--text-sub);
  font-size: .88rem;
  line-height: 1.45;
}

.rule-code-details textarea {
  display: block;
  width: 100%;
  min-height: 210px;
  padding: 10px;
  border: 0;
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: .8rem;
  line-height: 1.5;
  resize: vertical;
}

.setting-note {
  margin: 0;
  color: var(--text-sub);
  font-size: .82rem;
  line-height: 1.5;
}

.apply-rule-button {
  min-height: 50px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 700;
}

.apply-rule-button:disabled {
  border-color: #9ca3af;
  background: #9ca3af;
  cursor: wait;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.reset-confirm-content {
  max-width: 340px;
}

.reset-confirm-content p {
  margin: 0;
  color: var(--text-sub);
  font-size: .9rem;
  line-height: 1.65;
}

.modal-actions .reset-confirm-button {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.name-modal-content {
  max-width: 360px;
}

.share-modal-content {
  max-width: 340px;
  text-align: center;
}

.room-qr {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  aspect-ratio: 1;
  margin: 2px auto 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.share-room-code {
  display: block;
  color: var(--text-main);
  font-family: Consolas, "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
}

.share-link {
  margin-top: 8px;
  overflow: hidden;
  color: var(--text-sub);
  font-size: .72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.share-actions button {
  min-width: 0;
  display: inline-flex;
  position: relative;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 8px 0 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.share-actions button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.share-actions .material-icons {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 18px;
  font-size: 18px;
  text-align: center;
  transform: translateY(-50%);
}

.share-action-label {
  display: block;
  min-width: 0;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .share-actions {
    grid-template-columns: 1fr;
  }

  .native-share-button {
    display: none;
  }
}

.split-actions {
  justify-content: space-between;
  gap: 10px;
}

.split-actions button {
  min-width: 96px;
  min-height: 46px;
}

.modal-submit-btn {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
}

.modal-submit-btn:active {
  background: var(--primary-hover) !important;
}

.modal-submit-btn:disabled {
  cursor: wait;
  opacity: .6;
}

.modal-cancel-btn {
  background: #fff;
}

.toast {
  position: fixed;
  z-index: 50;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100% - 24px);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  background: #111827;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast.is-visible {
  opacity: 1;
}

.toast.is-error {
  background: #dc2626;
}

noscript {
  display: block;
  padding: 20px;
  text-align: center;
}

@media (max-width: 359px) {
  .score-header {
    gap: 4px;
    padding-inline: 6px;
  }

  .header-actions {
    gap: 0;
  }

  .room-code-button {
    width: 38px;
    justify-content: center;
    padding: 0;
  }

  .room-code-button > span:first-child,
  .brand-heading > small {
    display: none;
  }

  .player-row {
    grid-template-columns: 34px minmax(0, 1fr) repeat(var(--stat-count), 51px);
    padding-inline: 6px;
  }

  .player-name {
    padding-inline: 4px;
  }

  .brand-line span {
    display: none;
  }

  .host-judge-buttons {
    gap: 5px;
  }

  .host-judge-buttons .judge-button {
    gap: 4px;
  }

  .host-judge-buttons .judge-button strong {
    font-size: 1rem;
  }
}
