:root {
  --bg-0: #f4fbff;
  --bg-1: #e2f3ff;
  --bg-2: #d9dcff;
  --ink: #111827;
  --muted: #5b6474;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.85);
  --c5: #63d7ff;
  --c4: #45a9ff;
  --c3: #6f7dff;
  --c2: #bb58ff;
  --c1: #ff3fbf;
  --headline-width: clamp(420px, 52vw, 700px);
  --logo-width: clamp(320px, 38vw, 520px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(60rem 60rem at -10% -20%, #d8f7ff 10%, transparent 60%),
    radial-gradient(40rem 40rem at 90% 0%, #c1cbff 5%, transparent 60%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 55%, var(--bg-2));
  min-height: 100vh;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 16px 38px;
}

.glass {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  backdrop-filter: saturate(145%) blur(20px);
  box-shadow: 0 20px 60px rgba(57, 73, 122, 0.18);
}

.topbar {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.menu {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 29, 62, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.menu a.active {
  background: linear-gradient(120deg, #b9eaff, #cfd2ff);
  border-color: rgba(69, 92, 155, 0.25);
}

.lang-switch {
  display: flex;
  align-items: center;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  border: 1px solid rgba(20, 29, 62, 0.1);
  border-radius: 999px;
  padding: 7px 34px 7px 12px;
  background:
    linear-gradient(45deg, transparent 50%, #111827 50%) calc(100% - 16px) calc(50% - 1px) / 6px 6px no-repeat,
    linear-gradient(135deg, #111827 50%, transparent 50%) calc(100% - 12px) calc(50% - 1px) / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.lang-select:focus {
  outline: none;
  border-color: rgba(69, 92, 155, 0.4);
  box-shadow: 0 0 0 3px rgba(99, 215, 255, 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  padding: 22px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: stretch;
}

.hero-main {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.brand {
  width: min(100%, var(--headline-width));
}

.brand-link {
  display: inline-block;
  text-decoration: none;
}

.logo-chip {
  width: 100%;
  min-height: 0;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: start;
  box-shadow: none;
  padding: 0;
}

.brand img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.title {
  width: min(100%, var(--headline-width));
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.06;
  margin: 12px 0 8px;
  letter-spacing: -0.025em;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.content-panel {
  margin-top: 16px;
  padding: 24px;
}

.content-panel p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.6;
}

.html-content h2,
.html-content h3 {
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.html-content h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.html-content h3 {
  margin-top: 18px;
  font-size: clamp(20px, 2.4vw, 28px);
}

.html-content ul {
  margin: 8px 0 16px 0;
  padding-left: 18px;
}

.html-content li {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.55;
}

.html-content .info-rect {
  margin: 16px 0;
  border-radius: 16px;
  border: 1px solid rgba(69, 92, 155, 0.24);
  background: linear-gradient(120deg, rgba(99, 215, 255, 0.22), rgba(111, 125, 255, 0.2), rgba(255, 63, 191, 0.18));
  padding: 14px 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px;
}

.halia {
  width: min(100%, 350px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(40, 51, 98, 0.28);
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.talk-cta {
  display: block;
  width: min(100%, 350px);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(120deg, #3ca8ff, #8f5dff 65%, #ff42c2);
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 20px rgba(57, 73, 122, 0.22);
}

.cta {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, #3ca8ff, #8f5dff 65%, #ff42c2);
  border-radius: 999px;
  padding: 11px 18px;
}

.cta-box {
  margin-top: 14px;
  padding: 14px 22px;
}

.cta-box .cta {
  margin-top: 0;
}

.hero-logo {
  margin-top: auto;
  width: min(100%, var(--logo-width));
}

.hero-logo .logo-chip {
  width: 100%;
  min-height: 0;
  padding: 0;
}

.hero-logo .brand-link {
  display: block;
  width: 100%;
}

.hero-logo img {
  width: 100%;
  max-width: 100%;
}

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

.kpi { grid-column: span 12; padding: 20px 24px; }
.kpi .label { color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.kpi .value { margin-top: 8px; font-size: clamp(36px, 8vw, 62px); line-height: 1; letter-spacing: -0.03em; font-weight: 700; }

.panel { grid-column: span 8; padding: 22px; }
.legend { grid-column: span 4; padding: 22px; }
.h2 { margin: 0 0 14px; font-size: 22px; letter-spacing: -0.02em; }
.legend-list { margin: 10px 0 0; padding: 0; list-style: none; }
.legend-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(90, 110, 154, 0.14); }
.legend-item:last-child { border-bottom: 0; }
.left { display: flex; align-items: center; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 999px; }

.empty { margin-top: 16px; padding: 16px; border-radius: 12px; background: rgba(255, 241, 246, 0.8); color: #9f1239; }

.comments-strip { margin-top: 16px; padding: 18px 0 10px; overflow: hidden; }
.comments-global { margin-top: 20px; }
.comments-head { padding: 0 22px 8px; font-size: 14px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.ticker-wrap { height: 252px; overflow: hidden; display: flex; align-items: center; }
.ticker-track { display: flex; gap: 0; width: max-content; padding: 0 10px; align-items: center; animation: comments-marquee 52s linear infinite; }
.ticker-seq { display: flex; gap: 14px; }
.comments-strip:hover .ticker-track { animation-play-state: paused; }
.comment-card {
  min-width: 360px;
  max-width: 440px;
  min-height: 220px;
  height: 220px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(57, 73, 122, 0.15);
  display: flex;
  flex-direction: column;
}
.comment-vote { font-size: 12px; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.06em; text-transform: uppercase; }
.comment-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
}
.comment-day { margin-top: auto; padding-top: 12px; font-size: 13px; color: #374151; text-align: right; }

.site-footer {
  padding: 10px 12px 14px;
  text-align: center;
  color: #7d8494;
  font-size: 8px;
}

.site-footer a {
  color: #7d8494;
}

@keyframes comments-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero-side { justify-content: flex-start; align-items: flex-start; }
  .panel, .legend { grid-column: span 12; }
  .brand, .title { width: 100%; }
  .ticker-wrap { height: 240px; }
  .comment-card { min-width: 290px; max-width: 330px; min-height: 210px; height: 210px; }
  .content-panel p { font-size: 17px; }
  .html-content li { font-size: 17px; }
  .logo-chip { min-height: 136px; }
  .hero-logo .logo-chip { min-height: 0; }
}
