/* ═══════════════════════════════════════════════════════════
   ZEHN FREUNDE — UI SYSTEM
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600;700&family=Crimson+Pro:ital,wght@0,400;0,600;1,400;1,600&family=Share+Tech+Mono&display=swap');

:root {
  --stone-deep:    #0c0a08;
  --stone-dark:    #1a1710;
  --stone-mid:     #2c2518;
  --stone-warm:    #483c28;
  --ochre:         #c8a040;
  --ochre-pale:    #e8cc78;
  --text-warm:     #ede0c4;
  --text-dim:      rgba(230,215,185,0.58);
  --text-faint:    rgba(200,185,155,0.35);
  --riss-teal:     #4af0c0;
  --riss-pale:     #a0ffe8;
  --font-display:  'Cinzel Decorative', 'Palatino Linotype', Palatino, serif;
  --font-label:    'Cinzel', 'Palatino Linotype', Palatino, serif;
  --font-body:     'Crimson Pro', 'Georgia', 'Times New Roman', serif;
  --font-mono:     'Share Tech Mono', 'Courier New', monospace;
  --stone-groove:  1px solid rgba(200,175,130,0.22);
  --stone-inset:   1px solid rgba(0,0,0,0.55);
}

/* ════════════════════════════════════
   HUD — in-world overlay (inside game-view)
   ════════════════════════════════════ */
#ui-layer {
  font-family: var(--font-body);
}

#hud-top {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

#hud-actions {
  display: flex;
  gap: 5px;
  pointer-events: all;
}

.hud-action-btn {
  font-family: var(--font-label);
  font-size: 22px;
  font-weight: 700;
  color: var(--ochre-pale);
  background: linear-gradient(160deg, rgba(72,60,40,0.88) 0%, rgba(30,24,14,0.94) 100%);
  border-top:    var(--stone-groove);
  border-left:   var(--stone-groove);
  border-right:  var(--stone-inset);
  border-bottom: var(--stone-inset);
  padding: 6px 12px 5px;
  cursor: pointer;
  clip-path: polygon(7px 0%, 100% 0%, calc(100% - 7px) 100%, 0% 100%);
  text-shadow: 0 1px 0 rgba(0,0,0,0.8), 0 0 10px rgba(200,160,60,0.2);
  -webkit-tap-highlight-color: transparent;
  transition: color 0.1s, background 0.1s;
}
.hud-action-btn:active {
  color: #fff;
  background: linear-gradient(160deg, rgba(100,80,40,0.95) 0%, rgba(60,46,20,0.98) 100%);
}

/* ── Panel overlay (manual & progress) ── */
#panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
#panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,3,2,0.82);
  backdrop-filter: blur(2px);
}
#panel-content {
  position: relative;
  z-index: 1;
  max-width: 380px;
  width: 92%;
  max-height: 88dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(150deg, rgba(28,22,12,0.98) 0%, rgba(16,13,7,1) 100%);
  border-top:    var(--stone-groove);
  border-left:   var(--stone-groove);
  border-right:  var(--stone-inset);
  border-bottom: var(--stone-inset);
  padding: 28px 24px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.75), 0 0 0 1px rgba(0,0,0,0.5);
  animation: overlay-appear 0.28s cubic-bezier(0.22,1,0.36,1) both;
}
#panel-content::-webkit-scrollbar { width: 3px; }
#panel-content::-webkit-scrollbar-track { background: transparent; }
#panel-content::-webkit-scrollbar-thumb { background: rgba(200,160,60,0.3); border-radius: 2px; }

/* ── Panel tabs ── */
.panel-tabs {
  display: flex;
  margin: -4px -4px 20px;
  gap: 6px;
  padding: 0 2px;
}
.panel-tab {
  flex: 1;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200,175,130,0.55);
  padding: 11px 4px 10px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(200,175,130,0.20);
  border-bottom: none;
  background: rgba(255,255,255,0.03);
  border-radius: 4px 4px 0 0;
  box-shadow: inset 0 1px 0 rgba(255,230,150,0.06);
  transition: color 0.14s, background 0.14s, border-color 0.14s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.panel-tab:hover {
  color: rgba(200,175,130,0.85);
  background: rgba(255,255,255,0.06);
  border-color: rgba(200,175,130,0.35);
}
.panel-tab.active {
  color: var(--riss-teal);
  background: rgba(74,240,192,0.08);
  border-color: rgba(74,240,192,0.40);
  box-shadow: inset 0 1px 0 rgba(74,240,192,0.15), 0 0 8px rgba(74,240,192,0.08);
}
.panel-tab:active {
  color: var(--ochre-pale);
  background: rgba(200,160,60,0.12);
  transform: translateY(1px);
}

