:root {
  --ink: #0a0f12;
  --paper: #f3f2ec;
  --muted: #5b6366;
  --signal: #e7ff19;
  --line: #d8dad3;
  --card-shadow: 0 18px 50px rgba(10, 15, 18, 0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 Inter, Arial, sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  padding: 22px max(20px, calc((100vw - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: #fff;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.site-header .brand img {
  width: 150px;
  height: auto;
}
.site-header nav a {
  margin-left: 22px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font: 700 12px/1 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.site-header nav a:hover { color: var(--signal); }

.hero {
  padding: 90px max(20px, calc((100vw - 1160px) / 2)) 60px;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #767f00;
  font: 700 11px/1 Arial, sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 18px;
  font: 900 clamp(34px, 6vw, 58px)/1.05 "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}
.hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}

.install-carousel {
  max-width: 1160px;
  margin: 0 auto 12px;
  padding: 34px 20px 0;
}
.carousel-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font: 800 10px/1 Arial, sans-serif;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.carousel-topline p { margin: 0; }
.carousel-topline b { color: var(--ink); }
.carousel-viewport {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: 22px;
  background: #10161a;
  box-shadow: 0 25px 70px rgba(10,15,18,.18);
}
.install-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity .65s ease, transform 1.1s ease, visibility .65s;
}
.install-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); z-index: 1; }
.install-slide > img { width: 100%; height: 100%; object-fit: cover; }
.slide-ragnarok > img { object-position: 62% center; }
.slide-arena > img { object-position: center 48%; }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(7,11,13,.95),rgba(7,11,13,.66) 46%,rgba(7,11,13,.08) 78%),linear-gradient(0deg,rgba(7,11,13,.55),transparent 55%); }
.slide-copy { position: absolute; z-index: 2; left: clamp(30px,6vw,74px); top: 50%; width: min(570px,58%); color: #fff; transform: translateY(-50%); }
.slide-kicker { display: inline-block; margin-bottom: 18px; color: var(--signal); font: 800 10px/1 Arial,sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.slide-copy h2 { margin: 0; font: 900 clamp(47px,6.2vw,79px)/.82 "Arial Narrow",Arial,sans-serif; letter-spacing: -2px; text-transform: uppercase; }
.slide-copy h2 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px rgba(255,255,255,.85); }
.slide-copy p { max-width: 480px; margin: 24px 0; color: rgba(255,255,255,.76); font-size: 15px; }
.slide-actions { display: flex; align-items: center; gap: 12px; }
.install-button,.guide-button { min-height: 50px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font: 900 10px/1 Arial,sans-serif; letter-spacing: .7px; text-transform: uppercase; }
.install-button { min-width: 168px; justify-content: space-between; gap: 32px; color: var(--ink); background: var(--signal); }
.install-button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.install-button b { font-size: 16px; }
.guide-button { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.guide-button:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.slide-number { position: absolute; z-index: 2; right: 35px; bottom: 15px; color: rgba(255,255,255,.18); font: 900 120px/.8 "Arial Narrow",Arial,sans-serif; }
.carousel-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 58px; height: 18px; padding: 7px 0; border: 0; background: transparent; cursor: pointer; }
.carousel-dots button span { display: block; height: 3px; background: #c5c7c0; transition: background .2s, width .2s; }
.carousel-dots button.is-active span { background: var(--ink); }
.carousel-arrows { display: flex; gap: 7px; }
.carousel-arrows button { width: 45px; height: 45px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; font-size: 18px; transition: .2s; }
.carousel-arrows button:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

.game-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 20px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(10, 15, 18, 0.04);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: #bfc2b9;
  box-shadow: var(--card-shadow);
}
.game-card.picker-open { z-index: 20; transform: translateY(-6px); box-shadow: var(--card-shadow); }
.game-card .card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
  background: #11161a;
}
.game-card .card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,12,15,.42), transparent 48%); pointer-events: none; }
.game-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.game-card:hover .card-media img { transform: scale(1.035); }
.card-ragnarok .card-media img { object-position: 62% center; }
.card-arknights .card-media img { object-position: center 20%; }
.game-card .card-body {
  padding: 25px 25px 26px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.game-card .card-kicker {
  width: fit-content;
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 8px;
  color: #5d6500;
  background: #f2f6c9;
  border-radius: 999px;
  font: 800 9px/1 Arial, sans-serif;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.card-ragnarok .card-kicker { color: #9c244a; background: #ffe2e9; }
.card-arknights .card-kicker { color: #246a62; background: #dff6f1; }
.game-card h2 {
  min-height: 62px;
  margin: 0 0 11px;
  font: 900 29px/.98 "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: -.3px;
}
.game-card h2 a {
  text-decoration: none;
  color: inherit;
}
.game-card h2 a:hover { color: #767f00; }
.game-card p {
  min-height: 90px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.card-actions {
  position: relative;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn {
  width: 100%;
  min-height: 46px;
  padding: 12px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid var(--ink);
  text-decoration: none;
  font: 800 10px/1 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: #000; }
.btn-secondary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}
.btn-secondary:hover { filter: brightness(1.06); }
.btn-secondary b { font-size: 14px; }
.platform-picker-wrap { position: relative; min-width: 0; }
.platform-trigger b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--ink); font-size: 15px; transition: transform .2s; }
.platform-trigger[aria-expanded="true"] b { transform: rotate(45deg); }
.platform-picker[hidden] { display: none; }
.platform-picker {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: calc(100% + 12px);
  width: 292px;
  padding: 11px;
  color: #fff;
  background: #10161a;
  border: 1px solid #303a3f;
  border-radius: 14px;
  box-shadow: 0 22px 55px rgba(5,10,13,.36);
  animation: picker-in .2s ease;
}
.platform-picker::after { content: ''; position: absolute; right: 42px; bottom: -7px; width: 13px; height: 13px; background: #10161a; border-right: 1px solid #303a3f; border-bottom: 1px solid #303a3f; transform: rotate(45deg); }
@keyframes picker-in { from { opacity: 0; transform: translateY(7px) scale(.98); } to { opacity: 1; transform: none; } }
.picker-heading { padding: 4px 3px 10px 5px; display: flex; align-items: center; justify-content: space-between; color: #9ea8ad; font: 800 9px/1 Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.picker-heading button { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #293238; cursor: pointer; font-size: 19px; line-height: 1; }
.platform-option  { min-height: 64px; margin-top: 7px; padding: 10px 12px; display: grid; grid-template-columns: 35px 1fr 20px; align-items: center; gap: 11px; border: 1px solid #354147; border-radius: 9px; color: #fff; background: #192126; text-decoration: none; transition: transform .15s, border-color .15s, background .15s; }
.platform-option:hover { transform: translateX(3px); border-color: var(--signal); background: #202b30; }
.platform-option > b { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; color: var(--ink); background: var(--signal); font: 900 13px/1 Arial, sans-serif; }
.platform-option.steam > b { color: #fff; background: #263c4b; }
.platform-option span { display: flex; flex-direction: column; gap: 5px; font: 900 13px/1 Arial, sans-serif; text-transform: uppercase; }
.platform-option small { color: #88949a; font: 700 7px/1 Arial, sans-serif; letter-spacing: .07em; }
.platform-option i { color: #7f8b91; font-style: normal; }

.site-footer {
  padding: 30px max(20px, calc((100vw - 1160px) / 2)) 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .hero { padding-top: 65px; padding-bottom: 45px; }
  .carousel-viewport { min-height: 590px; }
  .install-slide > img { object-position: 66% center; }
  .slide-arena > img { object-position: 62% center; }
  .slide-shade { background: linear-gradient(0deg,rgba(7,11,13,.98) 5%,rgba(7,11,13,.68) 62%,rgba(7,11,13,.12)); }
  .slide-copy { left: 24px; right: 24px; top: auto; bottom: 30px; width: auto; transform: none; }
  .slide-copy h2 { font-size: clamp(42px,14vw,62px); }
  .slide-copy p { margin: 18px 0; font-size: 13px; }
  .slide-number { top: 20px; right: 20px; bottom: auto; font-size: 68px; }
  .slide-actions { align-items: stretch; flex-direction: column; }
  .install-button,.guide-button { width: 100%; }
  .game-grid { grid-template-columns: 1fr; }
  .site-header nav a { margin-left: 14px; }
  .game-card h2, .game-card p { min-height: 0; }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .platform-picker { right: 0; width: min(292px, calc(100vw - 52px)); }
}

@media (prefers-reduced-motion: reduce) {
  .install-slide { transition: none; }
}
