:root {
  --ink: #2b2522;
  --muted: #756a62;
  --paper: #fffaf0;
  --vellum: #f7efe1;
  --surface: #ffffff;
  --line: #eadfcb;
  --line-strong: #d8c59d;
  --mel: #9b243f;
  --mel-deep: #6f1830;
  --joe: #158060;
  --joe-deep: #0f5d49;
  --gold: #c9a142;
  --gold-deep: #9b771d;
  --shadow: 0 18px 48px rgba(73, 52, 28, 0.13);
  --heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath fill='black' d='M50 82C20 57 6 41 6 24C6 12 15 4 27 4C37 4 45 10 50 18C55 10 63 4 73 4C85 4 94 12 94 24C94 41 80 57 50 82Z'/%3E%3C/svg%3E");
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.play-page,
.admin-page,
.poster-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 250, 240, 0.88), rgba(255, 250, 240, 0.88)),
    radial-gradient(#dccda9 0.9px, transparent 1px);
  background-size: auto, 18px 18px;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(208, 197, 175, 0.55);
  background: rgba(251, 249, 245, 0.82);
  backdrop-filter: blur(18px);
}

.home-nav {
  width: min(1200px, calc(100% - 40px));
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.home-brand,
.home-footer p {
  color: var(--gold-deep);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.95rem;
  font-style: italic;
  font-weight: 700;
  text-decoration: none;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-nav-links span {
  padding-bottom: 4px;
}

.home-nav-links .active {
  color: var(--gold-deep);
  border-bottom: 2px solid var(--gold);
}

.home-live-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-deep);
  text-decoration: none;
  background: #fffdf8;
}

.home-main {
  position: relative;
  min-height: calc(100vh - 80px);
  overflow: hidden;
}

.home-main::before,
.home-main::after {
  position: absolute;
  pointer-events: none;
  color: var(--gold);
  font-family: "Material Symbols Outlined";
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48;
  opacity: 0.12;
}

.home-main::before {
  content: "filter_vintage";
  top: -80px;
  left: -46px;
  font-size: 18rem;
}

.home-main::after {
  content: "spa";
  right: -46px;
  bottom: -100px;
  font-size: 22rem;
  transform: rotate(45deg);
}

.home-hero,
.wish-flow {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 76px 0 84px;
  text-align: center;
}

.home-hero-copy {
  max-width: 780px;
  margin-bottom: 72px;
}

.home-hero-copy h1,
.home-hero-copy h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  font-weight: 700;
  line-height: 1.08;
}

.home-hero-copy p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

.home-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 22px 0;
}

.home-divider span:first-child,
.home-divider span:last-child {
  width: 48px;
  height: 1px;
  background: var(--line-strong);
}

.home-divider .material-symbols-outlined {
  color: var(--gold);
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.team-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(100%, 960px);
}

.team-card {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(208, 197, 175, 0.68);
  background: #fffdf8;
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px -28px rgba(115, 92, 0, 0.22);
}

.team-card-frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(201, 161, 66, 0.44);
}

.team-card-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--vellum);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms ease;
}

.team-card:hover .team-card-image img {
  transform: scale(1.04);
}

.team-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(251, 249, 245, 0.72));
}

.team-card-title {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 1;
  text-align: center;
}

.team-card-title h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 2.4rem);
  font-weight: 700;
}

.team-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  text-align: center;
}

.team-card-body p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.team-select {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 2px;
  background: var(--gold);
  color: #554300;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 120ms ease;
}

.mel-card .team-select:hover {
  background: var(--mel);
  color: #fff;
}

.joe-card .team-select:hover {
  background: var(--joe);
  color: #fff;
}

.team-select:active {
  transform: scale(0.98);
}

.team-flourish {
  position: absolute;
  top: -16px;
  color: var(--gold);
  font-size: 2.4rem;
  opacity: 0.58;
}

.mel-card .team-flourish {
  left: -16px;
}

.joe-card .team-flourish {
  right: -16px;
  transform: rotate(90deg);
}

.wish-flow {
  position: relative;
  max-width: 800px;
  padding: 52px 0 84px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 22px;
  border: 0;
  background: transparent;
  color: var(--gold-deep);
  cursor: pointer;
  font-weight: 900;
}

.wish-decoration {
  position: absolute;
  z-index: -1;
  display: none;
  opacity: 0.32;
}

