:root {
  --bg0: #e8f1f4;
  --bg1: #d4e4eb;
  --ink: #14232b;
  --muted: #4a6570;
  --accent: #c45c26;
  --accent-ink: #fff8f3;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(20, 35, 43, 0.12);
  --shadow: 0 12px 40px rgba(20, 35, 43, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  height: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
  background:
    radial-gradient(1200px 600px at 10% -10%, #fff9f0 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #cfe4ef 0%, transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  justify-self: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: none;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(20, 35, 43, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.brand-mark:hover,
.brand-mark:focus-visible {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 16px rgba(20, 35, 43, 0.24);
  outline: none;
}
.brand-mark-svg {
  width: 68px;
  height: 68px;
  display: block;
  border-radius: 999px;
}

.lang-dropdown { position: relative; flex: 0 0 auto; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(20, 35, 43, 0.12);
}
.lang-caret {
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.75;
}
.lang-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 0.4rem);
  width: min(320px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.85rem;
  z-index: 30;
}
.lang-menu[hidden] { display: none; }
.lang-menu-hint {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(0.75rem, 3vw, 1.5rem) clamp(0.75rem, 2vw, 1.25rem);
}
.muted { color: var(--muted); }
.view h1 { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2rem); margin: 0.5rem 0 1rem; }

.map-view {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.map-toolbar {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  column-gap: 0.65rem;
  width: auto;
  max-width: calc(100% - 1.5rem);
  pointer-events: none;
}
.map-toolbar > * {
  pointer-events: auto;
  min-width: 0;
}
.map-toolbar-start {
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}
.fav-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: 0;
}
.fav-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 35, 43, 0.14);
  box-shadow: 0 4px 12px rgba(20, 35, 43, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}
.fav-chip-flag { font-size: 1rem; line-height: 1; }
.fav-chip-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-chip-tip {
  display: none;
  position: absolute;
  left: calc(100% + 0.4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 7.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(20, 35, 43, 0.14);
  box-shadow: 0 8px 20px rgba(20, 35, 43, 0.16);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
}
.fav-chip:hover .fav-chip-tip,
.fav-chip:focus-within .fav-chip-tip {
  display: flex;
}
.fav-chips-empty {
  color: #000;
  font-size: 0.78rem;
  white-space: nowrap;
  padding: 0 0.15rem;
}
.map-toolbar-end {
  justify-self: end;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: visible;
}
.game-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-width: 0;
}
.rail-game {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(20, 35, 43, 0.14);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(20, 35, 43, 0.12);
  color: var(--ink);
  cursor: pointer;
  padding: 0.35rem 0.45rem 0.4rem;
  font: inherit;
  width: 5.5rem;
  min-width: 5.5rem;
  box-sizing: border-box;
}
.rail-game-tip {
  display: none;
  position: absolute;
  right: calc(100% + 0.4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  min-width: 7.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(20, 35, 43, 0.14);
  box-shadow: 0 8px 20px rgba(20, 35, 43, 0.16);
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
}
.rail-game:hover .rail-game-tip,
.rail-game:focus-visible .rail-game-tip {
  display: flex;
}
.rail-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}
.btn.ghost { background: transparent; }

.map-root {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #6fa8c9;
  display: flex;
}
.map-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: min(52dvh, 560px);
  line-height: 0;
  overflow: hidden;
  touch-action: none;
}
.map-stage--zoomed {
  cursor: grab;
}
.map-stage--panning {
  cursor: grabbing;
}
.world-map-layer {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.map-zoom-controls {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 6;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.9rem; /* 3× icon gap within each group */
}
.map-transfer-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
}
.map-zoom-stack {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.map-zoom-btn {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(20, 35, 43, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #1a3a4a;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 35, 43, 0.12);
  display: grid;
  place-items: center;
  padding: 0;
}
.map-zoom-btn svg {
  width: 1rem;
  height: 1rem;
  display: block;
}
.map-transfer-controls .map-zoom-btn {
  color: #111;
}
.map-transfer-controls .map-zoom-btn svg,
.map-transfer-controls .map-zoom-btn svg path,
.map-transfer-controls .map-zoom-btn svg polyline,
.map-transfer-controls .map-zoom-btn svg line {
  fill: none !important;
  stroke: #111 !important;
  stroke-width: 2.2 !important;
}
.map-zoom-btn:hover,
.map-zoom-btn:focus-visible {
  background: #fff;
  outline: none;
}
.map-lang-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  max-width: 92%;
  pointer-events: none;
  z-index: 2;
}
.map-lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 35, 43, 0.14);
  box-shadow: 0 4px 12px rgba(20, 35, 43, 0.12);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}
