:root {
  --horo-bg: #edf3f8;
  --horo-surface: #ffffff;
  --horo-ink: #17263a;
  --horo-muted: #687789;
  --horo-line: #dce6ef;
  --horo-navy: #08264d;
  --horo-blue: #0d6fba;
  --horo-teal: #0b8790;
  --horo-gold: #f1bd48;
  --horo-shadow: 0 18px 42px rgba(13, 43, 76, 0.1);
}

* { box-sizing: border-box; }

html { min-width: 0; scroll-behavior: smooth; }

body {
  min-width: 0;
  margin: 0;
  color: var(--horo-ink);
  font-family: 'Prompt', Tahoma, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(25, 139, 171, 0.14), transparent 34rem),
    radial-gradient(circle at 96% 15%, rgba(241, 189, 72, 0.16), transparent 30rem),
    linear-gradient(180deg, #f4f8fc 0%, var(--horo-bg) 55%, #f8fafc 100%);
}

a { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
img { max-width: 100%; height: auto; }

.horo-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.horo-header {
  position: relative;
  overflow: hidden;
  padding: 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 0%, rgba(241, 189, 72, 0.23), transparent 22rem),
    linear-gradient(135deg, #071e3e 0%, #0a4d83 58%, #087d87 100%);
  box-shadow: 0 20px 48px rgba(5, 29, 61, 0.22);
}

.horo-header::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -110px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.horo-header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 4px;
}

.horo-brand { display: inline-flex; align-items: center; min-width: 0; }
.horo-brand img { display: block; width: min(247px, 100%); height: auto; }

.horo-menu-toggle {
  display: none;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  color: #fff;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  background: rgba(4, 28, 58, 0.52);
}

.horo-menu-toggle strong,
.horo-menu-toggle small { display: block; }
.horo-menu-toggle strong { font-size: 13px; line-height: 1.2; }
.horo-menu-toggle small { margin-top: 2px; color: rgba(255, 255, 255, 0.65); font-size: 9px; }

.horo-menu-toggle-icon { display: grid; gap: 4px; width: 22px; }
.horo-menu-toggle-icon span { display: block; width: 100%; height: 2px; border-radius: 999px; background: var(--horo-gold); transition: transform 180ms ease, opacity 180ms ease; }
.horo-menu-toggle[aria-expanded='true'] .horo-menu-toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.horo-menu-toggle[aria-expanded='true'] .horo-menu-toggle-icon span:nth-child(2) { opacity: 0; }
.horo-menu-toggle[aria-expanded='true'] .horo-menu-toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.horo-header-ad-shell {
  position: relative;
  min-height: 122px;
  margin-top: 12px;
  padding: 16px 10px 8px;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--horo-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(13, 43, 76, 0.07);
}

