/* Sip City portal theme — MOBILE-FIRST. Single column, clamp() sizes,
   44px+ tap targets, no computed-height overlays, no sideways scroll. */
:root {
  --juice: #f5a623; --juice-hot: #ff7a00; --grape: #7c3aed; --grape-soft: #a78bfa;
  --bg1: #160b2b; --bg2: #090511; --win: #ffd54a; --card: rgba(22,12,40,.86);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: 'Rubik', system-ui, sans-serif; color: #f4ecff;
  background: radial-gradient(120% 80% at 50% 0%, var(--bg1) 0%, var(--bg2) 65%);
  min-height: 100%; display: flex; flex-direction: column; align-items: center;
  overflow-x: hidden;
}
.citynav {
  position: sticky; top: 0; z-index: 20; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px min(3vw, 16px);
  background: rgba(9,5,17,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(124,58,237,.25);
}
.cityback { color: #d9c9ff; text-decoration: none; font-weight: 800; font-size: 13px;
            letter-spacing: .04em; padding: 10px 12px; border-radius: 999px;
            border: 1px solid rgba(167,139,250,.3); min-height: 44px;
            display: inline-flex; align-items: center; }
.citytitle { font-family: 'Righteous'; letter-spacing: .12em; color: #b9a7d8;
             font-size: clamp(11px, 3vw, 14px); }
.citywallet { background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.45);
              padding: 10px 14px; border-radius: 999px; font-weight: 800;
              font-size: clamp(13px, 3.6vw, 16px); min-height: 44px;
              display: inline-flex; align-items: center; }

.wrap { width: min(94vw, 620px); margin: 0 auto; }
.pagehead { text-align: center; margin: 16px 0 4px; }
.pagehead h1 { font-family: 'Righteous'; font-size: clamp(24px, 7vw, 40px);
               letter-spacing: .06em; color: #fff;
               text-shadow: 0 0 10px var(--grape), 0 0 34px var(--grape),
                            0 0 70px rgba(124,58,237,.5); }
.pagehead .sub { letter-spacing: .3em; font-size: 10px; color: #b9a7d8; margin-top: 3px; }

.card { background: var(--card); border: 1px solid rgba(124,58,237,.28);
        border-radius: 16px; padding: 14px; margin: 14px 0 0; }
.card h2 { font-family: 'Righteous'; letter-spacing: .1em; font-size: 14px;
           color: var(--grape-soft); margin-bottom: 10px; }
.card h2 .juice { color: var(--juice); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px;
       padding: 8px 0; border-bottom: 1px solid rgba(124,58,237,.12); font-size: 13px;
       flex-wrap: wrap; }
.row:last-child { border-bottom: none; }
.dim { color: #b9a7d8; } .gold { color: var(--juice); font-weight: 800; }
.good { color: #7CFC9A; } .bad { color: #ff8f8f; }

.bigbtn {
  display: block; width: 100%; border: none; cursor: pointer; border-radius: 14px;
  padding: 15px 0; min-height: 50px; font-family: 'Righteous';
  font-size: clamp(16px, 4.6vw, 20px); letter-spacing: .08em; color: #2b1600;
  background: linear-gradient(180deg, #ffd98a 0%, var(--juice) 45%, var(--juice-hot) 100%);
  box-shadow: 0 5px 0 #7c3f00, 0 9px 22px rgba(255,122,0,.4);
  transition: transform .08s ease, box-shadow .08s ease, filter .2s;
}
.bigbtn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #7c3f00; }
.bigbtn:disabled { filter: grayscale(.6) brightness(.7); cursor: default; }
.ghostbtn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(167,139,250,.4); background: rgba(124,58,237,.14);
  color: #d9c9ff; border-radius: 12px; cursor: pointer; font: 700 14px 'Rubik';
  padding: 0 16px; min-height: 44px;
  transition: transform .08s ease;
}
.ghostbtn:active:not(:disabled) { transform: scale(.96); }
.ghostbtn:disabled { filter: grayscale(.6) brightness(.6); cursor: default; }
.btnrow { display: flex; gap: 8px; margin-top: 10px; }
.btnrow > * { flex: 1; }

label { display: block; font-size: 11px; letter-spacing: .15em; color: #b9a7d8;
        font-weight: 700; margin: 10px 0 4px; }
select, input[type=number], input[type=text] {
  width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid rgba(167,139,250,.35); background: #170d2c; color: #f4ecff;
  font: 600 16px 'Rubik'; outline: none;
}
select:focus, input:focus { border-color: var(--juice); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }
.district {
  display: block; text-decoration: none; color: inherit; border-radius: 16px;
  padding: 14px 10px; text-align: center; min-height: 92px;
  background: var(--card); border: 1px solid rgba(124,58,237,.3);
  transition: transform .12s ease, border-color .12s ease;
}
.district:active { transform: scale(.97); }
.district .em { font-size: 30px; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.district b { display: block; font-family: 'Righteous'; letter-spacing: .06em;
              font-size: 13px; margin-top: 6px; color: #fff; }
.district span { font-size: 10.5px; color: #b9a7d8; }

.banner { min-height: 22px; text-align: center; font-weight: 800; margin: 10px 4px;
          font-size: clamp(13px, 3.8vw, 16px); }
.banner .win { color: var(--win); text-shadow: 0 0 12px rgba(255,213,74,.7); }
.banner .meh { color: #8d7bb0; font-weight: 600; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(90px);
         background: #2a1745; border: 1px solid rgba(245,166,35,.5); color: #ffe9c4;
         padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
         transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); z-index: 70;
         max-width: 88vw; text-align: center; }
#toast.show { transform: translateX(-50%) translateY(0); }
.locked { text-align: center; margin: 18vh 20px; }
.locked h2 { font-family: 'Righteous'; font-size: 30px; color: var(--grape-soft); margin-bottom: 10px; }
.locked p { color: #b9a7d8; }
.foot { color: #6d5b93; font-size: 11px; text-align: center; margin: 18px 14px 24px; }
.note { font-size: 11.5px; color: #b9a7d8; margin-top: 8px; line-height: 1.5; }
