/* ============================================================
   LC. — a café-shaped portfolio
   ============================================================ */

:root {
  --cream: #fffcf5;
  --dark: #511f20;
  --red: #ff2c47;
  --beige: #e5dece;
  --brown: #785449;
  --red2: #ff4a62;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --display: "Archivo Black", "Arial Black", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--mono);
  overflow: hidden;
  transition: background 0.7s ease;
}

body.sunset { background: var(--beige); }

/* ---------- header ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px 0;
  z-index: 40;
  pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.subtitle {
  font-size: 15px;
  letter-spacing: 2px;
  flex: 1;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo {
  font-family: var(--display);
  font-size: 44px;
  letter-spacing: -1px;
  line-height: 1;
  user-select: none;
}

.logo-name {
  font-size: 13px;
  letter-spacing: 3px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.scene-0 .logo-name { opacity: 1; }

.topbar::after { content: ""; flex: 1; }

/* play button */
.play-btn {
  position: absolute;
  right: 40px;
  top: 30px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.play-btn .tri {
  width: 0; height: 0;
  border-left: 18px solid var(--dark);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.play-btn .bars { display: none; gap: 5px; }
.play-btn .bars i {
  display: block;
  width: 6px; height: 22px;
  background: var(--dark);
}
body.playing .play-btn .tri { display: none; }
body.playing .play-btn .bars { display: flex; }

/* ---------- scenes ---------- */

.scenes {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.scene-track {
  display: flex;
  height: 100%;
  width: 300vw;
  transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1);
}

.scene {
  width: 100vw;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.stage {
  width: min(100vw, 168vh);
  max-height: 92vh;
  display: block;
  margin: 0 auto;
}

.tagline {
  position: absolute;
  top: 118px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 88vw;
  font-size: 17px;
  letter-spacing: 4px;
  z-index: 5;
}
.tagline .dot { color: var(--red); margin-right: 10px; }

/* ---------- svg base classes ---------- */

.ln {
  stroke: var(--dark);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.ln.thin { stroke-width: 2.5; }
.f-light { fill: var(--cream); transition: fill 0.7s ease; }
body.sunset .f-light { fill: var(--beige); }
.f-dark { fill: var(--dark); stroke: none; }
.f-none { fill: none; }
.f-red { fill: var(--red); stroke: none; }

.clocktext, .cuptext, .postertext, .mirrortext, .tiptext {
  font-family: var(--mono);
  fill: var(--dark);
  text-anchor: middle;
  user-select: none;
}
.clocktext { font-size: 32px; letter-spacing: 3px; font-weight: 700; }
.cuptext { font-size: 17px; letter-spacing: 2px; font-weight: 700; }
.postertext { font-size: 23px; letter-spacing: 2px; }
.poster-title {
  font-family: var(--display);
  fill: var(--dark);
  font-size: 32px;
  letter-spacing: 2px;
  text-anchor: middle;
  user-select: none;
}
.poster-item, .poster-price {
  font-family: var(--mono);
  fill: var(--dark);
  font-size: 13px;
  letter-spacing: 0.5px;
  user-select: none;
}
.poster-item { text-anchor: start; }
.poster-price { text-anchor: end; }
.poster-note {
  font-family: var(--mono);
  fill: var(--cream);
  font-size: 11.5px;
  font-style: italic;
  letter-spacing: 0.5px;
  text-anchor: middle;
  user-select: none;
}
.hotspot:hover .art .poster-note,
.hotspot:focus-visible .art .poster-note { fill: var(--red2); }
.dotline {
  stroke: var(--dark);
  stroke-width: 2;
  stroke-dasharray: 1.5 6;
  stroke-linecap: round;
  opacity: 0.45;
}
.hotspot:hover .art .poster-title,
.hotspot:hover .art .poster-item,
.hotspot:hover .art .poster-price,
.hotspot:hover .art .poster-note,
.hotspot:focus-visible .art .poster-title,
.hotspot:focus-visible .art .poster-item,
.hotspot:focus-visible .art .poster-price,
.hotspot:focus-visible .art .poster-note { fill: var(--red); }
.hotspot:hover .art .dotline,
.hotspot:focus-visible .art .dotline { stroke: var(--red); }

/* rain streaks on the upper pane while raining */
.rainstreak {
  stroke: var(--dark);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0;
}
body.raining .rainstreak { animation: streak 1.8s linear infinite; }
body.raining .rainstreak:nth-child(2) { animation-delay: 0.5s; }
body.raining .rainstreak:nth-child(3) { animation-delay: 1s; }
body.raining .rainstreak:nth-child(4) { animation-delay: 1.4s; }
@keyframes streak {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: 0.4; }
  80%  { opacity: 0.4; }
  100% { transform: translate(-28px, 130px); opacity: 0; }
}

/* globe spins on hover — continents slide across the clipped sphere */
.hotspot:hover .globe-surface,
.hotspot:focus-visible .globe-surface { animation: globespin 2.8s linear infinite; }
@keyframes globespin { to { transform: translateX(-140px); } }
.tiptext { fill: var(--cream); font-size: 19px; font-style: italic; letter-spacing: 2px; }

/* light cone (sunset) */
.lightcone {
  fill: var(--cream);
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
body.sunset .lightcone { opacity: 1; }

/* steam */
.steam .puff {
  fill: var(--cream);
  filter: blur(14px);
  opacity: 0.4;
  transition: opacity 0.9s ease;
}
body.sunset .steam .puff { opacity: 0.95; }
.steam .p1 { animation: puff 5s ease-in-out infinite; }
.steam .p2 { animation: puff 5s ease-in-out infinite 1.2s; }
.steam .p3 { animation: puff 5s ease-in-out infinite 2.4s; }

@keyframes puff {
  0%   { transform: translateY(0) translateX(0); }
  50%  { transform: translateY(-26px) translateX(8px); }
  100% { transform: translateY(0) translateX(0); }
}

/* in sunset mood the steam properly rises */
body.sunset .steam .p1 { animation: steamrise 4.6s linear infinite; }
body.sunset .steam .p2 { animation: steamrise 4.6s linear infinite 1.5s; }
body.sunset .steam .p3 { animation: steamrise 4.6s linear infinite 3s; }
@keyframes steamrise {
  0%   { transform: translateY(36px); opacity: 0; }
  25%  { opacity: 0.9; }
  75%  { opacity: 0.6; }
  100% { transform: translateY(-150px); opacity: 0; }
}

/* rice bowl steam */
.steamline {
  stroke: var(--dark);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  opacity: 0.5;
  animation: waft 3.4s ease-in-out infinite;
}
.steamline.s2 { animation-delay: 1.4s; }
@keyframes waft {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50%      { opacity: 0.65; transform: translateY(-7px); }
}

/* clouds — slow continuous travel across the sky */
.cloud { opacity: 0.9; }
.drift-a { animation: cloudA 140s linear infinite; animation-delay: -28s; }
.drift-b { animation: cloudB 170s linear infinite; animation-delay: -138s; }
@keyframes cloudA {
  from { transform: translateX(-450px); }
  to   { transform: translateX(1750px); }
}
@keyframes cloudB {
  from { transform: translateX(-1800px); }
  to   { transform: translateX(420px); }
}

/* rain (only while body.raining) */
.rain line {
  stroke: var(--dark);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0;
}
body.raining .rain line { animation: raindrop 1.9s linear infinite; }
body.raining .rain line:nth-child(2) { animation-delay: 0.35s; }
body.raining .rain line:nth-child(3) { animation-delay: 0.7s; }
body.raining .rain line:nth-child(4) { animation-delay: 1.05s; }
body.raining .rain line:nth-child(5) { animation-delay: 1.4s; }
body.raining .rain line:nth-child(6) { animation-delay: 1.65s; }
@keyframes raindrop {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 0.6; }
  75%  { opacity: 0.6; }
  100% { transform: translateY(88px); opacity: 0; }
}

/* rain control button — appears quietly in the corner */
.rain-ctl {
  position: fixed;
  display: none;
  top: 92px;
  right: 36px;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--dark);
  color: var(--cream);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  z-index: 55;
  box-shadow: 0 6px 20px rgba(81, 31, 32, 0.25);
}
.rain-ctl.show {
  display: grid;
  animation: ctlpop 0.5s ease, ctlglow 1.8s ease 0.5s 2;
}
.rain-ctl svg { width: 26px; height: 26px; }
.rain-ctl:hover { color: var(--red2); }
body:not(.raining) .rain-ctl .rd { opacity: 0.25; }
/* the rain control lives on the counter scene only */
body:not(.scene-0) .rain-ctl.show { display: none; }
@keyframes ctlpop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes ctlglow {
  0%, 100% { box-shadow: 0 6px 20px rgba(81, 31, 32, 0.25); }
  50%      { box-shadow: 0 6px 20px rgba(81, 31, 32, 0.25), 0 0 0 9px rgba(255, 44, 71, 0.22); }
}

/* ambient rain falls across the scene */
body.raining .rain-wide line { animation: raindroplong 2.5s linear infinite; }
@keyframes raindroplong {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: 0.48; }
  78%  { opacity: 0.48; }
  100% { transform: translateY(195px); opacity: 0; }
}

/* ---------- hotspots ---------- */

.hotspot { cursor: pointer; outline: none; }
.hotspot.no-click { cursor: default; }

.hotspot .art * { transition: stroke 0.18s ease, fill 0.18s ease; }

.hotspot:hover .art .ln,
.hotspot:focus-visible .art .ln { stroke: var(--red); }
.hotspot:hover .art .f-dark,
.hotspot:focus-visible .art .f-dark { fill: var(--red); }
.hotspot:hover .art .cuptext,
.hotspot:focus-visible .art .cuptext { fill: var(--red); }
.hotspot:hover .art .postertext,
.hotspot:focus-visible .art .postertext { fill: var(--red); }

/* keep the lamp cord ball red always */
.hotspot .art .f-red { fill: var(--red); }

/* tooltips */
.tip {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.hotspot:hover .tip,
.hotspot:focus-visible .tip {
  opacity: 1;
  transform: translateY(0);
}

/* radio reels */
.reel { transition: transform 0.4s; }
body.playing .reel { animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* floating notes while the radio plays */
.note {
  font-family: var(--mono);
  font-size: 26px;
  fill: var(--dark);
  text-anchor: middle;
  opacity: 0;
  user-select: none;
}
body.playing .note { animation: noterise 3.2s ease-out infinite; }
body.playing .n2 { animation-delay: 1.1s; }
body.playing .n3 { animation-delay: 2.2s; }
@keyframes noterise {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: 0.75; }
  100% { transform: translateY(-110px); opacity: 0; }
}

/* lamp cord tug */
.cord { transform-box: fill-box; }
.lamp.tugging .cord { animation: cordtug 0.55s ease; }
@keyframes cordtug {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(13px); }
  70%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

/* espresso pour (on machine click) */
.pour-stream {
  stroke: var(--dark);
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0;
}
.pour-fill {
  fill: var(--dark);
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0);
}
.pouring .pour-stream { animation: pourstream 1.4s linear; }
.pouring .pour-fill { animation: fillcup 1.4s linear forwards; }
@keyframes pourstream {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fillcup {
  0%, 15% { transform: scaleY(0); }
  85%     { transform: scaleY(1); }
  100%    { transform: scaleY(1); }
}

/* milk pitcher froths on machine hover */
.froth { opacity: 0; transition: opacity 0.3s ease; }
.hotspot:hover .froth,
.hotspot:focus-visible .froth { opacity: 1; }
.froth .bub { transform-box: fill-box; }
.hotspot:hover .froth .b1 { animation: bubrise 1.6s ease-out infinite; }
.hotspot:hover .froth .b2 { animation: bubrise 1.6s ease-out infinite 0.5s; }
.hotspot:hover .froth .b3 { animation: bubrise 1.6s ease-out infinite 1s; }
@keyframes bubrise {
  0%   { transform: translateY(0); opacity: 0; }
  25%  { opacity: 0.9; }
  100% { transform: translateY(-22px); opacity: 0; }
}

/* ---------- mirror ---------- */

#mirrorPane { fill: var(--cream); transition: fill 0.45s ease; }
body.sunset #mirrorPane { fill: var(--beige); }
.mirror.dark #mirrorPane,
body.sunset .mirror.dark #mirrorPane { fill: var(--dark); }
.mirror.dark .glint { opacity: 0; }
.glint { transition: opacity 0.4s ease; }

.mirrortext { font-size: 26px; letter-spacing: 2px; }
.mirror.dark .mirrortext { fill: var(--cream); }

.mirror-next { opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.mirror.dark .mirror-next { opacity: 1; }
.mirror-next circle { fill: none; stroke: var(--cream); stroke-width: 3.5; }
.mirror-next path { fill: none; stroke: var(--cream); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

/* mirror hover: only the pane border reddens, not the text */
.mirror:hover .art > rect.ln { stroke: var(--red); }

/* ---------- bottom navbar ---------- */

.navbar {
  position: fixed;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  border-radius: 14px;
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  z-index: 50;
  box-shadow: 0 6px 24px rgba(81, 31, 32, 0.25);
}

.navbar button,
.navbar a {
  width: 52px;
  height: 44px;
  background: none;
  border: none;
  color: var(--cream);
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 9px;
  transition: background 0.15s ease, color 0.15s ease;
}
.navbar button:hover,
.navbar a:hover { background: rgba(255, 252, 245, 0.12); color: var(--red2); }
.navbar button svg,
.navbar a svg { width: 26px; height: 26px; }

/* mail button: hover shows the address, click copies it */
#mailBtn { position: relative; }
#mailBtn::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--dark);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 1px;
  padding: 9px 14px;
  border-radius: 9px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 6px 20px rgba(81, 31, 32, 0.3);
}
#mailBtn:hover::after,
#mailBtn:focus-visible::after,
#mailBtn.copied::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#mailBtn.copied::after { color: var(--red2); }

/* ---------- receipt overlay ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(81, 31, 32, 0.14);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 90px 16px 60px;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.overlay.hidden { opacity: 0; pointer-events: none; }

.receipt {
  background: var(--dark);
  color: var(--cream);
  width: min(600px, 94vw);
  padding: 48px 44px 40px;
  font-size: 16px;
  letter-spacing: 1.5px;
  line-height: 1.65;
  box-shadow: 0 18px 50px rgba(81, 31, 32, 0.35);
  transform: translateY(0);
  animation: slidein 0.4s ease;
}
@keyframes slidein {
  from { transform: translateY(-26px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.r-center { text-align: center; }
.r-name { font-size: 19px; font-weight: 700; text-align: center; letter-spacing: 2px; }
.r-mail {
  display: block;
  text-align: center;
  color: var(--red2);
  text-decoration: none;
  margin-top: 4px;
  word-break: break-all;
}
.r-mail:hover { text-decoration: underline; }

.r-row {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}

.r-sep {
  border: none;
  border-top: 2px dashed rgba(255, 252, 245, 0.55);
  margin: 18px 0;
}
.r-sep.double {
  border-top-style: double;
  border-top-width: 5px;
}

.r-title { font-size: 21px; font-weight: 700; letter-spacing: 3px; }
.r-meta { font-size: 13.5px; opacity: 0.75; margin-top: 4px; letter-spacing: 1px; }
.r-body p { margin: 12px 0; }
.r-label { font-weight: 700; letter-spacing: 2px; margin-top: 16px; }
.r-stack { font-size: 14px; opacity: 0.85; }

.r-entry { margin: 14px 0; }
.r-etitle { font-weight: 700; letter-spacing: 2px; }
.r-emeta { font-size: 13px; opacity: 0.7; }
.r-entry p { margin-top: 6px; font-size: 15px; }

.r-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 17px;
  letter-spacing: 2.5px;
  padding: 6px 0;
  cursor: pointer;
}
.r-item:hover { color: var(--red2); }
.r-item.accent { color: var(--red2); }
.r-item.accent:hover { color: var(--cream); }

.r-link { color: var(--red2); }

.barcode {
  height: 52px;
  margin: 22px auto 18px;
  width: 82%;
  background:
    repeating-linear-gradient(90deg,
      var(--cream) 0 2px, transparent 2px 5px,
      var(--cream) 5px 6px, transparent 6px 12px,
      var(--cream) 12px 16px, transparent 16px 19px,
      var(--cream) 19px 20px, transparent 20px 26px,
      var(--cream) 26px 29px, transparent 29px 31px);
}

.r-thanks { margin-top: 22px; letter-spacing: 3px; }

/* ---------- paper café menu (favorite websites) ---------- */

.receipt.paper {
  background: var(--cream);
  color: var(--dark);
  border: 3px solid var(--dark);
  outline: 3px solid var(--dark);
  outline-offset: -12px;
  padding: 54px 48px 42px;
}
.receipt.paper .r-sep { border-top-color: rgba(81, 31, 32, 0.45); }
.receipt.paper .r-close span { background: var(--dark); }
.receipt.paper .r-close:hover span { background: var(--red); }

.m-title {
  font-family: var(--display);
  font-size: 34px;
  text-align: center;
  letter-spacing: 1px;
}
.m-sub {
  text-align: center;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 2px;
  margin-top: 6px;
  opacity: 0.8;
}
.m-item { margin: 20px 0; }
.m-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 16px;
}
.m-line .m-dots {
  flex: 1;
  border-bottom: 2.5px dotted rgba(81, 31, 32, 0.55);
  transform: translateY(-4px);
}
.m-price { font-weight: 700; white-space: nowrap; }
.m-desc { font-size: 13.5px; font-style: italic; margin-top: 5px; opacity: 0.85; }
.m-item a { color: var(--dark); text-decoration: none; }
.m-item a:hover { color: var(--red); }
.m-desc a { color: var(--red); text-decoration: underline; }
.m-desc a:hover { color: var(--dark); }
.m-foot {
  text-align: center;
  font-size: 12.5px;
  font-style: italic;
  letter-spacing: 1.5px;
  margin-top: 26px;
  opacity: 0.75;
}

/* ---------- resume card ---------- */

.rsec {
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 15px;
  margin-bottom: 8px;
}
.rskills { font-size: 13.5px; line-height: 1.7; }
.rlinks { margin-top: 8px; font-size: 14px; }
.rlinks a { color: var(--red); text-decoration: none; }
.rlinks a:hover { text-decoration: underline; }
.pdf-btn {
  display: block;
  border: 3px solid var(--dark);
  color: var(--dark);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 2.5px;
  font-size: 15px;
  padding: 13px 10px;
  margin-top: 28px;
}
.pdf-btn:hover { border-color: var(--red); color: var(--red); }

/* ---------- travel map ---------- */

.receipt.mapwide { width: min(780px, 94vw); }

.mapviz { width: 100%; height: auto; display: block; margin-top: 12px; }
.mapviz .cont {
  fill: var(--beige);
  stroke: var(--dark);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.mapviz .isle { fill: none; stroke: var(--dark); stroke-width: 3; stroke-linecap: round; }
.mapviz .route {
  fill: none;
  stroke: var(--dark);
  stroke-width: 2;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
  opacity: 0.5;
}
.pin { cursor: pointer; }
.pin .pinhead, .pin .pintail { fill: var(--dark); transition: fill 0.15s ease; }
.pin .pindot { fill: var(--cream); }
.pin .halo { fill: none; stroke: var(--red); stroke-width: 2.5; opacity: 0; }
.pin:hover .pinhead, .pin:hover .pintail { fill: var(--red); }
.pin.active .pinhead, .pin.active .pintail { fill: var(--red); }
.pin.active .halo { opacity: 1; }

.loc-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  min-height: 92px;
}
.loc-btn {
  background: none;
  border: 2.5px solid var(--dark);
  border-radius: 10px;
  color: var(--dark);
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-shrink: 0;
}
.loc-btn:hover { border-color: var(--red); color: var(--red); }
.loc-body { flex: 1; text-align: center; }
.loc-name { font-weight: 700; letter-spacing: 2.5px; font-size: 16px; }
.loc-desc { font-size: 13.5px; font-style: italic; margin-top: 6px; opacity: 0.85; line-height: 1.6; }

/* ---------- favorite words dictionary ---------- */

.lex-spiel { font-size: 13.5px; font-style: italic; line-height: 1.75; }
.lex-entry { margin: 18px 0; }
.lex-word { font-weight: 700; font-size: 16.5px; letter-spacing: 1.5px; }
.lex-pron, .lex-pos {
  font-weight: 400;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.5px;
  opacity: 0.65;
}
.lex-def { font-size: 13.5px; margin-top: 4px; line-height: 1.65; opacity: 0.9; }

.r-close {
  display: block;
  margin: 30px auto 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 20px;
}
.r-close span {
  display: block;
  width: 34px;
  height: 4px;
  background: var(--cream);
  border-radius: 2px;
  margin: 5px 0;
  transition: background 0.15s ease;
}
.r-close:hover span { background: var(--red2); }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .topbar { padding: 20px 20px 0; }
  .subtitle { font-size: 11px; letter-spacing: 1px; }
  .logo { font-size: 32px; }
  .play-btn { right: 16px; top: 20px; }
  .tagline { font-size: 12px; letter-spacing: 2px; top: 96px; }
  .stage { max-height: 78vh; }
  .navbar { bottom: 24px; padding: 8px 10px; }
  .navbar button { width: 44px; height: 40px; }
  .receipt { padding: 36px 24px 30px; font-size: 14px; }
  .overlay { padding: 70px 10px 40px; }
}

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