:root {
  color-scheme: light;
  --paper: #f4f1e8;
  --ink: #171615;
  --muted: #68635d;
  --line: rgba(23, 22, 21, 0.12);
  --white: #fffdf7;
  --black: #171615;
  --orange: #ff5a1f;
  --blue: #1268ff;
  --yellow: #fff06a;
  --mint: #78dcc5;
  --pink: #ff9fac;
  --sage: #cbdcc4;
  --violet: #c9a7ff;
  --green: #37d87d;
  --red: #ff5570;
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 240, 106, 0.65), transparent 20rem),
    radial-gradient(circle at 90% 12%, rgba(120, 220, 197, 0.55), transparent 24rem),
    linear-gradient(135deg, #ede7d6, var(--paper));
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.fi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: -0.12em;
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 14px;
}

.card,
.bento-card,
.stat-card {
  border: 1px solid rgba(23, 22, 21, 0.08);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(46, 39, 27, 0.1);
}

.join-bento {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  grid-auto-rows: minmax(150px, auto);
  gap: 16px;
  min-height: calc(100vh - 44px);
}

.guest-entry-bento,
.guide-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 16px;
  min-height: calc(100vh - 44px);
}

.start-bento {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  height: calc(100vh - 28px);
  min-height: 620px;
}

.start-hero {
  grid-row: span 2;
  display: grid;
  align-content: start;
  gap: clamp(18px, 4vh, 42px);
  color: #fff;
  background:
    radial-gradient(circle at 84% 80%, rgba(255, 255, 255, 0.24), transparent 9rem),
    linear-gradient(145deg, var(--blue), #0746c9);
}

.start-hero::after {
  content: "CODE";
  position: absolute;
  right: -20px;
  bottom: -28px;
  color: rgba(0, 0, 0, 0.12);
  font-size: clamp(100px, 20vw, 220px);
  font-weight: 1000;
  line-height: 0.8;
}

.start-hero p {
  position: relative;
  z-index: 1;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.event-code-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 4px;
}

.event-code-form label {
  color: #fff;
  font-weight: 900;
}

.event-code-form input {
  min-height: 62px;
  border-color: rgba(255, 255, 255, 0.25);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 1000;
  letter-spacing: -0.06em;
  text-transform: lowercase;
}

.event-code-form .primary {
  min-height: 62px;
  padding-inline: 26px;
  color: var(--ink);
  background: var(--yellow);
}

.start-login {
  background: var(--yellow);
}

.start-register {
  color: #fff;
  background: var(--black);
}

.start-register span,
.start-register p,
.start-register label {
  color: rgba(255, 255, 255, 0.78);
}

.start-bento .bento-card {
  padding: clamp(18px, 2.4vw, 26px);
}

.start-bento h1 {
  max-width: 9ch;
  margin: 14px 0 0;
  font-size: clamp(46px, 7.2vw, 92px);
}

.start-bento h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1;
}

.start-bento p {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.25;
}

.start-bento form,
.start-bento label {
  gap: 7px;
}

.start-bento input {
  min-height: 45px;
  border-radius: 16px;
  padding: 10px 14px;
}

.start-bento .event-code-form input,
.start-bento .event-code-form .primary {
  min-height: 62px;
}

.start-bento button {
  padding-block: 10px;
}

.pending-cabinet {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 28px);
  padding: clamp(28px, 6vw, 70px);
}

.pending-cabinet h1 {
  max-width: 10ch;
}

.bento-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.intro-card {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 84%, rgba(255, 255, 255, 0.26), transparent 8rem),
    linear-gradient(145deg, var(--orange), #ff7438);
}

.onboarding-hero {
  min-height: 420px;
}

.guest-event-hero {
  grid-row: auto;
  min-height: calc(100vh - 44px);
}

.intro-card::after {
  content: "YES";
  position: absolute;
  right: -22px;
  bottom: -38px;
  color: rgba(0, 0, 0, 0.1);
  font-size: clamp(120px, 22vw, 240px);
  font-weight: 1000;
  line-height: 0.8;
}

.badge,
.market-cat {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 18px 0;
  max-width: 8ch;
  font-size: clamp(54px, 10vw, 112px);
  font-weight: 1000;
  letter-spacing: -0.07em;
  line-height: 0.85;
  text-transform: uppercase;
}

h2,
h3,
p {
  margin-top: 0;
}

p,
span,
small {
  color: var(--muted);
}