.horo-ad-label {
  position: absolute;
  top: 4px;
  left: 50%;
  color: #8d99a7;
  font-size: 9px;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.horo-header-ads { width: 100%; min-width: 0; min-height: 90px; overflow: hidden; }
.horo-header-ads .adsbygoogle { display: block; min-height: 90px; max-width: 100%; }

.horo-main.container {
  width: 100%;
  max-width: none;
  margin: 14px 0 0;
  padding: 0;
}

.horo-content-wrap {
  min-width: 0;
  padding: clamp(14px, 2.5vw, 24px);
  word-wrap: break-word;
  border: 1px solid rgba(220, 230, 239, 0.9);
  border-radius: 20px;
  background: var(--horo-surface);
  box-shadow: var(--horo-shadow);
}

.horo-page-home .horo-content-wrap { padding: clamp(10px, 2vw, 18px); }
.horo-ad-space { min-width: 0; min-height: 100px; margin: 0 0 14px; overflow: hidden; text-align: center; }
.horo-ad-space .adsbygoogle { display: block; min-height: 90px; }

.horo-content-wrap h1,
.horo-content-wrap h2,
.horo-content-wrap h3,
.horo-content-wrap .box-title { color: var(--horo-ink); }

.horo-content-wrap .box,
.horo-content-wrap .panel,
.horo-content-wrap .well {
  overflow: hidden;
  border: 1px solid var(--horo-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(14, 45, 78, 0.07);
}

.horo-content-wrap .box.box-info { border-top: 3px solid var(--horo-teal); }
.horo-content-wrap .box-header { padding: 14px 16px; border-bottom-color: var(--horo-line); background: #f5f9fc; }
.horo-content-wrap .box-body { padding: 16px; }
.horo-content-wrap .form-control { min-height: 42px; border-color: #cfdce8; border-radius: 10px; box-shadow: none; }
.horo-content-wrap .btn { border-radius: 10px; }
.horo-content-wrap table { max-width: 100%; }
.horo-content-wrap .table-responsive { border: 0; }

.horo-related-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}
.horo-related-panel {
  overflow: hidden;
  border: 1px solid var(--horo-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(14, 45, 78, 0.07);
}
.horo-related-heading { padding: 14px 16px; border-bottom: 1px solid var(--horo-line); background: #f5f9fc; }
.horo-related-heading h3 { margin: 0; color: var(--horo-ink); font-size: 18px; }
.horo-related-list { display: grid; padding: 6px 14px; }
.horo-related-item {
  display: grid;
  align-items: center;
  gap: 12px;
  grid-template-columns: 70px minmax(0, 1fr);
  padding: 12px 0;
  color: var(--horo-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--horo-line);
}
.horo-related-item:last-child { border-bottom: 0; }
.horo-related-item img { display: block; width: 70px; height: 70px; object-fit: cover; border-radius: 12px; background: #edf3f6; }
.horo-related-item strong { display: block; line-height: 1.45; }
.horo-related-item small { display: block; margin-top: 4px; color: #5c7080; line-height: 1.5; }
.horo-related-item:hover strong { color: var(--horo-teal); }

.dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: #f1c40f; }
.center { word-wrap: break-word; }

.life-graph-wrap { display: flex; width: min(100%, 840px); margin: 0 auto; overflow: hidden; justify-content: center; }
.horo-life-graph { width: 100%; max-width: 100%; height: auto; }

.horo-footer {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  color: #fff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(241, 189, 72, 0.16), transparent 25rem),
    linear-gradient(135deg, #071c38 0%, #0b365b 58%, #075e68 100%);
  box-shadow: 0 20px 44px rgba(5, 29, 61, 0.2);
}

.horo-footer-inner { padding: clamp(24px, 4vw, 42px); }
.horo-footer-grid { display: grid; grid-template-columns: minmax(240px, 1.15fr) minmax(190px, 0.85fr) minmax(240px, 1fr); gap: clamp(24px, 4vw, 54px); }
.horo-footer-logo { display: inline-flex; }
.horo-footer-logo img { display: block; width: 185px; height: auto; }
.horo-footer-brand p { max-width: 420px; margin: 16px 0 18px; color: rgba(255, 255, 255, 0.68); font-size: 12px; line-height: 1.75; }

.horo-kkl-home-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 10px 15px;
  color: #10243b !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 999px;
  background: var(--horo-gold);
}
.horo-kkl-home-button:hover,
.horo-kkl-home-button:focus { color: #10243b; background: #ffd979; transform: translateY(-2px); }

.horo-footer-kicker { display: block; margin-bottom: 4px; color: var(--horo-gold); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
.horo-footer-nav h2 { margin: 0 0 13px; color: #fff; font-size: 16px; font-weight: 700; }
.horo-footer-nav ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.horo-footer-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; color: rgba(255, 255, 255, 0.76); font-size: 12px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.horo-footer-nav a:hover,
.horo-footer-nav a:focus { padding-left: 4px; color: #fff; border-bottom-color: rgba(241, 189, 72, 0.55); }
.horo-footer-nav a .fa { color: rgba(241, 189, 72, 0.78); font-size: 9px; }

.horo-footer-meta { margin-top: 28px; padding-top: 18px; color: rgba(255, 255, 255, 0.58); font-size: 11px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.horo-footer-meta a { color: rgba(255, 255, 255, 0.82); }
.horo-footer-meta p { margin: 4px 0; }

@media (max-width: 900px) {
  .horo-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .horo-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  html { scroll-behavior: auto; }
  .horo-shell { padding: 8px; }
  .horo-header { padding: 10px; border-radius: 17px; }
  .horo-header-inner { min-height: 54px; padding: 0 2px; }
  .horo-brand { width: min(45vw, 160px); }
  .horo-brand img { width: 100%; }
  .horo-menu-toggle { display: inline-flex; }
  .horo-header-ad-shell { margin-top: 8px; padding: 15px 4px 5px; border-radius: 14px; }
  .horo-main.container { margin-top: 8px; }
  .horo-content-wrap { padding: 13px; border-radius: 16px; }
  .horo-page-home .horo-content-wrap { padding: 8px; }
  .horo-content-wrap .box-body { padding: 13px; }
  .horo-related-grid { grid-template-columns: 1fr; gap: 14px; }
  .horo-footer { margin-top: 8px; border-radius: 17px; }
  .horo-footer-inner { padding: 25px 20px; }
  .horo-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .horo-footer-brand { grid-column: auto; }
  .horo-footer-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .horo-footer-network ul { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .horo-menu-toggle { gap: 8px; padding: 8px 9px; }
  .horo-menu-toggle small { display: none; }
  .horo-footer-nav ul { grid-template-columns: 1fr; }
}

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