/* Layout: neighbourhood-arcade sticker sheet. Mint paper, ink outlines, chunky offset shadows; one hero, a "today" ticket, a 2-col game grid, a B2B band. */
:root {
  --paper: #e6f4ec;
  --paper2: #d6ecdf;
  --card: #ffffff;
  --ink: #15171c;
  --muted: #4f5a56;
  --line: #15171c;
  --yellow: #ffd23f;
  --pink: #ff5d8f;
  --blue: #3b5bff;
  --mint: #28c08a;
  --f: "Commissioner", system-ui, -apple-system, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
}

[hidden]:not([hidden="until-found" i]) {
  display: none !important;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

.band {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.in {
  max-width: 1040px;
  margin: 0 auto;
}

a {
  color: inherit;
}

/* header */
header.band {
  padding-block: 14px;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: rgba(230, 244, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--line);
}

header .in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.logo .m {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--yellow);
  border: 2.5px solid var(--line);
  display: grid;
  place-items: center;
  box-shadow: 3px 3px 0 var(--line);
  transform: rotate(-6deg);
}

.logo .m .flask {
  width: 28px;
  height: 28px;
  overflow: visible;
}

.logo:hover .m {
  animation: wobble 0.6s;
}

.logo b {
  font-weight: 900;
}

.logo b span {
  color: var(--mint);
}

@keyframes wobble {
  25% {
    transform: rotate(-14deg);
  }
  50% {
    transform: rotate(4deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}

.bigflask {
  position: absolute;
  right: -46px;
  top: -60px;
  width: 110px;
  height: 110px;
  transform: rotate(12deg);
  filter: drop-shadow(4px 4px 0 #15171c);
  z-index: 2;
}

.heroR {
  position: relative;
}

.bub {
  position: absolute;
  border-radius: 50%;
  background: var(--mint);
  border: 2px solid var(--line);
  animation: up 3.2s ease-in infinite;
  opacity: 0;
  z-index: 1;
}

.bub-1 {
  right: 48px;
  top: -40px;
  width: 14px;
  height: 14px;
}

.bub-2 {
  right: 26px;
  top: -34px;
  width: 10px;
  height: 10px;
  animation-delay: 1.1s;
}

.bub-3 {
  right: 64px;
  top: -30px;
  width: 8px;
  height: 8px;
  animation-delay: 2s;
}

@keyframes up {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120px) scale(1.1);
    opacity: 0;
  }
}

nav {
  display: flex;
  gap: 6px;
}

nav a {
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 2px solid transparent;
}

nav a:hover {
  border-color: var(--line);
}

nav a.cta {
  background: var(--ink);
  color: #fff;
}

/* hero */
.hero {
  padding-block: 44px 30px;
}

.hero .in {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 13px;
  background: var(--pink);
  color: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 var(--line);
}

h1 {
  font-weight: 900;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 14px 0 14px;
  text-wrap: balance;
}

h1 .hl {
  background: var(--yellow);
  padding: 0 0.12em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 34ch;
  margin: 0 0 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 16px var(--f);
  text-decoration: none;
  color: var(--ink);
  background: var(--yellow);
  border: 2.5px solid var(--line);
  border-radius: 14px;
  padding: 13px 18px;
  box-shadow: 4px 4px 0 var(--line);
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.08s;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--line);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--line);
}

.btn.dark {
  background: var(--ink);
  color: #fff;
}

.btn.ghost {
  background: var(--card);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.facts span {
  font-weight: 700;
  font-size: 13px;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}

/* today ticket */
.today {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--line);
  overflow: hidden;
  transform: rotate(1.2deg);
}

.today .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 3px solid var(--line);
  background: var(--blue);
  color: #fff;
}

.today .top b {
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 13px;
}