.wish-decoration img {
  width: 160px;
  height: 160px;
  display: block;
  border: 1px solid rgba(201, 161, 66, 0.5);
  border-radius: 999px;
  object-fit: cover;
}

.wish-decoration-left {
  top: 104px;
  left: -210px;
}

.wish-decoration-right {
  right: -210px;
  bottom: 160px;
}

.wish-header {
  margin-bottom: 42px;
  text-align: center;
}

.wish-header h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 7vw, 4.8rem);
  line-height: 1.08;
}

.wish-header p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.wish-card-fieldset {
  margin: 0 0 72px;
}

.wish-card-fieldset legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.guest-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.home-footer {
  padding: 46px 20px;
  border-top: 1px solid rgba(208, 197, 175, 0.55);
  background: rgba(251, 249, 245, 0.84);
  text-align: center;
}

.home-footer p {
  margin: 0;
  font-size: 1.55rem;
}

.play-shell,
.admin-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.play-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 1.08fr);
  gap: 28px;
  min-height: 100vh;
  align-items: center;
  padding: 34px 0;
}

.event-band {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 235, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='1200' viewBox='0 0 900 1200'%3E%3Crect width='900' height='1200' fill='%23fffaf0'/%3E%3Cpath d='M170 150c70 35 116 92 138 171 17 61 14 128-8 200' fill='none' stroke='%23d9c691' stroke-width='20' stroke-linecap='round' opacity='.23'/%3E%3Cpath d='M724 1042c-92-42-145-108-159-198-9-61 4-122 38-182' fill='none' stroke='%23d9c691' stroke-width='22' stroke-linecap='round' opacity='.24'/%3E%3Cpath d='M86 734c70-55 144-83 222-83 94 0 158 33 237 71 81 39 175 84 309 59v419H86z' fill='%23158060' opacity='.10'/%3E%3Cpath d='M0 0h900v322c-114 38-211 32-291-17-84-51-168-62-252-31-93 35-212 21-357-42z' fill='%239b243f' opacity='.09'/%3E%3Cpath d='M360 532c42-24 81-24 118 0 37-24 76-24 118 0-39 31-78 46-118 46s-79-15-118-46z' fill='%23c9a142' opacity='.30'/%3E%3C/svg%3E") center / cover;
  box-shadow: var(--shadow);
}

.event-band::before,
.poster-sheet::before {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(201, 161, 66, 0.45);
  border-radius: 8px;
}

.event-band h1 {
  position: relative;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 10vw, 8.2rem);
  font-weight: 700;
  line-height: 0.9;
}

.event-band .eyebrow,
.event-band .venue {
  position: relative;
}

.venue {
  max-width: 420px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.play-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.play-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--mel), var(--gold), var(--joe));
}

.section-heading h2,
.admin-header h1,
.poster-sheet h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

fieldset {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

legend,
.field span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.field {
  display: block;
  margin-top: 18px;
}

.field input,
.field textarea,
.compact-form input,
.compact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fffdf8;
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field textarea:focus,
.compact-form input:focus,
.compact-form select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 161, 66, 0.18);
}

.field textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.45;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.segmented label,
.greeting-option {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.segmented label {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  font-weight: 900;
}

.segmented label:first-child:has(input:checked) {
  border-color: var(--mel);
  background: rgba(155, 36, 63, 0.08);
}

.segmented label:last-child:has(input:checked) {
  border-color: var(--joe);
  background: rgba(21, 128, 96, 0.08);
}

.segmented input,
.greeting-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.greeting-list {
  display: grid;
  gap: 10px;
  max-height: 268px;
  overflow: auto;
  padding-right: 4px;
}

.wish-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.greeting-option {
  padding: 13px 14px;
  color: var(--ink);
  line-height: 1.4;
}

.wish-card-grid .greeting-option {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-color: transparent;
  background: #fffdf8;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.greeting-option:has(input:checked) {
  border-color: var(--gold);
  background: #fff8e8;
  box-shadow: 0 0 0 3px rgba(201, 161, 66, 0.17);
}

.wish-card-grid .greeting-option:has(input:checked) {
  border-color: rgba(201, 161, 66, 0.76);
  background: #fffaf0;
  box-shadow: 0 26px 60px -34px rgba(115, 92, 0, 0.42), 0 0 0 3px rgba(201, 161, 66, 0.16);
}

.segmented label:hover,
.greeting-option:hover {
  transform: translateY(-1px);
}

.wish-card-grid .greeting-option:hover {
  border-color: rgba(201, 161, 66, 0.76);
  transform: translateY(-4px);
}

.wish-card-text {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 3vw, 1.65rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.32;
}

.wish-card-action {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wish-card-grid .greeting-option:hover .wish-card-text,
.wish-card-grid .greeting-option:has(input:checked) .wish-card-text {
  color: var(--gold-deep);
}

.wish-card-grid .greeting-option:hover .wish-card-action,
.wish-card-grid .greeting-option:has(input:checked) .wish-card-action {
  color: var(--mel);
}

.lucky-draw-card {
  position: relative;
  overflow: hidden;
  padding: 44px;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.22);
}

.entry-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.entry-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 27, 24, 0.42);
  cursor: pointer;
}

