/* Phantom-tech.net — shared styles.
   Layout: one dark "phantom" world. Mint belongs to Status GenX, coral to TheMunch,
   gold to the Sound Box, periwinkle to the Store. Cards only where something is a door. */
:root {
  --bg: #0D0E13; --panel: #161821; --panel-2: #1C1F2A; --line: #2A2D38; --line-2: #3A3D4A;
  --fg: #ECEEF4; --muted: #B3B7C6; --dim: #8E92A3;
  --mint: #7CF2C9; --mint-ink: #08241B; --mint-deep: #12241F; --mint-dark: #0D1A16; --mint-line: #2E5E4F; --mint-text: #CFE3DC;
  --coral: #FF8A5B; --coral-ink: #1A0D06; --coral-soft: #FFB08F; --coral-text: #E6D3C9;
  --m-bg: #140D09; --m-panel: #1C120D; --m-panel-2: #2A1A12; --m-line: #3A251A; --m-line-2: #4A3022; --m-muted: #B39888;
  --gold: #E2B65C; --gold-soft: #F0CD84; --peri: #9DB4FF; --peri-soft: #BFCDFF;
  --ok: #5FD38A; --danger: #FF7A7A;
  --f-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px; --r-lg: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--f-body); }
body.munch { background: var(--m-bg); color: #F2ECE8; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--mint); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
body.munch :focus-visible { outline-color: var(--coral); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 600px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 17px; border-radius: 12px; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.mint { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.btn.mint:hover { background: #A3F7DB; }
.btn.coral { background: var(--coral); border-color: var(--coral); color: var(--coral-ink); }
.btn.coral:hover { background: #FFA37E; }
.btn.line-coral { border-color: var(--coral); color: var(--coral-soft); }
.btn.line-gold { border-color: var(--gold); color: var(--gold-soft); }
.btn.line-peri { border-color: var(--peri); color: var(--peri-soft); }
.btn.ghost { border-color: transparent; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; border-radius: 10px; cursor: pointer; color: inherit; }
.icon-btn:hover { background: rgba(255,255,255,.06); }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .lbl { font-size: 14px; color: var(--muted); }
.input { width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--fg); padding: 0 14px; font-size: 16px; }
textarea.input { padding: 12px 14px; min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--mint); outline: none; box-shadow: 0 0 0 3px rgba(124,242,201,.18); }
body.munch .input { background: var(--m-panel); border-color: var(--m-line-2); color: #F2ECE8; }
body.munch .input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,138,91,.2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--coral); flex: none; }
.err { color: var(--danger); font-size: 14px; }
.note { font-size: 13px; color: var(--dim); }

/* ---------- site header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; }
body.munch .site-head { background: var(--m-bg); border-color: var(--m-line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--bg); }
body.munch::before { background: var(--m-bg); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand b { font: 700 21px var(--f-display); letter-spacing: -0.01em; }
.brand svg { width: 32px; height: 32px; }
.beta { font: 700 11px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); border: 1px solid var(--mint-line); border-radius: 999px; padding: 3px 8px; }
body.munch .beta { color: var(--coral-soft); border-color: #6B3A24; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.main-nav a:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.main-nav a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--mint); border-radius: 0; }
body.munch .main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--coral); }
.acct { display: flex; gap: 8px; align-items: center; }
.who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 14px var(--f-display); color: var(--bg); flex: none; }
@media (max-width: 760px) { .main-nav { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap; } }

/* ---------- home ---------- */
.intro { text-align: center; display: grid; gap: 12px; justify-items: center; padding-block: 56px 32px; }
.intro h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 700; letter-spacing: -0.035em; }
.intro p { font-size: 19px; color: var(--muted); max-width: 46ch; }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.room-door { border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 18px; border: 2px solid; min-width: 0; }
.room-door.genx { background: var(--mint-deep); border-color: var(--mint); }
.room-door.munch { background: #26170F; border-color: var(--coral); }
.room-door .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.room-door h2 { font-size: clamp(30px, 4vw, 38px); }
.pill { font: 700 13px var(--f-body); border-radius: 999px; padding: 5px 12px; white-space: nowrap; display: inline-block; }
.pill.mint { background: var(--mint); color: var(--mint-ink); }
.pill.coral { background: var(--coral); color: var(--coral-ink); }
.pill.line-coral { border: 1px solid var(--coral); color: var(--coral-soft); padding: 4px 11px; }
.pill.gold { border: 1px solid #8A6A2A; color: var(--gold-soft); padding: 4px 10px; font-size: 12px; }
.tiles { display: flex; gap: 12px; }
.tiles span { flex: 1; height: 200px; border-radius: 16px; display: grid; place-items: center; }
.genx .tiles span { background: var(--mint-dark); border: 1px solid var(--mint-line); }
.munch .tiles span { background: #1A0F09; border: 1px solid #6B3A24; }
.tiles span:nth-child(2) { animation: drift 6s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .tiles span { animation: none !important; } }
.feats { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 15px; }
.feats li { display: flex; gap: 8px; align-items: center; min-width: 0; }
.feats svg.i { width: 18px; height: 18px; }
.genx .feats { color: var(--mint-text); } .genx .feats svg { color: var(--mint); }
.munch .feats { color: var(--coral-text); } .munch .feats svg { color: var(--coral); }
@media (max-width: 420px) { .feats { grid-template-columns: 1fr; } }
.split { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); }
.split b.big { font: 700 40px/1 var(--f-display); letter-spacing: -0.02em; }
.split p { font-size: 14px; line-height: 1.4; }
.safety { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--mint-dark); border: 1px solid var(--mint-line); font-size: 14px; color: var(--mint-text); }
.safety strong { color: var(--fg); }
.req { color: #D6BFB3; } .req strong { color: var(--fg); }
.genx .req { color: var(--mint-text); }
.also { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.also-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.also-card > div { flex: 1 1 200px; min-width: 0; display: grid; gap: 4px; }
.also-card h3 { font-size: 23px; }
.also-card svg.i { width: 40px; height: 40px; stroke-width: 1.8; }
.section { display: grid; gap: 22px; padding-block: 56px 0; }
.section > h2 { font-size: 30px; }
.panes { display: flex; flex-wrap: wrap; gap: 18px; padding-block: 56px; }
.pane { flex: 1 1 400px; min-width: 0; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.pane.plain { background: var(--panel); border: 1px solid var(--line); }
.pane.green { background: var(--mint-deep); border: 1px solid var(--mint-line); justify-content: center; }
.pane.green p, .pane.green .lbl { color: #B3C9C1; }
.tabs2 { display: flex; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.tabs2 button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: #C9CCD8; font-weight: 600; font-size: 15px; cursor: pointer; }
.tabs2 button[aria-selected="true"] { background: var(--mint); color: var(--mint-ink); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row .input { flex: 1 1 220px; min-width: 0; }
.site-foot { border-top: 1px solid var(--line); }
body.munch .site-foot { border-color: var(--m-line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-block: 28px; color: var(--dim); font-size: 14px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot a { color: var(--muted); }
.preview-tag { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--dim); }

/* ---------- toast & sheet ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 80; display: grid; place-items: end center; }
@media (min-width: 640px) { .scrim { place-items: center; } }
.sheet { width: min(480px, 100%); max-height: 88vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px; }
@media (min-width: 640px) { .sheet { border-radius: 20px; } }
body.munch .sheet { background: var(--m-panel); border-color: var(--m-line); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { font-size: 22px; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
body.munch .opt { border-color: var(--m-line-2); }
.opt:has(input:checked) { border-color: var(--coral); background: rgba(255,138,91,.08); }
.opt input { margin-top: 3px; accent-color: var(--coral); }
.opt b { display: block; }
.opt span { font-size: 13px; color: var(--dim); }

/* Donate button in the header (2026-11-14) */
.donate-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid #8A6A2A; color: var(--gold-soft, #F2D58A); font-weight: 700; font-size: 13px; text-decoration: none;
  white-space: nowrap; margin-left: auto; margin-right: 8px; }
.donate-btn:hover { background: rgba(242, 213, 138, .1); }
.donate-btn span { color: #FF7A8A; }
@media (max-width: 600px) { .donate-btn { padding: 0 10px; } }
