/* ===== Design tokens ===== */
:root {
  --bg: #0a0a0b;
  --bg-alt: #101012;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --text: #f5f5f7;
  --text-dim: #8b8b92;
  --accent: #ff9f1c;        /* MIKAN orange */
  --accent-strong: #ffb347;
  --accent-soft: rgba(255, 159, 28, 0.12);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Poppins", "Inter", sans-serif; line-height: 1.1; }
a { color: inherit; text-decoration: none; }
.accent { color: var(--accent); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__logo { font-family: "Poppins"; font-weight: 800; letter-spacing: 0.5px; display: inline-flex; align-items: center; gap: 9px; font-size: 1.05rem; }
.nav__logo-img { width: 26px; height: 26px; }
.nav__right { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.nav__links { display: flex; gap: clamp(14px, 3vw, 30px); }
.nav__links a { color: var(--text-dim); font-weight: 500; font-size: 0.92rem; letter-spacing: 0.2px; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }

/* ===== Language switch ===== */
.lang-switch { display: flex; align-items: center; gap: 6px; }
.lang-switch__icon { font-size: 0.9rem; opacity: 0.7; }
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lang-select:hover { border-color: var(--accent); }
.lang-select option { background: var(--surface-2); color: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(40px, 6vh, 72px) 20px clamp(32px, 5vh, 56px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 60% at 50% 0%, rgba(255, 159, 28, 0.14), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 760px; }
.hero__icon { width: clamp(48px, 6vw, 66px); height: auto; margin-bottom: 14px; filter: drop-shadow(0 8px 20px rgba(255, 159, 28, 0.4)); }
.hero__eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 18px; }
.hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0 0 10px;
  color: var(--text);
}
.hero__subtitle { color: var(--text-dim); font-size: clamp(0.95rem, 2vw, 1.15rem); max-width: 620px; margin: 0 auto 24px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #14110a; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, 0.22); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Sections ===== */
/* Category layout: each section is a category (heading + grid of panels). */
main { max-width: var(--maxw); margin: 0 auto; padding: clamp(24px, 4vw, 44px) clamp(20px, 5vw, 32px); display: flex; flex-direction: column; gap: clamp(34px, 5vw, 56px); }
section { scroll-margin-top: 78px; }
.cat__title { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -0.5px; margin: 0 0 16px; }
.cat__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.cat__grid--wide { grid-template-columns: 1fr; }
.game { width: 100%; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: #0f0f12; touch-action: none; cursor: crosshair; }
.game canvas { display: block; width: 100%; height: 100%; }

.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 68px) clamp(20px, 5vw, 32px); }
.section--alt { background: var(--bg-alt); max-width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -1px; margin: 0 0 22px; }
.section__lead { color: var(--text-dim); font-size: 1.05rem; margin: 0 0 24px; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 159, 28, 0.5); background: var(--surface-2); }
.card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.card__badge--alt { color: var(--accent); background: var(--accent-soft); }
.card h3 { margin: 0 0 10px; font-size: 1.35rem; }
.card p { color: var(--text-dim); margin: 0 0 20px; }
.card__link { color: var(--accent); font-weight: 700; font-size: 0.95rem; transition: gap 0.2s; }
.card__link:hover { text-decoration: underline; }

/* ===== Channels / latest videos ===== */
.channels { display: grid; gap: 20px; scroll-margin-top: 78px; }
.channel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); scroll-margin-top: 78px; }
.channel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.channel__head:last-child { margin-bottom: 0; }
.channel__id { display: flex; align-items: center; gap: 12px; }
.channel__id .card__badge { margin-bottom: 0; }
.channel__name { font-size: 1.4rem; margin: 0; }
.channel__logo { width: 24px; height: 24px; flex: none; }
.card__title { display: flex; align-items: center; gap: 8px; }
.card__logo { width: 22px; height: 22px; flex: none; }
.channel__sub { color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.channel__sub:hover { text-decoration: underline; }
.channel__videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.channel__cover { display: block; max-width: 520px; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.channel__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.channel__cover:hover img { transform: scale(1.03); }
.channel__loading { color: var(--text-dim); font-size: 0.95rem; }
.video { display: block; }
.video__thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface); }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.video:hover .video__thumb img { transform: scale(1.04); }
.video__title {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 10px 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.video:hover .video__title { color: var(--accent); }
.video-fallback { color: var(--accent); font-weight: 700; }

/* ===== Fourthwall products ===== */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; margin-bottom: 28px; }
.products:empty { display: none; }
.product { display: block; }
.product__thumb { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--surface); }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.product:hover .product__thumb img { transform: scale(1.05); }
.product__name {
  color: var(--text); font-size: 0.85rem; line-height: 1.35; margin: 9px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product__price { color: var(--text-dim); font-size: 0.8rem; margin: 3px 0 0; }

/* ===== Feature (Roblox) ===== */
.section--feature { max-width: var(--maxw); margin: 0 auto; padding: clamp(10px, 2vw, 20px) clamp(20px, 5vw, 32px); }
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(22px, 3vw, 40px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 26px);
}
.feature__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature__placeholder { color: var(--text-dim); font-size: 0.95rem; }
.tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent); background: var(--accent-soft);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 16px;
}
.feature__body h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -1px; margin: 0 0 14px; }
.feature__body p { color: var(--text-dim); font-size: 1.05rem; margin: 0 0 28px; }

/* ===== Embed ===== */
.embed { border-radius: var(--radius); overflow: hidden; }
.embed__placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 6px;
  background: var(--surface);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-dim);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 56px 20px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
}
.footer__links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.footer__contact { color: var(--text-dim); }
.footer__links a { color: var(--accent); font-weight: 600; }
.footer__links a:hover { text-decoration: underline; }
.footer__note { font-size: 0.85rem; opacity: 0.7; }

/* ===== Legal / policy page ===== */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 32px); }
.legal__back { color: var(--accent); font-weight: 600; display: inline-block; margin-bottom: 30px; }
.legal__back:hover { text-decoration: underline; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -1px; margin: 0 0 6px; }
.legal__updated { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 32px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p { color: var(--text); margin: 0 0 14px; }
.legal ul { color: var(--text); padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 8px; }
.legal__contact a { color: var(--accent); font-weight: 600; }
.legal__note { color: var(--text-dim); font-size: 0.9rem; margin-top: 44px; border-top: 1px solid var(--line); padding-top: 22px; }
.policy-callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 26px 0 8px;
  color: var(--text);
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .nav__links { display: none; }
}
