:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --blue: #39b6ff;
  --blue-deep: #07111f;
  --paper: #080b12;
  --white: #ffffff;
  --gold: #ffce51;
  --silver: #a7b4c8;
  --brown: #a46b48;
  --lime: #45ff9a;
  --pink: #ff4fd8;
  --violet: #8468ff;
  --panel: rgba(5, 7, 12, 0.94);
  --panel-strong: #0a0f19;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(57, 182, 255, 0.07) 0 1px, transparent 1px 48px),
    linear-gradient(45deg, rgba(69, 255, 154, 0.035) 0 1px, transparent 1px 54px),
    radial-gradient(circle at 22% 0%, rgba(57, 182, 255, 0.09), transparent 34%),
    linear-gradient(180deg, #020409 0%, #060911 52%, #020409 100%);
}

button,
input,
textarea {
  font: inherit;
}

.app-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px;
}

.brand-wordmark {
  display: flex;
  align-items: center;
  justify-self: center;
  width: min(100%, 252px);
}

.brand-wordmark img,
.admin-wordmark {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.admin-wordmark {
  width: 212px;
  margin-bottom: 18px;
}

.eyebrow,
.kicker {
  margin: 0 0 10px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1;
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  line-height: 0.94;
}

.rail-meter {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.rail-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--progress, 12%);
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--blue), var(--pink));
  border-radius: 999px;
  transition: width 320ms ease;
}

.game-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 1040px);
  min-height: min(760px, calc(100vh - 56px));
  padding: clamp(18px, 3vw, 34px);
  background: var(--panel);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
}

.player-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 22px;
  margin-bottom: clamp(32px, 5vw, 58px);
}

.player-header .brand-wordmark {
  grid-column: 1 / -1;
}

.player-header h1 {
  grid-column: 1;
  justify-self: start;
  max-width: 100%;
  font-size: clamp(1.35rem, 2.8vw, 2.3rem);
  font-weight: 900;
}

.progress-dots {
  display: flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  gap: 7px;
}

.progress-dots span {
  width: 10px;
  height: 10px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 50%;
  transition: width 220ms ease, background 220ms ease;
}

.progress-dots span.active {
  width: 28px;
  background: linear-gradient(90deg, var(--lime), var(--blue));
  border-radius: 999px;
}

form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.step {
  display: none;
  flex: 1;
  animation: rise 260ms ease both;
}

.step.active {
  display: grid;
  align-content: start;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.field {
  display: grid;
  gap: 12px;
  max-width: 620px;
  margin-top: 36px;
}

.field span {
  color: #b9c5d8;
  font-size: 0.88rem;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0 22px;
  color: var(--ink);
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  outline: none;
  font-size: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 35px rgba(0, 0, 0, 0.18);
}

.field input {
  min-height: 72px;
}

.field textarea {
  min-height: 190px;
  padding: 18px 22px;
  line-height: 1.45;
  resize: vertical;
}

.wide-field {
  max-width: 760px;
}

.field small {
  color: var(--muted);
  font-weight: 700;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(69, 255, 154, 0.12), 0 18px 40px rgba(0, 0, 0, 0.22);
}

.email-check {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.email-check.ok {
  color: var(--lime);
}

.email-check.error {
  color: #ff8a8a;
}

.email-check.checking {
  color: var(--blue);
}

.skip-button {
  margin-top: 18px;
  color: var(--lime);
  background: transparent;
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.casino-grid,
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.casino-card,
.choice-card {
  display: grid;
  min-height: 150px;
  padding: 18px;
  text-align: left;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(19, 29, 48, 0.96), rgba(11, 18, 32, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.casino-card:hover,
.choice-card:hover,
.casino-card.selected,
.choice-card.selected {
  transform: translateY(-3px);
  border-color: var(--accent, var(--blue));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--blue)) 22%, transparent), 0 18px 44px rgba(0, 0, 0, 0.3);
}

.casino-card strong,
.choice-card strong {
  align-self: end;
  font-size: 1.05rem;
}

.casino-card small,
.choice-card small {
  color: #99a8bd;
}

.casino-logo-wrap,
.casino-sigil {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: white;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 82%, white), color-mix(in srgb, var(--accent) 62%, black)),
    var(--accent);
  border-radius: 8px;
  font-weight: 900;
}

