/* Under Pressure — Krav Maga Athens */
:root {
  --bg-deep: #070708;
  --bg-elevated: #0f1012;
  --bg-card: #14161a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f2f4;
  --text-muted: #9a9ca3;
  --accent: #e6392e;
  --accent-dim: rgba(230, 57, 46, 0.15);
  --gold: #c9a227;
  --font-display: "Bebas Neue", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --header-h: 72px;
  /* Total fixed header height including notch (safe-area) */
  --header-offset: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  min-height: 100dvh;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: #ff6b5e;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: 1120px;
  width: 100%;
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
  min-height: var(--header-offset);
  display: flex;
  align-items: center;
  background: rgba(7, 7, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease-out);
  padding-top: env(safe-area-inset-top, 0);
  box-sizing: border-box;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 8, 0.92);
}

.header-inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: 100%;
  margin-inline: auto;
  padding-inline: max(0.75rem, env(safe-area-inset-left, 0px)) max(0.75rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
  min-width: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: clamp(2.25rem, 6vw, 2.85rem);
  width: auto;
  max-width: min(260px, 58vw);
  object-fit: contain;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem !important;
  background: var(--accent) !important;
  color: #fff !important;
}

.nav-cta:hover {
  background: #c42f26 !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile-backdrop {
  display: none;
  position: fixed;
  top: var(--header-offset);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 550;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
}

.nav-mobile-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-offset);
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100vh - var(--header-offset));
  height: calc(100dvh - var(--header-offset));
  max-height: calc(100vh - var(--header-offset));
  max-height: calc(100dvh - var(--header-offset));
  box-sizing: border-box;
  background: rgba(12, 13, 16, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  flex-direction: column;
  gap: 0.15rem;
  z-index: 560;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-mobile a {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.85rem 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  -webkit-tap-highlight-color: transparent;
}

.nav-mobile .nav-cta {
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  padding: 0.85rem 1rem !important;
  text-align: center;
  justify-content: center;
  border-radius: var(--radius);
  border: none !important;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-mobile-backdrop {
    display: block;
  }
  .nav-mobile {
    display: flex;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-offset) + 3rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 8, 0.2) 0%,
    rgba(7, 7, 8, 0.75) 45%,
    var(--bg-deep) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  width: 100%;
  margin-inline: auto;
  padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.hero-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.hero-sub {
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  max-width: 32ch;
  margin-bottom: 1.75rem;
}

.hero-address {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-address svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s, box-shadow 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 32px rgba(230, 57, 46, 0.35);
}

.btn-primary:hover {
  background: #c42f26;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* —— Sections —— */
section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.section-head p {
  color: var(--text-muted);
  max-width: 52ch;
  margin-top: 0.75rem;
}

/* —— Programs grid —— */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.program-card:hover {
  border-color: rgba(230, 57, 46, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.program-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* —— Quote —— */
.quote-block {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0;
  text-align: center;
  overflow: hidden;
}

.quote-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
}

.quote-inner {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.quote-block blockquote p {
  margin: 0;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.9375rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.quote-block .role {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  letter-spacing: 0.06em;
}

/* —— Team —— */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out);
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #1a1c22 0%, #0a0b0d 100%);
  position: relative;
}

.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-elevated) 0%, transparent 45%);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.team-body {
  padding: 1.35rem 1.5rem 1.5rem;
  margin-top: -3rem;
  position: relative;
  z-index: 1;
}

.team-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.35rem;
}

.team-body .role {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-certs {
  margin: 0.85rem 0 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.team-certs li {
  margin: 0.25rem 0;
}

/* —— Certification / partner logos (IKMF, StrongFirst) —— */
.cert-partners-section {
  padding-top: 2.5rem;
  padding-bottom: 0.5rem;
}

.cert-partners-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: 0.04em;
  margin: 0;
  text-transform: uppercase;
}

.cert-partners-lead {
  max-width: 52ch;
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.cert-badges {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
}

.cert-badges > li {
  flex: 1 1 240px;
  max-width: 420px;
  display: flex;
  justify-content: center;
}

.cert-badge-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 1.15rem 1.4rem;
  min-height: 120px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  text-decoration: none;
}

.cert-badge-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.38);
}

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