.map-lang-name {
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-lang-empty {
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
}
.world-map-svg {
  --map-green-pale: #d5e4b8;
  --map-green-deep: #5a7a32;
  --map-green-stroke: #6b7d52;
  --map-green-cap: 4;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  line-height: 0;
  pointer-events: auto;
}
.world-map-inline {
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
}
.world-map-svg path,
.world-map-svg polygon,
.world-map-svg polyline {
  fill: #a8adb3 !important;
  stroke: #6f757c !important;
  stroke-width: 0.35 !important;
  transition: fill 0.12s ease, stroke 0.12s ease;
}
.world-map-svg #ocean {
  fill: #6fa8c9 !important;
  pointer-events: none;
}
.world-map-svg .map-country {
  pointer-events: all;
}
.world-map-svg .map-country--supported {
  fill: #b7c996 !important;
  fill: color-mix(
    in srgb,
    var(--map-green-deep) calc(100% * min(var(--lang-count, 1), var(--map-green-cap)) / var(--map-green-cap)),
    var(--map-green-pale)
  ) !important;
  stroke: var(--map-green-stroke) !important;
}
.world-map-svg .map-country--favorite {
  stroke: #3f5c24 !important;
  stroke-width: 0.65 !important;
}
.world-map-svg .map-country--hover {
  fill: #e8d48b !important;
  stroke: #8a7340 !important;
  stroke-width: 0.7 !important;
}
.world-map-svg .map-country--selected {
  fill: #f0c95a !important;
  stroke: #8a7340 !important;
  stroke-width: 0.85 !important;
}
.map-lang-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 9rem;
  max-width: 16rem;
  padding: 0.5rem 1.85rem 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(20, 35, 43, 0.14);
  box-shadow: 0 8px 22px rgba(20, 35, 43, 0.18);
  color: var(--ink);
  line-height: 1.25;
  /* Hover preview ignores the tooltip so leaving the country hides it. */
  pointer-events: none;
  user-select: none;
}
.map-lang-tooltip--pinned {
  pointer-events: auto;
}
.map-lang-tooltip-close {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}
.map-lang-tooltip-close:hover,
.map-lang-tooltip-close:focus-visible {
  color: var(--ink);
  background: rgba(20, 35, 43, 0.08);
  outline: none;
}
.map-lang-tooltip-country {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding-right: 0.15rem;
}
.map-lang-tooltip-langs {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.map-lang-chip {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.map-lang-chip--playable {
  cursor: pointer;
  color: #1a3a4a;
  background: #e8f0d8;
  border-color: #9eb87a;
}
.map-lang-chip--playable:hover,
.map-lang-chip--playable:focus-visible {
  background: #d7e7b8;
  outline: none;
}
.map-lang-chip--favorited {
  cursor: pointer;
  color: #fff;
  background: #3f5c24;
  border-color: #3f5c24;
}
.map-lang-chip--favorited:hover,
.map-lang-chip--favorited:focus-visible {
  background: #334c1d;
  border-color: #334c1d;
  outline: none;
}
.map-lang-chip--muted {
  color: #9aa3a8;
  background: #eef0f2;
  border-color: #d7dce0;
  font-weight: 600;
}
.map-lang-tooltip-hint {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  color: var(--muted);
}
.map-fav-toast {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 5;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 35, 43, 0.9);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(20, 35, 43, 0.25);
}
.map-game-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(20, 35, 43, 0.12);
  display: grid;
  place-items: center;
  color: #1a3a4a;
  transition: transform 0.15s ease;
}
.map-game-icon svg {
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  display: block;
}
.rail-game:hover,
.rail-game:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20, 35, 43, 0.18);
}
.map-game-name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  padding: 0;
  border: none;
  background: transparent;
  text-align: center;
  max-width: 5.5rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .map-stage { min-height: min(48dvh, 420px); }
  .brand-mark,
  .brand-mark-svg {
    width: 68px;
    height: 68px;
  }
  /* Edge stacks instead of one crowded row */
  .map-toolbar {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    display: block;
    pointer-events: none;
  }
  .map-toolbar-start {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    max-width: min(44vw, 10.5rem);
    max-height: calc(100% - 5.5rem);
    overflow: visible;
  }
  .fav-chip-name { max-width: 7.5rem; }
  .fav-chips-empty {
    white-space: normal;
    max-width: 9.5rem;
    line-height: 1.25;
    padding: 0.35rem 0.45rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.88);
  }
  .brand-stack {
    position: absolute;
    top: 0.55rem;
    left: 50%;
    transform: translateX(-50%);
  }
  .brand-mark {
    position: static;
    transform: none;
  }
  .brand-mark:hover,
  .brand-mark:focus-visible {
    transform: translateY(-1px) scale(1.04);
  }
  .map-toolbar-end {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    max-width: min(44vw, 10.5rem);
    max-height: calc(100% - 5.5rem);
    overflow-x: visible;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rail-game {
    max-width: 100%;
    width: 5.5rem;
  }
  .map-game-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .map-game-icon svg { width: 22px; height: 22px; }
  .map-game-name { font-size: 0.75rem; }
  .map-zoom-controls {
    right: 0.55rem;
    bottom: 0.55rem;
  }
  .prep-overlay-corner {
    inset: auto 0.65rem 0.65rem 0.65rem;
  }
  .prep-card {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .lang-menu { width: min(100vw - 1.5rem, 320px); }
  .map-lang-name { max-width: 5.5rem; }
  .map-toolbar-start,
  .map-toolbar-end {
    max-width: min(46vw, 9.5rem);
  }
  .fav-chip-name { max-width: 5.75rem; }
  .map-game-name {
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.game-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.game-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.game-card-name { font-family: var(--font-display); font-size: 1.35rem; }
.game-card-id { color: var(--muted); font-size: 0.9rem; }

.fav-list { display: grid; gap: 0.5rem; margin: 1rem 0 1.25rem; }
.fav-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--line);
}

.prep-overlay {
  position: fixed;
  z-index: 50;
}
.prep-overlay-corner {
  inset: auto 1rem 1rem auto;
  background: transparent;
  display: block;
}
.prep-overlay[hidden] { display: none !important; }
.prep-card {
  width: min(280px, 92vw);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.prep-card #prep-label {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.prep-track {
  height: 10px;
  background: #e6eef2;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1rem;
}
.prep-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3d7ea6, var(--accent));
  transition: width 0.2s ease;
}