.entry-modal-card {
  width: min(800px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  z-index: 1;
  border-radius: 8px;
}

.entry-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--gold-deep);
  cursor: pointer;
}

.lucky-sparkle {
  position: absolute;
  right: -16px;
  bottom: -18px;
  color: var(--gold);
  opacity: 0.12;
}

.lucky-sparkle .material-symbols-outlined {
  font-size: 8rem;
}

.lucky-draw-heading {
  position: relative;
  max-width: 560px;
  margin: 0 auto 30px;
  text-align: center;
}

.lucky-draw-heading h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
}

.lucky-draw-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.lucky-draw-card .field {
  margin-top: 0;
}

.lucky-draw-card .field span {
  color: var(--gold-deep);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.lucky-draw-card .field input,
.lucky-draw-card .field textarea {
  border-width: 0 0 1px;
  border-color: var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding: 12px 0;
}

.lucky-draw-card .field textarea {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 250, 240, 0.62);
}

.lucky-draw-card .field input:focus {
  border-bottom: 2px solid var(--gold);
  box-shadow: none;
}

.lucky-draw-card .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 161, 66, 0.16);
}

.lucky-draw-card .primary-action {
  max-width: 420px;
  min-height: 56px;
  margin: 30px auto 0;
  text-transform: uppercase;
}

.preview {
  margin: 22px 0 16px;
  padding: 15px;
  border: 1px solid rgba(201, 161, 66, 0.46);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff8e8;
}

.preview p {
  margin: 0;
}

.preview p:first-child {
  font-weight: 900;
}

.preview p + p {
  margin-top: 6px;
  color: var(--muted);
}

.wish-preview {
  margin: 0 0 22px;
}

.primary-action,
.secondary-action,
.danger-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.primary-action {
  width: 100%;
  background: var(--gold);
  color: #201b12;
  box-shadow: 0 10px 20px rgba(155, 119, 29, 0.20);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
}

.danger-action {
  background: var(--mel-deep);
  color: #fff;
}

.primary-action:disabled,
.secondary-action:disabled,
.danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.microcopy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  font-weight: 900;
}

.form-status[data-kind="success"] {
  color: var(--joe);
}

.form-status[data-kind="error"] {
  color: var(--mel-deep);
}

.live-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(251, 249, 245, 0.94), rgba(251, 249, 245, 0.94)),
    radial-gradient(circle at 2px 2px, rgba(115, 92, 0, 0.08) 1px, transparent 0);
  background-size: auto, 40px 40px;
  color: var(--ink);
}

.live-topbar .home-nav {
  height: 80px;
}

.live-status-pill {
  min-width: 126px;
  padding: 10px 16px;
  border: 1px solid rgba(201, 161, 66, 0.44);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--gold-deep);
  font-weight: 900;
  text-align: center;
}

.battle-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.battle-hero {
  padding: 46px 0 40px;
  text-align: center;
}

.battle-hero h1 {
  margin: 0 0 18px;
  color: var(--gold-deep);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  font-weight: 700;
  line-height: 1.02;
}

.battle-countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(18px, 4vw, 44px);
  color: var(--muted);
}

.battle-countdown div {
  min-width: 150px;
  text-align: center;
}

.battle-countdown span {
  display: block;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 10vw, 8rem);
  line-height: 0.9;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.battle-countdown div:nth-child(3) span {
  color: var(--mel);
}

.battle-countdown small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.battle-countdown strong {
  color: rgba(43, 37, 34, 0.25);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
}

