/* ============================================================
   Ramune & Penguin — site styles
   Design tokens taken verbatim from the handoff.
   ============================================================ */

:root {
  --bg: #eef7fd;
  --text: #0e2a3d;
  --head: #082334;
  --logo-text: #0d2c40;
  --sub: rgba(30, 72, 98, 0.8);
  --sub2: rgba(32, 75, 100, 0.78);
  --muted: rgba(45, 95, 125, 0.78);
  --cy: #0d8ecb;
  --cy-hover: #0b5f8c;
  --btn-a: #2fb3ea;
  --btn-b: #0e8fcc;
  --line: rgba(20, 130, 190, 0.18);
  --line-strong: rgba(20, 130, 190, 0.24);
  --line-soft: rgba(20, 130, 190, 0.14);
  --glass: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(231, 245, 253, 0.72));
  --shot-bg: radial-gradient(120% 100% at 50% 0%, #14273a, #060d16);
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Chakra Petch", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cy); text-decoration: none; }
a:hover { color: var(--cy-hover); }

::selection { background: rgba(120, 200, 240, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(20, 130, 190, 0.3); border-radius: 6px; }

img { max-width: 100%; }

.mono {
  font-family: "Chakra Petch", sans-serif;
}

/* ---------- keyframes ---------- */

@keyframes vlspin  { to { transform: rotate(360deg); } }
@keyframes vlspinr { to { transform: rotate(-360deg); } }
@keyframes vlfade  { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes vlpulse { 0%, 100% { opacity: .45; } 50% { opacity: .9; } }
@keyframes vlbob   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes vlrise {
  0%   { transform: translate3d(0, 12vh, 0) scale(.7); opacity: 0; }
  12%  { opacity: .55; }
  88%  { opacity: .45; }
  100% { transform: translate3d(18px, -108vh, 0) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- fixed background layers ---------- */

.page { position: relative; min-height: 100vh; overflow-x: clip; background: var(--bg); }

.bg-glow,
.bg-bubbles,
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  background:
    radial-gradient(950px 640px at 74% -10%, rgba(126, 201, 246, 0.62), transparent 64%),
    radial-gradient(780px 560px at 2% 6%, rgba(168, 224, 250, 0.55), transparent 68%),
    radial-gradient(1100px 780px at 50% 112%, rgba(150, 212, 245, 0.5), transparent 64%);
}

.bg-bubbles { overflow: hidden; }

.bubble {
  position: absolute;
  bottom: -8vh;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.8), rgba(60, 165, 225, 0.32) 62%, transparent);
  animation: vlrise linear infinite;
}

.bg-grid {
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 120, 180, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 120, 180, 0.10) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(900px 700px at 50% 20%, #000 20%, transparent 85%);
  mask-image: radial-gradient(900px 700px at 50% 20%, #000 20%, transparent 85%);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7));
  border-bottom: 1px solid rgba(20, 130, 190, 0.16);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  user-select: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(20, 130, 190, 0.25);
  box-shadow: 0 3px 10px rgba(20, 120, 180, 0.16);
  animation: vlbob 4.5s ease-in-out infinite;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; text-align: left; }

.brand-ja {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--logo-text);
  white-space: nowrap;
}

.brand-en {
  font-family: "Chakra Petch", sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  color: rgba(40, 110, 150, 0.62);
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }

.nav-item {
  padding: 9px 15px;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  font-family: "Chakra Petch", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(40, 90, 120, 0.72);
  transition: color .18s ease;
  white-space: nowrap;
}

.nav-item:hover { color: var(--cy-hover); }
.nav-item.is-active { color: var(--logo-text); border-bottom-color: var(--cy); }

.spacer { flex: 1; }

.lang {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.lang button,
.lang a,
.lang span {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-decoration: none;
  color: rgba(40, 90, 120, 0.65);
  transition: color .18s ease;
}

.lang button:hover,
.lang a:hover { color: var(--cy-hover); }

.lang .is-active { color: var(--cy); cursor: default; }
.lang .sep { color: rgba(150, 190, 210, 0.35); cursor: default; }

/* ---------- layout ---------- */

main { position: relative; z-index: 1; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.view { animation: vlfade .45s ease both; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  cursor: pointer;
  padding: 16px 42px;
  border-radius: 999px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--btn-a), var(--btn-b));
  border: 1px solid rgba(13, 142, 203, 0.9);
  box-shadow: 0 8px 20px rgba(16, 120, 180, 0.3);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(16, 120, 180, 0.42);
  transform: translateY(-1px);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 120, 180, 0.3);
  backdrop-filter: blur(10px);
  font-weight: 600;
  color: rgba(18, 60, 85, 0.88);
}

.btn-ghost:hover { border-color: rgba(13, 142, 203, 0.55); color: var(--logo-text); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero-rings { position: relative; width: 100%; }

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
}

.ring-1 {
  width: 900px; height: 900px; margin: -450px 0 0 -450px;
  border: 1px solid rgba(20, 140, 200, 0.2);
  animation: vlspin 90s linear infinite;
}

.ring-2 {
  width: 620px; height: 620px; margin: -310px 0 0 -310px;
  border: 1px dashed rgba(20, 140, 200, 0.26);
  animation: vlspinr 60s linear infinite;
}

.ring-3 {
  width: 380px; height: 380px; margin: -190px 0 0 -190px;
  background: radial-gradient(circle, rgba(110, 195, 242, 0.45), transparent 70%);
  animation: vlpulse 6s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 32px 110px;
  text-align: center;
  animation: vlfade .6s ease both;
}

.hero-logo {
  display: block;
  width: min(380px, 62vw);
  height: auto;
  margin: 0 auto 18px;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 62%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 48%, #000 62%, transparent 78%);
  animation: vlbob 6s ease-in-out infinite;
}

.kicker {
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--cy);
  margin-bottom: 26px;
}

