:root {
  color-scheme: light;
  --paper: #f3f0e9;
  --ink: #171714;
  --muted: #514e47;
  --green: #66b697;
  --line: #24231f;
  --panel: rgba(255, 255, 255, 0.52);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

button, input { font: inherit; }

.corner-logo {
  position: absolute;
  z-index: 3;
  top: 14%;
  left: 0;
  transform: translateX(-8%);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  user-select: none;
}

.corner-logo[hidden] { display: none; }
.corner-logo__mark { width: 42px; height: 42px; display: block; object-fit: contain; }
.corner-logo__name { font: 600 29px/1 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.corner-logo--gigachat .corner-logo__mark { width: 40px; height: 40px; }
.corner-logo--gigachat .corner-logo__name { font-family: Arial, sans-serif; font-size: 26px; font-weight: 720; letter-spacing: -.055em; }

.language-switcher {
  position: fixed;
  z-index: 9;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(30,29,25,.16);
  border-radius: 999px;
  background: rgba(249,247,241,.86);
  box-shadow: 0 5px 18px rgba(35,33,28,.06);
  backdrop-filter: blur(10px);
}

.language-switcher button {
  min-width: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #767269;
  padding: 7px 9px;
  font: 700 11px/1 Arial, sans-serif;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] { background: #272722; color: white; }

.social-links {
  position: fixed;
  z-index: 9;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
}

.social-link {
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  color: #171714;
  border: 1px solid rgba(30,29,25,.16);
  border-radius: 50%;
  background: rgba(249,247,241,.86);
  box-shadow: 0 5px 18px rgba(35,33,28,.06);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, background .18s ease;
}

.social-link:hover { transform: translateY(-2px) rotate(-3deg); background: #fffdf8; }
.social-link:focus-visible { outline: 3px solid rgba(71,119,98,.45); outline-offset: 3px; }
.social-link svg { width: 20px; height: 20px; display: block; fill: currentColor; }
.social-link--telegram svg {
  width: 21px;
  height: 21px;
  transform: translate(-1px, 1px);
}
.social-link--x svg { width: 18px; height: 18px; }
.social-link--threads svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meme-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.045) 0 1px, transparent 1.7px),
    radial-gradient(circle at 70% 65%, rgba(255,255,255,.7) 0 1px, transparent 1.6px);
  background-size: 13px 17px, 19px 23px;
  mix-blend-mode: multiply;
}

.orbit {
  width: min(900px, 96vw, calc((100svh - 120px) * 1.18));
  aspect-ratio: 1.18;
  position: relative;
  filter: url(#none);
}

.arrows {
  position: absolute;
  inset: 1% 2% 0;
  width: 96%;
  height: 98%;
  color: var(--line);
  overflow: visible;
}

.arrows--mobile { display: none; }
.arrow-set { display: none; }
.orbit[data-count="2"] .arrow-set--2,
.orbit[data-count="3"] .arrow-set--3,
.orbit[data-count="4"] .arrow-set--4 { display: inline; }

.arrows path:not(marker path) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.model-card {
  position: absolute;
  width: min(360px, 43vw);
  text-align: center;
  animation: arrive .65s cubic-bezier(.22,.8,.22,1) both;
}

.model-layer { position: absolute; inset: 0; }

.orbit[data-count="2"] .model-card { width: min(320px, 36vw); top: 40%; }
.orbit[data-count="2"] .model-card:nth-child(1) { left: 8%; }
.orbit[data-count="2"] .model-card:nth-child(2) { right: 8%; animation-delay: .12s; }

.orbit[data-count="3"] .model-card { width: min(300px, 35vw); }
.orbit[data-count="3"] .model-card:nth-child(1) { left: 50%; top: 1%; translate: -50% 0; }
.orbit[data-count="3"] .model-card:nth-child(2) { right: 0; top: 42%; animation-delay: .1s; }
.orbit[data-count="3"] .model-card:nth-child(3) { left: 0; bottom: 5%; animation-delay: .2s; }

.orbit[data-count="4"] .model-card { width: min(250px, 29vw); }
.orbit[data-count="4"] .model-card:nth-child(1) { left: 50%; top: 0; translate: -50% 0; }
.orbit[data-count="4"] .model-card:nth-child(2) { right: 8%; top: 42%; animation-delay: .08s; }
.orbit[data-count="4"] .model-card:nth-child(3) { left: 50%; bottom: 0; translate: -50% 0; animation-delay: .16s; }
.orbit[data-count="4"] .model-card:nth-child(4) { left: 8%; top: 42%; animation-delay: .24s; }
.orbit[data-count="4"] .logo-name { font-size: clamp(29px, 3.7vw, 43px); }
.orbit[data-count="4"] .logo-name--openai { font-size: clamp(27px, 3.35vw, 39px); }
.orbit[data-count="4"] .logo-mark { width: 46px; height: 46px; }
.orbit[data-count="4"] .claude-burst { width: 46px; height: 46px; }
.orbit[data-count="4"] .openai-knot { width: 43px; height: 43px; }
.orbit[data-count="4"] .gemini-mark { width: 42px; height: 42px; }
.orbit[data-count="4"] .grok-mark { width: 40px; height: 40px; }
.orbit[data-count="4"] .tagline { max-width: 150px; font-size: 12px; }

.logo-line {
  align-items: center;
  display: inline-flex;
  gap: 13px;
  justify-content: center;
  max-width: 100%;
}

.logo-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.logo-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(35px, 5.4vw, 66px);
  font-weight: 560;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.logo-name--claude { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
.logo-name--gemini { color: #547ca6; font-weight: 400; }
.logo-name--grok { font-weight: 600; }
.logo-name--openai { font-size: clamp(30px, 4.6vw, 56px); font-weight: 650; }
.logo-name--deepseek { color: #4d6bfe; font-size: clamp(28px, 4.4vw, 52px); font-weight: 600; }
.deepseek-whale { display: block; width: 100%; height: auto; }
.orbit[data-count="4"] .logo-name--deepseek { font-size: clamp(23px, 3vw, 35px); }

.tagline {
  margin: 11px auto 0;
  max-width: 175px;
  position: relative;
  z-index: 2;
  background: var(--paper);
  box-shadow: 0 0 0 5px var(--paper);
  color: var(--ink);
  font-size: clamp(11px, 1.5vw, 16px);
  line-height: 1.12;
  letter-spacing: .035em;
}

.you-are-here {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 185px;
  z-index: 3;
  text-align: left;
  animation: marker-pop .55s .45s cubic-bezier(.3,1.4,.5,1) both;
}

.orbit[data-count="2"] .you-are-here { width: 145px; gap: 8px; text-align: left; }
.orbit[data-count="2"] .check-circle { width: 52px; height: 52px; font-size: 33px; }
.orbit[data-count="2"] .marker-copy { font-size: 16px; }
.orbit[data-count="2"] .model-card:nth-child(1) .you-are-here {
  left: auto;
  right: calc(50% + 128px);
  top: -68px;
}
.orbit[data-count="2"] .model-card:nth-child(2) .you-are-here { left: calc(50% + 128px); right: auto; top: -68px; }
.orbit[data-count="3"] .model-card:nth-child(1) .you-are-here {
  left: 50%;
  right: auto;
  top: -78px;
  translate: -50% 0;
}
.orbit[data-count="3"] .model-card:nth-child(2) .you-are-here { left: auto; right: 0; top: calc(100% + 12px); }
.orbit[data-count="3"] .model-card:nth-child(3) .you-are-here {
  left: 0;
  right: auto;
  top: calc(100% + 12px);
}
.orbit[data-count="4"] .you-are-here { width: 145px; gap: 8px; }
.orbit[data-count="4"] .check-circle { width: 52px; height: 52px; font-size: 33px; }
.orbit[data-count="4"] .marker-copy { font-size: 16px; }
.orbit[data-count="4"] .model-card:nth-child(1) .you-are-here {
  left: 50%;
  right: auto;
  top: -72px;
  translate: -50% 0;
}
.orbit[data-count="4"] .model-card:nth-child(2) .you-are-here {
  left: calc(50% + 98px);
  right: auto;
  top: -68px;
  width: 145px;
  text-align: left;
}
.orbit[data-count="4"] .model-card:nth-child(3) .you-are-here {
  left: 50%;
  right: auto;
  top: calc(100% + 12px);
  translate: -50% 0;
}
.orbit[data-count="4"] .model-card:nth-child(4) .you-are-here {
  left: auto;
  right: calc(50% + 98px);
  top: -68px;
  width: 145px;
  text-align: left;
}

.check-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid rgba(20,70,54,.55);
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 43px;
  font-weight: 800;
  transform: rotate(-7deg);
  flex: 0 0 auto;
}

.marker-copy {
  color: #477762;
  font-family: "Comic Sans MS", "Bradley Hand", cursive;
  font-size: 20px;
  line-height: 1.05;
  transform: rotate(-2deg);
}

.brand-logo-mark { display: block; object-fit: contain; }
.claude-burst { width: 58px; height: 58px; }
.openai-knot { width: 54px; height: 54px; }
.gemini-mark { width: 54px; height: 54px; }
.grok-mark { width: 49px; height: 49px; }

.load-error { position: fixed; bottom: 16px; font-family: Arial, sans-serif; color: #9d2828; }

.meme-credit {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 13px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 40px);
  color: #827e75;
  text-align: center;
  font: 10px/1.35 Arial, sans-serif;
  letter-spacing: .015em;
}

.meme-credit a { color: #5f5b53; text-underline-offset: 2px; }

.ad-placeholder {
  position: fixed;
  z-index: 3;
  left: 24px;
  bottom: 66px;
  width: min(260px, 22vw);
  height: 88px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 1px solid rgba(40, 39, 34, .18);
  border-radius: 12px;
  color: rgba(75, 73, 67, .62);
  padding: 14px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .09em;
  font: 600 9px/1.4 Arial, sans-serif;
}
.ad-placeholder[hidden] { display: none; }

.history-toggle {
  position: fixed;
  z-index: 8;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  writing-mode: vertical-rl;
  border: 1px solid rgba(30, 29, 25, .2);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: rgba(249, 247, 241, .9);
  color: #292823;
  padding: 16px 11px;
  font: 700 13px/1 Arial, sans-serif;
  letter-spacing: .035em;
  cursor: pointer;
  box-shadow: -5px 8px 24px rgba(36, 35, 31, .09);
  backdrop-filter: blur(10px);
  transition: background .18s ease, padding-right .18s ease;
}

.history-toggle:hover { background: #fffdf8; padding-right: 14px; }
.history-toggle__spark { color: #8b79bd; font-size: 18px; }
.history-toggle[aria-expanded="true"] { opacity: 0; pointer-events: none; }

.history-backdrop {
  position: fixed;
  z-index: 18;
  inset: 0;
  background: rgba(27, 26, 22, .22);
  backdrop-filter: blur(2px);
}

.history-backdrop[hidden] { display: none; }

.history-panel {
  position: fixed;
  z-index: 20;
  display: flex;
  flex-direction: column;
  top: 0;
  right: 0;
  width: min(440px, 92vw);
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: #f7f4ed;
  border-left: 1px solid rgba(28, 27, 23, .15);
  box-shadow: -24px 0 70px rgba(31, 29, 24, .15);
  padding: 30px 30px 60px;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .34s cubic-bezier(.22,.8,.22,1), visibility .34s;
}

.history-panel.is-open { transform: translateX(0); visibility: visible; }
.history-is-open { overflow: hidden; }

.history-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(30, 29, 25, .13);
}

.history-header h2 { margin: 2px 0 0; font-size: 24px; line-height: 1; letter-spacing: -.035em; }
.history-header p:last-child { margin: 12px 0 0; color: #68645b; font: 14px/1.45 Arial, sans-serif; }
.history-close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30,29,25,.18);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: 300 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.hype-timeline {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: 24px 0 60px;
}
.hype-timeline::before { content: ""; position: absolute; top: 28px; bottom: 15px; left: 25px; width: 1px; background: #c9c4b9; }
.hype-item { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 15px; padding: 0 0 25px; }
.hype-logo {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #d1cdc3;
  border-radius: 15px;
  background: #faf8f3;
  color: #25241f;
  box-shadow: 0 3px 11px rgba(30,29,25,.06);
}
.hype-logo-symbol { display: block; width: 30px; height: 30px; }
.hype-logo-image { display: block; width: 30px; height: 30px; object-fit: contain; }
.hype-logo-image--deepseek { width: 34px; height: 27px; }
.hype-logo-letter { font: 700 25px/1 Arial, sans-serif; }
.hype-item--claude .hype-logo { color: #c77842; }
.hype-item--gemini .hype-logo { color: #7867aa; }
.hype-item--kimi .hype-logo { color: #3265dc; }
.hype-item--deepseek .hype-logo { color: #3268d8; }
.hype-item--meta .hype-logo { color: #1769e0; }
.hype-item--mistral .hype-logo { color: #f06b31; }
.hype-item--qwen .hype-logo { color: #6946c8; }
.hype-copy time { display: block; margin: 1px 0 4px; color: #858078; text-transform: uppercase; letter-spacing: .12em; font: 700 10px/1.2 Arial, sans-serif; }
.hype-copy h3 { margin: 0; font: 700 20px/1.15 Arial, sans-serif; letter-spacing: -.025em; }
.hype-copy p { margin: 6px 0 0; color: #656159; font: 13px/1.42 Arial, sans-serif; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes marker-pop {
  from { opacity: 0; transform: scale(.7) rotate(-5deg); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .meme-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 78px 8px 92px;
    overflow: visible;
  }
  .orbit { width: 100%; aspect-ratio: 1.04; flex: 0 0 auto; }
  .arrows--desktop { display: none; }
  .arrows--mobile { display: block; inset: 0; width: 100%; height: 100%; }
  .model-card { width: 68vw; }
  .orbit[data-count="2"] .model-card { width: 29vw; top: 42%; }
  .orbit[data-count="2"] .model-card:nth-child(1) { left: 19%; }
  .orbit[data-count="2"] .model-card:nth-child(2) { right: 19%; }
  .orbit[data-count="3"] .model-card { width: 45vw; }
  .orbit[data-count="3"] .model-card:nth-child(1) { left: 50%; top: 0; translate: -50% 0; }
  .orbit[data-count="3"] .model-card:nth-child(2) { right: 0; top: auto; bottom: 2%; }
  .orbit[data-count="3"] .model-card:nth-child(3) { left: 0; bottom: 2%; }
  .orbit[data-count="4"] .model-card { width: 41vw; }
  .orbit[data-count="4"] .model-card:nth-child(1) { left: 50%; top: 0; translate: -50% 0; }
  .orbit[data-count="4"] .model-card:nth-child(2) { right: 0; top: 42%; }
  .orbit[data-count="4"] .model-card:nth-child(3) { left: 50%; bottom: 0; translate: -50% 0; }
  .orbit[data-count="4"] .model-card:nth-child(4) { left: 0; top: 42%; }
  .logo-mark { width: 45px; height: 45px; }
  .logo-name { font-size: clamp(38px, 12vw, 58px); }
  .logo-name--openai { font-size: clamp(33px, 10vw, 50px); }
  .tagline { font-size: 12px; }
  .orbit[data-count="2"] .logo-line,
  .orbit[data-count="3"] .logo-line,
  .orbit[data-count="4"] .logo-line { gap: 7px; }
  .orbit[data-count="2"] .logo-mark { width: 28px; height: 28px; }
  .orbit[data-count="2"] .logo-name { font-size: clamp(22px, 6.2vw, 24px); }
  .orbit[data-count="2"] .logo-name--openai { font-size: clamp(20px, 5.7vw, 22px); }
  .orbit[data-count="2"] .logo-name--deepseek { font-size: clamp(18px, 5.3vw, 21px); }
  .orbit[data-count="2"] .claude-burst { width: 28px; height: 28px; }
  .orbit[data-count="2"] .openai-knot { width: 27px; height: 27px; }
  .orbit[data-count="2"] .gemini-mark { width: 26px; height: 26px; }
  .orbit[data-count="2"] .grok-mark { width: 25px; height: 25px; }
  .orbit[data-count="2"] .tagline { max-width: 100px; margin-top: 6px; font-size: 8px; }
  .orbit[data-count="3"] .logo-mark { width: 34px; height: 34px; }
  .orbit[data-count="3"] .logo-name { font-size: clamp(26px, 7.6vw, 31px); }
  .orbit[data-count="3"] .logo-name--openai { font-size: clamp(23px, 6.8vw, 28px); }
  .orbit[data-count="3"] .logo-name--deepseek { font-size: clamp(21px, 6vw, 25px); }
  .orbit[data-count="3"] .claude-burst { width: 34px; height: 34px; }
  .orbit[data-count="3"] .openai-knot { width: 33px; height: 33px; }
  .orbit[data-count="3"] .gemini-mark { width: 31px; height: 31px; }
  .orbit[data-count="3"] .grok-mark { width: 30px; height: 30px; }
  .orbit[data-count="3"] .tagline { max-width: 118px; margin-top: 6px; font-size: 9px; }
  .orbit[data-count="4"] .logo-mark { width: 30px; height: 30px; }
  .orbit[data-count="4"] .logo-name { font-size: clamp(22px, 6.5vw, 27px); }
  .orbit[data-count="4"] .logo-name--openai { font-size: clamp(20px, 5.8vw, 24px); }
  .orbit[data-count="4"] .logo-name--deepseek { font-size: clamp(18px, 5.1vw, 22px); }
  .orbit[data-count="4"] .claude-burst { width: 30px; height: 30px; }
  .orbit[data-count="4"] .openai-knot { width: 29px; height: 29px; }
  .orbit[data-count="4"] .gemini-mark { width: 28px; height: 28px; }
  .orbit[data-count="4"] .grok-mark { width: 27px; height: 27px; }
  .orbit[data-count="4"] .tagline { max-width: 105px; margin-top: 5px; font-size: 8px; }
  .orbit[data-count="2"] .you-are-here { width: 66px; gap: 4px; }
  .orbit[data-count="2"] .check-circle { width: 30px; height: 30px; font-size: 19px; border-width: 1px; }
  .orbit[data-count="2"] .marker-copy { font-size: 9px; }
  .orbit[data-count="2"] .model-card:nth-child(1) .you-are-here { left: auto; right: calc(100% + 4px); top: 18%; }
  .orbit[data-count="2"] .model-card:nth-child(2) .you-are-here { left: calc(100% + 4px); right: auto; top: 18%; }
  .orbit[data-count="3"] .you-are-here,
  .orbit[data-count="4"] .you-are-here { width: 92px; gap: 5px; }
  .orbit[data-count="3"] .check-circle,
  .orbit[data-count="4"] .check-circle { width: 34px; height: 34px; font-size: 22px; border-width: 1px; }
  .orbit[data-count="3"] .marker-copy,
  .orbit[data-count="4"] .marker-copy { font-size: 10px; }
  .orbit[data-count="3"] .model-card:nth-child(1) .you-are-here,
  .orbit[data-count="4"] .model-card:nth-child(1) .you-are-here { left: 50%; right: auto; top: -43px; translate: -50% 0; }
  .orbit[data-count="3"] .model-card:nth-child(2) .you-are-here { left: auto; right: 0; top: calc(100% + 4px); }
  .orbit[data-count="3"] .model-card:nth-child(3) .you-are-here { left: 0; right: auto; top: calc(100% + 4px); }
  .orbit[data-count="4"] .model-card:nth-child(2) .you-are-here { left: auto; right: 0; top: -43px; width: 92px; }
  .orbit[data-count="4"] .model-card:nth-child(3) .you-are-here { left: 50%; right: auto; top: calc(100% + 4px); translate: -50% 0; }
  .orbit[data-count="4"] .model-card:nth-child(4) .you-are-here {
    left: 0;
    right: auto;
    top: -43px;
    width: 92px;
    text-align: right;
  }
  .you-are-here { width: 150px; }
  .check-circle { width: 54px; height: 54px; font-size: 34px; }
  .marker-copy { font-size: 17px; }
  .corner-logo { gap: 8px; transform: none; }
  .corner-logo__mark { width: 34px; height: 34px; }
  .corner-logo__name { font-size: 23px; }
  .corner-logo--gigachat .corner-logo__mark { width: 33px; height: 33px; }
  .corner-logo--gigachat .corner-logo__name { font-size: 21px; }
  .language-switcher { top: 14px; left: 14px; transform: none; }
  .language-switcher button { min-width: 34px; padding: 7px 7px; }
  .social-links { top: 14px; right: 14px; gap: 6px; }
  .social-link { width: 38px; height: 38px; }
  .social-link svg { width: 20px; height: 20px; }
  .social-link--threads svg { width: 21px; height: 21px; }
  .meme-credit {
    left: 14px;
    bottom: 16px;
    transform: none;
    max-width: min(210px, calc(100vw - 150px));
    text-align: left;
    font-size: 9px;
  }
  .ad-placeholder {
    position: static;
    flex: 0 0 auto;
    width: 220px;
    height: 70px;
    transform: none;
    border-radius: 10px;
    font-size: 8px;
  }
  .orbit[data-count="2"] ~ .ad-placeholder { margin-top: -58px; }
  .history-toggle {
    top: auto;
    bottom: 14px;
    right: 14px;
    transform: none;
    writing-mode: horizontal-tb;
    border-right: 1px solid rgba(30, 29, 25, .2);
    border-radius: 999px;
    padding: 10px 13px;
  }
  .history-toggle:hover { padding-right: 13px; }
  .history-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(78vh, 650px);
    height: min(78svh, 650px);
    height: min(78dvh, 650px);
    padding: 24px 22px 0;
    border-top: 1px solid rgba(28, 27, 23, .15);
    border-left: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -24px 70px rgba(31, 29, 24, .15);
    transform: translateY(105%);
  }
  .history-panel.is-open { transform: translateY(0); }
  .history-header h2 { font-size: 22px; }
  .hype-timeline { padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px)); }
}

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

/* Admin */
.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0, rgba(102,182,151,.2), transparent 35%),
    radial-gradient(circle at 95% 90%, rgba(139,121,189,.14), transparent 34%),
    #eeece6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.admin-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 28px; }
.admin-eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 750; color: #567365; }
.admin-title { margin: 0; font: 500 clamp(34px, 5vw, 56px)/1 Georgia, serif; letter-spacing: -.04em; }
.admin-subtitle { margin: 12px 0 0; color: #68655d; }

.panel {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(28,28,24,.13);
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(42,40,34,.08);
  padding: clamp(22px, 4vw, 38px);
  backdrop-filter: blur(14px);
}

.login-panel { width: min(460px, 100%); margin: 11vh auto 0; }
.form-stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
.field input, .field select {
  width: 100%; border: 1px solid #c9c5ba; border-radius: 12px; background: rgba(255,255,255,.82);
  padding: 13px 14px; outline: none;
}
.field input:focus, .field select:focus { border-color: #4b8e74; box-shadow: 0 0 0 3px rgba(75,142,116,.14); }

.button {
  border: 0; border-radius: 999px; background: #1f2723; color: white; padding: 12px 19px;
  font-weight: 720; cursor: pointer; transition: transform .15s ease, opacity .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .6; transform: none; }
.button--secondary { background: transparent; color: #343832; border: 1px solid rgba(30,35,31,.22); }

.section-title { margin: 0 0 5px; font-size: 18px; }
.section-help { margin: 0 0 20px; color: #747168; font-size: 14px; }
.settings-language-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  margin: 0 0 9px;
  padding: 4px;
  border: 1px solid #d2cec3;
  border-radius: 999px;
  background: rgba(255,255,255,.52);
}
.settings-language-picker button {
  min-width: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f6c64;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.settings-language-picker button[aria-selected="true"] { background: #1f2723; color: #fff; }
.settings-language-picker button:focus-visible { outline: 3px solid #8bbba8; outline-offset: 2px; }
.active-settings-language { margin: 0 0 26px; color: #77736a; font-size: 12px; }
.active-settings-language strong { color: #343832; }
.settings-subtitle { margin: 0 0 5px; font-size: 15px; }
.logo-picker { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 28px; }
.logo-option { position: relative; cursor: pointer; }
.logo-option input { position: absolute; opacity: 0; pointer-events: none; }
.logo-option-card {
  min-height: 122px; display: grid; place-items: center; gap: 4px; text-align: center;
  border: 1px solid #d5d1c7; border-radius: 16px; background: rgba(255,255,255,.56); padding: 15px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.logo-option:hover .logo-option-card { transform: translateY(-2px); }
.logo-option input:checked + .logo-option-card { border-color: #408267; box-shadow: 0 0 0 3px rgba(64,130,103,.14); background: #f7fbf8; }
.logo-option input:focus-visible + .logo-option-card { outline: 3px solid #8bbba8; outline-offset: 2px; }
.option-mark { width: 52px; height: 46px; display: grid; place-items: center; }
.option-logo { display: block; width: 42px; height: 42px; object-fit: contain; }
.option-logo--claude { width: 43px; height: 43px; }
.option-logo--gemini { width: 41px; height: 41px; }
.option-logo--grok { width: 40px; height: 40px; }
.option-logo--deepseek { width: 50px; height: 38px; }
.option-name { font-size: 13px; font-weight: 700; }
.marker-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.marker-option input { position: absolute; opacity: 0; }
.marker-option span { display: block; border: 1px solid #d2cec3; border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.marker-option input:checked + span { background: #d9eee5; border-color: #6a9f89; }
.visibility-setting {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 0 0 28px;
  color: #343832;
  cursor: pointer;
}
.visibility-setting input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #408267;
  cursor: pointer;
}
.visibility-setting span { display: grid; gap: 3px; }
.visibility-setting strong { font-size: 14px; }
.visibility-setting small { color: #747168; font-size: 12px; }
.corner-logo-setting {
  margin: 4px 0 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(30,30,25,.1);
}
.corner-logo-setting .visibility-setting { margin-bottom: 14px; }
.corner-logo-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.corner-logo-option { position: relative; cursor: pointer; }
.corner-logo-option input { position: absolute; opacity: 0; pointer-events: none; }
.corner-logo-option > span {
  min-width: 142px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d2cec3;
  border-radius: 14px;
  background: rgba(255,255,255,.56);
  padding: 10px 13px;
}
.corner-logo-option img { width: 29px; height: 29px; object-fit: contain; }
.corner-logo-option strong { font-size: 13px; }
.corner-logo-option input:checked + span { border-color: #408267; box-shadow: 0 0 0 3px rgba(64,130,103,.14); background: #f7fbf8; }
.corner-logo-option input:focus-visible + span { outline: 3px solid #8bbba8; outline-offset: 2px; }
.admin-actions { display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(30,30,25,.1); padding-top: 22px; }
.status { min-height: 20px; color: #34725a; font-size: 14px; }
.error { min-height: 20px; color: #a03838; font-size: 14px; }
.preview-link { color: #3c6756; text-decoration: none; font-weight: 650; }

.analytics-panel { margin-bottom: 18px; }
.analytics-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.analytics-heading .section-help { margin-bottom: 24px; }
.analytics-live { color: #6d766f; font-size: 12px; white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-card {
  min-width: 0;
  border: 1px solid #d8d4ca;
  border-radius: 15px;
  background: rgba(249,250,247,.72);
  padding: 15px;
}
.stat-card span { display: block; min-height: 32px; color: #716e66; font-size: 12px; line-height: 1.3; }
.stat-card strong { display: block; margin-top: 8px; font: 500 32px/1 Georgia, serif; letter-spacing: -.035em; }
.mini-chart { height: 128px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; align-items: end; margin-top: 24px; }
.chart-day { height: 100%; display: grid; grid-template-rows: 18px 1fr 18px; gap: 4px; text-align: center; }
.chart-value, .chart-label { color: #716e66; font-size: 10px; text-transform: lowercase; }
.chart-bar { position: relative; display: flex; align-items: end; justify-content: center; border-radius: 7px; background: rgba(100,145,125,.08); overflow: hidden; }
.chart-bar i { display: block; width: 100%; min-height: 4px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #81bba3, #4c8e73); }
.analytics-note { margin: 15px 0 0; color: #858178; font-size: 11px; }
.history-admin-panel { margin-top: 18px; }
.history-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field--wide { grid-column: 1 / -1; }
.history-list-panel { margin-top: 18px; }
.history-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.history-count { color: #77736a; font-size: 12px; white-space: nowrap; }
.history-admin-list { display: grid; gap: 9px; margin-top: 20px; }
.history-admin-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid #d8d4ca;
  border-radius: 14px;
  background: rgba(255,255,255,.5);
  padding: 11px 12px;
}
.history-admin-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d7d2c7;
  border-radius: 12px;
  background: #faf8f3;
  font: 500 23px/1 Georgia, serif;
}
.history-admin-mark--claude { color: #c77842; }
.history-admin-mark--gemini { color: #7867aa; }
.history-admin-mark--kimi, .history-admin-mark--deepseek { color: #3265dc; }
.history-admin-mark--meta { color: #1769e0; font-family: Arial, sans-serif; }
.history-admin-mark--mistral { color: #f06b31; font-family: Arial, sans-serif; }
.history-admin-mark--qwen { color: #6946c8; font-family: Arial, sans-serif; font-weight: 700; }
.history-admin-logo { display: block; width: 25px; height: 25px; object-fit: contain; }
.history-admin-logo--deepseek { width: 31px; height: 23px; }
.history-admin-copy { min-width: 0; display: grid; gap: 2px; }
.history-admin-copy time { color: #807c73; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.history-admin-copy strong { overflow: hidden; text-overflow: ellipsis; font-size: 14px; white-space: nowrap; }
.history-admin-copy span { color: #716e66; font-size: 11px; }
.delete-history-button {
  border: 1px solid rgba(151,59,59,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  color: #963e3e;
  padding: 8px 12px;
  font-weight: 650;
  cursor: pointer;
}
.delete-history-button:hover { background: #fff4f2; border-color: rgba(151,59,59,.45); }
.delete-history-button:disabled { cursor: wait; opacity: .55; }

@media (max-width: 760px) {
  .admin-shell { padding-top: 28px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
  .logo-picker { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-heading { display: block; }
  .analytics-live { display: block; margin: -14px 0 18px; }
  .history-form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .history-admin-item { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .history-admin-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 21px; }
  .delete-history-button { padding: 7px 9px; font-size: 12px; }
}