.battle-hero > p:last-child {
  margin: 26px 0 0;
  color: var(--muted);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.battle-scoreboard,
.battle-wishes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.battle-scoreboard {
  margin-bottom: 64px;
}

.battle-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 40px;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 34px 80px -46px rgba(0, 0, 0, 0.35);
}

.mel-battle-card {
  border-top: 5px solid var(--mel);
}

.joe-battle-card {
  border-top: 5px solid var(--joe);
}

.battle-card-icon {
  position: absolute;
  top: -40px;
  font-size: 12rem;
  opacity: 0.06;
}

.mel-battle-card .battle-card-icon {
  left: -36px;
}

.joe-battle-card .battle-card-icon {
  right: -36px;
}

.battle-card-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.battle-card h2 {
  margin: 0 0 6px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
}

.mel-battle-card h2,
.mel-battle-card .battle-progress-line span:first-child {
  color: var(--mel);
}

.joe-battle-card h2,
.joe-battle-card .battle-progress-line span:first-child {
  color: var(--joe);
}

.battle-card p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.battle-card strong {
  display: block;
  margin-bottom: 36px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(5.5rem, 14vw, 9rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.battle-track {
  width: clamp(72px, 6.2vw, 104px);
  height: clamp(64px, 5.7vw, 92px);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0;
  background: var(--vellum);
  -webkit-mask: var(--heart-mask) center / contain no-repeat;
  mask: var(--heart-mask) center / contain no-repeat;
}

.mel-battle-card .battle-track {
  background: rgba(155, 36, 63, 0.11);
}

.joe-battle-card .battle-track {
  background: rgba(21, 128, 96, 0.11);
}

.battle-track span {
  display: block;
  width: 100%;
  min-width: 0;
  height: 0;
  border-radius: 0;
  transition: height 300ms ease;
}

.mel-battle-card .battle-track span {
  background: var(--mel);
}

.joe-battle-card .battle-track span {
  background: var(--joe);
}

.battle-progress-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wish-column-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.wish-column-heading h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.mel-wish-column .wish-column-heading span {
  color: var(--mel);
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.joe-wish-column .wish-column-heading span {
  color: var(--joe);
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.team-wish-list {
  display: grid;
  gap: 16px;
}

.team-wish-item {
  padding: 22px;
  border-radius: 0 8px 8px 0;
  background: rgba(245, 243, 239, 0.92);
}

.mel-wish-column .team-wish-item {
  border-left: 5px solid rgba(155, 36, 63, 0.34);
}

.joe-wish-column .team-wish-item {
  border-left: 5px solid rgba(21, 128, 96, 0.34);
}

.team-wish-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  font-style: italic;
  line-height: 1.55;
}

.team-wish-item strong {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.battle-draw-strip {
  margin-top: 48px;
  padding: 26px 30px;
  border: 1px solid rgba(201, 161, 66, 0.42);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--shadow);
  text-align: center;
}

.battle-draw-strip h2 {
  margin: 0 0 8px;
  color: var(--gold-deep);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3rem);
}

.battle-draw-strip p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.battle-qr-callout {
  margin: 72px 0 16px;
  padding: 40px;
  border: 1px solid rgba(201, 161, 66, 0.32);
  border-radius: 8px;
  background: rgba(115, 92, 0, 0.05);
  text-align: center;
}

.battle-qr-callout h4 {
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.battle-qr-callout p {
  margin: 0 auto 22px;
  max-width: 560px;
  color: var(--muted);
}

.battle-qr-callout a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--gold-deep);
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.live-footer {
  margin-top: 40px;
}

.live-page {
  height: 100vh;
  overflow: hidden;
}

.led-battle-shell {
  position: relative;
  width: min(1880px, calc(100% - 32px));
  height: 100vh;
  padding: 14px 0 16px;
  overflow: hidden;
}

.led-dashboard-grid {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.68fr) minmax(640px, 1.75fr) minmax(240px, 0.68fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
}

.led-dashboard-grid .wish-column,
.led-scoreboard {
  min-height: 0;
}

.led-scoreboard {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(330px, 0.86fr) minmax(270px, 0.72fr);
  gap: 18px 20px;
  margin: 0;
}

.pinned-photo-board {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 161, 66, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 253, 248, 0.58), rgba(255, 253, 248, 0.58)),
    radial-gradient(circle at 1px 1px, rgba(155, 119, 29, 0.15) 1px, transparent 0),
    #f3ddad;
  background-size: auto, 18px 18px, auto;
  box-shadow: 0 30px 70px -50px rgba(43, 37, 34, 0.5);
}