/* Save tab specific styles */
.save-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text-warm);
  border-bottom: 1px solid rgba(200,175,130,0.06);
}
.save-info-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200,175,130,0.4);
  width: 72px;
  flex-shrink: 0;
}
.save-action-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  padding: 10px 20px 9px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  box-shadow: 0 2px 0 rgba(0,0,0,0.5);
  transition: filter 0.1s, transform 0.08s;
  -webkit-tap-highlight-color: transparent;
}
.save-action-btn:active { transform: translateY(1px); filter: brightness(0.9); }
.save-action-btn.primary {
  color: var(--stone-deep);
  background: linear-gradient(160deg, var(--ochre-pale) 0%, var(--ochre) 100%);
}
.save-action-btn.danger {
  color: #f08080;
  background: linear-gradient(160deg, rgba(60,14,14,0.95) 0%, rgba(36,8,8,0.98) 100%);
  border: 1px solid rgba(200,60,60,0.25);
}
.save-action-btn:disabled { opacity: 0.5; cursor: default; }

.panel-title {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,160,60,0.2);
  text-shadow: 0 0 14px rgba(200,160,60,0.35);
}

.panel-section {
  margin-bottom: 20px;
}
.panel-section-head {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200,175,130,0.45);
  margin-bottom: 8px;
}

/* Controls grid (manual) */
.ctrl-grid {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 6px 10px;
  margin-bottom: 8px;
}
.ctrl-key {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ochre-pale);
  text-align: center;
  line-height: 1;
  padding-top: 1px;
}
.ctrl-desc {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text-dim);
  line-height: 1.4;
  align-self: center;
}

/* Manual prose */
.panel-prose {
  font-family: var(--font-body);
  font-size: 18px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-dim);
  margin-bottom: 4px;
}

/* Progress rows */
.prog-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(200,175,130,0.06);
}
.prog-icon {
  font-size: 21px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.prog-name {
  font-family: var(--font-body);
  font-size: 18px;
  flex: 1;
  color: var(--text-warm);
}
.prog-name.prog-unknown {
  color: rgba(200,175,130,0.3);
}
.prog-status {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--riss-teal);
  flex-shrink: 0;
}
.prog-status.prog-open {
  color: rgba(200,175,130,0.28);
}

/* Relationship bars */
.rel-bars {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.rel-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rel-bar-label {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(200,175,130,0.35);
  letter-spacing: 0.05em;
}
.rel-bar-track {
  width: 28px;
  height: 3px;
  background: rgba(200,175,130,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.rel-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--ochre);
  transition: width 0.3s ease;
}
.rel-bar-fill.rel-trust { background: #60b0f0; }
.rel-bar-fill.rel-humor { background: #80d870; }

/* Progress summary badge */
.prog-summary {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: rgba(200,175,130,0.5);
  margin-bottom: 8px;
}

.panel-close-btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone-deep);
  cursor: pointer;
  pointer-events: all;
  background: linear-gradient(160deg, var(--ochre-pale) 0%, var(--ochre) 100%);
  border: none;
  padding: 10px 24px 9px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  box-shadow: 0 2px 0 rgba(0,0,0,0.5);
  transition: filter 0.1s, transform 0.08s;
  -webkit-tap-highlight-color: transparent;
}
.panel-close-btn:active { transform: translateY(1px); filter: brightness(0.9); }

#hud-location {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-pale);
  background: linear-gradient(160deg, rgba(72,60,40,0.88) 0%, rgba(30,24,14,0.94) 100%);
  border-top:    var(--stone-groove);
  border-left:   var(--stone-groove);
  border-right:  var(--stone-inset);
  border-bottom: var(--stone-inset);
  padding: 4px 12px 3px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  text-shadow: 0 1px 0 rgba(0,0,0,0.8), 0 0 10px rgba(200,160,60,0.2);
  cursor: pointer;
  pointer-events: all;
  transition: filter 0.12s, color 0.12s;
  -webkit-tap-highlight-color: transparent;
}
#hud-location:hover  { filter: brightness(1.18); }
#hud-location:active { filter: brightness(0.9); color: #fff; }


