/* ============================================================
   yavuz.tech — interactive desk CV
   ============================================================ */

:root {
  --bg: #070809;
  --accent: #22d3ee;
  --up: #34d399;
  --down: #f87171;
  --text: #e7e8ec;
  --muted: #9aa0aa;
  --panel: #14161b;
  --panel-2: #1b1e25;
  --panel-border: #2a2f3a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  --radius: 14px;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: radial-gradient(1200px 800px at 50% -10%, #15171c 0%, var(--bg) 60%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Stage / scene ---------- */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.scene {
  position: relative;
  aspect-ratio: 1672 / 941;
  width: min(100vw, calc(100vh * 1672 / 941));
  max-width: 1800px;
  background: #000 url("../assets/scene.jpeg") center center / cover no-repeat;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  user-select: none;
}

.scene__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  background: var(--bg);
}

/* ---------- Hotspots ---------- */
.hotspot {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 12px;
  outline: 2px solid transparent;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.hotspot:hover,
.hotspot:focus-visible {
  box-shadow: 0 0 28px 3px rgba(34, 211, 238, 0.4), inset 0 0 24px 1px rgba(34, 211, 238, 0.35);
  outline: none;
}

/* Names shown centered inside each area, no background. */
.hotspot__label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 12px rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.hotspot:hover .hotspot__label,
.hotspot:focus-visible .hotspot__label {
  opacity: 1;
}

/* "Show clickable areas" reveal mode */
body.show-hotspots .hotspot {
  box-shadow: 0 0 20px 2px rgba(34, 211, 238, 0.3), inset 0 0 18px 1px rgba(34, 211, 238, 0.28);
}
body.show-hotspots .hotspot__label {
  opacity: 1;
}

/* First-load pulse hint */
@keyframes hotspot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0), inset 0 0 0 0 rgba(34, 211, 238, 0);
  }
  50% {
    box-shadow: 0 0 24px 3px rgba(34, 211, 238, 0.45), inset 0 0 20px 1px rgba(34, 211, 238, 0.4);
  }
}
.hotspot.hint {
  animation: hotspot-pulse 1.6s ease-in-out 3;
}

/* Daily quote written straight onto the wall frame, chalk style */
.quote-chalk {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  text-align: center;
  padding: 8% 11%;
  font-family: "Chalkduster", "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: clamp(11px, 1.45vw, 22px);
  line-height: 1.3;
  color: #ecebe4;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.45), 0 1px 2px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.02em;
  pointer-events: none;
  overflow: hidden;
}
.quote-chalk__author {
  font-size: 0.72em;
  opacity: 0.82;
}

/* ---------- Monitor / live graph ---------- */
.monitor {
  position: absolute;
}

.monitor__screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.35), rgba(3, 5, 11, 0.62));
}

/* Desk overview: whole screen is clickable to open the interactive panel. */
.monitor__screen--overview {
  cursor: pointer;
  transition: box-shadow 0.18s ease;
}
.monitor__screen--overview:hover,
.monitor__screen--overview:focus-visible {
  box-shadow: 0 0 28px 2px rgba(34, 211, 238, 0.22), inset 0 0 30px 2px rgba(34, 211, 238, 0.18);
  outline: none;
}

.monitor__view {
  position: relative;
  flex: 1;
  min-height: 0;
}
.monitor__view[hidden] {
  display: none;
}

