:root {
  --bg: #121212;
  --surface: #1a1a19;
  --surface-2: #202020;
  --line: rgba(255, 255, 255, 0.09);
  --gold: #d8ad62;
  --gold-2: #c99a4f;
  --gold-line: rgba(216, 173, 98, 0.6);
  --gold-faint: rgba(216, 173, 98, 0.3);
  --cream: #f2ead9;
  --muted: #9a958c;
  --ink: #17140f;
  --green: #3c6e45;
  --green-hi: #4a8253;
  --red: #a63d36;
  --red-hi: #bd4a42;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --display: "Cinzel", "Trajan Pro", "Cormorant Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(14px, 4.4vw, 24px);
  --gap: clamp(7px, 2vw, 10px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(216, 173, 98, 0.05), transparent 60%),
    var(--bg);
  min-height: 100dvh;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top) + clamp(10px, 3vw, 18px)) var(--pad)
    calc(env(safe-area-inset-bottom) + 12px);
  display: flex;
  flex-direction: column;
}

/* ---------- Masthead (logo) ---------- */

/* The emblem sits lower than its own box so it reads as part of the wordmark.
   `.brand` takes the same amount back, so the title itself does not move. */
.masthead {
  text-align: center;
  --logo-gap: clamp(6px, 2.4vw, 12px);
  --logo-drop: 12px;
}

.logo {
  display: block;
  margin: var(--logo-drop) auto 0;
  width: clamp(84px, 24vw, 120px);
  height: auto;
}

.brand {
  margin-top: calc(var(--logo-gap) - var(--logo-drop));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vw, 10px);
}

.brand h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 6.6vw, 30px);
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
}

.flourish {
  width: clamp(16px, 4.5vw, 24px);
  height: 10px;
  flex: none;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 10'%3E%3Cpath d='M1 5c3-4 6-4 8 0s5 4 8 0 M17 5h10 M20 3l2 2-2 2' fill='none' stroke='%23d8ad62' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.85;
}

.flourish-right {
  transform: scaleX(-1);
}

.subrow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 2px;
}

.subtitle {
  font-size: clamp(16px, 4.6vw, 20px);
  font-weight: 600;
  color: var(--gold);
  line-height: 1.2;
}

.chapter,
.sound-toggle {
  font-family: var(--sans);
  font-size: clamp(11px, 3.1vw, 13px);
  color: var(--muted);
}

.chapter {
  justify-self: start;
}

.sound-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0 4px 8px;
}

.speaker {
  width: 1.35em;
  height: 1.35em;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.speaker .speaker-body {
  fill: var(--gold);
}

.speaker .speaker-mute {
  display: none;
}

.sound-toggle[aria-pressed="false"] .speaker-wave {
  display: none;
}

.sound-toggle[aria-pressed="false"] .speaker-mute {
  display: inline;
}

/* ---------- Shared pieces ---------- */

.divider-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.divider-title::before,
.divider-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold-line);
}

.gold-btn,
.dark-btn {
  min-height: clamp(46px, 12.4vw, 54px);
  border-radius: 10px;
  font-family: var(--serif);
  font-size: clamp(19px, 5.4vw, 23px);
  font-weight: 700;
  transition: transform 0.08s ease, filter 0.15s ease, opacity 0.2s ease;
}

.gold-btn {
  background: linear-gradient(180deg, #e2b96f, var(--gold-2));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 240, 205, 0.45), 0 2px 0 rgba(0, 0, 0, 0.4);
}

.dark-btn {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--cream);
}

.gold-btn:active:not(:disabled),
.dark-btn:active:not(:disabled) {
  transform: translateY(1px);
  filter: brightness(1.1);
}

