:root {
  --navy: #0d2d57;
  --rose: #b46a79;
  --dusty-pink: #d88da4;
  --powder-blue: #7f9ebf;
  --cream: #fffaf1;
  --gold: #b78a42;
  --gold-light: #ead7ac;
  --muted: #6d5c59;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  background:
    radial-gradient(circle at 16% 10%, rgba(255,255,255,.88), transparent 25%),
    radial-gradient(circle at 82% 17%, rgba(255,255,255,.72), transparent 24%),
    linear-gradient(135deg, #f3c7d1 0%, #e7b8c5 40%, #aac0d8 100%);
  overflow-x: hidden;
}

button, input { font: inherit; }
button { cursor: pointer; }

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

.silk {
  position: absolute;
  width: 78vw;
  height: 48vh;
  filter: blur(18px);
  opacity: .5;
  border-radius: 50%;
}
.silk-pink { left: -24vw; bottom: -10vh; background: linear-gradient(135deg, #e899ad, #f8dde3); transform: rotate(12deg); }
.silk-blue { right: -28vw; top: 18vh; background: linear-gradient(135deg, #8ba9c9, #d5e1ec); transform: rotate(-15deg); }

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 42px;
  border-radius: 3px;
  background: linear-gradient(90deg, #8b6428, #f3d88c, #a1732f);
  box-shadow: 0 2px 6px rgba(69,42,13,.24);
}
.c1 { top: 3%; left: 10%; transform: rotate(-35deg); }
.c2 { top: 10%; right: 7%; transform: rotate(24deg); height: 30px; }
.c3 { top: 46%; left: 2%; transform: rotate(46deg); }
.c4 { top: 55%; right: 3%; transform: rotate(-28deg); height: 34px; }
.c5 { bottom: 4%; left: 19%; transform: rotate(68deg); height: 28px; }
.c6 { bottom: 8%; right: 13%; transform: rotate(-62deg); }

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 14px 36px;
}

.event-brand {
  text-align: center;
  margin: 0 auto 16px;
  line-height: .72;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
}
.brand-name {
  font-family: "Great Vibes", cursive;
  font-size: clamp(45px, 12vw, 68px);
  font-weight: 400;
}
.brand-pink { color: #a85f70; transform: translateX(-28px); }
.brand-blue { color: #4f7099; transform: translateX(34px); }
.brand-and {
  margin: -6px 0 -4px;
  color: #806f69;
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.brand-subtitle {
  margin-top: 16px;
  color: #8c733e;
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.card {
  position: relative;
  display: none;
  width: 100%;
  padding: 28px 24px 24px;
  border: 2px solid var(--gold);
  border-radius: 24px;
  background:
    linear-gradient(rgba(255,252,246,.95), rgba(255,248,239,.94)),
    radial-gradient(circle at 70% 25%, rgba(219,148,168,.12), transparent 40%);
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.78),
    inset 0 0 0 5px rgba(183,138,66,.20),
    0 18px 45px rgba(62,39,63,.24);
}
.card.active { display: block; animation: rise .42s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(183,138,66,.7);
}
.corner-tl { top: 8px; left: 8px; border-top: 1px solid; border-left: 1px solid; border-radius: 7px 0 0; }
.corner-tr { top: 8px; right: 8px; border-top: 1px solid; border-right: 1px solid; border-radius: 0 7px 0 0; }
.corner-bl { bottom: 8px; left: 8px; border-bottom: 1px solid; border-left: 1px solid; border-radius: 0 0 0 7px; }
.corner-br { bottom: 8px; right: 8px; border-bottom: 1px solid; border-right: 1px solid; border-radius: 0 0 7px; }

.gate-card { text-align: center; padding-top: 36px; padding-bottom: 36px; }
.eyebrow, .question-count {
  margin: 0;
  color: #826b45;
  font-family: "Cormorant Garamond", serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gate-card h1 {
  margin: 6px 0 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: 58px;
  line-height: 1;
}
.password-form { max-width: 380px; margin: 0 auto; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.input-row input {
  min-width: 0;
  border: 1px solid #c5a46e;
  border-radius: 13px;
  background: rgba(255,255,255,.82);
  color: var(--navy);
  padding: 14px 15px;
  outline: none;
  box-shadow: inset 0 1px 5px rgba(97,66,31,.10);
}
.input-row input:focus { border-color: #8e6b34; box-shadow: 0 0 0 3px rgba(183,138,66,.16); }
.input-row button, .ghost-btn {
  border: 1px solid #9d7539;
  border-radius: 13px;
  background: linear-gradient(135deg, #dba1b2, #6f91b5);
  color: white;
  font-weight: 700;
  padding: 13px 17px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28);
}
.error { min-height: 20px; margin: 9px 0 0; color: #a44159; font-size: 13px; font-weight: 700; }

.game-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
}
.game-header h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(38px, 9vw, 54px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .93;
}
.title-script,
.title-gender { display: block; }
.title-script {
  font-family: "Great Vibes", cursive;
  font-size: 1.08em;
  font-weight: 400;
  letter-spacing: 0;
  line-height: .92;
}
.title-gender {
  margin-top: 5px;
  color: #876d4b;
  font-family: "Cormorant Garamond", serif;
  font-size: .62em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}
.title-gender em { color: #bd657f; font-style: normal; }
.title-gender strong { color: #4e739e; }
.score-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  flex: none;
  border: 1px solid #a97940;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #fff8f4 0%, #efcfd8 54%, #d9b0bc 100%);
  color: #8d5d59;
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 4px rgba(255,255,255,.7),
    0 4px 12px rgba(83,50,49,.2);
}

.progress-wrap {
  height: 14px;
  margin: 25px 0 32px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #a77c3e;
  border-radius: 99px;
  background: rgba(255,255,255,.74);
  box-shadow: inset 0 1px 3px rgba(83,55,26,.16);
}
.progress {
  width: 10%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #d5a84f, #8c672f);
  transition: width .3s ease;
}

.question-panel { min-height: 250px; }
.question-count { margin-bottom: 17px; }
.answers { display: grid; gap: 17px; }
.option-label {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 13px;
  cursor: pointer;
}
.option-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.option-box {
  position: relative;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border: 2px solid #a47a3e;
  border-radius: 7px;
  background: linear-gradient(#fffdf8, #f2e9dd);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.85), 0 2px 5px rgba(79,52,24,.13);
}
.option-label input:checked + .option-box {
  background: linear-gradient(135deg, #da91a8, #7195bb);
}
.option-label input:checked + .option-box::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 24px;
  font-weight: 700;
}
.option-label input:focus-visible + .option-box { outline: 3px solid rgba(34,89,143,.26); outline-offset: 3px; }
.option-text {
  color: var(--navy);
  font-size: clamp(19px, 4.8vw, 27px);
  font-weight: 700;
  line-height: 1.22;
}

.feedback { min-height: 20px; margin: 6px 0 10px; color: #9a586b; font-size: 13px; font-weight: 700; text-align: center; }
.next-btn {
  width: 100%;
  border: 1px solid #926d38;
  border-radius: 999px;
  background: linear-gradient(90deg, #d88ba4 0%, #bd7e99 34%, #577da7 66%, #173f70 100%);
  color: #fff7e7;
  font-family: "Cormorant Garamond", serif;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 13px 20px 15px;
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.28),
    inset 0 -5px 12px rgba(17,35,72,.28),
    0 5px 12px rgba(83,53,54,.22);
  transition: transform .18s ease, opacity .18s ease;
}
.next-btn:hover:not(:disabled) { transform: translateY(-1px); }
.next-btn:disabled { cursor: not-allowed; opacity: .52; filter: saturate(.65); }

.reveal-card { text-align: center; padding-top: 76px; padding-bottom: 44px; }
.reveal-ribbon { color: #9c7440; font-family: "Cormorant Garamond", serif; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.reveal-card h2 { margin: 16px auto 18px; font-family: "Cormorant Garamond", serif; font-size: 43px; line-height: 1.05; }
.reveal-summary {
  display: grid;
  place-items: center;
  gap: 16px;
  margin: 36px auto 34px;
  color: #12335d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(35px, 9vw, 48px);
  font-weight: 700;
  line-height: .98;
  text-align: center;
}
.reveal-summary:empty { display: none; }
.result-counts strong { color: #bd657f; }
.result-counts strong:last-child { color: #4e739e; }
.result-percent {
  color: #8c733e;
  font-size: 1.06em;
}
.next-qr-copy {
  margin: 0 auto;
  color: #9c7440;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(25px, 6vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}
.ghost-btn { min-width: 150px; }

@media (max-width: 600px) {
  body {
    background-color: #ead7dd;
    background-image: url('/qr1/assets/reference-theme.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-attachment: scroll;
  }
  .background { display: none; }
  .app-shell {
    width: 100%;
    padding: 0 13px 38px;
  }
  .event-brand {
    visibility: hidden;
    height: clamp(158px, 20vh, 176px);
    margin: 0;
    transform: none;
  }
  .card {
    padding: 25px 20px 22px;
    border: 1.5px solid #aa7b35;
    border-radius: 18px;
    background: #fffaf0;
    box-shadow:
      inset 0 0 0 3px #fffdf8,
      inset 0 0 0 5px rgba(168,119,48,.34),
      0 8px 24px rgba(70,41,47,.25);
  }
  .gate-card { min-height: 560px; padding-top: 56px; }
  .game-card { min-height: 560px; }
  .game-header h2 { font-size: 43px; }
  .title-script { font-size: 1em; }
  .title-gender { font-size: .58em; margin-top: 4px; }
  .score-pill {
    width: 76px;
    height: 76px;
    margin-top: 2px;
    font-size: 24px;
  }
  .progress-wrap { height: 12px; margin: 19px 0 27px; }
  .question-panel { min-height: 255px; }
  .question-count { margin-bottom: 22px; font-size: 13px; }
  .answers { gap: 21px; }
  .option-label { grid-template-columns: 35px 1fr; gap: 12px; }
  .option-box { width: 32px; height: 32px; border-radius: 6px; }
  .option-text { font-size: clamp(19px, 5.1vw, 22px); line-height: 1.24; }
  .feedback { margin-top: 3px; }
  .next-btn { font-size: 29px; padding-block: 12px 14px; }
  .reveal-card { min-height: 410px; padding-top: 75px; }
}

@media (max-height: 730px) and (max-width: 600px) {
  .event-brand { height: 145px; }
  .game-card { min-height: 530px; }
}

/* Keep the desktop presentation identical to the mobile invitation canvas. */
body {
  background: #dfd0d7;
}
.background { display: none; }
.app-shell {
  width: min(100%, 473px);
  min-height: 100vh;
  padding: 0 13px 38px;
  background-color: #ead7dd;
  background-image: url('/qr1/assets/reference-theme.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  box-shadow: 0 0 40px rgba(46, 30, 45, .24);
}
.event-brand {
  visibility: hidden;
  height: calc(min(100vw, 473px) * .41);
  margin: 0;
  transform: none;
}
.card {
  padding: 25px 20px 22px;
  border: 1.5px solid #aa7b35;
  border-radius: 18px;
  background: #fffaf0;
  box-shadow:
    inset 0 0 0 3px #fffdf8,
    inset 0 0 0 5px rgba(168,119,48,.34),
    0 8px 24px rgba(70,41,47,.25);
}
.gate-card { min-height: 560px; padding-top: 56px; }
.game-card { min-height: 560px; }
.game-header h2 { font-size: 43px; }
.title-script { font-size: 1em; }
.title-gender { font-size: .58em; margin-top: 4px; }
.score-pill {
  width: 76px;
  height: 76px;
  margin-top: 2px;
  font-size: 24px;
}
.progress-wrap { height: 12px; margin: 19px 0 27px; }
.question-panel { min-height: 255px; }
.question-count { margin-bottom: 22px; font-size: 13px; }
.answers { gap: 21px; }
.option-label { grid-template-columns: 35px 1fr; gap: 12px; }
.option-box { width: 32px; height: 32px; border-radius: 6px; }
.option-text { font-size: clamp(19px, 4.6vw, 22px); line-height: 1.24; }
.feedback { margin-top: 3px; }
.next-btn { font-size: 29px; padding-block: 12px 14px; }
.reveal-card { min-height: 410px; padding-top: 75px; }

@media (max-height: 730px) {
  .event-brand { height: 145px; }
  .game-card { min-height: 530px; }
}

/* Ornate gold-scalloped action buttons shared by lock and question screens. */
.input-row {
  grid-template-columns: 1fr;
  gap: 22px;
}
.password-container input:focus {
  outline: none;
  border-color: #aa7c11;
  box-shadow: 0 0 0 3px rgba(170, 124, 17, .16);
}
.gold-scallop-frame {
  position: relative;
  isolation: isolate;
  display: block;
  width: calc(100% - 30px);
  min-height: 100px;
  margin: 8px auto;
  padding: 14px 17px;
  border: 2px solid #694321;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.75) 0%, transparent 18%, rgba(70,38,18,.24) 55%, rgba(255,235,178,.52) 100%),
    linear-gradient(135deg, #f4dfa8 0%, #9d6e34 28%, #e4bd72 51%, #80552a 72%, #e8ca8c 100%);
  box-shadow:
    inset 0 0 0 2px #fff0bd,
    inset 0 0 0 5px #8a5b2c,
    inset 0 0 0 8px #d8ad64,
    0 7px 12px rgba(55, 31, 21, .36);
}
.gold-scallop-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px -9px;
  border: 2px solid #83572b;
  border-radius: 999px;
  background:
    radial-gradient(circle, #f8e4af 0 4px, #a57339 4.5px 6px, transparent 6.5px) left top / 18px 18px repeat-x,
    radial-gradient(circle, #f8e4af 0 4px, #a57339 4.5px 6px, transparent 6.5px) left bottom / 18px 18px repeat-x,
    linear-gradient(135deg, #d6b06b, #75502a 48%, #e3c27f);
  box-shadow:
    inset 0 0 0 2px rgba(255,239,188,.9),
    0 3px 7px rgba(64,36,22,.3);
}
.btn-unlock-velvet {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 68px;
  padding: 0 20px 3px;
  border: 3px solid #edcf8f;
  border-radius: 999px;
  outline: 2px solid #50351f;
  outline-offset: -7px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.04) 42%, rgba(11,25,51,.32) 100%),
    linear-gradient(90deg, #a8576c 0%, #8b536f 35%, #4d547d 58%, #173d6a 100%);
  color: #efd39b;
  font-family: "Cinzel", "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  text-shadow:
    0 2px 2px rgba(45, 24, 28, .85),
    0 -1px 0 rgba(255, 241, 195, .48);
  box-shadow:
    inset 0 3px 5px rgba(255,255,255,.38),
    inset 0 -6px 10px rgba(8,25,53,.48),
    0 0 0 3px #9f713a,
    0 0 0 5px #f3dda6;
  transition: transform .18s ease, filter .18s ease, opacity .18s ease;
}
.btn-unlock-velvet:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.btn-unlock-velvet:active:not(:disabled) {
  transform: translateY(1px);
  filter: brightness(.98);
}
.btn-unlock-velvet:focus-visible {
  outline: 3px solid #173d6a;
  outline-offset: 5px;
}
.btn-unlock-velvet:disabled {
  cursor: not-allowed;
  opacity: .54;
  filter: saturate(.62);
}
.gold-scallop-frame:has(.btn-unlock-velvet:disabled) {
  opacity: .72;
}

/* QR 1 question-screen Next control: pixel-matched from the supplied reference. */
.game-card .gold-scallop-frame {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 445 / 110;
  margin: 8px auto 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: url('/qr1/assets/next-reference-crop.jpg') center / 100% 100% no-repeat;
  box-shadow: 0 4px 8px rgba(63,38,28,.22);
}
.game-card .gold-scallop-frame::before {
  display: none;
}
.game-card .next-btn.btn-unlock-velvet {
  position: absolute;
  z-index: 2;
  top: 16.36%;
  left: 3.82%;
  width: 92.14%;
  height: 63.64%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  text-shadow: none;
  box-shadow: none;
  opacity: 1;
  filter: none;
  transform: none;
}
.game-card .next-btn.btn-unlock-velvet:disabled {
  opacity: 1;
  background: rgba(245,238,229,.26);
  filter: none;
  cursor: not-allowed;
}
.game-card .next-btn.btn-unlock-velvet:hover:not(:disabled),
.game-card .next-btn.btn-unlock-velvet:active:not(:disabled) {
  transform: none;
  filter: none;
}
.game-card .next-btn.btn-unlock-velvet:active:not(:disabled) {
  background: rgba(21,42,72,.08);
}
.game-card .next-btn.btn-unlock-velvet:focus-visible {
  outline: 3px solid #173d6a;
  outline-offset: 3px;
}
.game-card .gold-scallop-frame:has(.next-btn:disabled) {
  opacity: 1;
}
.event-brand { overflow: hidden; }

/* Unlock screen: exact supplied invitation artwork with live accessible controls. */
.app-shell:has(.gate-card.active) {
  min-height: calc(min(100vw, 473px) * 1.8267);
  padding: 0;
  background-color: #e7cad5;
  background-image: url('/qr1/assets/unlock-reference-clean.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}
.app-shell:has(.gate-card.active) .event-brand {
  height: 0;
}
.gate-card.active {
  position: relative;
  width: 100%;
  min-height: calc(min(100vw, 473px) * 1.8267);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.gate-card.active::before {
  display: none;
}
.gate-card.active .corner,
.gate-card.active .eyebrow {
  display: none;
}
.gate-card.active h1 {
  position: absolute;
  z-index: 2;
  top: 32.2%;
  left: 50%;
  width: max-content;
  height: auto;
  margin: 0;
  padding: 0 .03em;
  transform: translateX(-50%);
  overflow: visible;
  background: transparent;
  color: #bd9048;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(92px, 25vw, 118px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.03em;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  text-shadow:
    -1px -1px 0 rgba(255,244,188,.78),
    0 1px 0 #7d5a2b,
    1px 2px 0 rgba(129,90,40,.52),
    2px 4px 6px rgba(81,55,31,.38);
}
.gate-card.active .password-form,
.gate-card.active .input-row {
  position: static;
  display: contents;
}
.gate-card.active #password {
  position: absolute;
  z-index: 3;
  top: 51.4%;
  left: 10%;
  width: 80%;
  height: 8.45%;
  padding: 0 4%;
  border: 2px solid #946657;
  border-radius: 8px;
  background: rgba(255,255,255,.98);
  color: #444047;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(25px, 7.1vw, 34px);
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(91,51,44,.18);
}
.gate-card.active #password::placeholder {
  color: #59545a;
  opacity: 1;
}
.gate-card.active #password:focus {
  border-color: #91672c;
  box-shadow: 0 0 0 3px rgba(239,210,151,.8), 0 2px 4px rgba(91,51,44,.18);
}
.gate-card.active .gold-scallop-frame {
  position: absolute;
  z-index: 3;
  top: 62.1%;
  left: 9.4%;
  width: 81.2%;
  height: 16.2%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}
.gate-card.active .gold-scallop-frame::before {
  display: none;
}
.gate-card.active .btn-unlock-velvet {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: transparent;
  text-shadow: none;
  box-shadow: none;
}
.gate-card.active .btn-unlock-velvet:hover,
.gate-card.active .btn-unlock-velvet:active {
  transform: none;
  filter: brightness(1.04);
}
.gate-card.active .btn-unlock-velvet:focus-visible {
  outline: 3px solid #fff0bd;
  outline-offset: -13px;
  box-shadow: 0 0 0 3px #173d6a;
}
.gate-card.active .error {
  position: absolute;
  z-index: 4;
  top: 59.7%;
  left: 10%;
  width: 80%;
  min-height: 0;
  margin: 0;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255,250,241,.9);
  font-size: clamp(10px, 2.7vw, 13px);
  text-align: center;
}
.gate-card.active .error:empty {
  display: none;
}

/* Question pages only: live controls over Nathan's supplied question-page artwork. */
.app-shell:has(.game-card.active) {
  --question-canvas: min(100vw, 473px);
  width: min(100%, 473px);
  min-height: calc(var(--question-canvas) * 1.813953);
  padding: 0;
  overflow: hidden;
  background-color: #e8d2da;
  background-image: url('/qr1/assets/question-reference-clean.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}
.app-shell:has(.game-card.active) .event-brand {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}
.game-card.active {
  position: relative;
  width: 100%;
  min-height: calc(var(--question-canvas) * 1.813953);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
}
.game-card.active > .corner {
  display: none;
}
.game-card.active .game-header,
.game-card.active .question-panel {
  position: static;
  display: contents;
}
.game-card.active .game-header h2 {
  position: absolute;
  z-index: 2;
  top: 27.15%;
  left: 7.4%;
  width: 62.5%;
  margin: 0;
  color: #122f58;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(var(--question-canvas) * .104);
  font-weight: 700;
  letter-spacing: 0;
  line-height: .9;
  text-align: left;
}
.game-card.active .game-header h2::before {
  content: "Wives tales\A Boy vs Girl";
  white-space: pre;
}
.game-card.active .game-header h2 > * {
  display: none;
}
.game-card.active .score-pill {
  position: absolute;
  z-index: 2;
  top: 25.35%;
  left: 74.2%;
  display: flex;
  width: 18.8%;
  height: 10.5%;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #76512e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(var(--question-canvas) * .0655);
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}
.game-card.active .progress-wrap {
  position: absolute;
  z-index: 2;
  top: 39.4%;
  left: 7%;
  width: 86%;
  height: 2%;
  margin: 0;
  padding: 2px;
  overflow: hidden;
  border: 1px solid #9a7134;
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: inset 0 1px 2px rgba(67,45,24,.18);
}
.game-card.active .progress {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d3aa51, #997130);
}
.game-card.active .question-count {
  position: absolute;
  z-index: 2;
  top: 47.75%;
  left: 11.4%;
  width: 77%;
  margin: 0;
  color: #715430;
  font-family: Georgia, "Times New Roman", serif;
  font-size: calc(var(--question-canvas) * .0295);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}
.game-card.active .answers {
  position: absolute;
  z-index: 2;
  top: 51.55%;
  left: 11.4%;
  display: grid;
  width: 80%;
  gap: calc(var(--question-canvas) * .0295);
}
.game-card.active .option-label {
  display: grid;
  min-height: calc(var(--question-canvas) * .14);
  grid-template-columns: calc(var(--question-canvas) * .073) 1fr;
  align-items: start;
  gap: calc(var(--question-canvas) * .03);
  cursor: pointer;
}
.game-card.active .option-box {
  width: calc(var(--question-canvas) * .073);
  height: calc(var(--question-canvas) * .073);
  margin: 0;
  border: 2px solid #9b7138;
  border-radius: calc(var(--question-canvas) * .0125);
  background: rgba(255,253,247,.75);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.78), 0 2px 5px rgba(79,52,24,.17);
}
.game-card.active .option-text {
  color: #12335d;
  font-family: Montserrat, Arial, sans-serif;
  font-size: calc(var(--question-canvas) * .059);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.14;
}
.game-card.active .option-label input:checked + .option-box::after {
  font-size: calc(var(--question-canvas) * .05);
}
.game-card.active .feedback {
  display: none;
}
.game-card.active .gold-scallop-frame {
  position: absolute;
  z-index: 3;
  top: 75.3%;
  left: 6.55%;
  width: 86.9%;
  height: 8.55%;
  min-height: 0;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}
.game-card.active .gold-scallop-frame::before {
  display: none;
}
.game-card.active .next-btn.btn-unlock-velvet {
  position: absolute;
  inset: 9% 1.7% 13%;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  font-size: 0;
  text-shadow: none;
  box-shadow: none;
  opacity: 1;
  filter: none;
  transform: none;
}
.game-card.active .next-btn.btn-unlock-velvet:disabled {
  background: transparent;
  opacity: 1;
}
.game-card.active .next-btn.btn-unlock-velvet:focus-visible {
  outline: 3px solid #173d6a;
  outline-offset: 2px;
}