.graph {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

/* Event box — colorless, centered at the top of the screen */
.event-bubble {
  position: absolute;
  left: 50%;
  top: 6px;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  max-width: 90%;
  padding: 4px 12px 8px;
  border-radius: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.7);
}
.event-bubble__title {
  font-weight: 800;
  font-size: clamp(15px, 1.9vw, 23px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.event-bubble__meta {
  margin-top: 4px;
  font-size: clamp(11px, 1.25vw, 15px);
  color: #c7ccd4;
}
.event-bubble__more {
  pointer-events: auto;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit; /* same color as the date */
  text-decoration: underline;
  text-underline-offset: 2px;
  text-shadow: inherit;
}
.event-bubble__more:hover {
  opacity: 0.8;
}
.event-bubble__morewrap[hidden] {
  display: none;
}

/* Detail overlay — a centered card over a blurred graph (room for long text) */
.event-detail {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(5, 7, 12, 0.45);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.event-detail[hidden] {
  display: none;
}
.event-detail__card {
  width: min(94%, 580px);
  max-height: 90%;
  display: flex;
  flex-direction: column;
  background: rgba(17, 20, 27, 0.97);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px 18px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: pop 0.18s ease;
}
.event-detail__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--panel-border);
}
.event-detail__name {
  margin: 0;
  font-size: clamp(16px, 2vw, 23px);
  font-weight: 800;
  line-height: 1.2;
}
.event-detail__date {
  flex: none;
  color: var(--muted);
  font-size: clamp(12px, 1.3vw, 15px);
  font-variant-numeric: tabular-nums;
}
.event-detail__body {
  overflow: auto;
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.6;
  color: #dfe3e9;
  white-space: pre-wrap;
}

/* Control bar */
.monitor__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
  padding: 4px 4px 5px;
  background: rgba(3, 5, 9, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.monitor__btn {
  font: 700 clamp(7px, 0.7vw, 10px) / 1 ui-sans-serif, system-ui;
  letter-spacing: 0.03em;
  color: #cdd2da;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 5px 8px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.monitor__btn:hover {
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

/* Switch-style controls (play/pause + direction) */
.monitor__switch {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  flex: none;
}
/* play / pause */
.switch--play {
  width: 52px;
  height: 26px;
  border-radius: 999px;
}
.switch--play .switch__knob {
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cdd2da;
  color: #0b0c0f;
  display: grid;
  place-items: center;
  font-size: 10px;
  line-height: 1;
  transition: left 0.2s ease, background 0.2s ease;
}
.switch--play.is-on {
  background: rgba(34, 211, 238, 0.22);
  border-color: var(--accent);
}
.switch--play.is-on .switch__knob {
  left: calc(100% - 23px);
  background: var(--accent);
}
/* direction (moving arrowheads) */
.switch--dir {
  height: 26px;
  border-radius: 6px;
  padding: 0 11px;
  color: #e7e8ec;
  font: 700 clamp(8px, 0.8vw, 11px) / 1 ui-sans-serif, system-ui;
  letter-spacing: 0.05em;
}
.switch--dir .switch__text {
  position: relative;
  z-index: 1;
}
.switch--dir::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%3E%3Cpath%20d='M5%204L9%208L5%2012'%20fill='none'%20stroke='%239aa3ab'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 16px 16px;
  background-position-x: 0;
  background-position-y: 50%;
  opacity: 0.5;
  animation: chev-fwd 0.7s linear infinite;
}
.switch--dir.dir-back::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%3E%3Cpath%20d='M11%204L7%208L11%2012'%20fill='none'%20stroke='%239aa3ab'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  animation: chev-back 0.7s linear infinite;
}
.switch--dir:hover {
  border-color: var(--accent);
}
@keyframes chev-fwd {
  to {
    background-position-x: 16px;
  }
}
@keyframes chev-back {
  to {
    background-position-x: -16px;
  }
}

/* ASK view (note about the point between two events) */
.monitor__view--ask {
  overflow: auto;
  padding: 10px 12px 14px;
}
.ask-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ask-back {
  border: 1px solid var(--panel-border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
.ask-back:hover {
  border-color: var(--accent);
}
.ask-title {
  font-weight: 700;
  font-size: 14px;
}
.ask-context {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #cdeef5;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  line-height: 1.4;
}

/* List mode */
.monitor__view--list {
  overflow: auto;
  padding: 8px 10px;
}
.evt {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 6px 10px;
  align-items: baseline;
  padding: 7px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.evt:last-child {
  border-bottom: 0;
}
.evt__date {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.evt__title {
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600;
}
.evt__desc {
  grid-column: 2 / 3;
  font-size: clamp(10px, 1vw, 12px);
  color: var(--muted);
}
.evt__val {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.evt__val.pos {
  color: var(--up);
  background: rgba(52, 211, 153, 0.14);
}
.evt__val.neg {
  color: var(--down);
  background: rgba(248, 113, 113, 0.14);
}
.evt__val.zero {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Modal ---------- */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-root[hidden] {
  display: none;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 9, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal__card {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow);
  animation: pop 0.18s ease;
}
.modal__card--monitor {
  width: min(900px, 100%);
  padding: 16px;
}
@keyframes pop {
  from {
    transform: translateY(10px) scale(0.985);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--panel-border);
  background: var(--panel-2);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.modal__close:hover {
  border-color: var(--accent);
  color: #fff;
}
.modal__title {
  margin: 0 6px 4px 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.modal__intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

/* Expanded monitor inside a modal */
.monitor-modal {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #05070c;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  overflow: hidden;
}
.monitor-modal .monitor__screen {
  background: linear-gradient(180deg, #0a0e16, #05070c);
}
.monitor-modal .monitor__bar .monitor__btn {
  font-size: 12px;
  padding: 8px 12px;
}
.monitor-modal .monitor__bar .switch--dir {
  font-size: 12px;
}

/* ---------- Panels content ---------- */
.grid {
  display: grid;
  gap: 12px;
}
.grid--hobbies {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.grid--projects {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: var(--panel-2);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 14px;
}
.card__title {
  font-weight: 700;
  font-size: 15px;
}
.card__desc {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.hobby {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hobby__icon {
  font-size: 26px;
  line-height: 1;
  flex: none;
}
.project__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.project__year {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tag {
  font-size: 11px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}
.project__link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}
.project__link:hover {
  text-decoration: underline;
}

/* Awards */
.grid--awards {
  grid-template-columns: 1fr;
}
.award {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.award__icon {
  font-size: 22px;
  line-height: 1.2;
  flex: none;
}
.award__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.award__year {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.award__issuer {
  color: var(--accent);
  font-size: 12px;
  margin-top: 1px;
}

/* Experience & Education timeline */
.section-h {
  margin: 18px 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-h:first-child {
  margin-top: 0;
}
.timeline {
  display: grid;
  gap: 2px;
}
.tl-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}
.tl-dot {
  position: relative;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--accent);
  justify-self: center;
}
.tl-item:not(:last-child) .tl-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 14px);
  background: var(--panel-border);
}
.tl-body {
  padding-bottom: 16px;
}
.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.tl-role {
  font-weight: 700;
  font-size: 15px;
}
.tl-when {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.tl-org {
  color: var(--accent);
  font-size: 13px;
  margin: 2px 0 4px;
}

/* Contact */
.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--panel-border);
}
.contact-row:last-of-type {
  border-bottom: 0;
}
.contact-row__key {
  width: 84px;
  color: var(--muted);
  font-size: 13px;
}
.contact-row__val {
  flex: 1;
  font-size: 14px;
  word-break: break-word;
}
.copy-btn {
  border: 1px solid var(--panel-border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
.copy-btn:hover {
  border-color: var(--accent);
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.social {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--panel-border);
  background: var(--panel-2);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}
.social:hover {
  border-color: var(--accent);
  color: #fff;
}
.social small {
  color: var(--muted);
  margin-left: 4px;
}

/* Schedule */
.tz {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}
.sched-day {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--panel-border);
}
.sched-day:last-child {
  border-bottom: 0;
}
.sched-day__name {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.slot {
  font-size: 11.5px;
  border-radius: 7px;
  padding: 4px 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.slot.free {
  color: var(--up);
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.28);
}
.slot.busy {
  color: var(--down);
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.28);
}

/* Quote panel */
.quote-big {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.4;
  margin: 6px 0 10px;
}
.quote-author {
  color: var(--muted);
  font-size: 14px;
}

/* Note form */
.note-form {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 5px;
}
.field__label {
  font-size: 12px;
  color: var(--muted);
}
.note-form input,
.note-form textarea {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  resize: vertical;
}
.note-form input:focus,
.note-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}
.hp-wrap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn {
  font: inherit;
  font-weight: 700;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  border: 1px solid var(--panel-border);
  background: var(--panel-2);
  color: var(--text);
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06222a;
}
.btn--primary:hover {
  filter: brightness(1.08);
}
.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}
.form__status {
  font-size: 13px;
  color: var(--muted);
  min-height: 1em;
}
.form__status.err {
  color: var(--down);
}

/* ---------- Toasts ---------- */
.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.toast {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: pop 0.18s ease;
}
.toast.ok {
  border-color: rgba(52, 211, 153, 0.5);
}
.toast.err {
  border-color: rgba(248, 113, 113, 0.5);
}

/* ---------- Help toggle ---------- */
.help-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}
.help-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.help-toggle[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .modal__card {
    padding: 22px 18px 24px;
  }
  .sched-day {
    grid-template-columns: 40px 1fr;
  }
}

/* ---------- Dev grid helper (?grid=1) ---------- */
.grid-helper {
  position: absolute;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  font: 11px/1 ui-monospace, monospace;
}
.grid-helper__v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 255, 255, 0.28);
}
.grid-helper__v.major {
  background: rgba(0, 255, 255, 0.8);
}
.grid-helper__h {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 0, 255, 0.28);
}
.grid-helper__h.major {
  background: rgba(255, 0, 255, 0.8);
}
.grid-helper__v span {
  position: absolute;
  top: 2px;
  left: 3px;
  color: #6ff;
  text-shadow: 0 0 3px #000;
}
.grid-helper__h span {
  position: absolute;
  left: 3px;
  top: 2px;
  color: #f6f;
  text-shadow: 0 0 3px #000;
}
.grid-helper__readout {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid #333;
}
body.grid-on .hotspot,
body.grid-on .frame-quote,
body.grid-on .monitor {
  pointer-events: none !important;
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 40;
  min-width: 42px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}
.lang-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
