:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: #202923;
  background: #f4f3ed;
  line-height: 1.4;
  --ink: #18372e;
  --muted: #58635b;
  --line: #e4e7df;
  --gold: #f7d284;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem max(1rem, calc((100% - 61rem) / 2));
  background: #122b24;
  color: #fff8e8;
}
header a { color: inherit; text-decoration: none; font: 700 1.35rem Georgia, serif; white-space: nowrap; }
header span, footer span { color: #e6af51; }
header small { font-size: .72rem; color: #e5e8de; text-align: right; }
main { max-width: 63rem; margin: auto; padding: .75rem; min-height: 70vh; }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at top right, #385647, transparent 75%), #17372d;
  color: #fff9ea;
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: .75rem;
  overflow-wrap: anywhere;
}
.hero::before {
  content: "♠";
  position: absolute;
  z-index: -1;
  top: -.9rem;
  right: .65rem;
  font: 8rem Georgia, serif;
  color: #f7d28418;
  transform: rotate(15deg);
}
.hero p { color: #e0e9dd; font-size: .85rem; }
.hero .eyebrow { color: var(--gold); }
.hero small { font-size: .72rem; color: #e0e9dd; }
.status-pill {
  display: inline-block;
  border-radius: 99px;
  padding: .2rem .55rem;
  margin-bottom: .45rem;
  color: var(--gold);
  background: #112a22;
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .08em;
}
h1, h2, p { margin: 0 0 .45rem; }
h1 { font: 700 clamp(1.8rem, 6vw, 2.6rem)/1.05 Georgia, serif; }
h2 { font-size: 1rem; line-height: 1.25; }
.card { padding: .75rem; background: #fff; border: 1px solid var(--line); border-radius: .85rem; margin-bottom: .65rem; min-width: 0; }
.balance { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .65rem; margin-bottom: .7rem; border-radius: .65rem; background: #eaf1e8; color: var(--ink); }
.eyebrow { font-size: .69rem; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.metric { font-size: 1.35rem; font-weight: 760; font-variant-numeric: tabular-nums; }
.count { display: inline-block; background: #eef0eb; border-radius: 99px; padding: .08rem .38rem; color: var(--muted); }
form { display: grid; gap: .45rem; }
label { display: grid; gap: .2rem; font-weight: 650; font-size: .75rem; }
input, select, button { min-height: 44px; border-radius: .6rem; max-width: 100%; }
input, select { width: 100%; border: 1px solid transparent; padding: .4rem .55rem; background: #f1f2ee; color: inherit; font-family: inherit; font-size: 1rem; font-weight: 400; }
input[type=number] { appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { appearance: none; margin: 0; }
input[type=checkbox] { width: 1.1rem; min-height: auto; accent-color: var(--ink); }
.check { display: flex; align-items: center; gap: .4rem; }
button { border: 0; padding: .35rem .72rem; background: var(--ink); color: #fff; font-family: inherit; font-size: .82rem; font-weight: 690; cursor: pointer; }
button.secondary { background: #e9f1ea; color: var(--ink); }
button.danger { background: #f9e9e9; color: #8b2736; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid #9c6108; outline-offset: 2px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.links { display: flex; flex-wrap: wrap; gap: .4rem; }
.links button { background: #f7d284; color: #342911; }
.links button + button { background: #fff2; color: #fff9ea; }
.add-player { grid-template-columns: minmax(0, 1fr) auto; margin-top: .4rem; }
.row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .42rem 0; border-top: 1px solid var(--line); font-size: .85rem; overflow-wrap: anywhere; }
.row strong { font-variant-numeric: tabular-nums; }
.row small, .hint { color: var(--muted); font-size: .75rem; }
.symbol { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-right: .25rem; border-radius: .43rem; background: #e5f0e7; color: var(--ink); vertical-align: middle; }
summary { display: flex; align-items: center; min-height: 44px; gap: .25rem; font-size: .84rem; font-weight: 730; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 1.2rem; }
details[open] summary::after { transform: rotate(90deg); }
.group-buy, .cashout, .delete-card { padding-block: .15rem; }
details[open] { padding-bottom: .55rem; }
.transaction { border-top: 3px solid #32664e; }
.cashout { background: #fff6df; border-color: #ecdbaf; }
.cashout .symbol, .cashout button { background: #f3ce79; color: #4d3513; }
.cashout label { grid-template-columns: minmax(0, 1fr) minmax(5rem, 38%); align-items: center; overflow-wrap: anywhere; }
.cashout input { background: #fffdf7; border-color: #ecdbaf; }
.delete-card { background: transparent; border-color: transparent; color: #8b2736; }
.discrepancy { background: #fff0ce; border: 1px solid #e3ab50; border-radius: .55rem; padding: .65rem; margin: .65rem 0; }
.discrepancy p { margin: .25rem 0 0; }
footer { text-align: center; color: var(--muted); padding: .75rem; font-size: .66rem; letter-spacing: .1em; font-weight: 750; }
#notice { position: fixed; bottom: max(1rem, env(safe-area-inset-bottom)); left: 1rem; right: 1rem; max-width: 35rem; margin: auto; background: #122b24; color: white; padding: .65rem; border-radius: .65rem; box-shadow: 0 3px 16px #0003; }
@media (min-width: 760px) {
  main { padding: 1rem; }
  .columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .75rem; }
  .game-hero { padding: .85rem 1rem; }
}

/* Diwali table. Indigo felt, brass inlay, and marigold at moments of action. */
:root {
  background: #f6efe1;
  color: #28213a;
  --ink: #30254e;
  --muted: #62576c;
  --line: #e9dcc6;
  --gold: #f9d792;
}
header { background: #201632; border-bottom: 1px solid #ab7e42; }
main { max-width: 46rem; }
.hero {
  padding: 1rem 1.05rem;
  border: 1px solid #ae824a;
  background: radial-gradient(ellipse at 90% 0%, #654066, transparent 62%), #302048;
}
.hero::before {
  content: "";
  width: 12rem;
  height: 12rem;
  top: -5rem;
  right: -2.2rem;
  transform: none;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 13px, #f9d79248 14px 15px, transparent 16px 23px),
    repeating-conic-gradient(from 11.25deg, #edbd672b 0 11.25deg, transparent 11.25deg 22.5deg);
  mask-image: radial-gradient(circle, #000 0 62%, transparent 73%);
}
.welcome { padding: 2rem 1.2rem; text-align: center; }
.welcome h1 { font-size: clamp(3rem, 12vw, 5rem); font-weight: 400; letter-spacing: -.05em; }
.welcome .eyebrow { margin-bottom: .55rem; }
.hero p, .hero small { color: #efe2f3; }
.status-pill { background: #231632; }
.share { width: max-content; max-width: 100%; }
.share summary { color: var(--gold); min-height: 44px; }
.share summary::after { color: var(--gold); }
.journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .25rem;
  padding: .22rem;
  margin: 0 0 .75rem;
  border: 1px solid #dfcfb6;
  border-radius: .85rem;
  background: #efe3cf;
}
.journey button { background: transparent; color: var(--ink); }
.journey small { margin-right: .2rem; font-size: .64rem; color: #6b587a; }
.journey button[aria-pressed="true"] { background: #34244e; color: #fff8e9; }
.journey button[aria-pressed="true"] small { color: var(--gold); }
.card { background: #fffcf6; }
.balance { background: #eee5f4; color: var(--ink); }
.symbol, button.secondary { background: #eee5f4; color: #38254e; }
.transaction { border-top: 3px solid #b27937; }
.transaction button[type="submit"], .transaction form > button { background: #38254e; }
.presets { display: flex; flex-wrap: wrap; gap: .3rem; }
.presets button { background: #f1e8f4; color: #432c55; }
.presets button[aria-pressed="true"] { background: #f5d691; color: #4e3213; }
.route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .35rem; align-items: end; }
.route-arrow { display: grid; place-items: center; min-height: 44px; color: #825720; }
.move-preview { margin: .1rem 0; padding: .55rem .65rem; border-radius: .5rem; background: #f3ece0; font-size: .78rem; color: #51405b; overflow-wrap: anywhere; }
input, select { background: #f4eee6; }
#notice { background: #302048; }
@media (min-width: 760px) {
  .hero { padding: 1.15rem 1.25rem; }
  .welcome { padding: 2.5rem 1.25rem; }
}
