/* cauldron.css - The Cauldron design system
   Matches unicornmeateth.com: golden #FFBA00, magical sky, clouds, playful rounded cards. */

:root {
  /* brand */
  --gold:        #FFBA00;
  --gold-deep:   #F59E0B;
  --gold-soft:   #FFE9A8;
  --gold-line:   #FFDD80;

  /* ink / warm neutrals */
  --ink:         #2A2118;
  --ink-2:       #5C5140;
  --muted:       #9A8E78;
  --hair:        #F0E6CF;

  /* surfaces */
  --card:        #FFFFFF;
  --card-2:      #FFFCF4;
  --field:       #FBF4E3;

  /* magic / cauldron brew */
  --brew:        #8B5CF6;
  --brew-2:      #C026D3;
  --brew-deep:   #5B21B6;

  /* semantic */
  --up:          #1FA971;
  --down:        #F0567E;

  /* warm pink-to-cream background, matching the rest of unicornmeateth.com
     (steak/index use #ffe6f0 -> #fff4e6 -> #fff7ef) */
  --bg-top:      #ffe6f0;
  --bg-mid:      #fff4e6;
  --bg-bot:      #fff7ef;

  --radius:      24px;
  --radius-sm:   14px;
  /* Hard contrast shadows to match the site's border-black + offset-shadow cards/buttons. */
  --shadow:      4px 4px 0 0 #000;
  --shadow-lg:   6px 6px 0 0 #000;

  --accent:      var(--gold);

  /* Site font stack: Inter for body, Inter Tight for display headings; system monospace
     for addresses and numeric labels (replaces Fredoka / Nunito Sans / Space Mono). */
  --display: 'Inter Tight', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
/* overflow-x:hidden on html as well as body: body-only can still let the page scroll
   sideways on iOS, so clamp both to kill any residual mobile right-overflow. */
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bot) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* floating clouds layer */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.cloud {
  position: absolute; background: #fff; border-radius: 100px;
  filter: blur(.5px);
  box-shadow: 0 14px 30px -18px rgba(90,120,160,.55);
  opacity: .85;
}
.cloud::before, .cloud::after {
  content: ''; position: absolute; background: #fff; border-radius: 100px;
}
.cloud::before { width: 55%; height: 150%; top: -55%; left: 12%; }
.cloud::after  { width: 40%; height: 130%; top: -40%; right: 14%; }
.c1 { width: 220px; height: 56px; top: 9%;  left: -6%;  animation: drift 64s linear infinite; }
.c2 { width: 150px; height: 40px; top: 24%; right: -8%; animation: drift-r 78s linear infinite; opacity:.7; }
.c3 { width: 280px; height: 64px; top: 62%; left: -12%; animation: drift 92s linear infinite; opacity:.6; }
.c4 { width: 120px; height: 34px; top: 46%; left: 70%;  animation: drift 70s linear infinite; opacity:.55; }
@keyframes drift   { from { transform: translateX(0); } to { transform: translateX(125vw); } }
@keyframes drift-r { from { transform: translateX(0); } to { transform: translateX(-125vw); } }

/* layout */
.shell { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 0 20px 80px; }