.casino-logo-wrap {
  position: relative;
  overflow: hidden;
  background: #111a2b;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, white);
}

.casino-logo {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.casino-logo + .casino-sigil {
  display: none;
}

.casino-sigil {
  position: absolute;
  inset: 0;
}

.choice-card {
  --accent: var(--blue);
  align-content: start;
  min-height: 262px;
  overflow: hidden;
  padding: 12px 12px 20px;
}

.tier-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  min-height: 190px;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 16px 34px rgba(3, 10, 24, 0.24);
}

.tier-art {
  justify-self: center;
  width: min(118%, 290px);
  height: 184px;
  object-fit: contain;
  transition: transform 180ms ease;
}

.tier-choice:hover .tier-art,
.tier-choice.selected .tier-art {
  transform: translateY(-4px) scale(1.04);
}

.tier-choice strong {
  justify-self: center;
  text-align: center;
}

.dropzone {
  display: grid;
  place-items: center;
  min-height: 300px;
  margin-top: 30px;
  padding: 34px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(69, 255, 154, 0.08), rgba(57, 182, 255, 0.08)),
    #0b1220;
  border: 2px dashed rgba(57, 182, 255, 0.45);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.dropzone.dragging {
  background: rgba(57, 182, 255, 0.12);
  border-color: var(--lime);
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  color: white;
  background: linear-gradient(135deg, var(--lime), var(--blue));
  border-radius: 8px;
  font-size: 2rem;
  font-weight: 800;
}

.dropzone strong {
  font-size: 1.2rem;
}

.dropzone small {
  max-width: 420px;
  margin-top: 6px;
  color: #aab7c8;
}

.file-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.evidence-review {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-top: 18px;
  padding: 18px;
  background: rgba(255, 79, 216, 0.08);
  border: 1px solid rgba(255, 79, 216, 0.42);
  border-radius: 8px;
}

.evidence-review.checking {
  background: rgba(57, 182, 255, 0.09);
  border-color: rgba(57, 182, 255, 0.42);
}

.evidence-review.strong {
  background: rgba(69, 255, 154, 0.09);
  border-color: rgba(69, 255, 154, 0.38);
}

.evidence-review.fair {
  background: rgba(255, 206, 81, 0.09);
  border-color: rgba(255, 206, 81, 0.38);
}

.evidence-review.error,
.evidence-review.weak {
  background: rgba(255, 79, 216, 0.09);
  border-color: rgba(255, 79, 216, 0.42);
}

.evidence-review p,
.evidence-review ul {
  margin: 0;
  color: #c3ccda;
}

.evidence-review ul {
  padding-left: 18px;
}

.evidence-review li + li {
  margin-top: 6px;
}

.evidence-review-head {
  display: grid;
  gap: 6px;
}

.evidence-review-head span {
  width: max-content;
  padding: 5px 9px;
  color: #041018;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-review.strong .evidence-review-head span {
  background: linear-gradient(135deg, var(--lime), var(--blue));
}

.evidence-review.fair .evidence-review-head span {
  background: linear-gradient(135deg, var(--gold), var(--blue));
}

.evidence-review-note {
  font-weight: 800;
}

.evidence-review-attempts {
  width: max-content;
  max-width: 100%;
  padding: 8px 10px;
  color: #041018 !important;
  background: linear-gradient(135deg, var(--lime), var(--blue));
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
}

.file-pill,
.summary-board div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
}

.file-pill span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 32px;
  color: var(--lime);
  background: rgba(69, 255, 154, 0.1);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
}