.hero h1 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: 0.06em;
  color: var(--head);
}

.hero-body {
  margin: 26px auto 0;
  max-width: 560px;
  font-size: 15px;
  line-height: 2;
  color: var(--sub);
  font-weight: 300;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 46px;
  flex-wrap: wrap;
}

/* ---------- section heads ---------- */

.sec { max-width: var(--max); margin: 0 auto; padding: 96px 32px 40px; }
.sec-tight { padding: 80px 32px 40px; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 38px;
}

.sec-head h2 {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--cy);
}

.sec-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(13, 142, 203, 0.45), transparent);
}

.sec-meta {
  font-family: "Chakra Petch", sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(45, 95, 125, 0.72);
}

button.sec-meta {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  color: rgba(45, 95, 125, 0.78);
  transition: color .18s ease;
}

button.sec-meta:hover { color: var(--cy-hover); }

/* ---------- game cards (home) ---------- */

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

.card {
  cursor: pointer;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  display: block;
  width: 100%;
}

.card:hover {
  border-color: rgba(13, 142, 203, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20, 80, 120, 0.18);
}

.card-art {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--shot-bg);
}

.card-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(255, 255, 255, 0.9));
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  pointer-events: none;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.card-body { padding: 22px 22px 24px; }

.card-kicker {
  font-family: "Chakra Petch", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.34em;
  margin-bottom: 10px;
}

.card-title {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.05em;
  color: var(--head);
}

.card-tag {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.95;
  color: var(--sub2);
  font-weight: 300;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }

.chip {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid rgba(20, 120, 180, 0.26);
  background: rgba(255, 255, 255, 0.8);
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--sub);
}

/* ---------- news strip (home) ---------- */

.news-strip {
  display: grid;
  gap: 1px;
  background: rgba(20, 130, 190, 0.16);
  border: 1px solid rgba(20, 130, 190, 0.16);
  border-radius: 14px;
  overflow: hidden;
}

.news-row {
  display: grid;
  grid-template-columns: 120px 92px 1fr;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.86);
  transition: background .2s ease;
}

.news-row:hover { background: rgba(224, 242, 252, 0.96); }

