/* Sessions Games — shares the main site's tokens (index.html :root) */
:root {
  --sativa-orange: #D97A3A; --indica-teal: #5F9F9A; --hybrid-clay: #9A7B65;
  --paper-cream: #F3EEE7; --charcoal: #2B2622; --warm-black: #1F1B18; --accent-gold: #C8A15A;
  --cream-dark: #E8E0D4; --cream-light: #F9F6F2; --charcoal-light: #4A4440; --text-secondary: #7A7268;
  --font-primary: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-primary); background: var(--paper-cream); color: var(--charcoal); min-height: 100vh; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; }
.screen { display: none; padding: 22px 20px calc(28px + env(safe-area-inset-bottom)); min-height: 100vh; }
.screen.on { display: block; }
.dark { background: var(--warm-black); color: var(--paper-cream); }
body.is-dark { background: var(--warm-black); }

.logo { font-weight: 300; letter-spacing: .32em; text-transform: uppercase; font-size: 22px; text-decoration: none; display: block; }
.logo span { display: block; font-size: 10px; letter-spacing: .3em; color: var(--text-secondary); margin-top: 4px; }
.dark .logo span { color: #a89e91; }
.logo.small { font-size: 16px; }

.h1 { font-weight: 300; text-transform: uppercase; letter-spacing: .14em; font-size: 22px; line-height: 1.25; margin: 18px 0 8px; }
h2 { font-weight: 300; text-transform: uppercase; letter-spacing: .14em; font-size: 18px; margin: 18px 0 6px; }
h3 { font-weight: 500; font-size: 15px; }
.sub { color: var(--text-secondary); font-size: 13.5px; font-weight: 300; line-height: 1.5; }
.dark .sub { color: #b4aa9c; }
.eyebrow { color: var(--text-secondary); font-size: 13px; margin-top: 28px; }
.dark .eyebrow { color: #b4aa9c; }
.divider { width: 40px; height: 1px; background: var(--accent-gold); margin: 18px auto; }

.btn { display: block; width: 100%; padding: 14px; border-radius: 999px; border: none; font-weight: 500; font-size: 15px; margin-top: 12px; }
.btn.primary { background: var(--sativa-orange); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid currentColor; color: inherit; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; }
.row .btn { margin-top: 10px; }

.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.back { background: none; border: 0; color: var(--text-secondary); font-size: 14px; padding: 6px 0; }
.chip { display: inline-block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--cream-dark); color: var(--charcoal-light); }
.chip.o { background: var(--sativa-orange); color: #fff; } .chip.t { background: var(--indica-teal); color: #fff; } .chip.c { background: var(--hybrid-clay); color: #fff; }

.pack { margin: 14px 0 6px; display: flex; gap: 14px; align-items: center; background: #2B2622; border-radius: 16px; padding: 14px; }
.pack:empty { display: none; }
.pack img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--charcoal-light); }
.pack .chip { margin-top: 6px; }

.section-label { margin: 22px 0 8px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-secondary); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--cream-light); border-radius: 16px; padding: 14px 12px; border: 1px solid transparent; text-align: left;
  min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; color: inherit; }