/* ════════════════════════════════════
   ARRIVAL NOTICE — non-blocking location info
   ════════════════════════════════════ */
#arrival-notice {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 18px;
  background: linear-gradient(to bottom, rgba(14,11,7,0.96) 0%, rgba(10,8,5,0.98) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
}
#arrival-notice.arrival-visible { opacity: 1; }

.arrival-name {
  font-family: var(--font-label);
  font-size: clamp(13px, 3.5vw, 17px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-pale);
  text-shadow: 0 0 14px rgba(200,160,60,0.35);
}
.arrival-info {
  font-family: var(--font-body);
  font-size: clamp(16px, 4.2vw, 21px);
  font-style: italic;
  line-height: 1.45;
  color: var(--text-dim);
}

/* ════════════════════════════════════
   INFO PANEL — middle 20%
   ════════════════════════════════════ */

/* ── Ambient state (no dialogue) ── */
#info-ambient {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  width: 100%;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

#info-panel.has-dialogue #info-ambient {
  display: none;
}

/* Decorative vertical rule */
#info-ambient::before {
  content: '';
  flex-shrink: 0;
  width: 2px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, var(--ochre), transparent);
  opacity: 0.4;
}

#info-ambient-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#info-location {
  font-family: var(--font-label);
  font-size: clamp(14px, 4.0vw, 21px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ochre-pale);
  text-shadow:
    0 1px 0 rgba(0,0,0,0.8),
    0 0 18px rgba(200,160,60,0.22);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#info-tip {
  font-family: var(--font-mono);
  font-size: clamp(12px, 2.4vw, 13px);
  color: var(--text-faint);
  letter-spacing: 0.1em;
  transition: color 0.3s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tip glows teal when near an NPC */
#info-tip:not(:empty) {
  color: rgba(74,240,192,0.55);
}

/* ── Dialogue state ── */
#dialogue-box {
  display: flex;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  padding: 6px 14px 6px 12px;
  animation: dialogue-appear 0.22s cubic-bezier(0.22,1,0.36,1) both;
  cursor: pointer;
}

@keyframes dialogue-appear {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0);    }
}

/* Portrait medallion */
#dialogue-portrait {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-self: center;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;

  /* Coin / medallion look */
  background: radial-gradient(circle at 38% 32%, rgba(85,68,42,0.96), rgba(22,18,10,0.99));
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 0 0 2px rgba(200,175,120,0.16),
    inset 0 2px 0 rgba(255,230,150,0.1),
    inset 0 -2px 0 rgba(0,0,0,0.4),
    0 3px 10px rgba(0,0,0,0.5);
}

/* Content column */
#dialogue-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Speaker name */
#dialogue-speaker {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre);
  text-shadow: 0 0 10px rgba(200,160,60,0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}

#dialogue-speaker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(200,160,60,0.25), transparent);
}

/* Dialogue text */
#dialogue-text {
  font-family: var(--font-body);
  font-size: clamp(21px, 5.1vw, 25px);
  font-style: italic;
  line-height: 1.45;
  color: var(--text-warm);
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Choices */
#dialogue-choices {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.dialogue-choice {
  font-family: var(--font-body);
  font-size: clamp(19px, 4.5vw, 22px);
  color: var(--text-dim);
  text-align: left;
  cursor: pointer;
  pointer-events: all;
  padding: 4px 10px 4px 8px;
  background: transparent;
  border: none;
  border-left: 2px solid rgba(200,175,130,0.2);
  position: relative;
  transition: color 0.12s, border-color 0.12s, padding-left 0.12s;
  overflow: hidden;
}

.dialogue-choice::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: linear-gradient(to right, rgba(74,240,192,0.1), transparent);
  transition: width 0.2s ease;
}

.dialogue-choice:hover,
.dialogue-choice:active {
  color: var(--riss-pale);
  border-left-color: var(--riss-teal);
  padding-left: 14px;
}

.dialogue-choice:hover::before,
.dialogue-choice:active::before { width: 100%; }

/* ── Character picker (title screen) ── */
.char-picker-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(200,175,130,0.42);
  margin-bottom: 8px;
  text-align: center;
}

.char-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 20px;
}

