:root {
  --bg: #09070d;
  --bg2: #121218;
  --card: #16161e;
  --line: #262633;
  --text: #ecebf3;
  --muted: #aaa5b8;
  --acid: #c1a0ff;
  --pink: #b957ff;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-image: radial-gradient(900px 400px at 85% -10%, rgba(255,46,147,.14), transparent 60%),
                    radial-gradient(800px 400px at -10% 0%, rgba(182,255,0,.10), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--acid); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(10,10,13,.82); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { font-weight: 900; letter-spacing: .08em; font-size: 1.15rem; color: var(--text); }
.logo b { color: var(--acid); }
.logo:hover { text-decoration: none; }
nav.main { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
nav.main a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
nav.main a:hover, nav.main a.active { color: var(--text); background: var(--bg2); text-decoration: none; }
.hdr-right { display: flex; align-items: center; gap: 10px; }
.cart-link { position: relative; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-weight: 600; }
.cart-link:hover { text-decoration: none; border-color: var(--acid); }
.badge { background: var(--pink); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; margin-left: 6px; }
.menu-btn { display: none; }
@media (max-width: 780px) {
  header.site .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
  nav.main { order: 3; width: 100%; }
}

/* Buttons & forms */
.btn { display: inline-block; cursor: pointer; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 800; font-size: .95rem; background: var(--acid); color: #0a0a0d; transition: transform .08s, filter .15s; }
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.alt { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.alt:hover { border-color: var(--acid); }
.btn.pink { background: var(--pink); color: #fff; }
.btn.discord { background: #5865f2; color: #fff; }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.danger { background: #3a1018; color: #ff6b81; border: 1px solid #5a1a26; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, textarea, select {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--acid); outline-offset: 0; border-color: transparent; }
label { display: block; font-size: .85rem; color: var(--muted); margin: 12px 0 5px; font-weight: 600; }
textarea { min-height: 120px; resize: vertical; }

/* Layout bits */
main { padding: 36px 0 70px; min-height: 60vh; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin: 0 0 8px; }
h2 { font-size: 1.4rem; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.err { color: #ff6b81; margin-top: 10px; min-height: 1.2em; }
.ok { color: var(--acid); }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.acid { color: var(--acid); border-color: rgba(182,255,0,.4); }

/* Hero */
.hero { padding: 56px 0 30px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 900; letter-spacing: -.02em; }
.hero h1 span { color: var(--acid); }
.hero h1 em { font-style: normal; color: var(--pink); }
.features { margin-top: 40px; }
.feature h3 { margin: 6px 0 6px; }

/* Product cards */
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product .cover { aspect-ratio: 1/1; background: linear-gradient(135deg, #1b1b27, #2a1030); display: grid; place-items: center; font-size: 2.6rem; color: var(--pink); }
.product .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product h3 { margin: 0; font-size: 1.05rem; }
.product p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.price { font-weight: 900; font-size: 1.15rem; color: var(--acid); }

/* Cart */
.cart-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .t { flex: 1; font-weight: 700; }
.cart-grid { display: grid; gap: 22px; grid-template-columns: 1.5fr 1fr; align-items: start; }
@media (max-width: 820px) { .cart-grid { grid-template-columns: 1fr; } }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pay-methods span { font-size: .72rem; font-weight: 700; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--bg2); }
.method-pick { display: grid; gap: 8px; margin-top: 10px; }
.method-pick label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--text); font-size: .95rem; }
.method-pick input { width: auto; }
.method-pick label:has(input:checked) { border-color: var(--acid); background: rgba(182,255,0,.06); }
.total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 900; margin: 14px 0; }

/* Forum */
.thread-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.thread-row:last-child { border-bottom: 0; }
.thread-row a.title { font-weight: 700; color: var(--text); }
.post { padding: 16px 0; border-bottom: 1px solid var(--line); }
.post .meta { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.post .body { white-space: pre-wrap; word-wrap: break-word; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.tabs button { background: var(--bg2); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 600; }
.tabs button.on { color: #0a0a0d; background: var(--acid); border-color: var(--acid); }

/* Admin */
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.table-scroll { overflow-x: auto; }
.two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }

/* Chat widget */
#chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--pink); color: #fff; font-size: 1.5rem; box-shadow: 0 8px 30px rgba(255,46,147,.45); }
#chat-box { position: fixed; right: 20px; bottom: 90px; z-index: 90; width: min(380px, calc(100vw - 40px)); height: min(540px, 70vh); display: none; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
#chat-box.open { display: flex; }
#chat-box header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
#chat-box header button { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
#chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: .93rem; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: var(--bg2); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--acid); color: #0a0a0d; align-self: flex-end; border-bottom-right-radius: 4px; }
#chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
#chat-form input { flex: 1; }
.chat-discord { padding: 0 14px 10px; }
.chat-discord a { display: block; text-align: center; }

footer.site { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }

/* TSS visual identity */
body { background-image: radial-gradient(ellipse at 80% 0%, #28113880, transparent 55%); }
.wrap { max-width: 1280px; padding-inline: 28px; }
main.wrap { padding-top: 42px; padding-bottom: 90px; }
header.site .wrap { height: 82px; gap: 24px; }
.logo { display:flex; align-items:center; gap:10px; font-size:.78rem; line-height:1.25; letter-spacing:.06em; flex-shrink:0; }
.brand-image { width:88px; height:50px; object-fit:contain; }
.brand-name { max-width:100px; }
nav.main { justify-content:center; }
nav.main a.active { color:var(--acid); background:#c1a0ff10; }
.hdr-right { flex-wrap:wrap; }
.hdr-right .muted { max-width:110px; overflow:hidden; text-overflow:ellipsis; }
.btn { border-radius:6px; padding:13px 20px; }
.btn.sm { padding:8px 12px; }
a, button, input, select, textarea { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:2px solid var(--acid); outline-offset:5px; }
.skip-link { position:fixed; top:8px; left:12px; z-index:110; padding:12px; background:var(--acid); color:var(--bg); transform:translateY(-160%); }
.skip-link:focus { transform:translateY(0); }
.eyebrow { font-size:.7rem; font-weight:700; letter-spacing:.18em; color:var(--acid); margin:0 0 24px; }
.hero-station { display:grid; grid-template-columns:1.05fr 1fr; gap:18px; align-items:center; padding:50px 0 80px; }
.hero h1 { font-size:clamp(2.7rem,5.2vw,4.5rem); line-height:1.02; letter-spacing:-.055em; }
.hero h1 em { color:var(--acid); }
.hero .lead { font-size:1.05rem; max-width:490px; margin:25px 0; }
.hero-actions { gap:12px; }
.hero-note { margin-top:32px; font-size:.58rem; letter-spacing:.12em; color:var(--muted); }
.hero-note span { padding:0 8px; color:var(--pink); }
.hero-art { margin:0; min-width:0; position:relative; }
.hero-art img { display:block; width:100%; height:auto; mix-blend-mode:screen; }
.hero-art figcaption { display:flex; justify-content:space-between; gap:10px; border-top:1px solid var(--line); padding-top:15px; font-size:.57rem; letter-spacing:.16em; color:var(--muted); }
.catalog-section { border-top:1px solid var(--line); padding-top:38px; }
.section-heading { display:flex; justify-content:space-between; gap:20px; align-items:end; margin-bottom:25px; }
.section-heading .eyebrow { margin-bottom:12px; }
h2 { font-size:clamp(1.5rem,2.6vw,2.1rem); letter-spacing:-.035em; line-height:1.2; }
.text-link { font-size:.9rem; font-weight:600; }
.empty { grid-column:1/-1; border:1px dashed var(--line); border-radius:8px; padding:44px 24px; }
.empty h2 { font-size:1.3rem; color:var(--text); }
.workflow { display:grid; grid-template-columns:1fr 1.2fr; gap:70px; padding:80px 0; }
.steps { list-style:none; padding:0; margin:0; }
.steps li { display:flex; gap:24px; padding:18px 0; border-bottom:1px solid var(--line); }
.steps li:first-child { padding-top:0; }
.steps li>span { color:var(--acid); font-size:.8rem; padding-top:4px; }
.steps h3 { margin:0 0 7px; font-size:1.05rem; }
.steps p { margin:0; color:var(--muted); font-size:.95rem; }
.community-banner { border:1px solid #68418b; padding:38px; background:linear-gradient(120deg,#23132f,#100c16); border-radius:10px; }
.community-banner .eyebrow { margin-bottom:16px; }
.community-banner h2 { max-width:650px; }
.community-banner .row { margin-top:24px; gap:24px; }
.page-intro { padding:30px 0; }
.shop-filters { display:grid; grid-template-columns:2fr 1fr 1fr; gap:18px; padding:20px; background:var(--bg2); border:1px solid var(--line); border-radius:8px; }
.shop-filters label { margin-top:0; }
.product { transition:border-color .2s, transform .2s; }
.product:hover { border-color:#8054a7; transform:translateY(-3px); }
.product .cover { background:radial-gradient(ellipse at center,#46235e,#14101d); color:var(--acid); }
.product .body { padding:22px; gap:12px; }
#chat-fab { background:#7037a8; box-shadow:0 8px 30px #9b4aff30; }
#chat-form input { min-width:0; }
footer.site { padding:30px 0 95px; }
@media (max-width:1000px) { .brand-name {display:none;} header.site .wrap {gap:10px;} nav.main a {padding:8px;} }
@media (max-width:780px) {
  header.site .wrap { height:auto; justify-content:space-between; padding-block:10px; }
  nav.main { order:3; width:100%; flex-basis:100%; justify-content:flex-start; }
  .wrap { padding-inline:20px; }
  .hero-station { grid-template-columns:1fr; padding:20px 0 45px; gap:28px; }
  .hero-art { max-width:540px; width:100%; justify-self:center; }
  .hero h1 { font-size:clamp(2.6rem,9vw,4.5rem); }
  .workflow { grid-template-columns:1fr; gap:28px; padding:50px 0; }
  .shop-filters { grid-template-columns:1fr 1fr; }
  .shop-filters>div:first-child {grid-column:1/-1;}
  .section-heading {align-items:start; flex-direction:column;}
  .community-banner {padding:25px;}
}
@media (max-width:420px) { .hdr-right {gap:6px;} .hdr-right .muted {display:none;} .brand-image {width:62px;} .shop-filters {grid-template-columns:1fr;} .grid {grid-template-columns:minmax(0,1fr);} .hero-note {line-height:2;} }
@media (prefers-reduced-motion:reduce) { html {scroll-behavior:auto;} *, *::before, *::after {transition:none!important; animation:none!important;} }

/* Daily drop and station control */
.accent {color:var(--acid);font-style:normal;}
.small {font-size:.82rem;}
.auth-card {max-width:540px;margin:30px auto;}
.daily-drop-banner {display:flex;gap:28px;align-items:center;padding:30px;margin-top:50px;border:1px solid #74449a;border-radius:12px;color:var(--text);background:linear-gradient(115deg,#34144c,#14101c);transition:border-color .2s,transform .2s;}
.daily-drop-banner:hover {text-decoration:none;border-color:var(--acid);transform:translateY(-3px);}
.daily-drop-banner .eyebrow {margin:0 0 10px;}.daily-drop-banner h2{margin:0 0 10px;}.daily-drop-banner p{margin:0;color:var(--muted);}.drop-symbol{font-size:4rem;color:var(--acid);}.drop-arrow{margin-left:auto;font-size:2rem;}
.spin-layout {display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center;padding:30px 0 65px;}
.spin-copy h1 {font-size:clamp(2.8rem,5.4vw,4.8rem);letter-spacing:-.06em;}
.spin-facts {display:flex;flex-wrap:wrap;gap:10px;margin:25px 0;}.spin-facts span{font-size:.72rem;border:1px solid var(--line);padding:6px 10px;border-radius:5px;}
.spin-controls {display:flex;flex-wrap:wrap;gap:12px;}.spin-result{min-height:80px;padding:14px 0;}.spin-result strong{font-size:1.2rem;}.spin-result.won{color:var(--acid);}
.wheel-stage {position:relative;aspect-ratio:1;width:100%;max-width:500px;justify-self:center;display:grid;place-items:center;isolation:isolate;}
.wheel-stage::before {content:'';position:absolute;inset:5%;background:#a94fff28;border-radius:50%;filter:blur(30px);z-index:-1;}
.wheel-orbit {position:absolute;inset:0;border:1px solid #8e5aae50;border-radius:50%;}.wheel-orbit::before,.wheel-orbit::after{content:'✦';position:absolute;left:48%;top:-15px;font-size:20px;color:var(--acid);}.wheel-orbit::after{top:auto;bottom:-15px;}
.lucky-wheel {position:absolute;inset:5%;border-radius:50%;border:8px solid #291a39;outline:1px solid #b88bda;box-shadow:inset 0 0 0 2px #b282db80,0 0 40px #9b4aff24;background:repeating-conic-gradient(from -22.5deg,#5e2c83 0deg 44deg,#c9a3ff 44deg 45deg,#271332 45deg 89deg,#c9a3ff 89deg 90deg);transition:transform 2.6s cubic-bezier(.12,.75,.15,1);}
.wheel-markers {position:absolute;inset:8%;border:1px dashed #c29be188;border-radius:50%;}.wheel-markers span{position:absolute;color:#e2c4ff;font-size:26px;}.wheel-markers span:nth-child(1){top:0;left:47%;}.wheel-markers span:nth-child(2){right:0;top:45%;}.wheel-markers span:nth-child(3){bottom:0;left:47%;}.wheel-markers span:nth-child(4){left:0;top:45%;}
.wheel-center {width:45%;height:45%;z-index:2;border-radius:50%;background:radial-gradient(circle,#24132e,#0b080f);box-shadow:0 0 0 8px #0c0814,0 0 0 9px #9870b4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;}.wheel-center span{font-size:clamp(.35rem,.65vw,.5rem);letter-spacing:.15em;color:var(--acid);}.wheel-center strong{font-size:clamp(1.4rem,3.8vw,3.2rem);line-height:.95;letter-spacing:-.05em;}
.wheel-pointer {position:absolute;top:1%;left:calc(50% - 12px);z-index:3;width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:30px solid #e3cbff;filter:drop-shadow(0 2px 7px #c69cfa);}
.prize-cover{width:100%;aspect-ratio:1.5;object-fit:cover;border-radius:6px;margin-bottom:16px;}.prize-icon{font-size:2.6rem;color:var(--acid);margin-bottom:16px;}.prize-card h3{margin-bottom:12px;}.chance{font-size:1.6rem;font-weight:900;}.pill.rare{color:#f9ce70;border-color:#f9ce7066;background:#f9ce7009;}
.winners-section{padding:60px 0 30px;}.winner-row{display:flex;gap:20px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);}.winner-row p{margin:4px 0 0;}.winner-star{font-size:1.8rem;color:var(--acid);}.winner-row time{margin-left:auto;color:var(--muted);font-size:.8rem;}.winner-row strong{overflow-wrap:anywhere;}.spin-rules{padding:22px;border:1px solid var(--line);border-radius:8px;color:var(--muted);}.spin-rules summary{cursor:pointer;color:var(--text);font-weight:700;}
.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:28px 0;}.stat{padding:20px;border:1px solid var(--line);border-radius:8px;display:flex;flex-direction:column;}.stat strong{font-size:2rem;color:var(--acid);}.stat span{color:var(--muted);font-size:.85rem;}#prize-body{margin-top:20px;}.prize-card{min-width:0;}#p-spin table{margin-top:30px;}
@media(max-width:1000px){.spin-layout{gap:25px;}nav.main a{font-size:.83rem;padding:7px;}}
@media(max-width:780px){.spin-layout{grid-template-columns:1fr;}.wheel-stage{max-width:400px;grid-row:2;}.wheel-center strong{font-size:2.4rem;}.wheel-center span{font-size:.42rem;}.daily-drop-banner{padding:22px;gap:15px;}.drop-symbol{font-size:2.6rem;}.daily-drop-banner h2{font-size:1.3rem;}.winner-row{gap:12px;flex-wrap:wrap;}.winner-row time{margin-left:42px;}.admin-stats{grid-template-columns:1fr 1fr;}}
