/* Tho enterprises Store — shared design system */
:root {
  --bg: #05060a;
  --bg-elev: #0c0e14;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --brand: #0071e3;
  --accent: #00d1b2;
  --cyan: #12c2e9;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); }

body {
  font-family: var(--font);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(0, 113, 227, 0.18), transparent 55%),
    radial-gradient(700px 400px at 90% 0%, rgba(0, 209, 178, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

.store-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.store-hero {
  text-align: center;
  padding: 28px 0 48px;
}

.store-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.store-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.store-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.store-hero h1 .textlogo,
.textlogo {
  font-family: "Comfortaa", var(--font);
}

.store-hero p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 36rem;
  margin: 0 auto 28px;
}

.store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 36px;
}

.store-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s var(--ease), border-color 0.25s ease, transform 0.25s var(--ease);
}

.store-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-1px);
}

.store-tab.active {
  background: rgba(0, 113, 227, 0.28);
  border-color: rgba(0, 113, 227, 0.55);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: linear-gradient(180deg, rgba(255,255,255,0.22), transparent 55%), var(--brand);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--card-border);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .category-grid { grid-template-columns: 1fr; }
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--bg-elev) center/cover no-repeat;
  box-shadow: var(--shadow);
  color: #fff;
  isolation: isolate;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.82) 100%);
  z-index: 0;
}

.category-card > * { position: relative; z-index: 1; }

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.55);
  color: #fff;
}

.category-card .tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 10px;
}

.category-card h2 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.category-card p {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  max-width: 28ch;
  margin-bottom: 16px;
}

.section {
  margin: 48px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.025em;
  font-weight: 650;
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow);
  padding: 24px;
}

.featured {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
}

.featured-art {
  min-height: 280px;
  border-radius: var(--radius);
  background: #111 center/cover no-repeat;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.featured-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), transparent 55%);
}

.featured-body h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -0.03em;
  margin: 8px 0 10px;
}

.featured-body p {
  color: var(--muted);
  margin-bottom: 18px;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.game-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: var(--text);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 194, 233, 0.35);
  color: #fff;
  background: rgba(255,255,255,0.07);
}

.game-card .thumb {
  aspect-ratio: 16 / 10;
  background: #151821 center/cover no-repeat;
  border-bottom: 1px solid var(--card-border);
}

.game-card .label {
  padding: 12px 12px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.link-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.link-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.02em;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}

.link-tile:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateY(-2px);
}

.noise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.noise-card {
  border-radius: var(--radius);
  min-height: 110px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.25s var(--ease), filter 0.25s ease;
}

.noise-card:hover { transform: translateY(-3px); color: #fff; filter: brightness(1.08); }
.noise-card span { font-size: 12px; font-weight: 500; opacity: 0.8; margin-bottom: 6px; }

.embed-box input[type="text"],
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}

.embed-box input:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(0, 113, 227, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

.embed-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.embed-row input { flex: 1; min-width: 220px; }

#videoContainer iframe,
.player-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  background: #000;
}

.player-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 18px;
}

@media (max-width: 860px) {
  .player-layout { grid-template-columns: 1fr; }
}

.track-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.track-list button,
.controls button {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.track-list button:hover,
.controls button:hover {
  background: rgba(255,255,255,0.1);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.controls button { width: auto; }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200000;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open { display: flex; }

.modal-card {
  width: min(100%, 420px);
  background: #111318;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.modal-card h3 { margin-bottom: 10px; letter-spacing: -0.02em; }
.modal-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.store-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--card-border);
  font-size: 12px;
  color: var(--muted);
}
