*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #e8eeff;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(90, 120, 200, 0.35), transparent 55%),
    radial-gradient(ellipse at 80% 100%, rgba(40, 60, 120, 0.4), transparent 50%),
    linear-gradient(160deg, #0a1230 0%, #141f4a 45%, #0d1638 100%);
}

.landing {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.landing-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.landing-header h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #ffe596;
  letter-spacing: 0.02em;
}

.landing-tagline {
  margin: 0;
  color: #b8c4e8;
  font-size: 1rem;
  line-height: 1.45;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  color: #9aa8d0;
}

.breadcrumb button {
  border: none;
  background: none;
  padding: 0;
  color: #c8d4f8;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb button:hover {
  color: #ffe596;
}

.breadcrumb-sep {
  opacity: 0.5;
}

.breadcrumb-current {
  color: #ffe596;
}

.landing-main h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: #ffe596;
  font-weight: 700;
}

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

.choice-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 2px solid rgba(255, 229, 150, 0.35);
  background: rgba(10, 18, 48, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}

.choice-card:hover:not(:disabled) {
  border-color: #ffe596;
  background: rgba(16, 26, 62, 0.95);
  transform: translateY(-2px);
}

.choice-card:disabled,
.choice-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.choice-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffe596;
}

.choice-card-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #b8c4e8;
  flex: 1;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-available {
  background: rgba(120, 220, 150, 0.2);
  color: #8ee8a8;
  border: 1px solid rgba(120, 220, 150, 0.45);
}

.badge-soon {
  background: rgba(255, 229, 150, 0.12);
  color: #ffe596;
  border: 1px solid rgba(255, 229, 150, 0.35);
}

.skill-group {
  margin-bottom: 1.75rem;
}

.skill-group h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #9eb0e0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skill-card {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 229, 150, 0.22);
  background: rgba(10, 18, 48, 0.7);
}

.skill-card-main {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.skill-icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 229, 150, 0.08);
  border: 1px solid rgba(255, 229, 150, 0.28);
}

.skill-icon-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: linear-gradient(
    145deg,
    rgba(255, 229, 150, 0.12),
    rgba(120, 150, 255, 0.12)
  );
  border: 1px dashed rgba(255, 229, 150, 0.28);
}

.skill-card-body {
  flex: 1 1 auto;
  min-width: 0;
}

.skill-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.skill-code {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffe596;
  background: rgba(255, 229, 150, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.skill-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #c8d4f8;
}

.game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.game-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  border: 2px solid #ffe596;
  background: rgba(255, 229, 150, 0.1);
  color: #ffe596;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}

.game-link:hover {
  background: #ffe596;
  color: #1f2758;
}

.game-link span {
  font-weight: 400;
  font-size: 0.8rem;
  color: inherit;
  opacity: 0.85;
}

.skill-empty {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: #7a8ab8;
  font-style: italic;
}

.landing-note {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 229, 150, 0.08);
  border: 1px solid rgba(255, 229, 150, 0.2);
  font-size: 0.88rem;
  color: #b8c4e8;
  line-height: 1.45;
}

.game-tiles-section {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 229, 150, 0.18);
}

.game-tiles-section h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: #ffe596;
  font-weight: 700;
}

.content-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.25rem 0 1rem;
}

.content-filter-btn {
  border: 1px solid rgba(255, 229, 150, 0.35);
  background: rgba(10, 18, 48, 0.7);
  color: #c8d4f8;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.content-filter-btn:hover {
  border-color: #ffe596;
  color: #ffe596;
}

.content-filter-btn.active {
  background: rgba(255, 229, 150, 0.18);
  border-color: #ffe596;
  color: #ffe596;
}

.content-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.content-badge.badge-game {
  background: #3a7fd4;
  color: #fff;
}

.content-badge.badge-lesson {
  background: #e8892a;
  color: #fff8f0;
}

.game-tile-duration {
  margin: 0;
  font-size: 0.78rem;
  color: #ffb86c;
  font-weight: 700;
}

.skill-count {
  font-size: 0.72rem;
  color: #9aa8d0;
  font-weight: 700;
}

.game-link.lesson-link {
  border-color: #e8892a;
  background: rgba(232, 137, 42, 0.12);
  color: #ffc078;
}

.game-link.lesson-link:hover {
  background: #e8892a;
  color: #1f2758;
}

.game-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.game-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 2px solid rgba(255, 229, 150, 0.35);
  background: rgba(10, 18, 48, 0.88);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.game-tile:hover {
  border-color: #ffe596;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
}

.game-tile-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 229, 150, 0.15);
}

.game-tile-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.game-tile-art .tile-picture,
.continue-art .tile-picture,
.path-art .tile-picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 1rem 1.05rem;
}

.game-tile-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #ffe596;
  line-height: 1.3;
}

.game-tile-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9eb0e0;
}

.game-tile-meta span {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(158, 176, 224, 0.12);
  border: 1px solid rgba(158, 176, 224, 0.28);
}

.game-tile-skill {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #b8c4e8;
}

.game-tile-skill .skill-code {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffe596;
  background: rgba(255, 229, 150, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  vertical-align: middle;
}