.file-pill strong {
  flex: 1;
  overflow-wrap: anywhere;
}

.file-pill small,
.summary-board span {
  color: var(--muted);
}

.file-note {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  color: #b9c5d8;
  background: rgba(57, 182, 255, 0.08);
  border: 1px solid rgba(57, 182, 255, 0.24);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.file-note p {
  margin: 0;
}

.file-remove {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ff8a8a;
  background: rgba(255, 92, 122, 0.1);
  border: 1px solid rgba(255, 92, 122, 0.26);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.file-remove:hover,
.file-remove:focus-visible {
  background: rgba(255, 92, 122, 0.18);
  border-color: rgba(255, 92, 122, 0.48);
  transform: translateY(-1px);
}

.file-remove svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.summary-board {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-top: 28px;
}

.summary-board strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.consent {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.primary,
.secondary {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.primary {
  color: #041018;
  background: linear-gradient(135deg, var(--lime), var(--blue));
  border: 1px solid rgba(69, 255, 154, 0.5);
  box-shadow: 0 12px 28px rgba(57, 182, 255, 0.22);
}

.secondary {
  color: var(--ink);
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.mini-button {
  width: max-content;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.email-test-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.primary:disabled,
.secondary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.hidden {
  display: none !important;
}

.result-panel {
  display: grid;
  align-content: center;
  flex: 1;
}

.result-panel p {
  max-width: 600px;
  color: #b2bfd0;
  font-size: 1.1rem;
}

.code-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin-top: 24px;
}

.code-form .field {
  margin-top: 0;
}

.code-form input {
  text-align: center;
  font-size: 1.6rem;
  letter-spacing: 0;
}

.code-form small {
  min-height: 20px;
  color: #ff8a8a;
  font-weight: 800;
}

.link-button {
  display: inline-grid;
  place-items: center;
  width: max-content;
  text-decoration: none;
}

.shake {
  animation: shake 300ms ease;
}

@keyframes shake {
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
}

.admin-body {
  background:
    linear-gradient(135deg, rgba(132, 104, 255, 0.12) 0 1px, transparent 1px 48px),
    #070910;
}

.admin-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-header h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.96;
}

.llm-status {
  display: grid;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(164, 107, 72, 0.14);
  border: 1px solid rgba(164, 107, 72, 0.42);
  border-radius: 8px;
}

.llm-status.live {
  background: rgba(69, 255, 154, 0.1);
  border-color: rgba(69, 255, 154, 0.34);
}

.llm-status span {
  color: var(--ink);
  font-weight: 900;
}

.llm-status strong,
.llm-status small {
  color: var(--muted);
}

.admin-login {
  display: flex;
  gap: 10px;
}

.admin-login input {
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
}

.admin-layout {
  display: block;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 10px;
  width: min(100%, 720px);
}

.admin-stats div {
  padding: 12px;
  background: #0d1524;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}

.admin-stats span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-stats strong {
  font-size: 1.35rem;
}

.inbox-pane,
.review-pane {
  background: #0d1524;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}

.inbox-pane {
  overflow: hidden;
}

.inbox-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.inbox-filters {
  display: grid;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 12px;
  color: var(--muted);
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.filter-chip.active {
  color: #041018;
  background: linear-gradient(135deg, var(--lime), var(--blue));
  border-color: rgba(69, 255, 154, 0.5);
}

.inbox-toolbar h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.application-list {
  display: grid;
}

.app-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 96px;
  padding: 16px 18px;
  text-align: left;
  color: var(--ink);
  background: #0d1524;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.app-row:hover,
.app-row.active {
  background: #121d30;
}

.inbox-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #041018;
  background: linear-gradient(135deg, var(--lime), var(--blue));
  border-radius: 8px;
  font-weight: 900;
}

.inbox-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.inbox-line,
.inbox-score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.inbox-line {
  justify-content: space-between;
}

.inbox-line strong,
.inbox-subject,
.inbox-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-subject {
  color: var(--ink);
  font-weight: 850;
}

.inbox-preview {
  color: var(--muted);
  font-size: 0.92rem;
}

.inbox-score {
  justify-content: end;
}

.inbox-score strong {
  min-width: 48px;
  text-align: right;
  font-size: 1rem;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 10px;
  color: #041018;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-badge.excellent {
  background: linear-gradient(135deg, #ffe385, var(--gold));
}

.score-badge.good {
  background: linear-gradient(135deg, var(--lime), #16d176);
}

.score-badge.medium {
  background: linear-gradient(135deg, #ffbf69, #ff8a00);
}

.score-badge.weak {
  color: white;
  background: linear-gradient(135deg, #ff5c7a, #d71945);
}

.app-row small,
.inbox-empty {
  color: var(--muted);
}

.review-pane {
  padding: 22px;
}

.inbox-back {
  width: max-content;
  margin-bottom: 18px;
}

.empty-state {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 420px;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.detail-grid div,
.report-box,
.email-box {
  padding: 16px;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}

.detail-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.report-box ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.evidence-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  color: var(--ink);
  text-decoration: none;
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
}

.evidence-item img,
.pdf-tile {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #121d30;
  border-radius: 6px;
}

.pdf-tile {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

textarea {
  width: 100%;
  min-height: 96px;
  margin-top: 12px;
  padding: 12px;
  color: var(--ink);
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  resize: vertical;
  font: inherit;
}

@media (max-width: 960px) {
  .app-shell {
    gap: 16px;
    min-height: auto;
    padding: 16px;
    place-items: start center;
  }

  .game-panel {
    position: relative;
    min-height: auto;
  }

  .brand-wordmark {
    width: 232px;
  }

  .player-header {
    position: sticky;
    top: 0;
    z-index: 5;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 10px;
    margin: -18px -18px 28px;
    padding: 18px 18px 14px;
    background: linear-gradient(180deg, rgba(5, 7, 12, 0.99), rgba(5, 7, 12, 0.94));
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    text-align: left;
    backdrop-filter: blur(14px);
  }

  .player-header h1 {
    grid-column: 1;
    font-size: 1.45rem;
  }

  .progress-dots {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .casino-grid,
  .tier-grid,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inbox-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .inbox-filters {
    padding: 12px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 640px) {
  .app-shell,
  .admin-shell {
    padding: 12px;
  }

  .game-panel,
  .review-pane {
    padding: 18px;
  }

  .player-header {
    margin: -18px -18px 24px;
  }

  .brand-wordmark,
  .admin-wordmark {
    width: 214px;
  }

  h2 {
    font-size: 1.95rem;
    line-height: 1;
  }

  .field {
    margin-top: 24px;
  }

  .field input {
    min-height: 58px;
    padding: 0 16px;
    font-size: 1rem;
  }

  .casino-grid,
  .tier-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .app-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    min-height: 112px;
    padding: 14px;
  }

  .inbox-avatar {
    width: 40px;
    height: 40px;
  }

  .inbox-score {
    grid-column: 2;
    justify-content: start;
  }

  .inbox-line {
    align-items: start;
    flex-direction: column;
    gap: 2px;
  }

  .casino-card {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 14px;
    min-height: 92px;
    padding: 14px;
  }

  .casino-card small {
    grid-column: 2;
  }

  .choice-card {
    min-height: 236px;
  }

  .tier-visual {
    min-height: 166px;
  }

  .tier-art {
    width: min(112%, 300px);
    height: 160px;
  }

  .dropzone {
    min-height: 210px;
    margin-top: 22px;
    padding: 22px;
  }

  .summary-board div,
  .file-pill {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-board strong {
    text-align: left;
  }

  .progress-dots {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-header,
  .admin-login,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary,
  .secondary {
    width: 100%;
  }
}