.pinned-photo-board::before {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px dashed rgba(155, 119, 29, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.pinned-photo {
  position: absolute;
  width: clamp(112px, 11.6vw, 190px);
  margin: 0;
  padding: clamp(7px, 0.65vw, 11px) clamp(7px, 0.65vw, 11px) clamp(22px, 1.8vw, 34px);
  background: #fffdf8;
  box-shadow: 0 24px 42px -28px rgba(43, 37, 34, 0.72);
}

.pinned-photo::before {
  position: absolute;
  top: clamp(4px, 0.45vw, 8px);
  left: 50%;
  z-index: 2;
  width: clamp(9px, 0.85vw, 14px);
  height: clamp(9px, 0.85vw, 14px);
  content: "";
  border: 2px solid rgba(255, 253, 248, 0.88);
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 3px 7px rgba(43, 37, 34, 0.28);
  transform: translateX(-50%);
}

.pinned-photo img {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  display: block;
  object-fit: cover;
  background: var(--vellum);
}

.pinned-photo-one {
  top: 16%;
  left: 7%;
  transform: rotate(-8deg);
}

.pinned-photo-two {
  top: 9%;
  left: 36%;
  transform: rotate(1deg);
}

.pinned-photo-three {
  top: 14%;
  right: 8%;
  transform: rotate(5deg);
}

.pinned-photo-four {
  bottom: 8%;
  left: 23%;
  width: clamp(128px, 13.2vw, 214px);
  transform: rotate(-2deg);
}

.pinned-photo-five {
  right: 20%;
  bottom: 9%;
  width: clamp(132px, 13.8vw, 224px);
  transform: rotate(-6deg);
}

.led-scoreboard .battle-card {
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

.led-scoreboard .battle-card-icon {
  top: auto;
  bottom: clamp(100px, 18vh, 180px);
  font-size: clamp(6rem, 8vw, 9rem);
  pointer-events: none;
}

.led-scoreboard .battle-card-content {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 1.55vw, 26px);
}

.led-scoreboard .battle-card h2 {
  font-size: clamp(1.7rem, 2vw, 2.6rem);
}

.led-scoreboard .battle-card p {
  margin-bottom: clamp(8px, 1.2vh, 16px);
}

.led-scoreboard .battle-card strong {
  margin-bottom: clamp(12px, 1.8vh, 22px);
  font-size: clamp(4.3rem, 4.8vw, 6.4rem);
}

.led-scoreboard .battle-progress-line {
  font-size: clamp(0.68rem, 0.95vw, 0.82rem);
}

.led-dashboard-grid .wish-column {
  grid-row: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(201, 161, 66, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.mel-wish-column {
  grid-column: 1;
}

.led-scoreboard {
  grid-column: 2;
  grid-row: 1;
}

.joe-wish-column {
  grid-column: 3;
}

.led-dashboard-grid .wish-column-heading {
  flex: 0 0 auto;
  gap: 10px;
  margin-bottom: 16px;
}

.led-dashboard-grid .wish-column-heading h3 {
  font-size: clamp(1.25rem, 1.55vw, 1.75rem);
}

.led-dashboard-grid .team-wish-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.team-wish-track {
  display: grid;
  gap: 14px;
  will-change: transform;
}

.team-wish-track.is-scrolling {
  animation: wish-list-scroll 42s linear infinite;
}

.led-dashboard-grid .team-wish-item {
  padding: clamp(15px, 1.4vw, 20px);
}

.led-dashboard-grid .team-wish-item p {
  font-size: clamp(0.96rem, 1.2vw, 1.16rem);
}

@keyframes wish-list-scroll {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.admin-shell {
  padding: 28px 0 48px;
}

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

.text-link {
  color: var(--joe);
  font-weight: 900;
}

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

.admin-grid .panel,
.pin-panel {
  padding: 22px;
}

.admin-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}

.admin-counts p {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}

.admin-counts span,
.admin-counts strong {
  display: block;
}

.admin-counts span {
  color: var(--muted);
  font-weight: 800;
}

.admin-counts strong {
  margin-top: 6px;
  font-size: 2.8rem;
  line-height: 1;
}

.button-row,
.compact-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row + .button-row {
  margin-top: 10px;
}

.draw-help {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
}

.draw-help p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(201, 161, 66, 0.24);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.62);
  color: var(--muted);
  line-height: 1.45;
}

.draw-help strong {
  color: var(--ink);
}

.button-row .primary-action,
.button-row .secondary-action,
.button-row .danger-action {
  width: auto;
  flex: 1 1 160px;
}

.compact-form {
  align-items: center;
}

.compact-form select,
.compact-form input {
  flex: 1 1 160px;
}

.compact-form button {
  flex: 0 0 auto;
}

.winner-box {
  margin-top: 16px;
  padding: 16px;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: #fff8e8;
}

.winner-box.draw-running {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  border-left-color: var(--joe);
  text-align: center;
}

.winner-box strong {
  display: block;
  font-size: 1.35rem;
}

.winner-box span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
}

.draw-animation {
  position: relative;
  width: 120px;
  height: 82px;
}

.draw-animation span {
  position: absolute;
  top: 22px;
  left: 42px;
  width: 36px;
  height: 36px;
  background: var(--gold);
  -webkit-mask: var(--heart-mask) center / contain no-repeat;
  mask: var(--heart-mask) center / contain no-repeat;
  animation: draw-heart-orbit 1.4s ease-in-out infinite;
}

.draw-animation span:nth-child(1) {
  background: var(--mel);
  animation-delay: -0.35s;
}

.draw-animation span:nth-child(2) {
  background: var(--joe);
}

.draw-animation span:nth-child(3) {
  background: var(--gold);
  animation-delay: 0.35s;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: hidden;
  pointer-events: none;
}

.confetti-layer span {
  position: absolute;
  top: -18px;
  width: 10px;
  height: 16px;
  opacity: 0.94;
  animation-name: confetti-fall;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
  animation-fill-mode: forwards;
}

@keyframes draw-heart-orbit {
  0%,
  100% {
    transform: translateX(-42px) scale(0.8) rotate(-14deg);
    opacity: 0.58;
  }

  50% {
    transform: translateX(42px) scale(1.14) rotate(14deg);
    opacity: 1;
  }
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-20px) rotate(0deg);
  }

  100% {
    transform: translateY(110vh) rotate(720deg);
  }
}

