@font-face { font-family: 'Luckiest Guy'; src: url('/campaign/assets/LuckiestGuy-Regular.ttf?v=fbe683091b0db0fa') format('truetype'); font-weight: 400; font-display: swap; }
:root {
  font: 16px system-ui, sans-serif; color: #f3f8fc; background: #123b6d;
  --display: 'Luckiest Guy', system-ui, sans-serif;
  /* Luckiest Guy's visible lettering sits above the centre of its line box. */
  --display-text-offset: .17em;
  --navy: #0b254c; --deep: #123b6d; --blue: #2264ad; --lift: #448fda;
  --ice: #f3f8fc; --light: #a7dfff; --yellow: #ffd42a; --green: #84d640;
  --red: #ed3834; --shadow: #071d40; --outline: .075em var(--navy);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
button,a,input,label { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ffdf6a; outline-offset: 3px; }
a { color: inherit; font-weight: 750; text-underline-offset: .2em; }
h1,h2,p { margin: 0; }
h1,h2 { font: 400 1.25rem/1 var(--display); }
p { line-height: 1.4; }
button,input { font: inherit; }
.player,.display {
  min-height: 100vh; min-height: 100dvh;
  padding: env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
  background: radial-gradient(ellipse at 50% 12%, #327cca 0, #164c8a 48%, #102e58 100%);
}
.brand { display: grid; justify-items: center; text-align: center; gap: .25rem; min-width: 0; }
.brand img { display: block; width: clamp(170px, 53%, 295px); height: auto; filter: drop-shadow(0 4px 0 #102c57); }
.brand span {
  color: var(--yellow); font: 400 clamp(1.12rem, 4.8vw, 1.64rem)/1 var(--display);
  -webkit-text-stroke: var(--outline); paint-order: stroke fill; text-shadow: 0 .12em 0 var(--navy);
}
.play-stage { position: relative; min-height: calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)); isolation: isolate; }
.screen-flow { display: grid; justify-items: center; align-content: center; gap: clamp(.65rem, 1.8vh, 1.2rem); padding: clamp(.9rem,2.4vh,1.65rem) .8rem 1.5rem; min-height: inherit; }
iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
iframe[inert] { pointer-events: none; visibility: hidden; }
.player[data-state="Playing"] { height: 100dvh; overflow: hidden; }
.player[data-state="Playing"] .screen-flow { display: none; }
.panel {
  width: min(100%, 33rem); min-width: 0; background: linear-gradient(145deg,#337cc8,#184f8d 68%);
  border: 3px solid var(--navy); border-radius: 1.22rem;
  box-shadow: inset 0 0 0 3px #4592da, 0 6px 0 var(--shadow), 0 18px 38px #08244a6a;
}
.ribbon {
  position: relative; z-index: 1; margin: .72rem auto .6rem;
  padding: calc(.565rem + var(--display-text-offset)) .55rem calc(.565rem - var(--display-text-offset));
  width: calc(100% - 1.3rem); border: 2px solid #811c37; border-radius: .64rem; text-align: center;
  color: #fff5ea; font: 400 clamp(1.75rem, 6.2vw, 2.65rem)/1 var(--display);
  background: linear-gradient(#ff5750 3%,#e93536 90%);
  box-shadow: inset 0 0 0 2px #ff9282;
  -webkit-text-stroke: .06em #7a1c35; paint-order: stroke fill;
}
.rules { display: grid; margin: .8rem 1.15rem .35rem; }
.rule { display: grid; justify-items: center; gap: .34rem; padding: .55rem .15rem; text-align: center; }
.rule + .rule { border-top: 1px solid #9ed2ff5c; }
.rule h2 { color: var(--yellow); font-size: clamp(1.05rem,4.5vw,1.3rem); margin-bottom: .16rem; }
.rule p { color: var(--ice); font-size: .88rem; line-height: 1.29; }
.rule-art { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem; width: min(100%, 370px); position: relative; min-width: 0; }
.rule-art img { width: min(22%,70px); height: clamp(33px,9vw,47px); object-fit: contain; display: block; }
.launch-art img:first-child { width: 39px; height: clamp(42px,11vw,56px); transform: rotate(-12deg); }
.launch-art img:last-child { width: 54px; height: clamp(36px,10vw,49px); transform: rotate(-10deg); }
.boost-art { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.boost-art img { width: 100%; height: clamp(34px,9vw,47px); }
.ring { position: relative; min-width: 0; }
.ring img+img { position: absolute; width: 45%; height: 47%; inset: 26% 0 0 27%; }
.play-controls { margin: .75rem .95rem 1rem; display: grid; gap: .43rem; }
.small { font-size: .81rem; line-height: 1.31; color: #ecf7ff; }
.toggle { display: flex; align-items: center; gap: .60rem; font-weight: 750; min-height: 34px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.switch-track { width: 45px; height: 26px; flex: 0 0 auto; border: 2px solid var(--navy); background: #a6d6f5; border-radius: 20px; position: relative; }
.switch-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 2px 0 #28609c; }
.toggle input:checked+.switch-track { background: var(--green); }
.toggle input:checked+.switch-track::after { left: 21px; }
.toggle input:focus-visible+.switch-track { outline: 3px solid #ffd42a; outline-offset: 3px; }
.loading { display: grid; text-align: center; gap: .35rem; margin: .1rem 0 .20rem; font-size: .84rem; font-weight: 700; }
progress { width: 100%; height: .67rem; border: 0; border-radius: 12px; background: var(--navy); accent-color: var(--green); }
progress::-webkit-progress-bar { background: var(--navy); border-radius: 12px; }
progress::-webkit-progress-value { background: linear-gradient(#b0ed5a,#63bd2b); border-radius: 12px; }
.action {
  display: inline-grid; place-items: center; appearance: none; text-align: center;
  padding: calc(.575rem + var(--display-text-offset)) .54rem calc(.575rem - var(--display-text-offset));
  min-height: 48px; border: 2px solid var(--navy); border-radius: .72rem; color: #142b3b;
  font: 400 clamp(1.01rem,4vw,1.23rem)/1 var(--display); cursor: pointer;
  background: linear-gradient(#a4ea58,#6fbe2e);
  box-shadow: inset 0 3px 0 #d9ff94, 0 4px 0 #365c27, 0 6px 0 var(--navy);
}
.action[aria-busy="true"] { padding-block: .63rem .52rem; }
.action.gold { background: linear-gradient(#ffe66b,#f9bc21); box-shadow: inset 0 3px 0 #fff2a0, 0 4px 0 #ad6915, 0 6px 0 var(--navy); }
.action.secondary { background: linear-gradient(#edfaff,#a7d7f6); box-shadow: inset 0 3px 0 white, 0 4px 0 #335b88, 0 6px 0 var(--navy); }
.action-play { font-size: 1.65rem; min-height: 54px; }
.action:active:not(:disabled) { transform: translateY(2px); }
.action:disabled { background: #a8bbc9; color: #2c4057; cursor: default; box-shadow: inset 0 3px 0 #cfdae5, 0 3px 0 var(--navy); }
.actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; margin: .85rem .9rem 1.1rem; }
.result-card,.board-result { position: relative; isolation: isolate; text-align: center; }
.result-card::before,.board-result::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(ellipse at 50% 47%,#6ac0f4aa,transparent 68%),
    repeating-conic-gradient(from 2deg at 50% 47%,#77b9ff55 0deg 10deg,transparent 10deg 21deg);
  mask-image: radial-gradient(ellipse at 50% 47%,#000 6%,transparent 73%);
}
.result-score { padding: clamp(1.1rem,5vw,2.65rem) .8rem clamp(.85rem,3vw,1.6rem); }
.score {
  display: block; color: var(--yellow); font: 400 clamp(3.25rem,14vw,7rem)/.9 var(--display);
  -webkit-text-stroke: .085em var(--navy); paint-order: stroke fill; text-shadow: 0 .085em 0 #0c3262; overflow-wrap: anywhere;
}
#best,#winner { margin-top: .45rem; font-weight: 750; }
#save-state:empty,#winner:empty { display: none; }
.form-body,.ranking { padding: .52rem 1rem 1.2rem; }
form { display: grid; gap: .40rem; margin-top: .85rem; }
form label { font-size: .89rem; font-weight: 700; }
.name-fields { display: grid; gap: .4rem; }
input:not([type=checkbox]) {
  display: block; min-width: 0; width: 100%; min-height: 43px; border-radius: .53rem; border: 2px solid #0d3260;
  padding: .55rem .65rem; color: var(--navy); background: var(--ice); font-size: 16px;
}
.phone-field { display: flex; align-items: center; background: var(--ice); border: 2px solid #0d3260; color: #143763; border-radius: .53rem; }
.phone-field>span { display: flex; align-items: center; gap: .43rem; white-space: nowrap; padding: 0 .45rem 0 .62rem; font-weight: 800; }
.phone-field img { width: 1.37rem; height: auto; border-radius: .12rem; }
.phone-field>input { border: 0; background: transparent; }
.checkbox { display: flex; align-items: center; gap: .42rem; min-height: 34px; }
.checkbox input { width: 19px; height: 19px; accent-color: var(--green); flex: 0 0 auto; }
.form-body .actions,.ranking .actions { margin: .7rem 0 .75rem; }
.account-switch { text-align: center; font-size: .9rem; }
#switch-account {
  min-height: 44px; color: inherit; background: none; border: 0; cursor: pointer; font-weight: 750;
  text-decoration: underline; text-underline-offset: .2em;
}
#switch-account:disabled { opacity: .7; cursor: default; }
.rank-list { max-height: var(--rank-fitted-height,min(36dvh,320px)); overflow-y: scroll; scrollbar-gutter: stable; margin-top: .62rem; border: 2px solid var(--navy); border-radius: .65rem; background: #ecf7ff; color: var(--navy); }
table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.rank-list::-webkit-scrollbar { width: 11px; background: #c3e6fb; }
.rank-list::-webkit-scrollbar-thumb { border: 2px solid #c3e6fb; border-radius: 9px; background: #24609a; }
th,td { text-align: left; vertical-align: middle; padding: .61rem .45rem; border-bottom: 1px solid #b9d8ee; overflow-wrap: anywhere; }
th { position: sticky; top: 0; background: #a7dfff; font-size: .77rem; }
th:first-child { width: 17%; }
th:last-child { width: 31%; }
th:nth-child(2),td:nth-child(2),.pinned span:nth-child(2) { text-align: center; }
th:last-child,td:last-child,.pinned span:last-child { text-align: right; }
th,td,.pinned { font-family: var(--display); }
.own-score { background: #d8f2ff; }
.pinned {
  display: grid; align-items: center; grid-template-columns: 17fr 52fr 31fr; padding-right: 11px;
  margin-top: .55rem; background: #bae7ff; color: var(--navy); border: 2px solid var(--navy);
  border-radius: .6rem; overflow-wrap: anywhere;
}
.pinned span { padding: .57rem .45rem; }
.board-branding { display: grid; justify-items: center; position: relative; padding: 0 0 clamp(.38rem,.9vh,.85rem); }
.board-branding img { width: clamp(205px,23vw,335px); max-width: 72vw; }
.board-branding .brand span { font-size: clamp(1.23rem,2.65vw,2.5rem); }
.debug-toggle { position: absolute; right: 0; top: 0; font-size: .71rem; color: #c8e6ff; display: flex; align-items: center; gap: .35rem; min-height: 32px; }
.debug-toggle .switch-track { width: 35px; height: 20px; }
.debug-toggle .switch-track::after { width: 12px; height: 12px; }
.debug-toggle input:checked+.switch-track::after { left: 17px; }
#board-diagnostics { display: grid; gap: .15rem; position: absolute; top: 2rem; right: 0; font-size: .72rem; padding: .25rem .55rem; border-radius: .45rem; background: var(--navy); z-index: 3; }
.display {
  --board-gutter: clamp(12px,1.55vw,27px);
  height: 100dvh; display: flex; flex-direction: column;
  padding: calc(var(--board-gutter) + env(safe-area-inset-top,0px)) calc(var(--board-gutter) + env(safe-area-inset-right,0px))
    calc(var(--board-gutter) + env(safe-area-inset-bottom,0px)) calc(var(--board-gutter) + env(safe-area-inset-left,0px));
}
.board-stage { flex: 1; min-height: 0; }
.board-composition {
  display: grid; height: 100%; min-height: 0;
  grid-template-columns: minmax(0,1fr) var(--board-rail); gap: var(--board-gap);
  --board-rail: clamp(155px,18vw,282px);
  --board-gap: clamp(12px,1.6vw,26px);
}
.board-content { position: relative; container-type: size; min-width: 0; min-height: 0; }
.display iframe { visibility: hidden; border-radius: .65rem; }
.display[data-live="true"] iframe { visibility: visible; }
.display[data-live="true"] .attract,.display[data-state="Result"] .attract { display: none; }
.display[data-state="Result"] iframe { visibility: hidden; }
.attract { height: 100%; min-height: 0; position: relative; display: grid; grid-template-rows: minmax(0,1fr) auto; align-items: center; justify-items: center; gap: .32rem; }
.demo-slot { container-type: size; display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; }
.demo {
  display: block; width: min(100cqw, calc(100cqh * 1.7777778)); height: auto;
  aspect-ratio: 16 / 9; object-fit: contain; border-radius: .65rem;
  outline: 2px solid var(--navy); box-shadow: 0 4px 0 var(--shadow);
}
.attract-copy { display: flex; justify-content: center; align-items: center; gap: .45rem; }
.attract-copy h1 { color: #e8f6ff; font-size: clamp(1rem,1.9vw,1.85rem); -webkit-text-stroke: var(--outline); paint-order: stroke fill; }
.character { display: block; width: clamp(29px,3vw,42px); height: auto; filter: drop-shadow(0 3px 0 var(--navy)); }
.pairing { align-self: center; display: grid; justify-items: center; text-align: center; min-width: 0; gap: .58rem; }
.board-cta { display: grid; justify-items: center; gap: .28rem; }
#board-in-use { font: clamp(.78rem,1.38vw,1.25rem)/1 var(--display); color: #e8f6ff; }
.pairing strong { max-width: 100%; text-wrap: balance; color: var(--yellow); font: clamp(1.25rem,2.4vw,2.52rem)/1.06 var(--display); -webkit-text-stroke: var(--outline); paint-order: stroke fill; }
.qr-shell { display: grid; place-items: center; width: min(100%,250px); background: white; border-radius: .95rem; padding: .35rem; box-shadow: 0 4px 0 var(--navy); }
#qr { width: 100%; }
#qr svg { display: block; width: 100%; height: auto; }
.live-player { font-weight: 750; overflow-wrap: anywhere; }
#url { font-size: .83rem; }
.board-result { position: absolute; inset: 50% auto auto 50%; width: min(96%,32rem); transform: translate(-50%,-50%); }
@media (orientation: landscape) {
  .board-stage { container-type: size; }
  .board-composition {
    --tagline-space: calc(clamp(29px,3vw,42px) + .32rem);
    width: min(100%,calc((100cqh - var(--tagline-space)) * 1.7777778 + var(--board-gap) + var(--board-rail)));
    margin-inline: auto;
  }
  .display:is([data-live="true"],[data-state="Result"]) .board-composition { --tagline-space: 0px; }
  .demo-slot { justify-items: start; }
  .display iframe {
    top: 50%; left: 0; transform: translateY(-50%);
    width: min(100%,calc(100cqh * 1.7777778)); height: min(100%,calc(100cqw * .5625));
  }
}
@media (orientation: portrait) {
  .board-composition { grid-template: minmax(0,1fr) auto / minmax(0,1fr); gap: .55rem; }
  .board-branding img { width: clamp(225px,64vw,430px); }
  .board-branding .brand span { font-size: clamp(1.26rem,5.15vw,2.68rem); }
  .pairing { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; }
  .board-cta { max-width: 49%; }
  .pairing strong { font-size: clamp(1.45rem,5.8vw,2.45rem); }
  .qr-shell { width: clamp(98px,28vw,157px); }
  #url { flex-basis: 100%; }
  .attract-copy h1 { font-size: clamp(1.13rem,4.5vw,1.45rem); }
  .demo { width: min(100cqw, calc(100cqh * .5625)); aspect-ratio: 9 / 16; }
}
@media (max-height: 460px) and (orientation: landscape) {
  .board-branding img { width: 180px; }
  .board-branding .brand span { font-size: 1.1rem; }
  .qr-shell { max-width: 120px; }
  .pairing strong { font-size: 1.2rem; }
}
@media (max-width: 350px) {
  .rules { margin-inline: .55rem; }
}
#notice { text-align: center; }
.independent-panel {
  width: min(100%,33rem); padding: .38rem .85rem .53rem;
  border: 2px solid var(--navy); border-radius: .75rem; background: #17497f;
}
.independent-panel .toggle { justify-content: space-between; min-height: 44px; }
.independent-panel .small { margin-bottom: .22rem; }
.round-control {
  display: grid; place-content: center; gap: 3px; width: 44px; height: 44px;
  color: var(--navy); background: linear-gradient(#effaff,#a7d7f6);
  border: 2px solid var(--navy); border-radius: 50%; cursor: pointer;
  box-shadow: inset 0 3px 0 #fff, 0 3px 0 var(--navy);
}
.hamburger { position: absolute; z-index: 2; top: .65rem; right: .65rem; }
.hamburger span { width: 17px; height: 2px; border-radius: 2px; background: currentColor; }
.player[data-state="Playing"] .hamburger { display: none; }
.menu {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0;
  width: min(28rem,100%); height: 100dvh; max-width: none; max-height: 100dvh;
  color: var(--ice); background: linear-gradient(155deg,#246bb8,#133c72 85%);
  border: 0; box-shadow: -10px 0 35px #051b3f94; overflow: auto; overscroll-behavior: contain;
}
html:has(.menu[open]),body:has(.menu[open]) { overflow: hidden; overscroll-behavior: none; }
.menu[open] { animation: menu-enter .24s ease-out both; }
.menu[open]::backdrop { background: #000; animation: menu-dim .24s ease-out both; }
.menu[open].closing { animation: menu-exit .20s ease-in both; }
.menu[open].closing::backdrop { animation: menu-undim .20s ease-in both; }
@keyframes menu-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes menu-exit { to { transform: translateX(100%); } }
@keyframes menu-undim { from { opacity: .43; } to { opacity: 0; } }
@keyframes menu-dim { from { opacity: 0; } to { opacity: .43; } }
.menu-contents {
  position: relative; display: flex; flex-direction: column; min-height: 100%;
  padding: calc(1rem + env(safe-area-inset-top)) max(1.3rem,env(safe-area-inset-right))
    calc(1.1rem + env(safe-area-inset-bottom)) max(1.3rem,env(safe-area-inset-left));
}
#menu-close {
  position: absolute; left: max(.7rem,env(safe-area-inset-left)); top: calc(.7rem + env(safe-area-inset-top));
  color: inherit; border-color: transparent; background: none; box-shadow: none; font: 1.9rem/1 system-ui,sans-serif;
}
#menu-close:hover { background: #ffffff14; }
.menu-profile { display: flex; justify-content: center; align-items: center; gap: .65rem; margin: 2.65rem 0 1.1rem; }
.menu-profile h2 { line-height: 1.13; overflow-wrap: anywhere; }
.menu-links { display: grid; padding: .75rem 0; border-top: 1px solid #a2d4fa84; }
.menu-links h2 { margin: 0 .4rem .54rem; color: #f3f8ff; font-size: 1rem; }
.menu-links a,.menu-links button,.menu-footer button {
  display: flex; align-items: center; gap: .8rem; min-height: 47px; width: 100%; padding: .3rem .4rem;
  text-align: left; color: inherit; text-decoration: none; font: 1.12rem/1 var(--display);
  background: none; border: 0; border-radius: .35rem; cursor: pointer;
}
.menu-links a:hover,.menu-links button:hover,.menu-footer button:hover { background: #ffffff15; }
.menu-links a:active,.menu-links button:active,.menu-footer button:active { background: #0b254c7a; }
.menu-footer { margin-top: auto; }
.menu-footer:has(button:not([hidden])) { padding-top: .32rem; border-top: 1px solid #a2d4fa84; }
.attract-copy h1,.menu-profile h2,.menu-label { transform: translateY(var(--display-text-offset)); }
.menu-icon,.profile-icon { width: 24px; height: 24px; flex: 0 0 auto; fill: currentColor; }
.profile-icon { width: 31px; height: 31px; }
@media (max-width: 550px) { .menu { width: 80vw; } }
.toast {
  position: fixed; z-index: 4; inset: max(.65rem,env(safe-area-inset-top)) .65rem auto; margin-inline: auto;
  width: fit-content; max-width: min(28rem,calc(100% - 1.3rem)); padding: .59rem .84rem;
  font-size: .89rem; font-weight: 750; text-align: center; color: #eff8ff; background: #3f1b37;
  border: 2px solid #ff8c85; border-radius: .66rem; box-shadow: 0 3px 0 var(--navy);
  opacity: 0; transform: translateY(-.35rem); transition: opacity .2s ease,transform .2s ease; pointer-events: none;
}
.toast.visible { opacity: 1; transform: translateY(0); }
.sb-loading-wrap,.sb-loading-dots { display: flex; align-items: center; justify-content: center; }
.sb-loading-dots { gap: 8px; }
.sb-loading-dots span {
  width: 10px; height: 10px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.22); animation: sbLoadingBounce 1s infinite ease-in-out;
}
.sb-loading-dots span:nth-child(2) { animation-delay: .15s; }
.sb-loading-dots span:nth-child(3) { animation-delay: .30s; }
@keyframes sbLoadingBounce {
  0%,80%,100% { transform: scale(.65); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
  .menu[open],.menu[open].closing { animation: none; }
  .menu[open]::backdrop,.menu[open].closing::backdrop { animation: none; opacity: .43; }
  .sb-loading-dots span { animation: none; }
}