.update-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.update-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 43, 0.45);
  backdrop-filter: blur(2px);
}
.update-dialog-card {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  max-height: min(80dvh, 560px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 20px 50px rgba(20, 35, 43, 0.28);
  border: 1px solid var(--line);
}
.update-dialog-card h2 {
  font-family: var(--font-display);
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}
.update-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.update-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink);
}
.update-list li { margin: 0.25rem 0; }
.update-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.about-dialog {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.about-dialog[hidden] { display: none !important; }
.about-dialog-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(196, 92, 38, 0.18), transparent 55%),
    rgba(14, 28, 36, 0.55);
  backdrop-filter: blur(4px);
}
.about-dialog-card {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), #f4f8fa 140%),
    #fff;
  border-radius: 16px;
  padding: 0;
  box-shadow:
    0 24px 60px rgba(14, 28, 36, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.about-hero {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 1rem 1.1rem 0.85rem;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(111, 168, 201, 0.28), transparent 70%),
    linear-gradient(135deg, #1a3a4a 0%, #2a5566 55%, #3d7ea6 100%);
  color: #f4f8fa;
}
.about-hero-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.about-hero-mark img {
  width: 44px;
  height: 44px;
  display: block;
}
.about-dialog-card h2 {
  font-family: var(--font-display);
  margin: 0 0 0.2rem;
  font-size: 1.45rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.about-lead {
  margin: 0;
  color: rgba(244, 248, 250, 0.88);
  line-height: 1.3;
  font-size: 0.88rem;
}
.about-meta {
  margin: 0;
  padding: 0.65rem 1rem 0.15rem;
  display: grid;
  gap: 0.35rem;
}
.about-meta > div {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  gap: 0.4rem;
  align-items: baseline;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}
.about-meta dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.about-meta dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.25;
}
.about-actions {
  padding: 0.55rem 1rem 0.85rem;
  display: flex;
  justify-content: flex-end;
}

.feedback-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.feedback-dialog[hidden] {
  display: none !important;
}
.feedback-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 36, 0.45);
  backdrop-filter: blur(2px);
}
.feedback-dialog-card {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.1rem 0.9rem;
  box-shadow: 0 24px 60px rgba(14, 28, 36, 0.35);
  border: 1px solid var(--line);
}
.feedback-dialog-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}
.feedback-lead {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}
.feedback-email {
  margin: 0 0 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}
.feedback-textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 6.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #f8fbfc;
}
.feedback-textarea:focus {
  outline: 2px solid rgba(61, 126, 166, 0.35);
  outline-offset: 1px;
}
.feedback-status {
  margin: 0.45rem 0 0;
  color: #a33;
  font-size: 0.85rem;
}
.feedback-status--hint {
  color: var(--muted);
}
.feedback-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}