.export-panel {
  grid-column: 1 / -1;
}

.as-link {
  width: auto;
  margin-bottom: 14px;
}

.entry-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.entry-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}

.entry-table th,
.entry-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.92rem;
}

.entry-table th {
  background: #fff8e8;
  color: var(--muted);
}

.poster-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.poster-sheet {
  position: relative;
  width: min(760px, 100%);
  min-height: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 232, 0.96)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='950' viewBox='0 0 700 950'%3E%3Crect width='700' height='950' fill='%23fffaf0'/%3E%3Cpath d='M74 162c102 58 170 145 203 262' fill='none' stroke='%23d9c691' stroke-width='18' stroke-linecap='round' opacity='.20'/%3E%3Cpath d='M624 786c-112-54-181-139-207-254' fill='none' stroke='%23d9c691' stroke-width='18' stroke-linecap='round' opacity='.20'/%3E%3Cpath d='M0 752c109-58 207-77 295-58 122 27 256 11 405-48v304H0z' fill='%23158060' opacity='.08'/%3E%3C/svg%3E") center / cover;
  box-shadow: var(--shadow);
  text-align: center;
}

.poster-sheet h1 {
  max-width: 620px;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.qr-image {
  width: min(440px, 82vw);
  aspect-ratio: 1;
  margin: 34px 0 20px;
  border: 12px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(73, 52, 28, 0.16);
}

.poster-url,
.poster-note {
  max-width: 560px;
  overflow-wrap: anywhere;
}

.poster-url {
  margin: 0;
  color: var(--joe);
  font-weight: 900;
}

.poster-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

@media (min-width: 1120px) {
  .wish-decoration {
    display: block;
  }
}

@media (max-width: 920px) {
  .home-nav {
    width: min(100% - 40px, 1200px);
  }

  .home-nav-links {
    display: none;
  }

  .home-hero {
    padding: 52px 0 64px;
  }

  .home-hero-copy {
    margin-bottom: 42px;
  }

  .team-card-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .wish-card-grid {
    gap: 16px;
  }

  .play-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .event-band {
    min-height: 330px;
    padding: 30px;
  }

  .battle-scoreboard,
  .battle-wishes,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .battle-scoreboard {
    gap: 28px;
    margin-bottom: 44px;
  }

  .battle-wishes {
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .home-nav {
    width: min(100% - 28px, 1200px);
    height: 70px;
  }

  .home-brand {
    font-size: 1.65rem;
  }

  .home-hero,
  .wish-flow {
    width: min(100% - 28px, 1200px);
  }

  .home-hero {
    padding: 40px 0 52px;
  }

  .home-hero-copy h1,
  .home-hero-copy h2 {
    font-size: clamp(2.35rem, 13vw, 3.15rem);
  }

  .home-hero-copy p:last-child {
    font-size: 1rem;
  }

  .team-card-body {
    padding: 22px;
  }

  .guest-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .wish-flow {
    padding: 34px 0 54px;
  }

  .wish-header {
    margin-bottom: 30px;
  }

  .wish-card-fieldset {
    margin-bottom: 36px;
  }

  .wish-card-grid {
    grid-template-columns: 1fr;
  }

  .wish-card-grid .greeting-option {
    min-height: 126px;
    padding: 22px;
  }

  .lucky-draw-card {
    padding: 26px 18px;
  }

  .play-shell,
  .admin-shell {
    width: min(100% - 22px, 1120px);
  }

  .battle-shell {
    width: min(100% - 22px, 1200px);
    padding-bottom: 42px;
  }

  .live-status-pill {
    min-width: 0;
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .battle-hero {
    padding: 34px 0 28px;
  }

  .battle-countdown {
    gap: 10px;
  }

  .battle-countdown div {
    min-width: 96px;
  }

  .battle-countdown span {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .battle-countdown strong {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .battle-card {
    min-height: 310px;
    padding: 26px 20px;
  }

  .battle-card strong {
    margin-bottom: 28px;
  }

  .play-shell {
    padding: 14px 0 24px;
  }

  .play-panel,
  .admin-grid .panel,
  .pin-panel {
    padding: 18px;
  }

  .event-band {
    min-height: 260px;
  }

  .segmented,
  .admin-counts {
    grid-template-columns: 1fr;
  }

  .battle-progress-line {
    display: block;
  }

  .battle-progress-line span {
    display: block;
  }

  .battle-qr-callout,
  .battle-draw-strip {
    padding: 20px;
  }

  .poster-sheet {
    min-height: auto;
    padding: 34px 18px;
  }
}

@media (max-width: 720px) {
  .play-page .home-header {
    border-bottom: 0;
    background: rgba(255, 250, 240, 0.9);
    box-shadow: 0 12px 32px rgba(73, 52, 28, 0.08);
  }

  .play-page .home-nav {
    width: min(100% - 22px, 480px);
    height: 64px;
    gap: 12px;
  }

  .play-page .home-brand {
    font-size: 1.52rem;
  }

  .play-page .home-live-link {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    box-shadow: 0 12px 28px rgba(155, 119, 29, 0.14);
  }

  .play-page .home-main {
    min-height: calc(100svh - 64px);
    overflow: visible;
  }

  .play-page .home-main::before {
    top: 56px;
    left: -92px;
    font-size: 12rem;
    opacity: 0.08;
  }

  .play-page .home-main::after {
    right: -118px;
    bottom: 14%;
    font-size: 15rem;
    opacity: 0.07;
  }

  .play-page .home-hero,
  .play-page .wish-flow {
    width: min(100% - 22px, 480px);
  }

  .play-page .home-hero {
    align-items: stretch;
    padding: 22px 0 36px;
    text-align: left;
  }

  .play-page .home-hero-copy {
    margin-bottom: 22px;
  }

  .play-page .eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
  }

  .play-page .home-hero-copy h1,
  .play-page .home-hero-copy h2 {
    font-size: clamp(2.08rem, 11.5vw, 3.05rem);
    line-height: 1.03;
  }

  .play-page .home-divider {
    justify-content: flex-start;
    gap: 10px;
    margin: 16px 0;
  }

  .play-page .home-divider span:first-child,
  .play-page .home-divider span:last-child {
    width: 36px;
  }

  .play-page .home-hero-copy p:last-child {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .play-page .team-card-grid {
    gap: 14px;
    width: 100%;
    max-width: none;
  }

  .play-page .team-card {
    overflow: hidden;
    padding: 0;
    border-radius: 18px;
    box-shadow: 0 24px 60px -36px rgba(73, 52, 28, 0.45);
  }

  .play-page .team-card:hover,
  .play-page .wish-card-grid .greeting-option:hover {
    transform: none;
  }

  .play-page .team-card-frame {
    border: 0;
  }

  .play-page .team-card-image {
    aspect-ratio: 1.05;
  }

  .play-page .team-card-image::after {
    background: linear-gradient(180deg, rgba(31, 27, 24, 0.04) 22%, rgba(31, 27, 24, 0.76));
  }

  .play-page .team-card-title {
    right: 18px;
    bottom: 16px;
    left: 18px;
    text-align: left;
  }

  .play-page .team-card-title h2 {
    color: #fffdf8;
    font-size: clamp(2rem, 9vw, 2.65rem);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
  }

  .play-page .team-card-body {
    align-items: stretch;
    padding: 16px;
    text-align: left;
  }

  .play-page .team-card-body p {
    margin: 0 0 14px;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .play-page .team-select {
    min-height: 52px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.74rem;
  }

  .play-page .mel-card .team-select {
    background: var(--mel);
  }

  .play-page .joe-card .team-select {
    background: var(--joe);
  }

  .play-page .team-flourish {
    display: none;
  }

  .play-page .wish-flow {
    padding: 18px 0 42px;
  }

  .play-page .back-link {
    position: sticky;
    top: 74px;
    z-index: 10;
    min-height: 40px;
    margin-bottom: 18px;
    padding: 0 12px;
    border: 1px solid rgba(201, 161, 66, 0.34);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.88);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(73, 52, 28, 0.08);
  }

  .play-page .wish-header {
    margin-bottom: 22px;
    text-align: left;
  }

  .play-page .wish-header h2 {
    margin-bottom: 10px;
    font-size: clamp(2.2rem, 12vw, 3.05rem);
  }

  .play-page .wish-header p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .play-page .wish-card-fieldset {
    margin-bottom: 24px;
  }

  .play-page .greeting-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .play-page .wish-card-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .play-page .wish-card-grid .greeting-option {
    min-height: auto;
    align-items: flex-start;
    padding: 16px;
    border-color: rgba(208, 197, 175, 0.82);
    border-radius: 16px;
    box-shadow: 0 18px 42px -34px rgba(73, 52, 28, 0.42);
    text-align: left;
  }

  .play-page .wish-card-text {
    font-size: clamp(1.08rem, 5.1vw, 1.38rem);
    line-height: 1.35;
  }

  .play-page .wish-card-action {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    margin-top: 12px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(201, 161, 66, 0.14);
    color: var(--gold-deep);
    font-size: 0.62rem;
  }

  .play-page .entry-modal {
    align-items: end;
    place-items: end center;
    padding: 0;
  }

  .play-page .entry-modal-backdrop {
    background: rgba(31, 27, 24, 0.5);
    backdrop-filter: blur(4px);
  }

  .play-page .entry-modal-card {
    width: 100%;
    max-height: min(88svh, 720px);
    padding: 24px 18px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    animation: entry-sheet-up 220ms ease-out;
  }

  .play-page .entry-modal-close {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }

  .play-page .lucky-sparkle {
    display: none;
  }

  .play-page .lucky-draw-heading {
    max-width: none;
    margin: 0 46px 18px 0;
    text-align: left;
  }

  .play-page .lucky-draw-heading h3 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }

  .play-page .lucky-draw-heading p:not(.eyebrow),
  .play-page .microcopy {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .play-page .wish-preview {
    margin-bottom: 16px;
    padding: 13px;
  }

  .play-page .guest-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .play-page .lucky-draw-card .field input,
  .play-page .lucky-draw-card .field textarea {
    font-size: 16px;
  }

  .play-page .lucky-draw-card .primary-action {
    max-width: none;
    min-height: 54px;
    margin-top: 18px;
    border-radius: 999px;
  }

  .play-page .home-footer {
    padding: 24px 20px 30px;
  }

  .play-page .home-footer p {
    font-size: 1.32rem;
  }
}

@keyframes entry-sheet-up {
  from {
    transform: translateY(24px);
    opacity: 0.86;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media print {
  body {
    background: #fff;
  }

  .poster-page {
    padding: 0;
  }

  .poster-sheet {
    min-height: 100vh;
    width: 100%;
    border: 0;
    box-shadow: none;
  }
}
