/* ABSN HQ — night ground, cream cards, saffron / teal / coral accents */
:root { --bg:#16141F; --card:#221F2E; --line:#34304A; --cream:#FBF4E4; --ink:#16141F; --soft:#D8D2E6; --muted:#B8B2C9; --dim:#8E879F;
  --saffron:#F4B43C; --teal:#3CC4B4; --coral:#FF6B57; --tile:#1E1A3C; --display:'Bricolage Grotesque', system-ui, sans-serif; --body:Inter, system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--cream); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; }
a { color: var(--saffron); }
button { font-family: var(--body); cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
#app { max-width: 520px; margin: 0 auto; padding: 0 0 calc(40px + env(safe-area-inset-bottom)); }
.loading { text-align: center; padding: 120px 20px; color: var(--muted); font-weight: 700; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.small { font-size: 13px; }

/* header + tabs */
.top { position: sticky; top: 0; z-index: 5; background: rgba(22,20,31,.94); backdrop-filter: blur(8px); padding: calc(12px + env(safe-area-inset-top)) 16px 8px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; background: var(--cream); object-fit: cover; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: .5px; }
.me-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--cream); background: var(--coral); color: var(--ink); font-weight: 800; font-size: 16px; }
.tabs { display: flex; gap: 4px; margin-top: 10px; padding: 4px; background: var(--card); border-radius: 999px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; min-height: 40px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--soft); font-weight: 700; font-size: 13px; white-space: nowrap; }
.tabs button[aria-current="page"] { background: var(--saffron); color: var(--ink); }

