.practice-page {
  padding-bottom: 72px;
}

.practice-header {
  padding: 28px 0 24px;
}

.practice-header h1,
.practice-game-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.02;
  margin: 0 0 12px;
  text-wrap: balance;
}

.practice-header h1 em {
  color: var(--green);
  font-weight: inherit;
}

.practice-header p:not(.game-kicker) {
  max-width: 580px;
  color: var(--muted);
  line-height: 1.65;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.practice-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.practice-art {
  margin: 0;
  padding: 12px 12px 8px;
  background: #e8e9de;
}

.practice-art img {
  display: block;
  width: 100%;
  height: clamp(124px, 15vw, 222px);
  object-fit: contain;
}

.practice-art figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.practice-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
}

.practice-card h2,
.practice-invite h2 {
  margin: 6px 0 10px;
  font: 400 clamp(31px, 4vw, 45px)/1 var(--serif);
}

.practice-card-copy > p:not(.game-kicker),
.practice-invite p:not(.game-kicker) {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.practice-play {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  font-weight: 700;
  text-underline-offset: 3px;
  text-decoration: underline;
}

.practice-invite {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 24px 28px;
  margin: 24px 0 32px;
  background: var(--mint);
  border-left: 4px solid var(--green);
}

.practice-invite p:not(.game-kicker) {
  margin-bottom: 0;
}

.practice-game-header {
  padding: 20px 0 8px;
}

.practice-game-header h1 {
  font-size: clamp(2.65rem, 5vw, 4rem);
  margin-top: 8px;
}

.game-stage {
  padding: clamp(18px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  min-width: 0;
  overflow-wrap: anywhere;
}

.game-stage h2 {
  font: 400 clamp(28px, 4vw, 46px)/1.07 var(--serif);
  margin: 8px 0 12px;
}

.game-kicker {
  color: var(--green);
  font-size: 11px;
  letter-spacing: .13em;
  font-weight: 700;
  margin: 0;
}

.game-options {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}

.game-options button {
  width: 100%;
  min-height: 48px;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: 600 15px/1.45 var(--sans);
  white-space: normal;
}

.game-options button:hover:not(:disabled) {
  background: var(--mint);
  border-color: var(--green);
}

.game-feedback {
  margin: 18px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--green);
  background: #edf1e7;
}

.game-feedback a {
  text-underline-offset: 3px;
}

.game-feedback .game-controls .chip {
  max-width: 100%;
  white-space: normal;
}

.game-controls {
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0 0;
}

.game-controls button, .game-controls a, .game-stage button[data-game-action] {
  min-height: 44px;
}

.game-note, .practice-storage {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.practice-storage {
  margin: 12px 0 0;
}

.game-stage :focus-visible, .practice-page a:focus-visible, .practice-invite a:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .practice-header { padding-block: 20px; }
  .practice-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .practice-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 29%); }
  .practice-card-copy { padding: 16px 12px 12px 16px; }
  .practice-card h2 { font-size: 1.8rem; }
  .practice-card-copy > p:not(.game-kicker) { font-size: .84rem; margin-bottom: 6px; }
  .practice-art { padding: 8px; }
  .practice-art img { height: clamp(80px, 24vw, 140px); }
  .practice-art figcaption { overflow-wrap: anywhere; }
  .practice-art .image-zoom-trigger {
    width: 40px;
    min-height: 40px;
    top: calc(var(--image-zoom-top, 0px) + 4px);
    left: calc(var(--image-zoom-left, 0px) + 4px);
    justify-content: center;
    padding: 0;
  }
  .practice-art .image-zoom-trigger span { display: none; }
  .practice-invite { padding: 20px; }
  .game-stage { padding: 18px; }
}

.practice-topic {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  align-items: center;
  column-gap: 22px;
  row-gap: 6px;
  padding: 14px 18px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  background: var(--mint);
}

.practice-topic label {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.practice-topic select {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 12px 38px 12px 13px;
  border: 1px solid var(--green);
  border-radius: 3px;
  background-color: var(--white);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  color: var(--ink);
  font: 16px/1.35 var(--sans);
}

.practice-topic select:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

.practice-topic p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 650px) {
  .practice-topic { grid-template-columns: minmax(0, 1fr); padding: 12px; }
}

.personal-invite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 18px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  background: var(--white);
}
.personal-invite h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.personal-invite p, .personal-page header > p:last-child { color: var(--muted); }
.personal-invite a { display: inline-flex; align-items: center; min-height: 44px; }
.personal-page .practice-game-header { margin-bottom: 22px; }
.personal-stage { max-width: 1020px; }
.personal-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.personal-sources li { padding: 14px; border: 1px solid var(--line); background: var(--paper); }
.personal-sources span {
  display: block;
  margin-bottom: 3px;
  color: var(--rust);
  font-size: .75rem;
  letter-spacing: .12em;
}
.personal-sources li p { color: var(--muted); font-size: .9rem; }
.personal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  color: var(--muted);
  font-size: .83rem;
}
.personal-meta [data-personal-reason] {
  padding: 4px 8px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
}
.personal-question-image {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(200px, 1fr);
  align-items: start;
  gap: 20px;
}
.personal-copy { min-width: 0; }
.personal-art { margin: 0; padding: 8px; border: 1px solid var(--line); background: var(--paper); }
.personal-art img { max-height: 350px; object-fit: contain; }
.personal-art figcaption { margin: 6px 0 0; color: var(--muted); }
.personal-stage .game-feedback h3 { margin-bottom: 4px; font-weight: 700; }
.personal-stage .game-feedback p + p { margin-top: 5px; }
@media (max-width: 720px) {
  .personal-invite { padding: 11px 14px; }
  .personal-sources, .personal-question-image { grid-template-columns: 1fr; }
  .personal-sources li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: baseline; gap: 1px 5px; padding: 8px 10px; }
  .personal-sources li p { grid-column: 2; }
  .personal-art { grid-row: 1; }
  .personal-art img { max-height: 175px; }
}