.cert-badge-img--ikmf {
  max-height: 88px;
}

.cert-badge-img--strongfirst {
  max-height: 220px;
  max-width: min(100%, 280px);
}

.cert-org-copy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 2.25rem;
  text-align: left;
}

.cert-org-block {
  margin: 0;
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
}

.cert-org-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.cert-org-block p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.cert-org-block p:last-child {
  margin-bottom: 0;
}

.cert-partners-note {
  margin: 1.5rem auto 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 56ch;
  line-height: 1.45;
}

/* —— Map teaser —— */
.map-section {
  padding-bottom: 0;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: min(420px, 55vh);
  background: var(--bg-card);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.4) contrast(1.05);
}

/* —— Footer —— */
.site-footer {
  padding: 3rem 0 max(2rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
}

.footer-brand span {
  color: var(--accent);
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

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

.copyright {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* —— Inner pages —— */
.page-hero {
  padding-top: calc(var(--header-offset) + 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.page-hero p {
  color: var(--text-muted);
  margin: 0;
  max-width: 50ch;
}

/* Schedule */
.schedule-wrap {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.schedule-program {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule-program h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: rgba(230, 57, 46, 0.08);
  border-bottom: 1px solid var(--border);
}

.schedule-program-lead {
  margin: 0;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-bottom: 1px solid var(--border);
}

.schedule-subheading {
  margin: 0;
  padding: 1.1rem 1.5rem 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
}

.schedule-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.schedule-meta strong {
  color: var(--text);
}

.schedule-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.schedule-table th,
.schedule-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.schedule-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table .day {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  width: 7rem;
}

.slot-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-left: 0.35rem;
  color: var(--gold);
  vertical-align: middle;
}

/* About */
.prose {
  max-width: 65ch;
}

.prose p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.value-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.value-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-card h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.contact-card a,
.contact-card p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(230, 57, 46, 0.5);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Long-form article (Krav Maga, etc.) */
.prose-article {
  max-width: 52rem;
  margin-inline: auto;
}

.prose-article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 2.75rem 0 1rem;
  color: var(--text);
}

.prose-article h2:first-of-type {
  margin-top: 0;
}

.prose-article h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 0.75rem;
}

.prose-article p {
  color: var(--text-muted);
  margin: 0 0 1.15rem;
}

.prose-article p:last-child {
  margin-bottom: 0;
}

.prose-article .article-lead {
  font-size: 1.125rem;
  color: var(--text);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@supports (height: 100dvh) {
  .hero {
    min-height: min(92dvh, 900px);
  }
}

@media (hover: none) {
  .program-card:hover,
  .team-card:hover {
    transform: none;
    box-shadow: none;
  }

  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }
}

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

  .schedule-table {
    font-size: 0.8125rem;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.65rem 0.75rem;
  }

  .schedule-table td:not(.day) {
    word-break: break-word;
    hyphens: auto;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .contact-form {
    padding: 1.5rem 1.25rem;
  }

  .prose-article {
    padding-inline: 0.25rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .schedule-program h2 {
    font-size: 1.45rem;
    padding: 1rem 1rem;
  }

  .schedule-meta {
    padding: 0.85rem 1rem;
    gap: 1rem;
  }
}

/* Student auth & gamification */
.form-error {
  color: #ff8a80;
  font-size: 0.85rem;
  margin: -0.75rem 0 1rem;
}

.student-auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.student-auth-footer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.student-auth-footer a {
  color: var(--accent);
}

.flash-banner {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.flash-banner--ok {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid rgba(76, 175, 80, 0.35);
  color: #a5d6a7;
}

.flash-banner--info {
  background: rgba(100, 180, 255, 0.12);
  border: 1px solid rgba(100, 180, 255, 0.3);
  color: #90caf9;
}

.flash-banner--error {
  background: rgba(230, 57, 46, 0.15);
  border: 1px solid rgba(230, 57, 46, 0.35);
  color: #ff8a80;
}

.student-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.student-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.student-stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.student-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.student-panel {
  margin-bottom: 2rem;
}

.student-panel-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.student-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.student-empty {
  color: var(--text-muted);
  margin: 0;
}

.student-checkin-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.student-checkin-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.student-checkin-list li:last-child {
  border-bottom: none;
}

.student-checkin-date {
  color: var(--text);
  font-weight: 600;
}

.student-checkin-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.student-logout-form {
  margin: 0;
}

.student-tier-panel {
  background: linear-gradient(135deg, rgba(230, 57, 46, 0.12) 0%, var(--bg-card) 55%);
  border: 1px solid rgba(230, 57, 46, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.student-tier-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.student-tier-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.student-ranks-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 52ch;
}

.student-ranks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 520px) {
  .student-ranks {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.student-ranks li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.student-ranks li span {
  color: var(--text-muted);
}

.student-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .student-badges {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

.student-badge {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.student-badge--unlocked {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.08);
}

.student-badge--locked {
  opacity: 0.45;
}

.student-badge-title {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.student-badge-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Leaderboards */
.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.leaderboard-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.leaderboard-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.leaderboard-tab.is-active {
  color: var(--text);
  border-color: rgba(230, 57, 46, 0.5);
  background: rgba(230, 57, 46, 0.12);
}

.leaderboard-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.leaderboard-privacy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 52ch;
}

.leaderboard-table-wrap {
  margin-bottom: 1rem;
}

.leaderboard-table .leaderboard-rank {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  width: 4rem;
}

.leaderboard-row--me {
  background: rgba(230, 57, 46, 0.1);
}

.leaderboard-row--me td {
  border-bottom-color: rgba(230, 57, 46, 0.2);
}

.leaderboard-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem !important;
}

.leaderboard-footnote {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 1.5rem 0 0;
}

/* Στιγμές — φωτογραφίες & βίντεο */
.gallery-intro {
  max-width: 62ch;
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.media-gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.media-gallery-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.media-gallery-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.media-gallery-tab.is-active {
  color: var(--text);
  border-color: rgba(230, 57, 46, 0.5);
  background: rgba(230, 57, 46, 0.12);
}

.media-gallery-tab:focus-visible {
  outline: 2px solid rgba(230, 57, 46, 0.65);
  outline-offset: 2px;
}

.media-gallery-panel.is-hidden {
  display: none;
}

.gallery-photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.gallery-photo-card {
  margin: 0;
}

.gallery-photo-figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.gallery-photo-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-photo-caption {
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.gallery-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.gallery-video-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery-video-card {
  margin: 0;
}

.gallery-video-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}

.gallery-video-caption {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.5;
}

.gallery-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0a0c;
}

.gallery-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Character / avatar — νέο layout (cc-) */
.character-page {
  padding-bottom: 4rem;
}

.cc {
  position: relative;
  padding: 0 0 clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.cc::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 50% at 50% -8%, rgba(230, 57, 46, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 25%, rgba(255, 200, 87, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 55%, rgba(230, 57, 46, 0.06) 0%, transparent 48%),
    linear-gradient(180deg, #080809 0%, var(--bg-deep) 42%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.cc-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(1rem, 2.5vw, 1.75rem);
}

.cc-flash {
  margin-bottom: 1rem;
}

.cc-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 1.75rem;
  padding: 1.5rem 1.35rem 1.6rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 42%),
    rgba(15, 16, 18, 0.65);
  backdrop-filter: blur(12px);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cc-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.4rem;
  opacity: 0.95;
}

.cc-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
  line-height: 1.08;
  text-shadow: 0 2px 28px rgba(230, 57, 46, 0.25);
}

.cc-sub {
  margin: 0;
  max-width: 48ch;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.cc-nav {
  display: flex;
  gap: 0.5rem;
}

.cc-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-decoration: none;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.cc-link:hover {
  color: var(--text);
  border-color: rgba(255, 200, 87, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

/* Έμπνευση — εξωτερικό project */
.cc-inspire {
  margin-bottom: 1.75rem;
}

.cc-inspire-body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 200, 87, 0.22);
  background:
    linear-gradient(165deg, rgba(255, 200, 87, 0.06) 0%, transparent 55%),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cc-inspire-mark {
  font-size: 1.25rem;
  color: var(--gold);
  line-height: 1;
  opacity: 0.7;
}

.cc-inspire-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.cc-inspire-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 62ch;
}

.cc-inspire-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-inspire-text a:hover {
  color: var(--gold);
}

.cc-inspire-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bg-card);
  background: linear-gradient(135deg, var(--gold), #c9a227);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.cc-inspire-cta:hover {
  filter: brightness(1.08);
}

.cc-inspire-cta .cc-svg {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cc-inspire-cta {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

/* Workspace */
.cc-work {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .cc-work {
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .cc-pane--view {
    position: sticky;
    top: calc(var(--header-offset, 72px) + 1rem);
  }
}

.cc-pane--tools {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

/* Preview frame */
.cc-frame {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(160deg, rgba(230, 57, 46, 0.08) 0%, transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.025) 11px,
      rgba(255, 255, 255, 0.025) 12px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.025) 11px,
      rgba(255, 255, 255, 0.025) 12px
    ),
    #060607;
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(230, 57, 46, 0.12);
}

.cc-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.cc-frame-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(480px, 72vh);
  padding: 0.65rem 0.5rem 0.5rem;
}

.cc-skeleton {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(75%, 260px);
  aspect-ratio: 3 / 4;
  max-height: min(62vh, 440px);
  border-radius: 8px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.09) 42%,
    rgba(255, 255, 255, 0.03) 84%
  );
  background-size: 200% 100%;
  animation: character-skeleton-shimmer 1.35s ease-in-out infinite;
  pointer-events: none;
}

.cc-skeleton[hidden] {
  display: none;
}

@keyframes character-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.cc-mount {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(360px, 90vw);
  min-height: min(360px, 58vh);
}

.cc-mount svg.character-openpeeps-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 540px);
  max-width: 100%;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.55));
}

.cc-frame-note {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Stats strip */
.cc-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(15, 16, 18, 0.92) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.cc-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cc-stat--grow {
  flex: 1;
  min-width: 120px;
}

.cc-stat-k {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cc-stat-v {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

.cc-stat-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cc-xpbar {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  min-width: 60px;
}

.cc-xpbar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.cc-xp-hint {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.cc-xp-hint strong {
  color: var(--text);
  font-weight: 600;
}

/* Shop fold */
.cc-fold {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  overflow: hidden;
}

.cc-fold-sum {
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  list-style: none;
}

.cc-fold-sum::-webkit-details-marker {
  display: none;
}

.cc-fold-sum::after {
  content: '▾';
  float: right;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.cc-fold[open] .cc-fold-sum::after {
  transform: rotate(-180deg);
}

.cc-fold-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
}

.cc-shop-equip {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
}

.cc-equip-lbl {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.cc-equip-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cc-select {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.85rem;
}

.cc-mini-btn {
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.cc-mini-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
}

.cc-mini-btn--buy {
  border-color: var(--accent);
  color: var(--accent);
}

.cc-mini-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cc-catalog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 220px;
  overflow-y: auto;
}

.cc-catalog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
}

.cc-catalog-name {
  display: block;
  font-weight: 600;
}

.cc-catalog-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cc-owned {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d6a4f;
}

.cc-buy {
  margin: 0;
}

/* Editor */
.cc-editor {
  position: relative;
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.65rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(145deg, rgba(230, 57, 46, 0.07) 0%, transparent 55%),
    var(--bg-elevated);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cc-editor-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: rgba(255, 255, 255, 0.95);
}

.cc-editor-lead {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cc-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.cc-field {
  border: none;
  margin: 0;
  padding: 0;
}

.cc-legend {
  display: block;
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.cc-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  max-width: 400px;
}

.cc-seg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.9rem 0.5rem;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.cc-seg-item:hover {
  border-color: rgba(255, 200, 87, 0.35);
}

.cc-seg-item:has(.cc-sr:checked) {
  border-color: var(--gold);
  background: rgba(230, 57, 46, 0.1);
}

.cc-seg-item:has(.cc-sr:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cc-gender-ico {
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.85);
}

.cc-seg-item:has(.cc-sr:checked) .cc-gender-ico {
  color: var(--gold);
}

.cc-seg-txt {
  font-size: 0.82rem;
  font-weight: 600;
}

.cc-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.cc-dotwrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.25rem 0.45rem;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    background 0.12s ease;
}

.cc-dotwrap:hover {
  background: rgba(255, 255, 255, 0.04);
}

.cc-dotwrap:has(.cc-sr:checked) {
  border-color: var(--gold);
  background: rgba(230, 57, 46, 0.08);
}

.cc-dotwrap:has(.cc-sr:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cc-dot {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--c, #888);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.35);
}

.cc-dotlbl {
  font-size: 0.62rem;
  color: var(--text-muted);
  max-width: 4.2rem;
  text-align: center;
  line-height: 1.15;
}

.cc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cc-chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
  padding: 0.45rem 0.4rem;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    background 0.12s ease;
}

.cc-chip:hover {
  border-color: rgba(255, 200, 87, 0.28);
}

.cc-chip:has(.cc-sr:checked) {
  border-color: var(--gold);
  background: rgba(230, 57, 46, 0.1);
}

.cc-chip:has(.cc-sr:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cc-chip-n {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
}

.cc-chip-t {
  font-size: 0.62rem;
  line-height: 1.2;
  color: var(--text-muted);
  text-align: center;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.cc-btn .cc-svg {
  flex-shrink: 0;
}

.cc-btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.cc-btn--ghost:hover {
  color: var(--text);
  border-color: rgba(255, 200, 87, 0.45);
}

.cc-btn--primary {
  background: linear-gradient(135deg, var(--accent), #9e2a28);
  color: #fff;
  box-shadow: 0 4px 18px rgba(230, 57, 46, 0.35);
}

.cc-btn--primary:hover {
  filter: brightness(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .cc-skeleton {
    animation: none;
    background: rgba(255, 255, 255, 0.06);
  }
}

.cc-rpg {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
}

.cc-rpg-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cc-rpg-lead {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cc-rpg-list {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.cc-rpg-k {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cc-rpg-unspent {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: var(--text);
}

.cc-rpg-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cc-rpg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cc-rpg-form {
  margin: 0;
}

.character-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.character-preview-skeleton--sm {
  width: 100%;
  min-width: 96px;
  aspect-ratio: 3 / 4;
}

.character-render-error {
  margin: 0;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--accent);
}

.character-attribution {
  margin: 1.25rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.character-attribution a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#dashboard-character-avatar svg.character-openpeeps-svg--compact {
  display: block;
  width: 100%;
  max-width: 120px;
  height: auto;
  max-height: 148px;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.45));
}

.dashboard-hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
}

.dashboard-hero-avatar {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  min-height: 148px;
}

.dashboard-hero-avatar .character-preview-skeleton--sm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 148px;
}

.dashboard-hero-avatar #dashboard-character-avatar {
  position: relative;
  z-index: 1;
  width: 120px;
  min-height: 148px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dashboard-hero-text {
  flex: 1;
  min-width: min(100%, 280px);
}

.character-stage-caption {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.character-level-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.character-level-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 0.25rem;
}

.character-level-num {
  font-family: var(--font-display);
  font-size: 3.25rem;
  line-height: 1;
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.character-xp-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.character-xp-total {
  font-weight: 700;
  color: var(--text);
}

.character-xp-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.character-xp-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid var(--border);
}

.character-xp-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.4s var(--ease-out);
}

.character-xp-foot {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.character-max {
  display: block;
  margin-top: 0.35rem;
  color: var(--gold);
  font-weight: 600;
}

.character-combat-line {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.character-combat-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.character-combat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  margin-right: 0.35rem;
}

.character-combat-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
}

.character-shop-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.character-shop-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.character-shop-wallet {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--gold);
}

.character-shop-lead {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.character-equip-slots {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.character-equip-form {
  margin: 0;
}

.character-equip-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.character-equip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.character-equip-select {
  flex: 1;
  min-width: 160px;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.88rem;
}

.character-equip-btn {
  flex-shrink: 0;
}

.character-shop-subtitle {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.65rem;
}

.character-shop-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .character-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.character-shop-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}

.character-shop-item-name {
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.character-shop-item-meta {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--gold);
}

.character-shop-item-blurb {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.character-shop-owned {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2d6a4f;
}

.character-shop-buy-form {
  margin: 0;
}

.character-shop-buy-btn {
  width: 100%;
  max-width: 140px;
}

.character-form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.75rem;
}

.character-form-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.character-form-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.character-field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: -0.25rem 0 0.75rem;
  line-height: 1.45;
}

.character-swatch-group-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.75rem 0 0.45rem;
}

.character-swatch-group-label:first-of-type {
  margin-top: 0;
}

.character-fieldset {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.character-fieldset legend {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.character-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.character-pill-row--wrap {
  gap: 0.4rem;
}

.character-pill {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.character-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.character-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.character-pill input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.character-pill input:checked + span {
  border-color: rgba(230, 57, 46, 0.55);
  background: rgba(230, 57, 46, 0.15);
  color: var(--text);
}

.character-pill--sm span {
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.character-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.character-swatch {
  cursor: pointer;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  max-width: 5.5rem;
  text-align: center;
}

.character-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.character-swatch-dot {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s var(--ease-out), border-color 0.2s;
  flex-shrink: 0;
}

.character-swatch-label {
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--text-muted);
  font-weight: 500;
}

.character-swatch input:checked ~ .character-swatch-label {
  color: var(--text);
  font-weight: 600;
}

.character-swatch input:checked + .character-swatch-dot {
  border-color: var(--text);
  transform: scale(1.06);
}

.character-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.25rem;
}

.character-form-actions .character-save-btn {
  flex: 1 1 200px;
}

.character-random-btn {
  flex: 0 0 auto;
}

.character-swatch input:focus-visible + .character-swatch-dot {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.character-save-btn {
  width: 100%;
  margin-top: 0.5rem;
}

.character-subnav {
  margin: 0;
}

/* Dungeon (Munchkin-style) */
.dungeon-page {
  padding-bottom: 4rem;
}

.dungeon-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.dungeon-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .dungeon-grid {
    grid-template-columns: minmax(240px, 300px) 1fr;
    align-items: start;
  }
}

.dungeon-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.dungeon-panel--fight {
  background: linear-gradient(165deg, rgba(201, 162, 39, 0.08) 0%, var(--bg-card) 50%);
}

.dungeon-battle-arena {
  display: grid;
  gap: 1rem;
  align-items: end;
  margin: 0 0 1.25rem;
}

@media (min-width: 640px) {
  .dungeon-battle-arena {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem 1rem;
  }
}

.dungeon-battle-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dungeon-battle-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.dungeon-battle-frame {
  position: relative;
  width: 100%;
  max-width: 200px;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dungeon-battle-frame--foe {
  filter: saturate(1.08);
}

.dungeon-battle-skeleton {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(180px, 85%);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
}

.dungeon-battle-mount {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 200px;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dungeon-battle-mount svg.character-openpeeps-svg {
  max-width: 200px;
  max-height: 260px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

.dungeon-battle-avatar--foe svg {
  filter: drop-shadow(0 10px 32px rgba(180, 40, 40, 0.35));
}

.dungeon-battle-vs-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.dungeon-battle-vs-big {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.dungeon-battle-lvl {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dungeon-battle-gear {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
}

.dungeon-equip-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: left;
  max-width: 200px;
}

.dungeon-equip-slot {
  display: inline-block;
  min-width: 4.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.dungeon-equip-empty {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 220px;
}

.dungeon-avatar-fallback {
  margin: 0;
  padding: 2rem;
  font-size: 2rem;
  color: var(--text-muted);
}

.dungeon-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin: 0 0 0.35rem;
}

.dungeon-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.dungeon-stat-value--gold {
  color: var(--gold);
}

.dungeon-stat-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.dungeon-enemy-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  color: var(--text);
}

.dungeon-enemy-level {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.dungeon-wave {
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 1.25rem;
  letter-spacing: 0.08em;
}

.dungeon-hint {
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  line-height: 1.45;
}

.dungeon-hint--ok {
  background: rgba(45, 106, 79, 0.2);
  border: 1px solid rgba(45, 106, 79, 0.45);
  color: var(--text);
}

.dungeon-hint--bad {
  background: rgba(230, 57, 46, 0.12);
  border: 1px solid rgba(230, 57, 46, 0.35);
  color: var(--text-muted);
}

.dungeon-fight-form {
  margin: 0;
}

.dungeon-fight-btn {
  width: 100%;
  max-width: 280px;
  font-size: 1.05rem;
  padding: 0.85rem 1.5rem;
}

.dungeon-flash-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.dungeon-flash-gear {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.dungeon-gear-pill {
  display: inline-block;
  margin: 0.15rem 0.15rem 0 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 0.78rem;
}

.dungeon-empty {
  color: var(--text-muted);
  margin: 0;
}

.dungeon-hp-panel {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.dungeon-hp-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.dungeon-hp-row:last-child {
  margin-bottom: 0;
}

.dungeon-hp-label {
  flex: 0 0 3.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.dungeon-hp-bar {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.dungeon-hp-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  transition: width 0.35s var(--ease-out);
}

.dungeon-hp-fill--player {
  background: linear-gradient(90deg, var(--accent), #ff8a7a);
}

.dungeon-hp-fill--foe {
  background: linear-gradient(90deg, #5c3d6e, var(--gold));
}

.dungeon-hp-num {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.dungeon-battle-inline-alert {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.45;
}

.dungeon-battle-inline-alert.is-hidden,
.dungeon-battle-inline-alert[hidden] {
  display: none !important;
}

.dungeon-battle-inline-alert--ok {
  background: rgba(45, 106, 79, 0.22);
  border-color: rgba(45, 106, 79, 0.5);
}

.dungeon-battle-inline-alert--loss {
  background: rgba(230, 57, 46, 0.12);
  border-color: rgba(230, 57, 46, 0.35);
}

.dungeon-battle-log-wrap {
  margin: 1rem 0 1.1rem;
}

.dungeon-battle-log-heading {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dungeon-battle-log {
  max-height: 220px;
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.88rem;
  line-height: 1.45;
}

.dungeon-battle-log-round {
  margin-bottom: 0.65rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dungeon-battle-log-round:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.dungeon-battle-log-line {
  margin: 0.2rem 0 0;
}

.dungeon-battle-log-line:first-child {
  margin-top: 0;
}

.dungeon-battle-log-line--you {
  color: var(--accent);
}

.dungeon-battle-log-line--foe {
  color: #c4a86a;
}

.dungeon-hit-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.dungeon-move-grid {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .dungeon-move-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dungeon-move-form {
  margin: 0;
}

.dungeon-move-btn {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  text-align: center;
  line-height: 1.3;
}

.dungeon-dmg-preview {
  font-size: 0.82rem;
  opacity: 0.95;
  font-weight: 600;
}

.dungeon-pct {
  font-size: 0.78rem;
  opacity: 0.75;
}

.dungeon-round-log {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.dungeon-round-flash {
  margin-bottom: 1rem;
}

.dungeon-legal {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  max-width: 65ch;
}