.sec { padding: 18px 20px 0; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 8px; }
.sec-h h2 { font-size: 20px; }
.hello { font-size: 32px; line-height: 1.05; margin: 2px 0 14px; font-weight: 800; }
.kicker { font-size: 14px; color: var(--muted); font-weight: 600; margin: 0; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--cream); color: var(--ink); border-radius: 18px; padding: 14px 16px; }
.tiles.three .tile { padding: 12px 10px; border-radius: 16px; }
.tile.hot { background: var(--saffron); }
.tile b { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.tiles.three .tile b { font-size: 22px; }
.tile span { display: block; font-size: 13px; font-weight: 700; color: #5B5566; margin-top: 4px; }
.tile.hot span { color: #3A2A08; }
.tile em { display: block; font-style: normal; font-size: 11px; font-weight: 800; margin-top: 2px; }
.up { color: #1F7A4F; } .down { color: #A3402F; }

/* calendar */
.cal { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 10px); gap: 3px; margin-top: 10px; }
.cal i { display: block; width: 100%; border-radius: 2px; background: #2C2840; }
.cal i.l1 { background: #1F6F66; } .cal i.l2 { background: var(--teal); } .cal i.l3 { background: var(--saffron); } .cal i.fut { background: transparent; }
.cal-m { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; font-weight: 600; }

/* app cards */
.apps { display: flex; flex-direction: column; gap: 10px; }
.app-card { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; text-align: left;
  background: var(--card); color: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 14px 36px 14px 14px; text-decoration: none; font: inherit; }
.app-card.off { border-style: dashed; border-color: #6A6380; padding-right: 14px; }
.app-card .chev { position: absolute; right: 12px; bottom: 14px; }
.logo { width: 48px; height: 48px; border-radius: 12px; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.logo img { width: 78%; height: 78%; object-fit: contain; }
.logo.sm { width: 44px; height: 44px; }
.app-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.app-top b { font-size: 16px; }
.sync { font-size: 11px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.sync.warn { color: var(--saffron); }
.app-card p { margin: 4px 0 0; font-size: 14px; color: var(--soft); line-height: 1.4; }
.app-card p b { color: var(--cream); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 0;
  background: var(--saffron); color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; }
.btn.coral { background: var(--coral); } .btn.teal { background: var(--teal); } .btn.dark { background: var(--ink); color: var(--cream); }
.btn.ghost { background: transparent; color: var(--cream); border: 2px solid var(--cream); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.box.light { background: var(--cream); color: var(--ink); border: 0; }
.box h3 { font-size: 17px; margin-bottom: 6px; }
.box ol, .box ul { margin: 8px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--soft); }
.box.light ol { color: #3A3446; }
.links-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.links-row a { text-decoration: none; color: var(--cream); background: var(--card); border-radius: 14px; padding: 12px 6px; text-align: center; font-size: 13px; font-weight: 700; }
.foot { margin: 18px 20px 0; text-align: center; font-size: 12px; color: var(--dim); }

/* detail */
.back { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--cream); display: grid; place-items: center; }
.d-head { display: flex; align-items: center; gap: 12px; }
.d-head h1 { font-size: 24px; line-height: 1; }
.bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; height: 110px; margin-top: 12px; }
.bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 12px; font-weight: 800; }
.bars i { display: block; width: 100%; border-radius: 8px 8px 3px 3px; background: var(--teal); min-height: 3px; }
.bars-x { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 6px; font-size: 11px; color: var(--muted); text-align: center; font-weight: 600; }
.rows { list-style: none; margin: 8px 0 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.rows .d { font-size: 12px; color: var(--muted); font-weight: 700; }
.rows .n { font-weight: 700; } .rows .n small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.rows .r { text-align: right; font-size: 13px; font-weight: 800; color: var(--saffron); } .rows .r small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }

/* adventures + parties */
.cards { display: flex; flex-direction: column; gap: 12px; }
.adv { display: block; text-decoration: none; color: var(--cream); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.adv.hero { background: var(--teal); color: var(--ink); border: 0; }
.adv.soon { background: transparent; border: 2px dashed #4A4560; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 4px 9px; border-radius: 999px; background: var(--saffron); color: var(--ink); text-transform: uppercase; }
.adv.hero .pill { background: var(--ink); color: var(--teal); }
.adv.soon .pill { background: var(--line); color: var(--cream); }
.adv h3 { font-size: 22px; margin-top: 8px; }
.adv .sub { font-size: 14px; font-weight: 700; margin-top: 2px; opacity: .85; }
.adv ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.adv li { display: flex; justify-content: space-between; gap: 8px; } .adv li span { color: var(--muted); font-weight: 600; white-space: nowrap; }
.adv li.now b { color: var(--teal); }
.adv .go { margin-top: 12px; font-weight: 800; font-size: 14px; color: var(--saffron); }
.adv.hero .go { color: var(--ink); }
.party-hero { display: block; text-decoration: none; color: var(--ink); background: var(--teal); border-radius: 20px; padding: 16px; }
.party-hero.live { background: var(--coral); }
.party-hero .pill { background: var(--ink); color: inherit; }
.party-hero.live .pill { color: var(--coral); } .party-hero:not(.live) .pill { color: var(--teal); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.party-hero.live .dot { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.party-hero h3 { font-size: 24px; margin-top: 8px; }
.plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plist a { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; color: var(--cream);
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.plist a.next { border-color: var(--saffron); }
.when { text-align: center; background: var(--bg); border-radius: 12px; padding: 8px 4px; }
.when b { display: block; font-size: 12px; color: var(--saffron); } .when span { font-size: 12px; font-weight: 700; }
.plist .t b { display: block; font-size: 15px; } .plist .t span { font-size: 13px; color: var(--muted); }
.plist .j { font-size: 12px; font-weight: 800; color: var(--saffron); }
.meet { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; color: var(--ink); background: var(--cream); border-radius: 18px; padding: 14px; }
.meet + .meet { background: var(--card); color: var(--cream); border: 1px solid var(--line); }
.meet .when { background: var(--ink); color: var(--cream); }
.meet .when b { font-size: 11px; } .meet .when span { font-size: 17px; font-weight: 800; }
.meet b.t { display: block; font-size: 16px; } .meet span.p { font-size: 13px; font-weight: 600; opacity: .75; }

/* spin + plan */
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 4px; border: 2px solid var(--line); border-radius: 16px; }
.seg button { min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--soft); font-weight: 800; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }
.field-l { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 6px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 13px; border-radius: 999px; border: 2px solid #4A4560; background: transparent; color: var(--cream); font-weight: 700; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.result { background: var(--cream); color: var(--ink); border-radius: 22px; padding: 18px; margin-top: 16px; }
.result .k { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #8A3B2E; text-transform: uppercase; }
.result h3 { font-size: 28px; line-height: 1.05; margin: 4px 0; }
.result p { margin: 0; font-size: 15px; font-weight: 600; color: #4A4456; }
.plan-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-h h3 { font-size: 22px; margin: 0; } .plan-h span { font-weight: 800; font-size: 14px; color: #8A3B2E; }
.plan { list-style: none; margin: 10px 0 0; padding: 0; }
.plan li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #E4D9C2; }
.plan .num { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.plan b { display: block; font-size: 15px; } .plan small { font-size: 12px; font-weight: 700; color: #5B5566; }
.swap { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-weight: 800; font-size: 13px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }

/* sign-in + connect + forms */
.signin { padding: calc(40px + env(safe-area-inset-top)) 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.signin .logo-big { width: 150px; height: 150px; border-radius: 50%; background: var(--cream); object-fit: cover; align-self: center; }
.signin h1 { font-size: 34px; text-align: center; }
.signin p { margin: 0; text-align: center; color: var(--soft); line-height: 1.5; }
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
input, select { width: 100%; min-height: 50px; border-radius: 12px; border: 2px solid #4A4560; background: #0F0E16; color: var(--cream); padding: 0 12px; font: 600 16px var(--body); }
.box.light input { background: #fff; color: var(--ink); border-color: var(--ink); }
input.code { font-size: 26px; letter-spacing: 8px; text-align: center; font-weight: 800; }
.err { color: #FF8F7E; font-weight: 700; font-size: 14px; margin: 0; }
.link-row { display: flex; align-items: center; gap: 12px; }
.link-row .grow { flex: 1; min-width: 0; }
.link-row b { font-size: 17px; }
.link-row .st { font-size: 13px; font-weight: 700; color: var(--teal); }
.link-row .st.no { color: var(--saffron); }
.text-btn { background: none; border: 0; color: var(--muted); font-weight: 700; font-size: 13px; text-decoration: underline; min-height: 44px; padding: 0 4px; }
.progress { display: flex; gap: 6px; } .progress span { flex: 1; height: 8px; border-radius: 999px; background: var(--line); } .progress span.on { background: var(--teal); }
details.how summary { cursor: pointer; font-weight: 800; font-size: 14px; min-height: 32px; list-style: none; color: var(--saffron); }
details.how summary::-webkit-details-marker { display: none; }

#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--cream); color: var(--ink);
  padding: 12px 18px; border-radius: 14px; font-weight: 800; box-shadow: 0 8px 30px rgba(0,0,0,.4); z-index: 20; max-width: 90vw; text-align: center; }
.menu { position: absolute; right: 16px; top: calc(56px + env(safe-area-inset-top)); background: var(--cream); color: var(--ink); border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 9; min-width: 220px; }
.menu p { margin: 8px 10px; font-size: 13px; color: #5B5566; word-break: break-all; }
.menu button { display: block; width: 100%; text-align: left; min-height: 44px; border: 0; background: transparent; font-weight: 800; font-size: 15px; padding: 0 10px; border-radius: 10px; color: var(--ink); }
.menu button:hover { background: #EFE5CF; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