.gold-btn:disabled,
.dark-btn:disabled {
  opacity: 0.4;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.segmented button {
  min-height: 42px;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
}

.segmented button[aria-checked="true"] {
  background: linear-gradient(180deg, #e2b96f, var(--gold-2));
  color: var(--ink);
}

.link-btn {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--gold-faint);
  text-underline-offset: 3px;
}

/* ---------- Series card ---------- */

.series-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: clamp(10px, 3vw, 16px);
  padding: clamp(9px, 2.6vw, 12px) clamp(12px, 3.6vw, 16px);
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.series-card::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  height: 100%;
  min-height: 40px;
  background: var(--line);
}

.series-info {
  grid-column: 1;
  min-width: 0;
}

.series-format {
  font-family: var(--sans);
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.series-game {
  font-size: clamp(20px, 5.6vw, 24px);
  font-weight: 700;
  line-height: 1.1;
}

.series-rule {
  font-family: var(--sans);
  font-size: clamp(11px, 3vw, 12.5px);
  color: var(--muted);
  margin-top: 2px;
}

.series-tally {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 700;
  white-space: nowrap;
}

.series-tally .tally-name {
  max-width: 5.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.series-tally .tally-score {
  font-size: clamp(22px, 6.2vw, 27px);
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* Three or four players get a stacked list of game wins instead of "name 1 – 0 name". */
.series-tally.multi {
  display: grid;
  grid-template-columns: auto;
  gap: 2px clamp(8px, 2.6vw, 14px);
  font-size: clamp(12px, 3.3vw, 14px);
}

.series-tally.multi.two-col {
  grid-template-columns: auto auto;
}

.series-tally.multi .tally-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 4.6em;
}

.series-tally.multi .tally-name {
  max-width: 4.6em;
  font-weight: 600;
}

.series-tally.multi .tally-wins {
  color: var(--gold);
  font-size: clamp(14px, 3.9vw, 17px);
}

.series-tally.multi .tally-row.leader .tally-name {
  color: var(--gold);
}

.series-card.champion {
  border-color: var(--gold-line);
}

/* ---------- Game ---------- */

.game {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: clamp(10px, 3vw, 16px);
}

.score-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 2.6vw, 12px);
  margin-top: clamp(8px, 2.4vw, 12px);
}

/* Three players sit in one row; four fall into a 2x2 block. */
.score-cards[data-count="3"] {
  grid-template-columns: repeat(3, 1fr);
}

.score-cards[data-count="3"] .card-score {
  font-size: clamp(40px, 12vw, 58px);
}

.score-cards[data-count="3"] .card-name {
  font-size: clamp(15px, 4.2vw, 18px);
}

.score-cards[data-count="4"] .card-score {
  font-size: clamp(42px, 13vw, 60px);
}

.score-cards[data-count="4"] .card-name {
  font-size: clamp(17px, 4.8vw, 20px);
}

.score-cards[data-count="3"] .card-label,
.score-cards[data-count="4"] .card-label {
  font-size: clamp(10px, 2.8vw, 11.5px);
}

.score-card.empty-seat {
  border-style: dashed;
  border-color: rgba(216, 173, 98, 0.22);
}

.score-card.empty-seat .card-name,
.score-card.empty-seat .card-score {
  color: var(--muted);
}

.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(8px, 2.4vw, 12px) 8px clamp(8px, 2.4vw, 12px);
  border-radius: 10px;
  border: 1.5px solid var(--gold-faint);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--surface);
  min-width: 0;
}

.score-card.mine {
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px rgba(216, 173, 98, 0.08);
}

.card-name {
  font-size: clamp(19px, 5.4vw, 23px);
  font-weight: 700;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-score {
  font-weight: 700;
  font-size: clamp(56px, 17vw, 80px);
  line-height: 0.95;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.card-score.bump-up {
  animation: bump 0.5s ease;
}

.card-score.bump-down {
  animation: shake 0.45s ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.card-label {
  font-family: var(--sans);
  font-size: clamp(11px, 3.1vw, 13px);
  color: var(--muted);
  margin-top: 2px;
}

.wager-title {
  margin: clamp(10px, 3vw, 16px) 0 clamp(8px, 2.4vw, 12px);
  text-align: center;
  font-size: clamp(22px, 6.2vw, 27px);
  font-weight: 700;
}

.wager-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}

.tile {
  aspect-ratio: 1.3;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--cream);
  font-weight: 700;
  font-size: clamp(21px, 6vw, 27px);
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.08s ease, background 0.15s ease;
}

.tile:active {
  transform: scale(0.95);
}

.tile[aria-checked="true"] {
  background: linear-gradient(180deg, #e2b96f, var(--gold-2));
  border-color: transparent;
  color: var(--ink);
}

.tile:disabled {
  opacity: 0.4;
}

.result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 2.6vw, 12px);
  margin-top: clamp(10px, 3vw, 14px);
}