.news-date {
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.news-tag {
  text-align: center;
  padding: 4px 0;
  border-radius: 4px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.news-row-title { font-size: 14px; color: rgba(18, 55, 78, 0.92); }

/* ---------- page heads ---------- */

.page-kicker {
  font-family: "Chakra Petch", sans-serif;
  font-size: 11px;
  letter-spacing: 0.44em;
  color: var(--cy);
}

.page-title {
  margin: 16px 0 0;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 0.04em;
  color: var(--head);
}

.page-lead {
  margin: 14px 0 54px;
  font-size: 14px;
  line-height: 2;
  color: var(--sub2);
  font-weight: 300;
  max-width: 520px;
}

/* ---------- works list ---------- */

.work-list { display: flex; flex-direction: column; gap: 20px; }

.work {
  cursor: pointer;
  display: grid;
  grid-template-columns: 320px 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(231, 245, 253, 0.7));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .22s ease, box-shadow .22s ease;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  width: 100%;
}

.work:hover {
  border-color: rgba(13, 142, 203, 0.55);
  box-shadow: 0 14px 34px rgba(20, 80, 120, 0.16);
}

.work-art {
  position: relative;
  min-height: 220px;
  background: var(--shot-bg);
}

.work-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work-body {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.work-kicker {
  font-family: "Chakra Petch", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.34em;
}

.work-status {
  padding: 3px 9px;
  border-radius: 5px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.work-title {
  margin-top: 12px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: 0.05em;
  color: var(--head);
}

.work-tagline {
  margin: 12px 0 0;
  max-width: 520px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--sub2);
  font-weight: 300;
}

/* ---------- detail ---------- */

.detail-banner {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.detail-banner-art {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 48%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%);
  mask-image: linear-gradient(90deg, transparent, #000 24%);
}

.detail-banner-art img { width: 100%; height: 100%; object-fit: cover; }

.detail-banner-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(240, 248, 253, 0.98) 0%, rgba(240, 248, 253, 0.88) 48%, rgba(240, 248, 253, 0.18) 100%);
}

.detail-banner-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 32px 72px;
}

.back-link {
  display: inline-block;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 36px;
  transition: color .18s ease;
}

.back-link:hover { color: var(--cy-hover); }

.detail-kicker {
  font-family: "Chakra Petch", sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.46em;
}

.detail-title {
  margin: 18px 0 0;
  max-width: 44%;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0.05em;
  color: var(--head);
}

.detail-tagline {
  margin: 20px 0 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 2;
  color: rgba(28, 70, 95, 0.82);
  font-weight: 300;
}

.store-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.store-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.store-link:hover { transform: translateY(-2px); }

.store-link.is-disabled {
  cursor: default;
  opacity: .85;
}

.store-link.is-disabled:hover { transform: none; }

.store-kind {
  font-family: "Chakra Petch", sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.24em;
}

.store-label {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
}

.detail-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 32px 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.block-title {
  margin: 0 0 22px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.42em;
  color: var(--cy);
}

.block-title.spaced { margin-top: 64px; }

.detail-desc {
  margin: 0;
  font-size: 15px;
  line-height: 2.2;
  color: rgba(28, 70, 95, 0.82);
  font-weight: 300;
  white-space: pre-line;
  text-wrap: pretty;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.feature {
  padding: 22px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.feature-t {
  font-family: "Chakra Petch", sans-serif;
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--cy);
  margin-bottom: 12px;
}

.feature-d { font-size: 13px; line-height: 1.9; color: var(--sub2); font-weight: 300; }

.shots { display: grid; gap: 14px; }

.shot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(20, 130, 190, 0.2);
  background: #dceef8;
}

.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.shot-beta {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 142, 203, 0.4);
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cy);
}

.versions {
  display: grid;
  gap: 1px;
  background: rgba(20, 130, 190, 0.16);
  border: 1px solid rgba(20, 130, 190, 0.16);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 80px;
}

.version {
  display: grid;
  grid-template-columns: 100px 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.86);
}

.version-ver {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--cy-hover);
}

.version-date {
  font-family: "Chakra Petch", sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(45, 95, 125, 0.75);
}

.version-note { font-size: 13px; color: rgba(28, 70, 95, 0.82); font-weight: 300; }

.specs {
  position: sticky;
  top: 100px;
  border-radius: 16px;
  border: 1px solid rgba(20, 130, 190, 0.2);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 26px 24px;
}

.specs-title {
  font-family: "Chakra Petch", sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--cy);
  margin-bottom: 20px;
}

.spec {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(20, 130, 190, 0.12);
}

.spec-k { font-size: 12px; color: var(--muted); font-weight: 300; }
.spec-v { font-size: 12px; color: rgba(18, 55, 78, 0.92); text-align: right; }

/* ---------- news page ---------- */

.narrow { max-width: 1000px; margin: 0 auto; padding: 80px 32px 100px; }

.news-list { display: flex; flex-direction: column; gap: 16px; }

.news-card {
  padding: 26px 28px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  transition: border-color .2s ease;
}

.news-card:hover { border-color: rgba(13, 142, 203, 0.55); }