.intro-card p {
  position: relative;
  z-index: 1;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.bank-card {
  display: grid;
  align-content: center;
  color: var(--ink);
  background: linear-gradient(145deg, var(--yellow), #fff8a5);
}

.bank-card b {
  font-size: clamp(54px, 9vw, 92px);
  font-weight: 1000;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.rule-card {
  display: grid;
  align-content: end;
  min-height: 165px;
}

.rule-card b {
  font-size: 28px;
  line-height: 1;
}

.rule-a {
  background: var(--mint);
}

.rule-b {
  color: #fff;
  background: var(--blue);
}

.rule-b span {
  color: rgba(255, 255, 255, 0.78);
}

.rule-c {
  background: var(--sage);
}

form,
label {
  display: grid;
  gap: 10px;
}

.join-form {
  grid-column: span 2;
  background: var(--black);
}

.onboarding-start {
  display: grid;
  align-content: center;
}

.onboarding-start p {
  color: rgba(255, 255, 255, 0.72);
}

.guest-entry-form,
.guide-actions {
  display: grid;
  align-content: center;
  gap: 16px;
}

.guest-entry-bento .guest-entry-form {
  grid-column: auto;
  min-height: calc(100vh - 44px);
}

.guide-bento .guide-actions {
  grid-column: auto;
}

.guest-entry-form h2,
.guide-actions h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 74px);
  font-weight: 1000;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.guest-entry-form p,
.guide-actions p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.guest-entry-form input {
  min-height: 70px;
  font-size: 26px;
  font-weight: 900;
}

.guide-card {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 44px);
}

.guide-card h1 {
  max-width: 8ch;
}

.guide-card p {
  max-width: 640px;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.18;
}

.guide-blue {
  color: #fff;
  background: var(--blue);
}

.guide-blue p,
.guide-black p {
  color: rgba(255, 255, 255, 0.82);
}

.guide-mint {
  background: var(--mint);
}

.guide-yellow {
  background: var(--yellow);
}

.guide-black {
  color: #fff;
  background: var(--black);
}

.guide-progress {
  display: flex;
  gap: 8px;
}

.guide-progress span {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.guide-progress .active {
  background: var(--yellow);
}

.join-form label,
.join-form h2 {
  color: #fff;
}

.join-form label {
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 2px solid rgba(23, 22, 21, 0.12);
  border-radius: 20px;
  padding: 16px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(18, 104, 255, 0.14);
}

button,
.pill,
.icon,
.event-link {
  border: 1px solid rgba(23, 22, 21, 0.1);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary {
  border: 0;
  color: #fff;
  font-weight: 950;
  background: var(--blue);
}

.hot {
  width: 100%;
  margin-top: 18px;
  padding: 18px;
  font-size: 18px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin: 6px 0 18px;
}

.avatar {
  border-radius: 20px;
  padding: 18px 10px;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.avatar.active,
.tabs .active,
.chip.active {
  border-color: var(--black);
  color: #fff;
  background: var(--black);
}

.topbar,
.tabs,
.market-toolbar,
.category-row,
.top-actions,
.choice-row,
.preset-row,
.row-actions,
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guest-public-link {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 22px;
  background: var(--yellow);
}

.guest-public-link h2 {
  margin-bottom: 6px;
}

.guest-access-box {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 12px;
  min-width: 0;
}

.event-code-card,
.guest-public-link a {
  overflow: hidden;
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.78);
}

.event-code-card {
  display: grid;
  gap: 2px;
}

.event-code-card span {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-code-card b {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 1000;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.guest-public-link a {
  color: var(--blue);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-access-box a:last-child {
  grid-column: 2;
}

.topbar {
  justify-content: space-between;
  margin-bottom: 18px;
}

.logo {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 1000;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill,
.balance,
.icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(46, 39, 27, 0.08);
}

.online {
  border-color: rgba(55, 216, 125, 0.45);
}

.balance {
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.tabs {
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: var(--black);
  font-size: 14px;
  font-weight: 950;
}

.stats-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  display: grid;
  min-height: 128px;
  padding: 20px;
  align-content: space-between;
}

.stat-card b {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 1000;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.accent-yellow {
  background: var(--yellow);
}

.accent-blue {
  color: #fff;
  background: var(--blue);
}

.accent-blue span,
.accent-blue small {
  color: rgba(255, 255, 255, 0.8);
}

.accent-mint {
  background: var(--mint);
}

.accent-pink {
  background: var(--pink);
}

.market-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.category-row {
  flex-wrap: wrap;
}

.status {
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--ink);
  font-weight: 850;
  background: var(--yellow);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
}

.market {
  display: flex;
  min-height: clamp(260px, 28vw, 340px);
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
}

.market.wide,
.market.medium {
  grid-column: span 2;
}

.market.hot {
  grid-column: span 2;
  min-height: clamp(360px, 42vw, 520px);
}

.market.tall {
  grid-row: span 2;
  min-height: clamp(430px, 45vw, 556px);
}

.market.tone-0 {
  color: #fff;
  background: var(--orange);
}

.market.tone-1 {
  background: var(--yellow);
}

.market.tone-2 {
  color: #fff;
  background: var(--blue);
}

.market.tone-3 {
  background: var(--mint);
}

.market.tone-4 {
  background: var(--sage);
}

.market.tone-0 span,
.market.tone-0 small,
.market.tone-2 span,
.market.tone-2 small {
  color: rgba(255, 255, 255, 0.78);
}

.market h3 {
  margin: 16px 0 28px;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 1000;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.prob-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 10px;
}

.prob-row strong {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 1000;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.bar {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.bar span {
  display: block;
  height: 100%;
  background: #fff;
}

.tone-1 .bar span,
.tone-3 .bar span,
.tone-4 .bar span {
  background: var(--black);
}

.bet-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.yes,
.choice-row .yes {
  color: #04140a;
  font-weight: 950;
  background: var(--green);
}

.no,
.choice-row .no {
  color: #25020a;
  font-weight: 950;
  background: var(--red);
}

.bet-buttons button {
  border: 0;
  padding: 16px;
}

.resolved {
  margin-top: 12px;
  font-weight: 950;
}

.betting-closed {
  border-radius: 999px;
  margin-top: 18px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 950;
  text-align: center;
}

.closed {
  opacity: 0.72;
}

.screen-shell {
  width: min(1680px, 100%);
  height: calc(100vh - 28px);
  overflow: hidden;
}

.screen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  grid-template-rows: 230px minmax(0, 1fr);
  grid-template-areas:
    "hero qr"
    "markets markets";
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.screen-hero {
  grid-area: hero;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, var(--orange), #ff7438);
}

.screen-hero h1 {
  margin: 10px 0;
  max-width: 14ch;
  font-size: clamp(44px, 6vw, 86px);
}

.screen-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 800;
}

.screen-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 10px;
  min-width: min(430px, 45%);
}

.screen-stats div {
  display: grid;
  align-content: center;
  border-radius: 24px;
  padding: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.screen-stats b {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 1000;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.screen-qr {
  grid-area: qr;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  grid-template-rows: 1fr auto;
  align-items: center;
  column-gap: 14px;
  row-gap: 8px;
  padding: 18px;
  overflow: hidden;
  background: var(--yellow);
}

.screen-qr h2 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 2.4vw, 38px);
  font-weight: 1000;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.screen-qr p {
  margin: 0;
  font-weight: 800;
}

.screen-qr img {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  width: 132px;
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 22, 21, 0.16);
}

.screen-market-grid {
  grid-area: markets;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: minmax(155px, 1fr);
  gap: 14px;
  min-height: 0;
  overflow: hidden;
}

.screen-market {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 10px;
  min-height: 0;
  padding: 22px;
}

.screen-market-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.screen-market h3 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 0.92;
}

.screen-market p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
}

.screen-market-metrics {
  display: grid;
  align-content: end;
  gap: 10px;
  margin-top: auto;
  min-height: 0;
}

.screen-market .bar {
  flex: 0 0 13px;
}

.screen-market.hot {
  grid-column: span 2;
  grid-row: span 1;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.48fr);
  grid-template-rows: 1fr;
  column-gap: 24px;
  min-height: 0;
}

.screen-market.medium {
  grid-column: span 2;
}

.screen-market.hot .screen-market-copy {
  align-content: start;
}

.screen-market.hot .screen-market-metrics {
  align-content: center;
  margin-top: 0;
}

.screen-market.hot h3 {
  max-width: 15ch;
  font-size: clamp(34px, 4vw, 58px);
}

.screen-market .prob-row strong {
  font-size: clamp(42px, 5vw, 78px);
}

.screen-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.screen-outcomes span {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 18px rgba(23, 22, 21, 0.08);
  font-size: clamp(15px, 1.35vw, 20px);
  font-weight: 950;
}

.screen-outcomes b {
  font-size: 1.12em;
}

.list {
  padding: 24px;
}

.list h2 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 1000;
  letter-spacing: -0.07em;
}

.list-row {
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row div {
  display: grid;
  gap: 4px;
}

.list-row.me {
  color: var(--blue);
}

.admin-card-editor {
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.admin-card-editor:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-card-head div {
  display: grid;
  gap: 4px;
}

.admin-card-head b {
  font-size: 20px;
}

.switch-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  cursor: pointer;
}

.switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-ui {
  position: relative;
  width: 58px;
  height: 34px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: inset 0 0 0 2px rgba(23, 22, 21, 0.08);
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(23, 22, 21, 0.18);
  transition: transform 0.16s ease;
}

.switch-field input:checked + .switch-ui {
  background: var(--red);
}

.switch-field input:checked + .switch-ui::after {
  transform: translateX(24px);
}

.switch-field strong,
.switch-field small {
  grid-column: 2;
}

.settle-hint {
  align-self: center;
  color: var(--muted);
  font-weight: 850;
}

.empty,
.center {
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(23, 22, 21, 0.34);
  backdrop-filter: blur(10px);
}

.modal {
  position: fixed;
  z-index: 11;
  left: 50%;
  bottom: 24px;
  width: min(640px, calc(100% - 28px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 30px;
  transform: translateX(-50%);
}

.modal h2 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 1000;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--paper);
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.choice-row button {
  border-radius: 24px;
  padding: 22px;
  font-size: 18px;
}

.choice-row button:not(.active) {
  background: var(--paper);
}

.amount-box {
  margin-top: 18px;
}

.preset-row {
  flex-wrap: wrap;
}

.payout {
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  color: var(--muted);
  background: var(--paper);
}

.payout b {
  float: right;
  color: var(--ink);
}

.admin-login {
  max-width: 520px;
  margin: 70px auto;
  padding: 32px;
}

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

.admin-grid .card {
  padding: 24px;
}

.event-link {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  border-radius: 22px;
}

.admin-market {
  align-items: center;
}

.row-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.row-actions button {
  padding: 10px 12px;
}

.toast {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-bottom: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  color: var(--ink);
  background: var(--mint);
  box-shadow: 0 12px 28px rgba(46, 39, 27, 0.12);
}

.toast.error {
  background: var(--pink);
}

@media (max-width: 980px) {
  .join-bento,
  .guest-entry-bento,
  .guide-bento,
  .start-bento,
  .market-grid,
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .start-hero,
  .intro-card,
  .join-form,
  .market.wide,
  .market.medium,
  .market.hot {
    grid-column: span 2;
  }

  .guest-entry-bento .guest-event-hero,
  .guest-entry-bento .guest-entry-form,
  .guide-bento .guide-card,
  .guide-bento .guide-actions {
    grid-column: auto;
  }

  .stats-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-shell {
    height: auto;
    overflow: visible;
  }

  .screen-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "hero"
      "qr"
      "markets";
    height: auto;
  }

  .screen-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (max-width: 680px) {
  .shell {
    padding: 12px;
  }

  .join-bento,
  .guest-entry-bento,
  .guide-bento,
  .start-bento,
  .market-grid,
  .admin-grid,
  .stats-bento {
    grid-template-columns: 1fr;
  }

  .start-bento {
    height: auto;
    min-height: 0;
  }

  .start-hero,
  .guest-event-hero,
  .guide-card,
  .intro-card,
  .join-form,
  .market.wide,
  .market.medium,
  .market.hot,
  .screen-market.hot,
  .screen-market.medium {
    grid-column: auto;
  }

  .guest-event-hero,
  .guest-entry-bento .guest-entry-form,
  .guide-card {
    min-height: 420px;
  }

  .guest-public-link,
  .guest-access-box,
  .two-fields {
    grid-template-columns: 1fr;
  }

  .guest-access-box a:last-child {
    grid-column: auto;
  }

  .event-code-form {
    grid-template-columns: 1fr;
  }

  .market.tall,
  .market.hot {
    grid-row: auto;
    min-height: 270px;
  }

  .screen-market.hot {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .screen-market.hot .screen-market-metrics {
    align-content: end;
  }

  .screen-market-grid {
    grid-template-columns: 1fr;
  }

  .screen-hero,
  .screen-stats {
    grid-template-columns: 1fr;
  }

  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .topbar,
  .list-row {
    flex-direction: column;
    align-items: stretch;
  }

  .top-actions {
    justify-content: flex-start;
  }
}
