@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --border: #d1d5db;
  --text-primary: #111111;
  --text-secondary: #4b5563;
  --accent: #1f2937;
  --accent-soft: #e5e7eb;
  --focus: #111111;
  --shadow-soft: 0 4px 16px rgba(17, 17, 17, 0.07);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, #fafafa 0%, var(--bg) 100%);
  color: var(--text-primary);
  line-height: 1.5;
}

body.status-page {
  background:
    linear-gradient(180deg, rgba(250, 250, 250, 0.84) 0%, rgba(245, 245, 245, 0.86) 100%),
    url("../public/uma-musume-meep.gif") right 2.4rem top 8.2rem / clamp(250px, 25vw, 420px) auto no-repeat,
    linear-gradient(180deg, #fafafa 0%, var(--bg) 100%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

code {
  font-family: "IBM Plex Sans", "Consolas", monospace;
  background: #eceff1;
  border: 1px solid #d6dbe0;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.protocol-warning {
  margin: 0.9rem auto 0;
  max-width: 1100px;
  padding: 0.72rem 0.85rem;
  border: 1px solid #c9b8b8;
  border-radius: var(--radius-sm);
  background: #f7f1f1;
  color: #4a2323;
  font-size: 0.9rem;
}

.site-header h1 {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  letter-spacing: -0.01em;
}

.header-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.header-socials {
  margin-bottom: 0;
}

.header-socials-right {
  margin-left: 0.45rem;
  justify-self: end;
}

.brand-token {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.header-separator {
  color: #9ca3af;
}

.subtitle {
  margin-top: 0.35rem;
  color: var(--text-secondary);
  max-width: 56ch;
}

.header-meta {
  margin-top: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-self: end;
}

.header-center-note {
  justify-self: center;
  font-size: 0.82rem;
  color: #5b6779;
  background: #f4f7fb;
  border: 1px solid #d6deea;
  border-radius: 999px;
  padding: 0.34rem 0.75rem;
  white-space: nowrap;
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2.5rem) 2rem;
}

.filters-panel,
.content-panel,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.filters-panel {
  padding: 1rem;
  align-self: start;
  position: sticky;
  top: 1rem;
  overflow: hidden;
}

.filters-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../public/uma-musume-meep.gif") center / cover no-repeat;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.filters-panel > * {
  position: relative;
  z-index: 1;
}

.filters-panel h2 {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}

.filter-groups {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.drawer-close-btn {
  display: none;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-primary);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.filter-group {
  border-top: 1px solid #eceff3;
  padding-top: 0.9rem;
}

.filter-group:first-child {
  border-top: none;
  padding-top: 0;
}

.filter-group h3 {
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  color: var(--text-secondary);
}

body:not(.shady-enabled) .filter-group[data-filter-group="shadyFlags"] {
  display: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  font-size: 0.86rem;
  transition: background-color 120ms ease, color 120ms ease, transform 120ms ease, border-color 120ms ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: #9ca3af;
}

.filter-chip.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.content-panel {
  position: relative;
  padding: 1rem;
}

.toolbar {
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.search-wrap {
  flex: 1 1 300px;
}

.sort-wrap {
  flex: 0 0 220px;
}

.shortlist-toggle {
  width: 100%;
  justify-content: center;
}

.shortlist-toggle.active {
  background: #1f2937;
  border-color: #1f2937;
  color: #ffffff;
}

.shady-easter-toggle {
  position: absolute;
  top: 0.58rem;
  right: 0.58rem;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px dashed #b8bec8;
  background: #fafbfd;
  color: #a1a9b5;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background-color 120ms ease;
}

.shady-easter-toggle:hover {
  color: #6b7280;
  border-color: #8f99a8;
}

.shady-easter-toggle.active {
  color: #ffffff;
  border-style: solid;
  border-color: #7f1d1d;
  background: #7f1d1d;
}

.shady-notice {
  position: fixed;
  right: max(1rem, calc((100vw - 1400px) / 4));
  top: 50%;
  transform: translateY(-50%);
  width: min(260px, 26vw);
  border: 1px solid #d8a79c;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff9f7 0%, #fff0eb 100%);
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.12);
  padding: 0.85rem;
  z-index: 30;
}

.shady-notice h3 {
  font-size: 0.92rem;
}

.shady-notice p {
  margin-top: 0.32rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  color: #7f1d1d;
}

.search-wrap label,
.sort-wrap label {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

input[type="search"],
select {
  width: 100%;
  padding: 0.62rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text-primary);
  background: #fcfcfc;
}

.results-summary {
  margin-top: 0.8rem;
  margin-bottom: 0.95rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.stats-strip {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin-top: 0.85rem;
  margin-bottom: 0.65rem;
}

.radar-panel {
  margin-top: 0.55rem;
  margin-bottom: 0.55rem;
  border: 1px solid #d7dee8;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfcff 0%, #f3f6fa 100%);
  padding: 0.58rem 0.62rem;
}

.radar-heading {
  font-size: 0.92rem;
}

.radar-grid {
  margin-top: 0.42rem;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.radar-card {
  border: 1px solid #d6dde8;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.45rem 0.52rem;
}

.radar-title {
  font-size: 0.8rem;
  color: #334155;
}

.radar-list {
  margin-top: 0.32rem;
  display: grid;
  gap: 0.3rem;
}

.radar-item {
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: #f8fafd;
  padding: 0.32rem 0.42rem;
  text-decoration: none;
  display: grid;
  gap: 0.1rem;
}

.radar-item:hover {
  border-color: #bcc9da;
}

.radar-item-company {
  font-size: 0.78rem;
  font-weight: 600;
}

.radar-item-meta {
  font-size: 0.7rem;
  color: #5b6779;
  line-height: 1.35;
}

.radar-empty {
  font-size: 0.82rem;
  color: #64748b;
}

.stat-mini {
  border: 1px solid #cdd4de;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.62rem;
  background: #fbfcfd;
}

.stat-mini-label {
  font-size: 0.77rem;
  color: var(--text-secondary);
}

.stat-mini-value {
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 0.12rem;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 0.9rem;
}

.active-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-right: 0.1rem;
}

.active-chip,
.active-clear {
  border: 1px solid #c5ccd7;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: #f8fafc;
  color: #25303d;
  font-size: 0.8rem;
  cursor: pointer;
}

.active-clear {
  background: #ffffff;
  border-style: dashed;
}

.cards-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}

.offer-card {
  border: none;
  background: transparent;
  padding: 0;
  perspective: 1200px;
  min-height: 330px;
  transition: transform 150ms ease;
  animation: card-enter 140ms ease both;
  cursor: pointer;
}

.offer-card:hover {
  transform: translateY(-2px);
}

.offer-card-inner {
  display: grid;
  min-height: 100%;
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.offer-card.is-flipped .offer-card-inner {
  transform: rotateY(180deg);
}

.offer-card-face {
  grid-area: 1 / 1;
  border: 1px solid #c3ccd7;
  border-radius: var(--radius-md);
  background: #fefefe;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.03);
  backface-visibility: hidden;
}

.offer-card-front {
  position: relative;
}

.card-top-badges {
  position: absolute;
  top: 0.52rem;
  right: 0.52rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  z-index: 3;
  pointer-events: none;
}

.card-corner-label {
  position: static;
  border-radius: 999px;
  border: 1px solid #63b67d;
  background: #e4f7eb;
  color: #14532d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.18rem 0.5rem;
  box-shadow: 0 1px 0 rgba(18, 88, 47, 0.14);
  pointer-events: none;
}

.card-corner-label-newly-added {
  border-color: #3f9f61;
  background: #d8f3e3;
  color: #0f5132;
}

.offer-card-back {
  position: relative;
  transform: rotateY(180deg);
  overflow: hidden;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #e5edf8;
  border-color: #233145;
  background:
    radial-gradient(circle at 20% 25%, rgba(111, 156, 255, 0.55), transparent 42%),
    radial-gradient(circle at 85% 82%, rgba(76, 196, 255, 0.45), transparent 40%),
    linear-gradient(140deg, #1a2433 0%, #101826 65%, #0a1019 100%);
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.offer-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-right: 2.2rem;
}

.offer-card-front.has-card-label .offer-card-header {
  padding-right: 8.6rem;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd3dd;
  background: linear-gradient(180deg, #f7f8f9 0%, #eef2f5 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.company-icon {
  font-size: 24px;
  color: #1c1f23;
}

.company-initials {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #374151;
}

.logo-fallback-glyph {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #556170;
  position: relative;
}

.logo-fallback-glyph::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: #556170;
  top: 4px;
  left: 4px;
}

.fallback-hidden {
  display: none;
}

.fallback-hidden {
  display: none;
}

.company-name {
  font-size: 1rem;
  line-height: 1.25;
}

.card-value {
  margin-top: 0.16rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.value-row {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pricing-badge {
  border: 1px solid #cfd7e3;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  color: #2e3744;
  background: #f3f5f8;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-size: 0.74rem;
  border: 1px solid #d6dce3;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  color: #2b3440;
  background: #f8fafb;
}

.tag-pricing {
  background: #eef2f7;
  border-color: #c8d1dd;
}

.tag-alt {
  background: #f0f3f6;
}

.card-description {
  font-size: 0.9rem;
  max-width: 44ch;
}

.card-shady-note {
  color: #7f1d1d;
  font-weight: 600;
}

.card-eligibility {
  font-size: 0.86rem;
  color: var(--text-secondary);
  max-width: 44ch;
}

.inline-label {
  font-weight: 600;
  color: #323b46;
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.trust-meta {
  font-size: 0.78rem;
  color: #5a6473;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
  padding: 0.52rem 0.82rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #111827;
  border-color: #111827;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: #9ca3af;
}

.btn-ghost {
  width: 100%;
  background: #f7f8f9;
  color: #1f2937;
  border: 1px dashed #c8d0da;
}

.btn-small {
  align-self: center;
  margin-top: 0;
  font-size: 0.84rem;
}

.favorite-btn {
  position: static;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid #c8d2df;
  border-radius: 999px;
  background: #f7f9fc;
  color: #334155;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.favorite-btn:hover {
  border-color: #9fb0c8;
  background: #edf2f8;
}

.favorite-btn.active {
  background: #fff5cf;
  border-color: #e5c561;
  color: #9a6b00;
}

.card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.btn-report {
  background: #f9fafb;
}

.btn-report:hover {
  background: #f3f4f6;
}

.offer-card.shady-card .offer-card-front {
  border-color: #d2a99e;
  background: linear-gradient(180deg, #fffdfd 0%, #fff7f3 100%);
}

.offer-card.shady-card .offer-card-back {
  border-color: #4a2828;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 152, 122, 0.35), transparent 42%),
    radial-gradient(circle at 86% 84%, rgba(206, 98, 78, 0.3), transparent 42%),
    linear-gradient(140deg, #331f1f 0%, #261819 65%, #1b1111 100%);
}

.tag-shady {
  border-color: #d6a198;
  background: #ffe4dc;
  color: #772c1f;
}

.back-visual {
  width: min(82%, 190px);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(183, 207, 255, 0.4);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(143, 192, 255, 0.25) 0%, rgba(143, 192, 255, 0) 60%),
    repeating-radial-gradient(circle at center, rgba(156, 188, 255, 0.28), rgba(156, 188, 255, 0.28) 1px, transparent 1px, transparent 20px);
  position: relative;
}

.back-visual::before {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(190, 214, 255, 0.45);
  border-radius: 50%;
}

.back-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #c4ddff;
  box-shadow: 0 0 18px rgba(157, 206, 255, 0.65);
  animation: node-pulse 2.2s ease-in-out infinite;
  animation-delay: calc(var(--node-index) * 160ms);
}

.back-node:nth-child(1) {
  transform: translate(-50%, -50%) translate(-66px, -30px);
}

.back-node:nth-child(2) {
  transform: translate(-50%, -50%) translate(-24px, -74px);
}

.back-node:nth-child(3) {
  transform: translate(-50%, -50%) translate(56px, -44px);
}

.back-node:nth-child(4) {
  transform: translate(-50%, -50%) translate(62px, 24px);
}

.back-node:nth-child(5) {
  transform: translate(-50%, -50%) translate(0px, 70px);
}

.back-node:nth-child(6) {
  transform: translate(-50%, -50%) translate(-70px, 34px);
}

.back-title {
  margin-top: 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.area-glyph {
  margin-top: 0;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 1px solid rgba(187, 205, 255, 0.5);
  background: linear-gradient(145deg, rgba(79, 117, 191, 0.22), rgba(73, 164, 231, 0.16));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.area-glyph-icon {
  font-size: 24px;
  color: #d8e7ff;
  position: relative;
  z-index: 2;
}

.area-glyph-halo {
  position: absolute;
  inset: 7px;
  border-radius: 12px;
  border: 1px dashed rgba(208, 225, 255, 0.55);
}

.area-glyph-spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 8px;
  right: 8px;
  background: #9bc4ff;
  box-shadow: 0 0 10px rgba(155, 196, 255, 0.9);
}

.area-glyph-back {
  width: 124px;
  height: 124px;
  border-radius: 30px;
  border-width: 1px;
  background: linear-gradient(145deg, rgba(123, 165, 246, 0.32), rgba(57, 153, 230, 0.24));
  box-shadow: 0 0 28px rgba(151, 190, 255, 0.28);
}

.area-glyph-back .area-glyph-icon {
  font-size: 56px;
}

.area-glyph-back .area-glyph-halo {
  inset: 13px;
  border-radius: 20px;
}

.area-glyph-back .area-glyph-spark {
  display: none;
}

.area-creative {
  background: linear-gradient(145deg, rgba(190, 79, 191, 0.23), rgba(96, 143, 231, 0.18));
}

.area-financial {
  background: linear-gradient(145deg, rgba(74, 156, 95, 0.28), rgba(55, 111, 172, 0.18));
}

.area-travel {
  background: linear-gradient(145deg, rgba(57, 132, 205, 0.26), rgba(45, 186, 179, 0.2));
}

.area-gaming {
  background: linear-gradient(145deg, rgba(145, 91, 222, 0.3), rgba(45, 145, 196, 0.18));
}

.area-shopping {
  background: linear-gradient(145deg, rgba(211, 128, 76, 0.28), rgba(126, 157, 225, 0.18));
}

.back-meta {
  margin-top: 0.05rem;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  color: #b4c7e6;
}

@keyframes node-pulse {
  0%,
  100% {
    opacity: 0.45;
    box-shadow: 0 0 10px rgba(157, 206, 255, 0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(157, 206, 255, 0.85);
  }
}

.text-link {
  text-decoration: underline;
  color: #1f2937;
}

.empty-state {
  margin-top: 1rem;
  border: 1px dashed #c9d1db;
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
  color: var(--text-secondary);
  background: #fbfcfd;
}

.empty-actions {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
}

.page-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: #1f2937;
  border-radius: 8px;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.6rem;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.page-btn:hover:enabled {
  border-color: #9ca3af;
}

.page-btn.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.page-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.page-ellipsis {
  color: #64748b;
  padding: 0 0.2rem;
}

.status-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2.5rem) 2rem;
  display: grid;
  gap: 1rem;
}

.panel {
  padding: 1rem;
}

.status-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.85rem;
}

.status-toolbar-summary {
  font-size: 0.9rem;
  color: #4f5d72;
}

.status-toolbar .sort-wrap {
  width: min(320px, 100%);
}

.stats-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.stat-card {
  border: 1px solid #d9dde3;
  border-radius: var(--radius-sm);
  background: #f8f9fb;
  padding: 0.75rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.stat-value {
  margin-top: 0.3rem;
  font-size: 1.06rem;
  font-weight: 600;
}

.count-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.count-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border: 1px solid #dce1e8;
  border-radius: var(--radius-sm);
  padding: 0.58rem 0.74rem;
  background: #fafbfc;
}

.heatmap-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.heatmap-cell {
  border: 1px solid #d5deea;
  border-radius: 10px;
  padding: 0.6rem 0.65rem;
  background:
    linear-gradient(140deg,
      rgba(36, 90, 158, calc(0.12 + (var(--intensity, 0) * 0.45))),
      rgba(62, 167, 194, calc(0.1 + (var(--intensity, 0) * 0.3))));
  color: #0f172a;
  animation: heatmap-fade 320ms ease both;
}

.heatmap-label {
  font-size: 0.82rem;
  color: #0f172a;
  opacity: 0.85;
}

.heatmap-value {
  margin-top: 0.2rem;
  font-size: 1.15rem;
  font-weight: 700;
}

@keyframes heatmap-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-box {
  border: 1px solid #d5c3c3;
  background: #f8f4f4;
  color: #4a2323;
  border-radius: var(--radius-md);
  padding: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1rem clamp(1rem, 3vw, 2.5rem) 1.3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-self: center;
}

.footer-spacer {
  justify-self: start;
}

.footer-note {
  justify-self: end;
  font-size: 0.9rem;
  color: #4b5563;
  white-space: nowrap;
}

.social-link {
  width: 42px;
  height: 42px;
  border: 1px solid #cfd7e3;
  border-radius: 999px;
  background: #f7f9fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  transition: transform 120ms ease, border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentcolor;
}

.social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: #94a3b8;
  background: #eef2f7;
}

.social-link-sm {
  width: 34px;
  height: 34px;
}

.social-link-sm svg {
  width: 14px;
  height: 14px;
}

.social-link-sm img {
  width: 18px;
  height: 18px;
}

.social-link-xs {
  width: 30px;
  height: 30px;
}

.social-link-xs svg {
  width: 12px;
  height: 12px;
}

.social-link-xs img {
  width: 16px;
  height: 16px;
}

.offer-card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.35);
  z-index: 40;
}

.resume-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.resume-modal[hidden] {
  display: none;
}

.resume-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 17, 17, 0.55);
  cursor: pointer;
}

.resume-modal-panel {
  position: relative;
  width: min(1050px, 100%);
  height: min(84vh, 880px);
  background:
    radial-gradient(circle at 92% 8%, rgba(31, 41, 55, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 55px rgba(17, 17, 17, 0.28);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.resume-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #dbe2ea;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.resume-modal-header h2 {
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.resume-modal-kicker {
  font-size: 0.76rem;
  color: #5b6779;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.resume-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.resume-frame-wrap {
  padding: 0.8rem;
}

.resume-frame {
  width: 100%;
  height: 100%;
  border: 1px solid #d4dbe5;
  border-radius: var(--radius-md);
  background: #ffffff;
}

body.resume-modal-open {
  overflow: hidden;
}

.mobile-action-bar {
  display: none;
}

.mobile-action-btn {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
  padding: 0.58rem 1rem;
  font: inherit;
  cursor: pointer;
}

mark {
  background: #e7eef8;
  color: inherit;
  border-radius: 3px;
  padding: 0 0.1em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1023px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    position: static;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.status-page {
    background:
      linear-gradient(180deg, rgba(250, 250, 250, 0.86) 0%, rgba(245, 245, 245, 0.88) 100%),
      url("../public/uma-musume-meep.gif") right 0.8rem top 6.6rem / 210px auto no-repeat,
      linear-gradient(180deg, #fafafa 0%, var(--bg) 100%);
  }

  .site-header {
    grid-template-columns: 1fr;
    padding: 1.25rem 1rem;
    justify-items: center;
  }

  .header-socials {
    justify-self: center;
    margin-bottom: 0;
  }

  .header-actions {
    width: 100%;
    justify-self: stretch;
    justify-content: center;
  }

  .header-actions .btn {
    flex: 0 1 auto;
  }

  .header-socials-right {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }

  .header-center-note {
    white-space: normal;
    text-align: center;
  }

  .status-toolbar {
    grid-template-columns: 1fr;
  }

  .layout,
  .status-layout {
    padding: 0.9rem 0.9rem 1.35rem;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-wrap {
    flex: 1 1 auto;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    justify-content: center;
  }

  .drawer-close-btn {
    display: inline-flex;
  }

  .filters-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(85vw, 340px);
    z-index: 50;
    border-radius: 0;
    border-left: none;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    overflow-y: auto;
  }

  body.mobile-drawer-open .filters-panel {
    transform: translateX(0);
  }

  body.mobile-drawer-open {
    overflow: hidden;
  }

  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: flex;
    gap: 0.7rem;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom));
  }

  .mobile-action-btn {
    flex: 1 1 0;
  }

  .resume-modal {
    padding: 0.55rem;
  }

  .resume-modal-panel {
    height: min(90vh, 900px);
  }

  .resume-modal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .resume-modal-actions {
    width: 100%;
  }

  .resume-modal-actions .btn {
    flex: 1 1 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-bottom: 4.9rem;
  }

  .shady-notice {
    display: none;
  }

  .footer-spacer {
    display: none;
  }

  .footer-note {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.status-page {
    background: linear-gradient(180deg, #fafafa 0%, var(--bg) 100%);
  }

  .filters-panel::before {
    content: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