.result-btn {
  min-height: clamp(68px, 19vw, 86px);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.8vw, 9px);
  color: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, filter 0.15s ease, opacity 0.2s ease;
}

.result-btn.won {
  background: linear-gradient(180deg, var(--green-hi), var(--green));
}

.result-btn.lost {
  background: linear-gradient(180deg, var(--red-hi), var(--red));
}

.result-btn:active:not(:disabled) {
  transform: translateY(2px) scale(0.985);
  filter: brightness(1.12);
}

.result-btn:disabled {
  opacity: 0.45;
}

.result-label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(14px, 4vw, 17px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.glyph {
  position: relative;
  width: clamp(20px, 6vw, 26px);
  height: clamp(20px, 6vw, 26px);
}

.glyph::before,
.glyph::after {
  content: "";
  position: absolute;
  background: var(--cream);
  border-radius: 2px;
}

.glyph::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 24%;
  transform: translateY(-50%);
}

.glyph.plus::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 24%;
  transform: translateX(-50%);
}

.log-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(8px, 2.4vw, 12px);
  padding: 6px 4px;
  width: 100%;
  border-radius: 8px;
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 600;
  color: var(--cream);
}

.log-line.flash {
  animation: flash 0.9s ease;
}

@keyframes flash {
  0% { background: rgba(216, 173, 98, 0.18); }
  100% { background: transparent; }
}

.undo-btn {
  align-self: center;
  margin-top: 2px;
  padding: 4px 6px;
  font-family: var(--sans);
  font-size: clamp(13px, 3.6vw, 15px);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.undo-btn:disabled {
  opacity: 0.35;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 2.6vw, 12px);
  margin-top: clamp(10px, 3vw, 16px);
}

.game-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

.game-footer strong {
  color: var(--gold);
  letter-spacing: 0.12em;
}

.dot {
  opacity: 0.5;
}

/* ---------- Results ---------- */

.results {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: clamp(14px, 4vw, 24px);
}

.results-title {
  margin: 0 0 clamp(14px, 4vw, 22px);
  text-align: center;
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 700;
}

.table-wrap {
  margin-top: clamp(14px, 4vw, 20px);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  max-height: 42dvh;
  overflow-y: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
}

/* Fixed layout means the first column has to be sized in absolute units, or the
   "Game" heading gets clipped once the player columns multiply. */
.results-table th:first-child,
.results-table td:first-child {
  width: 52px;
}