.news-card-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.news-card-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.news-card-title { margin-top: 14px; font-size: 19px; font-weight: 500; color: var(--logo-text); }

.news-card-body {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 2;
  color: var(--sub2);
  font-weight: 300;
  text-wrap: pretty;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}

.about-title {
  margin: 16px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--head);
}

.about-body {
  margin: 24px 0 0;
  max-width: 600px;
  font-size: 15px;
  line-height: 2.2;
  color: rgba(28, 70, 95, 0.82);
  font-weight: 300;
  white-space: pre-line;
  text-wrap: pretty;
}

.about-art {
  margin-top: 22px;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(229, 244, 253, 0.7));
  box-shadow: 0 12px 30px rgba(20, 80, 120, 0.16);
}

.about-art img { width: 100%; height: 100%; object-fit: cover; }

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 54px;
}

.contact {
  display: block;
  text-decoration: none;
  padding: 26px 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact:hover {
  border-color: rgba(13, 142, 203, 0.55);
  box-shadow: 0 12px 28px rgba(20, 80, 120, 0.16);
}

.contact-kind {
  font-family: "Chakra Petch", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.28em;
  color: var(--cy);
  margin-bottom: 12px;
}

.contact-value { font-size: 14px; color: var(--logo-text); word-break: break-all; }

.panel {
  margin-top: 54px;
  padding: 34px 32px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.panel-title {
  font-family: "Chakra Petch", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--cy);
  margin-bottom: 22px;
}

.panel-body {
  margin: 0 0 24px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--sub2);
  font-weight: 300;
  max-width: 520px;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(15, 50, 72, 0.92);
}

.footer-note { font-size: 12px; color: rgba(45, 95, 125, 0.72); font-weight: 300; }

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.footer-links a {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}

.footer-links a:hover { color: var(--cy-hover); }

.footer-copy {
  font-family: "Chakra Petch", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(45, 95, 125, 0.68);
}

/* ============================================================
   Legal pages (privacy policy)
   ============================================================ */

.legal { max-width: 860px; margin: 0 auto; padding: 72px 32px 100px; position: relative; z-index: 1; }

.legal h1 {
  margin: 16px 0 6px;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: 0.04em;
  color: var(--head);
}

.legal .meta { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.legal .lang-switch { font-size: 13px; margin: 0 0 40px; }

.legal h2 {
  font-size: 17px;
  margin: 44px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--logo-text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.legal h3 { font-size: 15px; margin: 26px 0 10px; color: var(--logo-text); }

.legal p, .legal li { font-size: 14px; line-height: 2; color: rgba(28, 70, 95, 0.86); font-weight: 300; }

.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 6px; }

.legal strong { font-weight: 700; color: var(--logo-text); }

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 18px 0;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  overflow: hidden;
}

.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
  font-weight: 300;
  color: rgba(28, 70, 95, 0.86);
}

.legal th {
  background: rgba(224, 242, 252, 0.7);
  font-weight: 600;
  color: var(--logo-text);
  white-space: nowrap;
}

.table-scroll { overflow-x: auto; }

.legal .note {
  border-left: 3px solid var(--cy);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.8);
  padding: 18px 22px;
  margin: 24px 0;
}

.legal .note p { margin: 0; }

.legal .back { display: inline-block; margin-top: 32px; font-size: 14px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .specs { position: static; }
  .detail-title { max-width: 100%; }
  .detail-banner-art { left: 30%; opacity: .55; }
}

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .work { grid-template-columns: 1fr; }
  .work-art { min-height: 200px; aspect-ratio: 16 / 9; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 220px; }
  .features { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner {
    height: auto;
    padding: 12px 20px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .spacer { display: none; }
  .lang { margin-left: auto; }
  .wrap, .sec, .narrow, .detail-banner-inner, .detail-grid, .footer-inner, .header-inner, .legal {
    padding-left: 20px;
    padding-right: 20px;
  }
  .sec { padding-top: 64px; }
  .hero { min-height: 0; }
  .hero-inner { padding: 56px 20px 72px; }
  .news-row { grid-template-columns: 1fr; gap: 8px; }
  .news-tag { justify-self: start; padding: 4px 12px; }
  .version { grid-template-columns: 1fr; gap: 6px; }
  .btn { padding: 14px 30px; letter-spacing: 0.2em; }
  .detail-banner-art { display: none; }
}