.tile:hover, .tile:focus-visible { border-color: var(--accent-gold); outline: none; }
.tile .ic { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 8px; }
.tile p { font-size: 11.5px; color: var(--text-secondary); line-height: 1.35; margin-top: 3px; }
.tile.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 12px; min-height: 0; background: var(--charcoal); color: var(--paper-cream); }
.tile.wide p { color: #b4aa9c; }
.tile.wide .ic { flex: none; margin: 0; }
.tile .status { font-size: 10px; color: var(--hybrid-clay); letter-spacing: .06em; text-transform: uppercase; margin-top: 8px; }
.tile .status.ready { color: var(--indica-teal); }
.tile.soon { opacity: .75; }
.streak { display: flex; gap: 6px; margin-top: 10px; }
.streak span { width: 28px; height: 28px; border-radius: 7px; background: var(--cream-dark); display: grid; place-items: center; font-size: 10px; color: var(--text-secondary); }
.streak span.done { background: var(--indica-teal); color: #fff; }
.streak span.today { outline: 2px solid var(--accent-gold); outline-offset: 1px; }

.legal { margin-top: 26px; font-size: 11px; color: var(--text-secondary); text-align: center; line-height: 1.5; }

.toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--warm-black); color: var(--paper-cream);
  padding: 9px 14px; border-radius: 999px; font-size: 12.5px; opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
.toast.on { opacity: 1; }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 50; background: var(--warm-black); color: var(--paper-cream); display: grid; place-items: center; padding: 24px; text-align: center; }
.age-gate[hidden] { display: none; }
.age-gate-content { max-width: 360px; width: 100%; }
.age-gate-question { font-size: 15px; line-height: 1.5; color: #e8e0d4; }
.age-gate-no { margin-top: 14px; color: #b4aa9c; font-size: 13px; }

/* Pass That */
.pt-circle { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pt-circle button { padding: 6px 10px; border-radius: 999px; background: var(--cream-light); border: 0; font-size: 12.5px; }
.pt-circle button.now { background: var(--sativa-orange); color: #fff; }
.pt-add { display: flex; gap: 8px; margin-top: 10px; }
.pt-add input { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--cream-dark); background: #fff; font: 400 15px var(--font-primary); }
.pt-add .btn { width: auto; padding: 0 16px; margin-top: 0; }
.pt-card { margin: 22px 0 8px; min-height: 300px; border-radius: 22px; padding: 26px 22px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  transition: transform .25s ease, opacity .25s ease; }
.pt-card .kind { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.pt-card .q { font-size: 23px; font-weight: 300; line-height: 1.35; }
.pt-card .who { font-size: 12px; opacity: .85; }
.pt-card.out { transform: translateX(-120%) rotate(-8deg); opacity: 0; }
.pt-packs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pt-packs button { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--cream-dark); background: transparent; font-size: 11.5px; color: var(--charcoal-light); }
.pt-packs button.on { background: var(--charcoal); color: var(--paper-cream); border-color: var(--charcoal); }

/* Strain Sort */
.ss-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.ss-word { background: var(--cream-dark); border-radius: 10px; min-height: 60px; display: grid; place-items: center; text-align: center; font-size: 11.5px; font-weight: 500; padding: 4px; border: 0; line-height: 1.2; color: inherit; }
.ss-word.sel { background: var(--charcoal); color: var(--paper-cream); }
.ss-word.shake { animation: ss-shake .3s; }
@keyframes ss-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ss-solved { border-radius: 10px; padding: 10px; text-align: center; color: #fff; margin-top: 6px; font-size: 12px; }
.ss-solved b { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 3px; }
.ss-lives { display: flex; gap: 5px; align-items: center; font-size: 12px; color: var(--text-secondary); margin-top: 12px; }
.ss-lives i { width: 10px; height: 10px; border-radius: 50%; background: var(--sativa-orange); display: inline-block; }
.ss-lives i.gone { background: var(--cream-dark); }
.ss-result { margin-top: 14px; background: var(--cream-light); border-radius: 16px; padding: 14px; text-align: center; }
.ss-result .grid { font-size: 18px; letter-spacing: 2px; line-height: 1.3; margin: 8px 0; }

@media (prefers-reduced-motion: reduce) { .pt-card, .toast { transition: none; } .ss-word.shake { animation: none; } }

/* Hot Take */
.ht-bar { height: 14px; border-radius: 999px; background: var(--cream-dark); overflow: hidden; margin: 12px 0 4px; }
.ht-bar span { display: block; height: 100%; background: var(--sativa-orange); transition: width .4s ease; }
.ht-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ht-cols > div { background: var(--cream-light); border-radius: 14px; padding: 12px; }

/* Session Charades */
.ch-stage { position: relative; margin-top: 14px; min-height: 420px; border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; background: var(--accent-gold); }
.ch-pass, .ch-got { display: grid; place-items: end center; padding-bottom: 18px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(0,0,0,.55); cursor: pointer; user-select: none; -webkit-user-select: none; }
.ch-pass { background: var(--hybrid-clay); } .ch-got { background: var(--indica-teal); }
.ch-pass:active { filter: brightness(.9); } .ch-got:active { filter: brightness(.9); }
.ch-word { position: absolute; inset: 0 0 56px 0; display: grid; place-items: center; align-content: center; gap: 8px; pointer-events: none; color: #fff; padding: 20px; }
.ch-time { font-size: 15px; letter-spacing: .2em; opacity: .85; font-variant-numeric: tabular-nums; }
.ch-text { font-size: 34px; font-weight: 500; text-align: center; line-height: 1.15; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.ch-word .sub { color: rgba(255,255,255,.85); }

/* Name That Strain */
.ns-clues { margin-top: 12px; display: grid; gap: 6px; }
.ns-clue { background: var(--cream-light); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.ns-clue b { color: var(--text-secondary); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.ns-clue.locked { color: var(--text-secondary); font-style: italic; }
.ns-guesses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ns-guesses span { padding: 5px 10px; border-radius: 999px; background: var(--cream-dark); font-size: 12px; text-decoration: line-through; color: var(--text-secondary); }
.ns-form { display: flex; gap: 8px; margin-top: 12px; }
.ns-form input { flex: 1; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--cream-dark); background: #fff; font: 400 15px var(--font-primary); }
.ns-form .btn { width: auto; padding: 0 16px; margin-top: 0; }

/* Daily Five */
.d5-q { margin-top: 14px; background: var(--cream-light); border-radius: 16px; padding: 16px; }
.d5-q h3 { font-size: 16px; line-height: 1.35; font-weight: 400; }
.d5-opts { display: grid; gap: 8px; margin-top: 12px; }
.d5-opt { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--cream-dark); background: #fff; font-size: 14px; color: inherit; }
.d5-opt.right { background: var(--indica-teal); color: #fff; border-color: var(--indica-teal); }
.d5-opt.wrong { background: var(--sativa-orange); color: #fff; border-color: var(--sativa-orange); }
.d5-opt:disabled { cursor: default; }
.d5-dots { display: flex; gap: 6px; margin-top: 12px; justify-content: center; }
.d5-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--cream-dark); }
.d5-dots i.right { background: var(--indica-teal); } .d5-dots i.wrong { background: var(--sativa-orange); }
.d5-why { margin-top: 10px; font-size: 12.5px; color: var(--charcoal-light); line-height: 1.45; }

/* Grow Merge */
.gm-head { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.gm-head div { background: var(--cream-light); border-radius: 12px; padding: 8px 10px; font-size: 14px; font-weight: 500; }
.gm-head b { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 2px; font-weight: 500; }
.gm-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; background: var(--cream-dark); padding: 8px; border-radius: 16px; touch-action: none; user-select: none; -webkit-user-select: none; }
.gm-cell { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.45); display: grid; place-items: center; align-content: center; font-size: 12px; font-weight: 500; text-align: center; position: relative; line-height: 1.1; padding: 4px; }
.gm-n { position: absolute; top: 4px; left: 7px; font-size: 9px; opacity: .6; }

/* Munchies Memory */
.mm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.mm-card { aspect-ratio: 3 / 4; border-radius: 12px; border: 0; background: var(--charcoal); display: grid; place-items: center; align-content: center; gap: 4px; padding: 4px; color: var(--charcoal); transition: transform .15s; }
.mm-card .mm-back { width: 60%; height: 60%; border-radius: 50%; border: 2px dashed var(--accent-gold); opacity: .7; }
.mm-card.up { background: var(--cream-light); transform: rotateY(0); }
.mm-card.done { background: var(--indica-teal); color: #fff; }
.mm-e { font-size: 30px; line-height: 1; }
.mm-n { font-size: 10.5px; font-weight: 500; }
.tile img.ic { object-fit: cover; display: block; }
.tile img.ic.art { width: 54px; height: 54px; border-radius: 12px; }
.tile.wide img.ic.art { width: 64px; height: 64px; }

/* Bud Picross */
.bp-wrap { margin-top: 14px; --cell: calc((100vw - 40px - 44px) / 10); }
@media (min-width: 480px) { .bp-wrap { --cell: 36px; } }
.bp-cols { display: grid; grid-template-columns: repeat(10, var(--cell)); margin-left: 44px; gap: 0; }
.bp-cols div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 44px; font-size: 11px; font-weight: 500; color: var(--charcoal-light); line-height: 1.1; }
.bp-cols div.ok, .bp-rows div.ok { color: var(--indica-teal); }
.bp-body { display: flex; }
.bp-rows { width: 44px; display: grid; grid-template-rows: repeat(10, var(--cell)); }
.bp-rows div { display: flex; align-items: center; justify-content: flex-end; padding-right: 6px; font-size: 11px; font-weight: 500; color: var(--charcoal-light); white-space: nowrap; }
.bp-grid { display: grid; grid-template-columns: repeat(10, var(--cell)); grid-template-rows: repeat(10, var(--cell)); border: 2px solid var(--charcoal); }
.bp-cell { border: 0; border-right: 1px solid var(--cream-dark); border-bottom: 1px solid var(--cream-dark); background: #fff; padding: 0; position: relative; }
.bp-cell.gap-r { border-right: 2px solid var(--charcoal-light); } .bp-cell.gap-b { border-bottom: 2px solid var(--charcoal-light); }
.bp-cell.fill { background: var(--charcoal); }
.bp-cell.mark::after { content: '×'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-secondary); font-size: 14px; }

/* Hero art */
.hero { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; margin-top: 16px; }
.hero[hidden] { display: none; }

/* Published art slots */
.gate-art { display: block; width: 180px; height: 180px; object-fit: cover; border-radius: 50%; margin: 18px auto 0; }
.gate-art[hidden] { display: none; }
.mm-card.hasart { background: var(--charcoal) center / cover no-repeat; }
.mm-card.hasart .mm-back { display: none; }

/* Best Match */
.bm-hand { display: grid; gap: 8px; margin-top: 8px; }
.bm-card { text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--cream-dark); background: #fff; font-size: 15px; line-height: 1.35; color: inherit; min-height: 52px; }
.bm-card:hover, .bm-card:focus-visible { border-color: var(--accent-gold); outline: none; }
.bm-card b { color: var(--sativa-orange); }

/* Codewords */
.cw-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.cw-card { aspect-ratio: 1.15; border-radius: 10px; border: 1px solid var(--cream-dark); background: #fff; font-size: 11px; font-weight: 500; padding: 2px; color: inherit; line-height: 1.1; word-break: break-word; }
.cw-card.open { border-color: transparent; }
.cw-card:disabled { cursor: default; }
.gm-head div[style*="border-left"] { padding-left: 10px; }

/* Sketch It */
.sk-top { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.sk-word { font-size: 18px; font-weight: 500; }
.sk-canvas { display: block; width: 100%; aspect-ratio: 1; background: #fff; border-radius: 16px; margin-top: 10px; touch-action: none; border: 1px solid var(--cream-dark); }

/* Codewords setup + clue log */
.cw-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cw-teams > div { background: var(--cream-light); border-radius: 12px; padding: 8px 10px; }
.cw-teams h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 4px; }
.cw-teams .pt-circle { margin-top: 4px; }
.cw-teams .pt-circle button.now { color: #fff; }
.cw-log { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cw-log span { font-size: 12px; padding: 4px 8px; background: var(--cream-light); border-radius: 6px; }
.pt-add input[type=number] { -moz-appearance: textfield; }

/* Sketch peek */
.sk-peek { width: auto; margin: 0; padding: 6px 14px; font-size: 14px; min-height: 0; }

/* Session Rooms */
.rm-top { display: flex; align-items: center; gap: 8px; margin-top: 18px; } .rm-top h2 { flex: 1; margin: 0; }
.rm-card { background: var(--cream-light); border-radius: 18px; padding: 16px; margin-top: 14px; }
.rm-invite { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: center; }
.rm-qr svg { display: block; width: 132px; height: 132px; background: #fff; border-radius: 10px; }
.rm-code { font-size: 38px; font-weight: 600; letter-spacing: .22em; color: var(--charcoal); margin-top: 4px; }
.rm-name { margin-top: 14px; } .rm-name input { width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--cream-dark); background: #fff; font: 400 16px var(--font-primary); }
.rm-players { display: grid; gap: 6px; margin-top: 8px; }
.rm-p { display: flex; align-items: center; gap: 10px; background: var(--cream-light); border-radius: 12px; padding: 10px 12px; font-size: 14.5px; }
.rm-p i { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; }
.rm-p span { flex: 1; } .rm-p b { font-weight: 600; } .rm-p.off { opacity: .45; }
.rm-x { border: 0; background: transparent; font-size: 18px; color: var(--text-secondary); padding: 0 4px; }
.tile:disabled { opacity: .5; cursor: default; }
.pt-add input, .rm-name input, .ns-form input { font-size: 16px; }   /* 16px stops iOS zooming into the field */

/* Sketch It Live */
.skl-bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.skl-word { flex: 1; text-align: center; font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.skl-canvas-wrap { position: relative; }
.skl-reveal { position: absolute; inset: 10px 0 0; border-radius: 16px; background: rgba(43,38,34,.82); color: #fff; display: grid; place-items: center; text-align: center; }
.skl-reveal .kind { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; } .skl-reveal .q { font-size: 30px; font-weight: 500; margin-top: 6px; }
.skl-tools { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.skl-inks { display: flex; gap: 6px; align-items: center; }
.skl-ink { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--cream-dark); }
.skl-ink.on { outline: 3px solid var(--charcoal); outline-offset: 1px; }
.skl-w { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--cream-dark); background: #fff; display: grid; place-items: center; }
.skl-w i { display: block; border-radius: 50%; background: var(--charcoal); } .skl-w.on { border: 2px solid var(--charcoal); }
.skl-feed { display: grid; gap: 4px; margin-top: 10px; }
.skl-f { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 10px; background: var(--cream-light); border-radius: 10px; }
.skl-f i { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; } .skl-f.ok { background: var(--indica-teal); color: #fff; }
.skl-f em { color: var(--sativa-orange); font-style: normal; font-weight: 600; margin-left: auto; }

/* My stats + social */
.topbar .st-link { margin-left: auto; text-decoration: none; background: var(--charcoal); color: var(--paper-cream); padding: 7px 12px; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.st-card { background: var(--cream-light); border-radius: 16px; padding: 12px 14px; }
.st-card h3 { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.st-big { font-size: 34px; font-weight: 600; line-height: 1.1; margin: 4px 0 2px; } .st-big span { font-size: 12px; font-weight: 400; color: var(--text-secondary); margin-left: 6px; }
.st-titles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.st-titles span { background: var(--charcoal); color: var(--accent-gold); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; }
.st-nights { display: grid; gap: 6px; margin-top: 10px; }
.st-night { display: flex; justify-content: space-between; align-items: center; text-align: left; background: var(--cream-light); border: 0; border-radius: 12px; padding: 10px 12px; color: inherit; }
.st-night span { display: block; font-size: 12.5px; color: var(--text-secondary); } .st-night em { font-style: normal; color: var(--sativa-orange); font-weight: 600; } .st-night i { font-style: normal; margin-left: 8px; color: var(--text-secondary); }
