
* { box-sizing: border-box; }

:root {
  --purple: #6937d8;
  --text: #202636;
  --muted: #687184;
  --border: #e7e9ef;
  --container: 1180px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 78px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #eef0f4;
}

.header-inner {
  width: min(calc(100% - 48px), var(--container));
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-text strong { font-size: 14px; line-height: 1.15; font-weight: 800; }
.brand-text small { color: #7d8595; font-size: 10px; line-height: 1.15; }

.main-nav { display: flex; align-items: center; gap: 27px; }
.main-nav a {
  color: #6d7587;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--purple); }

.arcade-intro {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  padding: 60px 0 30px;
}

.eyebrow {
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.arcade-intro h1 {
  margin: 9px 0 9px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -2px;
}

.arcade-intro p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  color: #697285;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.back-link:hover { color: var(--purple); }

.skill-hero {
  width: min(calc(100% - 48px), var(--container));
  min-height: 240px;
  margin: 0 auto 25px;
  padding: 35px 40px;
  display: grid;
  grid-template-columns: 1fr 230px;
  align-items: center;
  gap: 25px;
  border-radius: 25px;
  border: 1px solid var(--skill-border);
  background: var(--skill-bg);
  overflow: hidden;
}

.skill-hero h1 {
  margin: 0 0 10px;
  color: var(--skill-color);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -2.5px;
}

.skill-hero p {
  max-width: 630px;
  margin: 0;
  color: #475063;
  font-size: 14px;
  line-height: 1.7;
}

.hero-character {
  height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-character img {
  max-width: 100%;
  max-height: 210px;
  object-fit: contain;
}

.section-heading {
  width: min(calc(100% - 48px), var(--container));
  margin: 42px auto 17px;
}
.section-heading h2 { margin: 0 0 5px; font-size: 22px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }


/* =====================================================
   GAME CARDS — unified soft skill-card style
===================================================== */

.game-grid {
  --game-color: #079d73;
  --game-color-dark: #068a64;
  --game-bg: #eaf8f4;
  --game-border: #dcefe9;
  --game-tag-bg: #eaf8f4;
  --game-tag-color: #07966d;

  width: min(calc(100% - 48px), var(--container, 1180px));
  margin: 0 auto 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.game-card {
  position: relative;
  min-height: 280px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--game-border);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  box-shadow: 0 10px 30px rgba(32, 38, 54, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--game-bg);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.game-card::after {
  content: none !important;
  display: none !important;
}

.game-card--playable:hover {
  transform: translateY(-4px);
  border-color: var(--game-color);
  box-shadow: 0 16px 40px rgba(32, 38, 54, 0.1);
}

.game-card-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 48px;
  width: 48px !important;
  height: 48px !important;
  max-width: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--game-color);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  margin-bottom: 4px;
}

.game-tag {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--game-tag-bg);
  color: var(--game-tag-color);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.game-card h3 {
  position: relative;
  z-index: 1;
  margin: 12px 0 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: #202636;
}

.game-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #687184;
  font-size: 13px;
  line-height: 1.65;
}

.game-meta {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 16px;
  color: #8a92a2;
  font-size: 11px;
  font-weight: 600;
}

.game-launch {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-end;
  margin-top: 16px;
  min-height: 48px;
  min-width: 140px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--game-color);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.game-launch span {
  font-size: 18px;
  line-height: 1;
}

.game-launch:hover {
  background: var(--game-color-dark);
  transform: translateY(-1px);
}

.game-launch:visited {
  color: #ffffff !important;
}

/* Locked */
.game-card:not(.game-card--playable),
.game-card[aria-disabled="true"] {
  border-color: #e7e9ef;
  background: #f7f8fb;
  box-shadow: none;
}

.game-card:not(.game-card--playable)::before,
.game-card[aria-disabled="true"]::before {
  background: #eef0f4;
}

.game-card:not(.game-card--playable) .game-card-icon,
.game-card[aria-disabled="true"] .game-card-icon {
  width: 48px !important;
  height: 48px !important;
  background: #c5cad6;
  box-shadow: none;
}

.game-card:not(.game-card--playable) .game-tag,
.game-card[aria-disabled="true"] .game-tag {
  background: #eef0f4;
  color: #8a92a2;
}

.game-card:not(.game-card--playable) h3,
.game-card[aria-disabled="true"] h3 {
  color: #6d7587;
}

.coming-soon {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #929aaa;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 0; }
}


/* Skill color tokens (same system as Listening) */
.vocabulary { --skill-color:#5e2fc8; --skill-bg:#f1edff; --skill-border:#e6ddfa; }
.grammar    { --skill-color:#07966d; --skill-bg:#eaf8f4; --skill-border:#dcefe9; }
.listening  { --skill-color:#176fd0; --skill-bg:#edf6ff; --skill-border:#dbe9fa; }
.reading    { --skill-color:#ed3036; --skill-bg:#fff0f0; --skill-border:#f8dddd; }
.writing    { --skill-color:#ed7d00; --skill-bg:#fff4e6; --skill-border:#fae5ca; }
.speaking   { --skill-color:#0795a7; --skill-bg:#eaf9fb; --skill-border:#d7edf0; }

.skill-hero { --skill-color:#07966d; --skill-bg:#eaf8f4; --skill-border:#dcefe9; }
.skill-hero.grammar { --skill-color:#07966d; --skill-bg:#eaf8f4; --skill-border:#dcefe9; }
.skill-hero.vocabulary { --skill-color:#5e2fc8; --skill-bg:#f1edff; --skill-border:#e6ddfa; }
.skill-hero.listening { --skill-color:#176fd0; --skill-bg:#edf6ff; --skill-border:#dbe9fa; }

.grammar .eyebrow,
.grammar .back-link { color: #07966d; }
.grammar .back-link:hover { color: #057a58; }

@media (max-width: 900px) {
  .skill-hero { grid-template-columns: 1fr 180px; }
}
@media (max-width: 700px) {
  .skill-hero {
    width: min(calc(100% - 28px), var(--container, 1180px));
    padding: 28px;
    grid-template-columns: 1fr;
  }
  .hero-character { height: 170px; }
  .hero-character img { max-height: 170px; }
}
