﻿@media (max-width: 720px) {
  .host-panel {
    display: none;
    min-height: 34px;
    max-height: 42px;
    padding: 6px 8px;
    overflow: hidden;
  }

  .host-portrait,
  .host-copy .eyebrow {
    display: none;
  }

  .host-copy {
    margin: 0;
  }

  .host-copy p:last-child {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-game {
    display: grid;
    grid-template-rows: minmax(0, 1.12fr) auto minmax(0, 1fr) auto;
    gap: 5px;
    min-height: 0;
    overflow: hidden;
  }

  .frame-wrap {
    height: 100%;
    min-height: 0;
    border-radius: 6px;
    aspect-ratio: auto;
  }

  .frame-wrap img {
    object-fit: contain;
  }

  .frame-source {
    display: none !important;
  }

  #promptText {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .question-row {
    min-height: 30px;
    margin: 0;
    padding: 4px 6px;
  }

  .answer-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 5px;
    min-height: 0;
  }

  .answer-button {
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    gap: 4px;
    height: 100%;
    min-height: 0;
    padding: 4px;
    overflow: hidden;
    border-radius: 6px;
  }

  .answer-letter {
    width: 22px;
    height: 22px;
    margin: 0;
    font-size: 11px;
  }

  .answer-button.is-correct::after,
  .answer-button.correct::after,
  .answer-button.is-wrong::after,
  .answer-button.wrong::after {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .answer-text {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .answer-button.long-answer .answer-text {
    font-size: 11px;
  }

  .answer-button.very-long-answer .answer-text {
    font-size: 10px;
  }

  .round-action-slot {
    position: relative;
    z-index: 3;
    min-height: 38px;
    margin: 0;
    pointer-events: none;
  }

  .round-action-slot > button {
    min-height: 38px;
  }

  .round-action-slot > button:not(:disabled) {
    pointer-events: auto;
  }

  #lockButton:disabled {
    pointer-events: none;
  }

  .side-rail {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .lifeline-panel {
    padding: 4px;
    border-radius: 6px;
  }

  .lifeline-panel > .eyebrow {
    display: none;
  }

  .lifeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .report-button {
    grid-column: auto;
  }

  .tool-button {
    min-height: 34px;
    border-radius: 6px;
    font-size: 12px;
  }

  .intel-panel:not(:empty) {
    display: grid;
    grid-template-rows: auto;
    margin-top: 5px;
    padding: 8px;
    overflow: hidden;
    border-color: var(--gf-cyan);
    background: var(--gf-stage);
  }

  .intel-content {
    min-height: 0;
    overflow: hidden;
  }

  .mobile-intel-close {
    display: block;
    justify-self: end;
    min-height: 30px;
    margin-bottom: 4px;
    border: 1px solid rgba(72, 214, 210, 0.34);
    background: var(--gf-panel-deep);
    color: var(--gf-warm);
    font-size: 12px;
    font-weight: 800;
  }

  .report-dialog-overlay {
    padding: 8px;
  }

  .report-panel {
    max-height: calc(100dvh - 16px);
    padding: 14px;
    overflow: auto;
  }

  .ladder-panel {
    display: none;
  }
}