/* nav - matches the site's border-black bar */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(255,251,242,.9);
  border-bottom: 2px solid #000;
}
.nav-in { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand .logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 22px;
  background: radial-gradient(120% 120% at 30% 20%, #fff3cf, var(--gold)); box-shadow: 0 6px 16px -6px var(--gold-deep), inset 0 0 0 1.5px #fff7; }
.brand .logo-img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(-4px 0px 8px rgba(0,0,0,.3)); }
.nav-links { display: flex; gap: 18px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--gold-deep); border-bottom-color: var(--gold); }
/* active page: gold underline */
.nav-links a.um-nav-active { color: var(--ink); border-bottom-color: var(--gold); }
/* "Swap" = subtle ghost button (thin brand-gold outline, no fill) so it stands out tastefully */
.nav-links a.um-nav-cta { color: #B45309; font-weight: 700; border: 1.5px solid var(--gold); border-radius: 8px; padding: 4px 13px; transition: background .12s ease; }
.nav-links a.um-nav-cta:hover { color: #B45309; background: rgba(255, 186, 0, .14); }
/* divider grouping the secondary "More" dropdown apart from the primary items */
.nav-more { border-left: 1px solid var(--gold-line); padding-left: 14px; margin-left: 4px; }
/* "More" dropdown in the nav (matches the site's Learn/More dropdown) */
.nav-more { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; color: var(--ink-2); font-weight: 700; font-size: 15px; padding: 6px 2px; white-space: nowrap; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: ' \25BE'; }
.nav-more[open] > summary { color: var(--ink); }
.nav-more-menu { position: absolute; top: 100%; right: 0; margin-top: 10px; background: #fff; border: 2px solid #000;
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 160px; display: flex; flex-direction: column; gap: 2px; z-index: 40; }
.nav-more-menu a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; border: none; }
.nav-more-menu a:hover { background: var(--field); color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* buttons - site pattern: 2px black border + hard offset contrast-shadow */
.btn {
  font-family: var(--display); font-weight: 700; font-size: 15px; cursor: pointer;
  border: 2px solid #000; border-radius: 12px; padding: 10px 18px; color: #000;
  background: var(--gold); box-shadow: 3px 3px 0 0 #000;
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 #000; }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 0 #000; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.brew { background: linear-gradient(120deg, var(--brew), var(--brew-2)); color: #fff; }

.pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 13px; font-weight: 700; white-space: nowrap;
  background: var(--field); border: 2px solid #000; border-radius: 999px; padding: 6px 12px; color: var(--ink-2); box-shadow: 2px 2px 0 0 #000; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(31,169,113,.18); }

/* cards - black border + hard offset shadow, matching the site's panels */
.card {
  background: var(--card); border-radius: var(--radius);
  border: 2px solid #000;
  box-shadow: var(--shadow);
  padding: 22px;
}
.card.flat { box-shadow: 2px 2px 0 0 #000; }
/* Every box stays inside its column and wraps unbreakable strings (addresses, long numbers)
   instead of forcing horizontal overflow on small screens. */
.card, .raffle { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.card-h { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.card-h h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0; color: var(--ink); white-space: nowrap; flex: none; }
.card-h .ico { font-size: 20px; }
.card-h .spacer { margin-left: auto; }

h1,h2,h3,h4 { font-family: var(--display); }
.eyebrow { font-family: var(--mono); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* dashboard grid */
.grid {
  display: grid; gap: 20px; margin-top: 22px;
  grid-template-columns: 320px minmax(380px, 1fr) 340px;
  align-items: start;
}
/* min-width:0 lets grid columns shrink below their content's intrinsic width so cards
   never force the track wider than the viewport (the cause of mobile right-overflow). */
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.col-center { gap: 20px; min-width: 0; }

/* stat blocks */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--card-2); border: 1.5px solid var(--hair); border-radius: var(--radius-sm); padding: 13px 14px; }
.stat .k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); margin-top: 3px; line-height: 1; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 4px; font-weight: 700; }
.flash { animation: flash .9s ease; }
@keyframes flash { 0% { background: var(--gold-soft); } 100% { background: var(--card-2); } }

/* tier */
.tier-track { position: relative; height: 12px; border-radius: 999px; background: var(--field); overflow: hidden; border: 1.5px solid var(--hair); }
.tier-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transition: width .7s cubic-bezier(.2,.7,.2,1); }
.tier-row { display: flex; justify-content: space-between; gap: 6px; margin-top: 12px; }
.tier-node { flex: 1; text-align: center; }
.tier-node .badge { width: 38px; height: 38px; margin: 0 auto 5px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--field); border: 1.5px solid var(--hair); transition: .25s; }
.tier-node.hit .badge { background: #fff; box-shadow: 0 0 0 2px #fff, 0 8px 18px -8px var(--g); border-color: var(--g); }
.tier-node .lbl { font-size: 11px; font-weight: 800; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.tier-node.hit .lbl { color: var(--ink); }
.tier-node .eth { font-size: 10.5px; color: var(--muted); font-weight: 700; }

.badge-chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); font-weight: 600; font-size: 12.5px; padding: 3px 10px 3px 7px; border-radius: 999px; color: #fff; }

/* swap */
.swapfield { background: var(--field); border: 2px solid #000; border-radius: 16px; padding: 14px 16px; transition: box-shadow .15s; }
.swapfield:focus-within { box-shadow: 0 0 0 4px rgba(255,186,0,.3); }
.swapfield .top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-weight: 800; }
.swapfield .mid { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.amt-in { flex: 1; min-width: 0; border: none; background: transparent; font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--ink); outline: none; }
.amt-in::placeholder { color: #D8CBB0; }
.tok { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid #000; border-radius: 999px; padding: 6px 14px 6px 7px; font-family: var(--display); font-weight: 700; font-size: 16px; white-space: nowrap; box-shadow: 2px 2px 0 0 #000; }
.tok .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: radial-gradient(120% 120% at 30% 20%, #fff, #EAF4FF); border: 1.5px solid #000; }
.tok .ic.meat { background: radial-gradient(120% 120% at 30% 20%, #fff3cf, var(--gold)); border-color: #000; }

.swap-arrow { display: grid; place-items: center; margin: -9px 0; position: relative; z-index: 2; }
.swap-arrow button { width: 40px; height: 40px; border-radius: 12px; border: 2px solid #000; background: var(--gold); color: #000; font-size: 18px; cursor: pointer; box-shadow: 2px 2px 0 0 #000; transition: transform .2s; }
.swap-arrow button:hover { transform: rotate(180deg); }

.seg { display: inline-flex; background: var(--field); border-radius: 999px; padding: 4px; gap: 3px; border: 2px solid #000; }
.seg button { border: none; background: transparent; font-family: var(--display); font-weight: 600; font-size: 14px; padding: 7px 18px; border-radius: 999px; cursor: pointer; color: var(--ink-2); transition: .15s; }
.seg button.on.buy { background: var(--up); color: #fff; box-shadow: 0 6px 14px -7px var(--up); }
.seg button.on.sell { background: var(--down); color: #fff; box-shadow: 0 6px 14px -7px var(--down); }

/* raffle-entries toggle: a plain checkbox that explains what you get and what it costs in one line.
   Checked (default) routes through the fee+entries path; unchecked routes directly to Uniswap V3. */
.raffle-toggle { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; padding: 11px 14px;
  background: var(--field); border: 2px solid #000; border-radius: 12px; box-shadow: 2px 2px 0 0 #000;
  cursor: pointer; user-select: none; }
.raffle-toggle input { width: 20px; height: 20px; flex: none; accent-color: var(--brew); cursor: pointer; margin: 0; }
.rt-text { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); }
.rt-cost { color: var(--muted); font-weight: 700; }
.bypass-note { font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.4; margin-bottom: 12px; }

.rows { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.row .l { color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 5px; }
.row .r { font-weight: 800; font-family: var(--mono); font-size: 13px; }

.cta { width: 100%; margin-top: 16px; padding: 16px; font-size: 18px; border-radius: 18px; }
.cta.big { font-size: 18px; }

/* slippage popover */
.gear { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #000; background: #fff; cursor: pointer; font-size: 16px; display: grid; place-items: center; box-shadow: 2px 2px 0 0 #000; }
.gear:hover { background: var(--field); }
.pop { position: absolute; right: 0; top: 42px; z-index: 20; background: #fff; border: 2px solid #000; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px; width: 248px; }
.slip-opts { display: flex; gap: 7px; margin-top: 10px; }
.slip-opts button { flex: 1; border: 2px solid #000; background: #fff; border-radius: 10px; padding: 9px 0; font-family: var(--mono); font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.slip-opts button.on { background: var(--gold); color: var(--ink); }
.slip-custom { display: flex; align-items: center; gap: 6px; margin-top: 8px; background: var(--field); border: 2px solid #000; border-radius: 10px; padding: 7px 11px; }
.slip-custom input { width: 100%; border: none; background: transparent; outline: none; font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--ink); }

/* entries earned banner on swap card */
.earn {
  margin-top: 14px; border-radius: 16px; padding: 13px 15px;
  background: linear-gradient(120deg, rgba(139,92,246,.12), rgba(192,38,211,.1));
  border: 1.5px dashed var(--brew); display: flex; align-items: center; gap: 12px;
}
.earn .big { font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--brew-deep); line-height: 1; }
.earn .lbl { font-size: 12.5px; font-weight: 800; color: var(--brew-deep); }
.earn .sub { font-size: 11.5px; color: var(--ink-2); font-weight: 700; }

/* leaderboard */
.lb { display: flex; flex-direction: column; }
.lb-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font-size: 14px; }
.lb-row + .lb-row { margin-top: 2px; }
.lb-row .rk { font-family: var(--mono); font-weight: 700; color: var(--muted); font-size: 13px; text-align: center; }
.lb-row .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lb-row .who .a { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .vol { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--ink-2); }
.lb-row.you { background: linear-gradient(90deg, var(--gold-soft), #FFF6DC); border: 1.5px solid var(--gold); }
.lb-row.you .a { color: var(--gold-deep); }
.tbadge { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; flex: none; }

/* cauldron pot */
.pot-wrap { display: flex; flex-direction: column; align-items: center; }
.pot {
  position: relative; width: 168px; height: 150px; margin: 4px auto 8px;
}
.pot-bowl {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 150px; height: 112px; border-radius: 14px 14px 80px 80px / 14px 14px 64px 64px;
  background: linear-gradient(180deg, #3A2D52, #241634);
  box-shadow: inset 0 -10px 24px rgba(0,0,0,.45), inset 0 6px 0 rgba(255,255,255,.06), 0 20px 36px -18px rgba(40,20,70,.7);
  overflow: hidden; border: 3px solid #4A3A68;
}
.pot-rim {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  width: 166px; height: 22px; border-radius: 999px;
  background: linear-gradient(180deg, #5A4880, #3A2D52); border: 3px solid #6A5694;
  box-shadow: 0 6px 12px -6px rgba(40,20,70,.6);
}
.brew-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--brew-2), var(--brew));
  box-shadow: inset 0 4px 14px rgba(255,255,255,.35);
  transition: height 1s cubic-bezier(.2,.7,.2,1);
}
.brew-fill::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, #E879F9, var(--brew-2)); opacity: .9;
  animation: brewwave 3.5s ease-in-out infinite;
}
@keyframes brewwave { 0%,100% { transform: translateY(0) scaleX(1.02); } 50% { transform: translateY(-3px) scaleX(.98); } }
.bubble { position: absolute; bottom: 6%; border-radius: 50%; background: rgba(255,255,255,.55); animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: .8; } 100% { transform: translateY(-70px) scale(1.1); opacity: 0; } }
.pot-legs { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); width: 120px; display: flex; justify-content: space-between; }
.pot-legs span { width: 12px; height: 16px; background: #3A2D52; border-radius: 0 0 6px 6px; }

.pot-pct { font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--brew-deep); line-height: 1; white-space: nowrap; margin-top: 2px; }
.steam { position:absolute; top:-4px; left:50%; width:8px; height:8px; }

/* raffle banner */
.raffle {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(125deg, #2C1A4D 0%, #4A1F63 55%, #6D1F5A 100%);
  color: #fff; padding: 20px 24px; border: 2px solid #7A3FA8;
  box-shadow: 0 24px 50px -26px rgba(60,20,90,.8);
}
.raffle .sparkle { position: absolute; pointer-events: none; opacity: .8; animation: twinkle 2.6s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: .9; transform: scale(1.15); } }
.raffle .live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: 5px 12px; border-radius: 999px; }
.raffle .live .dot { background: #FF5C8A; box-shadow: 0 0 0 3px rgba(255,92,138,.3); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.raffle-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.raffle-title { font-family: var(--display); font-weight: 700; font-size: 20px; }
.raffle-head .odds-chip { margin-left: auto; }

.raffle-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; margin-top: 16px; align-items: stretch; }
.raffle-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-content: center; }
.raffle-stats .rk { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); font-weight: 700; }
.raffle-stats .rv { font-family: var(--display); font-weight: 700; font-size: 26px; margin-top: 3px; line-height: 1.05; }
.raffle-stats .rv.sm { font-size: 21px; }
.raffle-stats .rv.gold { color: #FFD36B; }

.raffle-bar { margin-top: 16px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.16); overflow: hidden; }
.raffle-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FFD36B, #FF8A5C); transition: width 1s; }
.raffle-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11.5px; font-family: var(--mono); color: rgba(255,255,255,.6); font-weight: 700; }
.live.ended { background: rgba(255,255,255,.1); }
.live.ended .dot { background: #CDBCEC; box-shadow: none; animation: none; }
.raffle-draw { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.raffle-draw-note { flex: 1; min-width: 180px; font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.8); line-height: 1.45; }
.raffle-draw .btn { flex: none; }
.odds-chip { display: inline-block; white-space: nowrap; background: rgba(255,210,107,.2); border: 1px solid rgba(255,210,107,.5); color: #FFD36B; font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 999px; }

/* prize showcase */
.prize-show { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 15px 17px; display: flex; flex-direction: column; justify-content: center; }
.prize-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); font-weight: 700; }
.prize-title { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.05; }
.prize-sub { color: #FFD36B; font-weight: 800; font-size: 14px; margin-top: 3px; }
.prize-est { color: rgba(255,255,255,.7); font-family: var(--mono); font-weight: 700; font-size: 12.5px; margin-top: 4px; white-space: nowrap; }

.prize-eth { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.coin-stack { font-size: 42px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }

.prize-mystery { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.prize-mystery .gift { font-size: 42px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); animation: brewwave 3s ease-in-out infinite; }
.prize-note { color: rgba(255,255,255,.72); font-weight: 700; font-size: 12.5px; margin-top: 3px; max-width: 230px; line-height: 1.4; }

.nft-card { display: flex; gap: 14px; align-items: center; margin-top: 9px; }
.nft-thumb { width: 90px; height: 90px; border-radius: 14px; flex: none; position: relative; overflow: hidden; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #3a2358, #3a2358 9px, #46286c 9px, #46286c 18px);
  border: 1.5px solid rgba(255,255,255,.25); box-shadow: inset 0 0 24px rgba(0,0,0,.35); }
.nft-thumb .spark { font-size: 34px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.nft-thumb .nft-tag { position: absolute; bottom: 6px; right: 6px; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: 2px 6px; }
.nft-meta { flex: 1; min-width: 0; }
.nft-meta .col { font-family: var(--display); font-weight: 700; font-size: 18px; white-space: nowrap; }
.nft-meta .id { color: rgba(255,255,255,.7); font-family: var(--mono); font-size: 12px; margin-top: 2px; white-space: nowrap; }

.pack-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tok-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 6px 13px 6px 7px; font-family: var(--display); font-weight: 600; font-size: 14px; color: #fff; }
.tok-chip .g { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(255,255,255,.16); }
.tok-chip.nft { background: rgba(255,210,107,.16); border-color: rgba(255,210,107,.5); color: #FFD36B; }
.pack-grid .tok-chip { max-width: 100%; }
.tok-chip { min-width: 0; }

/* queued bonus prizes (light card: the pot panel) */
.queued { margin-top: 14px; border-top: 1.5px solid var(--hair); padding-top: 12px; }
.queued-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; text-align: center; margin-bottom: 8px; }
.q-grid { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }
.q-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; background: var(--field); border: 1.5px solid var(--gold-line); border-radius: 999px; padding: 5px 11px 5px 6px; font-family: var(--display); font-weight: 700; font-size: 12.5px; color: var(--ink); }
.q-chip .g { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #fff; border: 1px solid var(--gold-line); }
.q-chip.nft { border-color: var(--brew); color: var(--brew-deep); }

/* holder bonus scale */
.holder-scale { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.hs-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0;
  font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 9px;
  background: var(--card-2); border: 1.5px solid var(--hair); }
.hs-amt { color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-mult { color: var(--brew-deep); flex: none; }

/* how it works */
.how-list { display: flex; flex-direction: column; gap: 13px; }
.how-row { display: flex; gap: 11px; align-items: flex-start; }
.how-ic { font-size: 20px; flex: none; width: 26px; text-align: center; line-height: 1.2; }
.how-txt { min-width: 0; }
.how-t { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); }
.how-d { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.45; margin-top: 1px; }

.hero-sub { margin-top: 12px !important; }

/* hero */
.hero { text-align: center; padding: 34px 0 6px; position: relative; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 8px 0 6px; color: var(--ink); letter-spacing: -.01em; line-height: .98; }
.hero h1 .glow { color: var(--brew-deep); text-shadow: 0 4px 30px rgba(139,92,246,.4); }
.hero p { font-size: 17px; color: var(--ink-2); font-weight: 700; max-width: 560px; margin: 0 auto; }

/* toast */
.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: #fff; border: 2px solid #000; border-radius: 16px; padding: 13px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-weight: 800; min-width: 280px; animation: pop .35s cubic-bezier(.2,1.2,.4,1); }
@keyframes pop { from { transform: translateY(16px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.toast .ic { font-size: 24px; }
.toast .t1 { font-family: var(--display); font-size: 15px; }
.toast .t2 { font-size: 12.5px; color: var(--muted); font-weight: 700; }

/* connect overlay state */
.connect-cover { display: grid; place-items: center; text-align: center; padding: 30px 10px; gap: 12px; }

.foot { text-align: center; margin-top: 46px; color: var(--ink-2); font-weight: 700; font-size: 13px; }
.foot a { color: var(--gold-deep); }

/* boost the prize */
.boost-badge {
  margin: 8px auto 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  flex-wrap: wrap; max-width: 100%; text-align: center;
  font-family: var(--mono); font-weight: 800; font-size: 12px; color: var(--brew-deep);
  background: rgba(139,92,246,.1); border: 1.5px solid var(--brew); border-radius: 14px; padding: 5px 12px;
}
.boost-field {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  background: var(--field); border: 2px solid #000; border-radius: 14px; padding: 12px 14px; box-shadow: 2px 2px 0 0 #000;
}
.boost-field:focus-within { box-shadow: 0 0 0 4px rgba(139,92,246,.25); }
.boost-in { flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ink); }
.boost-in::placeholder { color: #D8CBB0; }
.boost-unit { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink-2);
  background: #fff; border: 2px solid #000; border-radius: 999px; padding: 5px 13px; box-shadow: 2px 2px 0 0 #000; flex: none; }
.boost-recent { margin-top: 14px; border-top: 1.5px solid var(--hair); padding-top: 12px; }
.boost-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; padding: 5px 2px; }
.boost-row + .boost-row { border-top: 1px solid var(--hair); }

/* pause banner */
.pause-banner {
  margin: 14px auto 0; max-width: 560px; text-align: left;
  background: #FFF1F5; border: 2px solid #000; border-radius: 14px; box-shadow: 3px 3px 0 0 #000;
  padding: 12px 16px; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.5;
}
.pause-banner strong { color: var(--down); }

/* ============================================================
   Overhauled layout: hero + primary (swap | round) + accordion + tabs
   ============================================================ */

/* page layout. Mobile (default): single column, round status first, then swap, accordion, tabs.
   Desktop: two columns via grid-areas so the tall tabbed section fills the space beside the swap
   card and the round card hugs its content with no trapped whitespace below it. */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "round" "swap" "accordion" "tabs";
  gap: 16px; align-items: start; margin-top: 22px;
}
.layout > .swap-col { grid-area: swap; }
.layout > .round-col { grid-area: round; }
.layout > .accordion { grid-area: accordion; }
.layout > .tabs-card { grid-area: tabs; }
.swap-col, .round-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 901px) {
  .layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-areas:
      "swap      round"
      "swap      tabs"
      "accordion tabs";
    gap: 20px;
  }
}

/* real token logos inside the swap card chips: show the logo on a clean white disc */
.tok .ic { background: #fff; overflow: hidden; }
.tok .ic.meat { background: #fff; }

/* round status card */
.round-state { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--up); white-space: nowrap; }
.round-state .dot { background: var(--up); }
.round-state.full { color: var(--gold-deep); }
.round-state.full .dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(255,186,0,.2); }
.round-state.paused { color: var(--muted); }
.round-state.paused .dot { background: var(--muted); box-shadow: none; }

.prize-line { display: flex; align-items: center; gap: 14px; }
.prize-glyph { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid #000; box-shadow: 2px 2px 0 0 #000; flex: none; }
.prize-amt { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--ink); }
.prize-amt .u { font-size: 15px; color: var(--muted); }
.prize-cap { font-size: 12.5px; font-weight: 700; color: var(--gold-deep); margin-top: 4px; line-height: 1.3; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 2px; }
.sym-chip { display: inline-flex; align-items: center; max-width: 100%; min-width: 0; overflow-wrap: anywhere;
  background: var(--field); border: 1.5px solid var(--gold-line); border-radius: 999px; padding: 5px 11px;
  font-family: var(--display); font-weight: 700; font-size: 12.5px; color: var(--ink); }
.sym-chip.nft { border-color: var(--brew); color: var(--brew-deep); }

.potbar-wrap { margin: 16px 0 4px; }
.potbar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 7px; }
.potbar-label { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--ink); }
.potbar-pct { font-family: var(--mono); font-weight: 700; font-size: 12px; color: var(--muted); flex: none; }
.potbar { height: 12px; border-radius: 999px; background: var(--field); border: 2px solid #000; overflow: hidden; }
.potbar-fill { height: 100%; border-radius: 999px 0 0 999px; background: linear-gradient(90deg, var(--brew), var(--brew-2));
  transition: width .7s cubic-bezier(.2,.7,.2,1); }
.potbar-note { font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.4; margin-top: 8px; }

.round-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px;
  padding-top: 14px; border-top: 1.5px solid var(--hair); }
.round-stats .rk { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; }
.round-stats .rv { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); margin-top: 3px; line-height: 1; }
.round-stats .rv.gold { color: var(--gold-deep); }

.draw-row { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1.5px solid var(--hair); }
.draw-note { flex: 1; min-width: 150px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); line-height: 1.4; }
.draw-row .btn { flex: none; }

/* how it works accordion */
.accordion-head { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: none;
  cursor: pointer; padding: 0; text-align: left; }
.accordion-title { font-family: var(--display); font-weight: 700; font-size: 17px; flex: 1; color: var(--ink); }
.accordion-chevron { font-family: var(--mono); font-weight: 800; font-size: 20px; width: 30px; height: 30px;
  display: grid; place-items: center; border: 2px solid #000; border-radius: 9px; background: var(--gold);
  box-shadow: 2px 2px 0 0 #000; color: #000; flex: none; line-height: 1; }

/* secondary tabbed section */
.tabs-card { padding: 0; overflow: hidden; }
.tabs { display: flex; border-bottom: 2px solid #000; background: var(--card-2); }
/* tabs stack the emoji over a short label (app tab-bar style) so labels stay visible and never wrap,
   even when the tab bar sits in the narrower right column on desktop. */
.tab { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: none; border-right: 2px solid #000; background: transparent; cursor: pointer; padding: 11px 6px;
  font-family: var(--display); font-weight: 700; color: var(--ink-2); transition: background .12s; }
.tab:last-child { border-right: none; }
.tab.on { background: var(--gold); color: #000; }
.tab:not(.on):hover { background: var(--field); }
.tab-ic { font-size: 18px; line-height: 1; }
.tab-lbl { font-size: 12.5px; line-height: 1; white-space: nowrap; }
.tab-body { padding: 22px; }
.tab-empty { font-size: 13px; font-weight: 700; text-align: center; color: var(--muted); padding: 18px 6px; line-height: 1.5; }
.scale-head { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); font-weight: 800; margin: 16px 0 6px; }

/* past winners: expandable bundle prizes */
.lb-row.clickable { cursor: pointer; }
.lb-row.clickable:hover { background: var(--field); }
.more-pill { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 800;
  color: var(--brew-deep); background: rgba(139,92,246,.1); border: 1px solid var(--brew); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
/* winner rows stack the ETH amount over the "+N more" pill so the pill never widens the price column
   and squeezes the address/meta column (which otherwise wraps one character per line on narrow screens). */
.lb.winners .vol { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bundle-detail { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 6px 12px 40px; }

/* boost field unit now carries the ETH glyph + label */
.boost-unit { display: inline-flex; align-items: center; gap: 6px; }


/* mobile */
.hamb { display: none; }
@media (max-width: 1080px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .col-center { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hamb { display: grid; }
  .nav-in { gap: 10px; padding: 10px 14px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand .logo-img { width: 34px; height: 34px; }
  .nav-right { gap: 8px; }
  .nav-right .pill { font-size: 11px; padding: 5px 9px; }
  .nav-right .btn { padding: 8px 14px; font-size: 14px; }

  .grid { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
  .col, .col-center { gap: 14px; }

  .raffle { padding: 16px 16px; }
  .raffle-title { font-size: 17px; }
  .raffle-body { grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
  .raffle-head .odds-chip { margin-left: 0; }
  .raffle-stats { gap: 10px 14px; }
  .raffle-stats .rv { font-size: 22px; }
  .raffle-stats .rv.sm { font-size: 18px; }
  .prize-show { padding: 13px 14px; }
  .prize-title { font-size: 22px; }
  .nft-thumb { width: 76px; height: 76px; }
  .nft-meta .col { font-size: 16px; }

  .card { padding: 16px; border-radius: 20px; }
  .card-h { margin-bottom: 12px; gap: 8px; }
  .card-h h3 { font-size: 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 11px 12px; border-radius: 12px; }
  .stat .v { font-size: 19px; }

  .swapfield { padding: 12px 13px; border-radius: 16px; }
  /* keep input at 16px+ to suppress iOS auto-zoom on focus */
  .amt-in { font-size: 26px; }
  .swapfield .top { font-size: 11.5px; }
  .tok { font-size: 14px; padding: 6px 12px 6px 6px; }
  .tok .ic { width: 24px; height: 24px; font-size: 14px; }
  .swap-arrow button { width: 36px; height: 36px; font-size: 16px; }
  .cta { padding: 14px; font-size: 16px; border-radius: 16px; }
  .rows { gap: 8px; }
  .row { font-size: 12.5px; }
  .row .r { font-size: 12px; }
  .earn { padding: 11px 12px; gap: 10px; }
  .earn .big { font-size: 21px; }

  .pot { width: 144px; height: 130px; }
  .pot-bowl { width: 130px; height: 96px; }
  .pot-rim { width: 144px; height: 20px; }
  .pot-pct { font-size: 28px; }

  .hero { padding: 18px 0 4px; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero p { font-size: 15px; max-width: none; padding: 0 4px; }
  .shell { padding: 0 12px 56px; }
  .foot { font-size: 12px; padding: 0 8px; line-height: 1.6; }

  .toast { min-width: unset; max-width: calc(100vw - 28px); padding: 11px 14px; }
  .toast .t1 { font-size: 13.5px; }

  /* slippage popover: keep within the card on narrow screens */
  .pop { right: -6px; width: min(248px, calc(100vw - 56px)); }
}
@media (max-width: 400px) {
  .nav-right .pill { display: none; } /* on the tightest phones, address fits in modal not nav */
  .raffle-stats { grid-template-columns: 1fr; }
  .raffle-stats .rv { font-size: 20px; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* overhauled layout: mobile refinements */
@media (max-width: 760px) {
  .tab-body { padding: 16px; }
  .prize-amt { font-size: 26px; }
  .prize-glyph { width: 42px; height: 42px; }
  .round-stats { gap: 10px; }
  .round-stats .rv { font-size: 19px; }
  .accordion-title { font-size: 16px; }
}
@media (max-width: 600px) {
  /* tight widths: stack the emoji over a short text label, app-tab-bar style, so labels stay visible */
  .tab { flex-direction: column; gap: 3px; padding: 9px 3px; }
  .tab-ic { font-size: 18px; }
  .tab-lbl { font-size: 10.5px; font-weight: 700; line-height: 1; white-space: nowrap; }
}
@media (max-width: 480px) {
  .round-stats .rv { font-size: 18px; }
  .prize-amt { font-size: 24px; }
}