.char-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 4px 5px;
  background: rgba(14,12,8,0.85);
  border: 1px solid rgba(200,175,130,0.12);
  border-radius: 5px;
  cursor: pointer;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: background 0.1s, border-color 0.1s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.char-pick-btn:active {
  background: rgba(72,60,40,0.85);
}
.char-pick-btn.char-active {
  background: rgba(74,240,192,0.1);
  border-color: rgba(74,240,192,0.45);
  color: var(--riss-teal);
}

/* Advance arrow */
#dialogue-advance {
  flex-shrink: 0;
  align-self: flex-start;
  cursor: pointer;
  pointer-events: all;

  /* Visible tap target — looks like a stone key */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;

  background:
    linear-gradient(145deg, rgba(72,58,30,0.95), rgba(30,24,12,0.98));
  border-top:    1px solid rgba(220,185,100,0.3);
  border-left:   1px solid rgba(220,185,100,0.2);
  border-right:  1px solid rgba(0,0,0,0.55);
  border-bottom: 1px solid rgba(0,0,0,0.55);
  border-radius: 4px;
  box-shadow:
    inset 0  1px 0 rgba(255,220,120,0.1),
    0 2px 8px rgba(0,0,0,0.5);

  /* Arrow */
  font-size: 29px;
  color: var(--ochre-pale);
  text-shadow: 0 0 12px rgba(220,170,50,0.7);

  animation: pulse-advance 1.2s ease-in-out infinite;
  transition: box-shadow 0.08s, transform 0.08s;
  -webkit-tap-highlight-color: transparent;
}

#dialogue-advance:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.6),
    0 1px 4px rgba(0,0,0,0.4);
}

@keyframes pulse-advance {
  0%, 100% { transform: translateY(0);   box-shadow: inset 0 1px 0 rgba(255,220,120,0.1), 0 2px 8px rgba(0,0,0,0.5); }
  50%       { transform: translateY(4px); box-shadow: inset 0 1px 0 rgba(255,220,120,0.1), 0 6px 16px rgba(0,0,0,0.4), 0 0 12px rgba(200,150,40,0.2); }
}

.riss-active #dialogue-advance {
  color: var(--riss-teal);
  border-top-color:  rgba(74,240,192,0.35);
  border-left-color: rgba(74,240,192,0.25);
  text-shadow: 0 0 12px rgba(74,240,192,0.8);
  background: linear-gradient(145deg, rgba(14,38,28,0.95), rgba(6,18,12,0.98));
}

/* Riss mode adjustments */
.riss-active #dialogue-speaker {
  color: var(--riss-teal);
  text-shadow: 0 0 12px rgba(74,240,192,0.45);
}
.riss-active #dialogue-speaker::after {
  background: linear-gradient(to right, rgba(74,240,192,0.3), transparent);
}
.riss-active #info-location { color: var(--riss-teal); text-shadow: 0 0 12px rgba(74,240,192,0.4); }

/* ════════════════════════════════════
   OVERLAY (full-screen: title, pause)
   ════════════════════════════════════ */
#overlay-screen {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(18,14,8,0.88) 0%, rgba(6,4,2,0.96) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  isolation: isolate;
}

#overlay-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

#overlay-content {
  position: relative;
  z-index: 1;
  max-width: 360px;
  width: 90%;
  text-align: center;
  background: linear-gradient(150deg, rgba(30,24,14,0.97) 0%, rgba(18,15,8,0.99) 100%);
  border-top:   var(--stone-groove);
  border-left:  var(--stone-groove);
  border-right: var(--stone-inset);
  border-bottom:var(--stone-inset);
  clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%);
  padding: 36px 32px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,0,0,0.4);
  animation: overlay-appear 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes overlay-appear {
  from { transform: scale(0.94) translateY(10px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

#overlay-content h2 {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ochre-pale);
  margin-bottom: 8px;
  text-shadow: 0 1px 0 rgba(0,0,0,0.8), 0 0 20px rgba(200,160,60,0.3);
}

#overlay-content p {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.overlay-btn {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--stone-deep);
  cursor: pointer;
  pointer-events: all;
  background: linear-gradient(160deg, var(--ochre-pale) 0%, var(--ochre) 100%);
  border: none;
  padding: 11px 32px 10px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  box-shadow: 0 2px 0 rgba(0,0,0,0.5), 0 4px 16px rgba(200,160,60,0.2);
  transition: filter 0.12s, transform 0.08s;
}
.overlay-btn:hover  { filter: brightness(1.12); }
.overlay-btn:active { transform: translateY(1px); filter: brightness(0.95); }