.results-table th,
.results-table td {
  padding: 11px 6px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-table th:last-child,
.results-table td:last-child {
  border-right: 0;
}

/* Four players means six columns, so the cells have to give up some padding. */
.results-table.crowded th,
.results-table.crowded td {
  padding: 10px 3px;
}

.results-table.crowded th {
  font-size: 11.5px;
}

.results-table.crowded td {
  font-size: 16px;
}

.results-table tbody tr:last-child td {
  border-bottom: 0;
}

.results-table th {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  background: var(--surface);
}

.results-table td {
  font-size: 19px;
  font-weight: 700;
}

.results-table td.empty {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  padding: 18px 8px;
}

.results-table .win {
  color: var(--gold);
}

.results-rule {
  height: 1px;
  background: var(--line);
  margin: clamp(20px, 6vw, 36px) 6% clamp(16px, 4.6vw, 24px);
}

.results-status {
  text-align: center;
}

.status-title {
  font-size: clamp(21px, 6vw, 25px);
  font-weight: 700;
}

.status-title.champion {
  color: var(--gold);
  font-size: clamp(25px, 7vw, 30px);
}

.status-detail {
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}

.share-results-btn {
  width: 100%;
  margin-top: 18px;
}

.new-series {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.back-btn {
  margin-top: auto;
}

.results .back-btn {
  margin-top: clamp(24px, 8vw, 48px);
}

.restart-link {
  align-self: center;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 13px;
}

/* ---------- Lobby ---------- */

.lobby {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(20px, 6vw, 40px);
}

.panel {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: clamp(18px, 5vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel .divider-title {
  font-size: clamp(24px, 7vw, 30px);
  font-weight: 700;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 18px;
  font-weight: 700;
}

.field em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 15px;
}

.field input {
  font: inherit;
  font-size: 21px;
  font-weight: 700;
  color: var(--cream);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 14px;
  outline: none;
}

.field input::placeholder {
  color: #5f5b55;
}

.field input:focus {
  border-color: var(--gold-line);
  box-shadow: 0 0 0 3px rgba(216, 173, 98, 0.18);
}

#codeInput {
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lobby-error {
  margin: -4px 0 0;
  color: #e48c80;
  font-size: 17px;
  font-weight: 600;
}

.lobby-error:empty {
  display: none;
}

.lobby-hint {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

/* ---------- Toast & connection ---------- */

.conn-banner {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  z-index: 20;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 40px);
  background: #262523;
  border: 1px solid var(--gold-line);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 17px;
  z-index: 20;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ---------- Dialog ---------- */

.dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(2px);
}

.dialog-card {
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: var(--surface);
  padding: clamp(18px, 5vw, 24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  animation: dialog-in 0.16s ease-out;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.dialog-title {
  margin: 0;
  font-size: clamp(22px, 6.2vw, 26px);
  font-weight: 700;
  color: var(--gold);
}

.dialog-body {
  margin: 10px 0 0;
  font-size: clamp(17px, 4.6vw, 19px);
  line-height: 1.35;
  white-space: pre-line;
}

.dialog-body:empty {
  display: none;
}

.dialog-link {
  width: 100%;
  margin-top: 14px;
  font: inherit;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--cream);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
}

.dialog-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.dialog-choices .choice {
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--cream);
  font-family: var(--sans);
  font-size: clamp(17px, 4.6vw, 19px);
  font-weight: 600;
  text-align: center;
  transition: filter 0.12s ease;
}

.dialog-choices .choice:active {
  transform: translateY(1px);
}

.dialog-choices .choice[aria-checked="true"] {
  background: linear-gradient(180deg, #e2b96f, var(--gold-2));
  border-color: transparent;
  color: var(--ink);
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: clamp(18px, 5vw, 22px);
}

.dialog-actions.single {
  grid-template-columns: 1fr;
}

.dialog-actions.single .dark-btn {
  display: none;
}

.dialog-actions button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

/* Short screens: tighten vertical rhythm so the game fits without scrolling. */
@media (max-height: 700px) {
  .game { padding-top: 8px; }
  .card-score { font-size: clamp(48px, 14vw, 64px); }
  .wager-title { margin: 8px 0 7px; font-size: 21px; }
  .tile { aspect-ratio: 1.55; }
  .result-btn { min-height: 60px; gap: 4px; }
  .log-line { margin-top: 4px; padding: 3px; }
  .action-row { margin-top: 6px; }
  .gold-btn, .dark-btn { min-height: 44px; }
  .game-footer { padding-top: 8px; }
}

/* Desktop: present as a phone-sized card. */
@media (min-width: 700px) and (min-height: 800px) {
  .app {
    margin-top: 24px;
    margin-bottom: 24px;
    min-height: calc(100dvh - 48px);
    border: 1px solid rgba(216, 173, 98, 0.15);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  }
}
