:root {
  --ink: #2a2740;
  --ink-soft: #3b3757;
  --muted: #5a5578;
  --muted-2: #6b6a86;
  --accent: #b5257c;
  --accent-pink: #e9447f;
  --accent-teal: #2ba7b5;
  --bg: #f2f1ee;
  --paper: #fffdf8;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: Verdana, Geneva, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--ink);
  text-decoration: underline;
}

button,
a,
input {
  font: inherit;
}

button {
  border: none;
}

/* the browser's built-in `[hidden] { display: none }` rule loses a
   specificity tie against any component class below that also sets its own
   `display` (e.g. .resume-overlay, .rack-bar use display:flex) — author
   rules win ties over the UA stylesheet by source order. Toggling `.hidden`
   in app.js must always win, so force it explicitly. */
[hidden] {
  display: none !important;
}

.shazi-room {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  overflow: hidden;
}

.room-stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  overflow: hidden;
}

.room-3d {
  position: absolute;
  inset: 0;
}

.room-3d cd-room-v2 {
  width: 100%;
  height: 100%;
  display: block;
}

/* portrait phones: the room is framed for landscape, so ask for a rotation */

.rotate-gate {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
}

.rotate-phone {
  width: 34px;
  height: 58px;
  border: 3px solid var(--ink);
  border-radius: 7px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(42, 39, 64, .2);
  animation: rotatePhone 2.4s ease-in-out infinite;
}

.rotate-title {
  font: 400 13px Silkscreen, monospace;
}

.rotate-sub {
  font: 18px VT323, monospace;
  color: var(--muted);
}

@keyframes rotatePhone {
  0%, 20% { transform: rotate(0deg); }
  60%, 100% { transform: rotate(-90deg); }
}

@media (orientation: portrait) and (max-width: 820px) {
  .rotate-gate { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .rotate-phone { animation: none; }
}

/* shared animations, used across chrome/panel/resume */

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tipIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* shared buttons, used across chrome/panel */

.btn {
  cursor: pointer;
}

.btn-dark {
  padding: 9px 13px;
  background: rgba(42, 39, 64, .94);
  border: 1px solid rgba(42, 39, 64, .75);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(42, 39, 64, .18);
  font: 400 12px Silkscreen, monospace;
  color: #fff;
}

.btn-outline {
  padding: 5px 10px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font: 400 12px Silkscreen, monospace;
  color: var(--ink);
}

.spacer {
  flex: 1;
}

/* touch: no hover, bigger tap targets, no double-tap zoom or grey tap flash */

@media (pointer: coarse) {
  html,
  body,
  .shazi-room {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  cd-room-v2 { touch-action: none; }

  .btn-dark,
  .btn-outline,
  .quick-links a,
  .quick-links button,
  .disc-nav-btn,
  .link-btn-dark,
  .link-btn-outline,
  .resume-download-btn,
  .mode-toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .np-toggle,
  .play-btn,
  .vol-btn,
  .resume-close-btn,
  .photo-close {
    min-width: 44px;
    min-height: 44px;
  }

  .nav-item { min-height: 48px; }

  .vol-slider { height: 32px; }

  /* nothing to hover over */
  .hover-chip { display: none; }
}