.today .top span {
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.today img,
.today .thumb-ph {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  max-width: 100%;
}

.today .body {
  padding: 14px 16px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 3px solid var(--line);
}

.today h3 {
  margin: 0;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.today p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* section heads */
section.band {
  padding-block: 34px;
}

.sh {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

h2 {
  font-weight: 900;
  font-size: clamp(28px, 4.5vw, 40px);
  letter-spacing: -0.035em;
  margin: 0;
  line-height: 1.05;
}

.sh p {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
}

/* filters */
.filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filters button {
  font: 700 13px var(--f);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

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

.game {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s, box-shadow 0.12s;
}

.game:hover {
  transform: translate(-2px, -2px) rotate(-0.4deg);
  box-shadow: 8px 8px 0 var(--line);
}

.thumb {
  position: relative;
  border-bottom: 3px solid var(--line);
}

.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  max-width: 100%;
}

.thumb-ph {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--paper2);
  display: grid;
  place-items: center;
  font-size: 48px;
}

.thumb-ph::before {
  content: "🎮";
}

.registry-error {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: 16px;
  grid-column: 1 / -1;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-weight: 900;
  font-size: 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  box-shadow: 2px 2px 0 var(--line);
}

.badge.live {
  background: var(--mint);
  color: #fff;
}

.badge.soon {
  background: var(--yellow);
}

.gbody {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.gbody h3 {
  margin: 0;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.gbody p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  font-size: 12px;
  font-weight: 700;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}

.gfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
  flex-wrap: wrap;
}

.by {
  font-size: 12px;
  color: var(--muted);
}

.btn.small {
  padding: 9px 14px;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--line);
}

.btn[aria-disabled="true"] {
  background: var(--paper2);
  color: var(--muted);
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* how */
.how {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.how div {
  background: var(--card);
  border: 2.5px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.how b {
  display: block;
  font-weight: 900;
  font-size: 18px;
  margin: 6px 0 2px;
}

.how p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.how .i {
  font-size: 28px;
}

/* b2b */
.b2b {
  background: var(--ink);
  color: #fff;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}

.b2b .in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.b2b .in.b2b-pad {
  padding-block: 20px;
}

.b2b h2 {
  color: #fff;
}

.b2b h2 .hl {
  background: var(--pink);
  color: #fff;
  padding: 0 0.12em;
  border-radius: 0.12em;
}

.b2b p {
  color: #c9d2ce;
  max-width: 46ch;
}

.b2b-kicker {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin: 0 0 10px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.steps li span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}

.steps li b {
  display: block;
}

.steps li small {
  color: #c9d2ce;
  font-size: 14px;
}

.case {
  background: #fff;
  color: var(--ink);
  border: 3px solid #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--pink);
}

.case img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  max-width: 100%;
  border-bottom: 3px solid var(--ink);
}

.case .c {
  padding: 14px 16px 16px;
}

.case small {
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #a3245a;
}

.case b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  margin: 4px 0;
}

.case p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.stats div {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
}

.stats b {
  font-size: 13px;
  margin: 0;
}

.stats span {
  font-size: 12px;
  color: var(--muted);
}

.contact {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mail {
  font: 800 17px var(--f);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 11px 14px;
  user-select: all;
  -webkit-user-select: all;
}

.copy {
  font: 800 14px var(--f);
  background: var(--yellow);
  border: 2px solid #fff;
  border-radius: 12px;
  padding: 11px 14px;
  cursor: pointer;
  color: var(--ink);
}

.note {
  font-size: 12px;
  color: #9aa7a2;
  margin-top: 8px;
}

footer.band {
  padding-block: 26px;
  font-size: 13px;
  color: var(--muted);
}

footer .in {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .hero .in,
  .b2b .in {
    grid-template-columns: 1fr;
  }
  .today {
    transform: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .how {
    grid-template-columns: 1fr;
  }
  nav a:not(.cta) {
    display: none;
  }
  .bigflask {
    width: 72px;
    height: 72px;
    right: -4px;
    top: -34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .game {
    transition: none;
  }
  .bub,
  .logo:hover .m {
    animation: none;
  }
}
