:root {
  --bg: #071018;
  --panel: #0e1824;
  --ink: #dce8f0;
  --dim: #7a90a4;
  --gold: #c9e6ff;
  --orange: #5ad0ff;
  --mint: #7cffb2;
  --ice: #9ad7ff;
  --mag: #6aa8ff;
  --line: rgba(140, 200, 255, 0.28);
  --card: rgba(8, 14, 22, 0.78);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #050a12; color: var(--ink); }
body {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.camp-world {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.camp-photo {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center 60%;
  filter: saturate(0.7) contrast(1.05) hue-rotate(198deg);
  transition: filter 1.2s ease, opacity 1.2s ease;
}
body.phase-day .camp-photo {
  filter: saturate(0.92) contrast(1.02) brightness(1.18);
}
body.phase-dawn .camp-photo {
  filter: saturate(0.88) contrast(1.04) brightness(1.08) sepia(0.18);
}
body.phase-dusk .camp-photo {
  filter: saturate(0.85) contrast(1.06) brightness(0.88) hue-rotate(18deg);
}
body.phase-night .camp-photo {
  filter: saturate(0.7) contrast(1.05) hue-rotate(198deg);
}
body.phase-day .camp-a { background-image: url("./art/lot-day.jpg?v=sky1"); }
body.phase-dawn .camp-a { background-image: url("./art/lot-day.jpg?v=sky1"); }
body.phase-day .camp-smoke,
body.phase-dawn .camp-smoke { opacity: 0.42; }
body.phase-day .camp-fire,
body.phase-dawn .camp-fire { opacity: 0.25; }
body.phase-day .camp-lights { opacity: 0.15; }
.camp-a {
  background-image: url("./art/camp-hero.jpg");
  animation: kenburns 28s ease-in-out infinite alternate;
}
.camp-b {
  background-image: url("./art/camp-glow.jpg");
  animation: kenburns 34s ease-in-out infinite alternate-reverse, cross 18s ease-in-out infinite;
}
.camp-smoke {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 80%, rgba(40, 120, 220, 0.16), transparent 42%),
    radial-gradient(ellipse at 70% 90%, rgba(4, 10, 22, 0.55), transparent 50%),
    linear-gradient(180deg, rgba(5,10,22,0.32) 0%, rgba(5,10,22,0.58) 55%, rgba(5,10,22,0.86) 100%);
}
.camp-fire {
  position: absolute;
  left: 18%;
  bottom: 12%;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(120, 190, 255, 0.35), rgba(20, 60, 140, 0.12) 50%, transparent 70%);
  filter: blur(8px);
  animation: flicker 0.18s infinite;
}
.camp-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(154, 215, 255, 0.45) 46px 50px);
  opacity: 0.35;
  animation: twinkle 2.4s ease-in-out infinite;
}
#camp-stage {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18vh;
  width: 100%;
  image-rendering: pixelated;
  z-index: 3;
}
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(-1%, 0, 0); }
  to { transform: scale(1.14) translate3d(2%, -2%, 0); }
}
@keyframes cross {
  0%, 40% { opacity: 0; }
  50%, 90% { opacity: 0.55; }
  100% { opacity: 0; }
}
@keyframes flicker {
  0% { opacity: 0.55; transform: scale(0.92); }
  40% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0.7; transform: scale(0.96); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.5; }
}

body.playing .camp-world { opacity: 0.22; }
body.playing .stage-wrap {
  margin-right: 0;
  padding: 4px 12px 12px;
  height: calc(100vh - 48px);
  min-height: 0;
}
body.playing #mount {
  position: relative;
  height: calc(100vh - 56px);
  max-height: calc(100vh - 56px);
  border: 3px solid #3ec8d4;
  border-radius: 8px;
  overflow: hidden;
  background: #07141c;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
body.playing.phone-out .stage-wrap,
body.phone-out.playing .stage-wrap {
  margin-right: 324px;
}
body.playing:not(.phone-out) .stage-wrap { margin-right: 0; }
body.desk-out.playing .stage-wrap {
  margin-left: min(732px, 52vw);
}
body.playing .pixel-screen {
  width: 100% !important;
  height: 100% !important;
}
@media (max-width: 920px) {
  body.playing .stage-wrap { margin-right: 0; height: auto; min-height: calc(100vh - 48px); padding-bottom: 210px; }
  body.playing #mount { height: 70vh; max-height: 70vh; }
  body.playing.phone-out .stage-wrap,
  body.phone-out.playing .stage-wrap { margin-right: 0; }
  body.desk-out.playing .stage-wrap { margin-left: 0; padding-bottom: 240px; }
}

.phone {
  transform: translateX(120%);
  pointer-events: none;
  transition: transform 0.28s ease;
  position: fixed;
  right: 12px;
  top: 52px;
  z-index: 60;
  width: 300px;
  height: 520px;
  max-height: 520px;
  display: flex;
  flex-direction: column;
}
body.phone-out .phone {
  transform: none;
  pointer-events: auto;
}
.phone-bezel {
  background: linear-gradient(180deg, #1a1c22, #0a0b0e);
  border-radius: 22px;
  padding: 8px 6px 10px;
  border: 1px solid #2a2e36;
  box-shadow: 0 16px 40px #000a, inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  max-height: none;
}
.phone-notch {
  width: 64px;
  height: 6px;
  background: #050506;
  border-radius: 6px;
  margin: 0 auto 6px;
}
.phone-screen {
  background: #071018;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  border-radius: 16px;
  padding: 8px 8px 10px;
  font-size: 12px;
  color: var(--ink);
}
.phone-screen strong {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: block;
  margin: 0 0 8px;
  line-height: 1.35;
  letter-spacing: 0;
}
.phone-screen p { margin: 0 0 10px; line-height: 1.35; }
.phone-screen .acts { display: flex; flex-direction: column; gap: 6px; }
.phone-screen button.lean {
  border-color: var(--mint) !important;
  color: var(--mint) !important;
  box-shadow: 0 0 0 1px var(--mint);
}
.ph-lean { color: var(--mint); line-height: 1.4; margin: 0 0 10px; }
.ph-banner-wrap { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ph-snooze { min-height: 28px !important; font-size: 11px; }
.phone-screen button, .phone-app {
  min-height: 36px;
  padding: 6px 8px;
  background: #101820;
  border: 1px solid var(--orange);
  color: var(--orange);
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.phone-home { text-align: center; }
.phone-clock {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: var(--gold);
  margin: 8px 0 14px;
}
.phone-apps { display: flex; flex-direction: column; gap: 8px; }
.ph-status {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--dim);
  margin: 0 2px 6px;
  letter-spacing: 0.04em;
}
.ph-nav { min-height: 18px; margin: 0 0 8px; }
.ph-back {
  min-height: 24px !important;
  padding: 2px 8px !important;
  font-size: 11px;
}
.ph-badge, .ph-app i {
  display: inline-block;
  min-width: 14px;
  padding: 0 4px;
  margin-left: 6px;
  background: #ff5a5a;
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  font-style: normal;
}
.ph-home { text-align: center; }
.ph-clock {
  font-family: "Press Start 2P", monospace;
  font-size: 18px;
  color: var(--gold);
  margin: 10px 0 4px;
}
.ph-date { color: var(--dim); font-size: 10px; letter-spacing: 0.16em; margin: 0 0 14px; }
.ph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ph-app {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 58px !important;
  font-size: 11px;
  color: var(--ice) !important;
  border-color: rgba(154,215,255,0.28) !important;
}
.ph-ic {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: #071018;
}
.ph-ic.claude { background: #7cffb2; }
.ph-ic.voice { background: #6ad7ff; font-size: 14px; }
.ph-ic.ig { background: #ff7ad9; }
.ph-ic.kronos { background: #c9e6ff; }
.ph-ic.notes { background: #ffe680; }
.ph-ic.lot { background: #ff6a1a; }
.ph-foot { margin: 12px 0 0; color: var(--dim); font-size: 10px; }
.ph-lock strong { margin-bottom: 8px; }
.ph-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding: 4px 2px 10px;
}
.bubble {
  padding: 8px 10px;
  border-radius: 12px;
  line-height: 1.35;
  font-size: 12px;
}
.bubble.claude {
  background: #102018;
  border: 1px solid rgba(124,255,178,0.35);
  color: #d8ffe8;
  align-self: flex-start;
  max-width: 95%;
}
.bubble.you {
  background: #102838;
  border: 1px solid rgba(106,215,255,0.35);
  color: #d8f0ff;
  align-self: flex-end;
  max-width: 92%;
}
.bubble.voice .wave {
  display: inline-block;
  width: 42px;
  height: 10px;
  margin-right: 6px;
  background: repeating-linear-gradient(90deg, #6ad7ff 0 2px, transparent 2px 4px);
  vertical-align: middle;
}
.ph-sub { color: var(--dim); font-size: 10px; margin-top: 6px; line-height: 1.3; }
.voice-btn {
  width: 100%;
  min-height: 44px !important;
  background: #143c30 !important;
  border-color: #7cffb2 !important;
  color: #7cffb2 !important;
  text-align: center !important;
  letter-spacing: 0.04em;
}
.ph-compose { margin-top: 8px; }
.ph-ig-count {
  font-family: "Press Start 2P", monospace;
  font-size: 16px;
  color: var(--ice);
  margin: 12px 0 4px;
  text-align: center;
}
.ph-post-go {
  display: block;
  width: 100%;
  margin: 12px 0 8px;
  padding: 14px 10px;
  background: #1a3a28;
  border: 2px solid #7cffb2;
  color: #7cffb2;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.ph-notes p { margin: 0 0 10px; color: #dce8f0; }
.ph-banner, .ph-preview {
  display: block;
  width: 100%;
  text-align: left;
  background: #152030;
  border: 1px solid rgba(154,215,255,0.4);
  color: var(--ink);
  border-radius: 10px;
  padding: 10px;
  margin: 0 0 10px;
  cursor: pointer;
}
.ph-banner em, .ph-preview strong, .ph-row strong {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-style: normal;
  color: var(--gold);
  display: block;
  margin: 0 0 4px;
}
.ph-banner span, .ph-preview span, .ph-row span {
  display: block;
  color: #c8d8e4;
  font-size: 12px;
  line-height: 1.4;
}
.ph-banner small, .ph-row small {
  display: block;
  margin-top: 6px;
  color: var(--mint);
  font-size: 10px;
}
.ph-quiet { color: var(--dim); font-size: 12px; line-height: 1.4; padding: 8px 4px 14px; }
.ph-list { display: flex; flex-direction: column; gap: 8px; }
.ph-row {
  text-align: left;
  background: #101820;
  border: 1px solid rgba(154,215,255,0.25);
  color: inherit;
  padding: 10px;
}
.ph-row.done { opacity: 0.55; }
.ph-row.done small { color: var(--dim); }
.ph-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.ph-chips button {
  min-height: 34px;
  flex: 1 1 40%;
  text-align: center;
  color: var(--ice);
  border-color: rgba(154,215,255,0.35);
}
.ph-voice p { line-height: 1.4; }
.bubble.typing { color: var(--dim); }
.dots {
  display: inline-block;
  width: 18px;
  height: 8px;
  margin-right: 6px;
  background: radial-gradient(circle, #7cffb2 1.2px, transparent 1.4px) 0 50% / 6px 8px repeat-x;
  animation: dots 1s steps(3) infinite;
}
@keyframes dots { to { background-position: 18px 50%; } }
.phone.ph-unread .phone-bezel { box-shadow: 0 0 0 1px #3ec8d4, 0 16px 40px #000a, inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
@keyframes buzz {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
  75% { transform: rotate(-2deg); }
}
.phone.buzz { animation: none; }
.phone.buzz .phone-bezel { animation: buzz 0.45s ease; }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 10px;
  min-height: 52px;
  border-bottom: 1px solid var(--gold);
  gap: 16px;
  background: rgba(7, 6, 13, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: baseline; gap: 18px; }
.phone-fab, .desk-fab {
  position: relative;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
  padding: 8px 10px;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(154, 215, 255, 0.4);
  color: var(--ice);
  cursor: pointer;
}
body.phone-out .phone-fab,
body.desk-out .desk-fab,
.desk-fab.on { color: var(--mint); border-color: var(--mint); }
.phone-fab.has-unread::after,
.desk-fab.has-unread::after {
  content: attr(data-badge);
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 14px;
  padding: 2px 4px;
  background: #ff3b30;
  color: #fff;
  border-radius: 8px;
  font-size: 7px;
  line-height: 1.2;
}
.books-flash {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  padding: 8px 14px;
  background: rgba(8, 22, 18, 0.94);
  border: 1px solid var(--mint);
  color: var(--mint);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 0.04em;
}
.hud-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stage-wrap { position: relative; z-index: 2; min-height: calc(100vh - 120px); }
#mount { height: calc(100vh - 120px); }
.pixel-screen {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  cursor: pointer;
  background: #05040a;
}

.lobby, .shop {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 26vh;
}
.shop {
  position: fixed;
  inset: 52px 0 0 0;
  z-index: 28;
  max-width: none;
  overflow: auto;
  background: linear-gradient(180deg, rgba(5,3,8,0.92), rgba(5,3,8,0.88));
  padding: 18px 20px 80px;
}
body.lot-open .lobby { opacity: 0.22; pointer-events: none; }
.lot-head {
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 6;
  margin: 0 0 12px;
  padding: 8px 0 12px;
  background: linear-gradient(180deg, rgba(10,8,16,0.96), rgba(10,8,16,0.88));
}
.lot-head .lot-close {
  position: absolute;
  left: 0;
  top: 8px;
}
.sku.hurt { border-color: #ff5a5a; }
.shop {
  background-color: #0a0810;
  background-image:
    linear-gradient(rgba(154, 215, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 215, 255, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 6px #2a6a88, inset 0 0 0 10px #0a1822;
}
h1.arcade {
  font-family: "Press Start 2P", monospace;
  text-align: center;
  font-size: clamp(28px, 6vw, 56px);
  margin: 18px 0 8px;
  color: #fff6e0;
  text-shadow: 0 0 22px rgba(255, 106, 26, 0.7), 0 8px 0 #1a1020;
}
.shop-lead {
  text-align: center;
  color: #e8dcc8;
  margin: -8px 0 28px;
  font-size: 13px;
  text-shadow: 0 2px 8px #000;
}

.rpg-hero { grid-column: span 2; }
.rpg-hero .thumb { height: 190px; }
@media (max-width: 640px) { .rpg-hero { grid-column: span 1; } }
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid rgba(255,180,80,0.28);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease, border-color 0.15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--orange); }
.card[href="#/homeless-coin"] {
  border-color: rgba(124, 255, 178, 0.42);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 24px rgba(90, 208, 255, 0.12);
}
.card[href="#/homeless-coin"] .play { color: var(--mint); }
.thumb {
  height: 150px;
  background-size: cover;
  background-position: center;
  animation: thumbPulse 7s ease-in-out infinite alternate;
  position: relative;
}
.card[href="#/homeless-coin"] .thumb::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 54px;
  height: 54px;
  background: url("./art/ui/coin.png") center / contain no-repeat;
  filter: drop-shadow(0 6px 10px #000);
}
@keyframes thumbPulse {
  from { transform: scale(1); filter: brightness(0.95); }
  to { transform: scale(1.06); filter: brightness(1.08); }
}
.meta { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.meta h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  margin: 0 0 10px;
  letter-spacing: 0.04em;
  color: var(--gold);
  line-height: 1.4;
}
.meta p { margin: 0 0 16px; color: #e4d8c4; font-size: 13px; line-height: 1.45; flex: 1; }
.play {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #9ad7ff;
}

.lot-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.lot-strip img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255,180,80,0.3);
  animation: lotBob 4.5s ease-in-out infinite alternate;
}
.lot-strip img:nth-child(2) { animation-delay: 0.4s; }
.lot-strip img:nth-child(3) { animation-delay: 0.8s; }
.lot-strip img:nth-child(4) { animation-delay: 1.2s; }
.lot-strip img:nth-child(5) { animation-delay: 1.6s; }
@keyframes lotBob {
  from { transform: translateY(0); filter: brightness(0.9); }
  to { transform: translateY(-6px); filter: brightness(1.1); }
}

.shop-books {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 28px;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
}
#shop-books {
  position: sticky;
  top: 52px;
  z-index: 30;
  width: 100%;
  background: rgba(7, 6, 13, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 8px 12px;
  border-bottom: 2px solid var(--gold);
}
@media (max-width: 800px) {
  #shop-books { top: 96px; }
}
.shop-books span, .shop-books button {
  border: 1px solid rgba(255,180,80,0.3);
  padding: 8px 10px;
  background: rgba(0,0,0,0.35);
  color: var(--gold);
}
.shop-books .bad { color: #ff8a8a; border-color: rgba(255,90,90,0.4); }
.shop-books button { cursor: pointer; color: var(--mint); }
.haul-cite {
  flex-basis: 100%;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
  color: #c9bba6;
  border: 0;
  background: none;
  padding: 8px 0 0;
}

#shop-grid { display: flex; flex-direction: column; gap: 22px; }
.sku-group {
  border: 0;
  background: transparent;
  padding: 0 0 8px;
  box-shadow: none;
}
.sku-group h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 12px;
  text-align: left;
  background: none;
  border: 0;
  padding: 0 4px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.buy.fin { border-color: var(--gold); color: var(--gold); }
.term-chips { display: flex; gap: 6px; flex-wrap: wrap; width: 100%; justify-content: flex-end; }
.buy.term { border-color: var(--mint); color: var(--mint); font-size: 7px; padding: 10px 12px; }
.fin-copy {
  width: 100%;
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 11px;
  text-align: right;
}
a.buy { text-decoration: none; }
.sku {
  background: var(--card);
  border: 1px solid rgba(140, 200, 255, 0.28);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  min-height: 0;
}
.sku::after { display: none; }
.sku .thumb { height: 132px; }
.deed-bar {
  position: relative;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 44px 10px 10px;
  border-bottom: 3px solid #c9a227;
  color: #ffe680;
}
.sku.car .deed-bar { background: #1a3a8a; }
.sku.loan .deed-bar { background: #8b1a1a; }
.sku.legal .deed-bar { background: #c45a10; color: #111; }
.sku.crypto .deed-bar { background: #c9a227; color: #111; }
.sku.life .deed-bar { background: #1a6b3a; }
.sku.flex .deed-bar { background: #6b1a5a; }
.deed-thumb {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
  border: 1px solid #ffe680;
}
.sku { padding: 0 0 16px; }
.sku-kind, .sku h3, .sku p, .sku-row { padding-left: 16px; padding-right: 16px; }
.sku-kind { padding-top: 12px; }
.sku.have { border-color: #7cffb2; }
.sku-kind {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}
.sku h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  margin: 0;
  color: var(--gold);
  line-height: 1.45;
}
.sku p { margin: 0; color: #e4d8c4; font-size: 13px; flex: 1; }
.sku p.deed-rent {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.03em;
  flex: 0;
}
.sku-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.sku-row strong { color: var(--mint); font-size: 12px; }
.buy, .owned {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  border: 1px solid var(--orange);
  background: transparent;
  color: var(--orange);
  padding: 12px 14px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.buy:hover { background: var(--orange); color: #111; }
.buy:disabled { opacity: 0.4; cursor: not-allowed; }
.buy.on, .owned { border-color: var(--mint); color: var(--mint); }

.foot {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 8px 12px 24px;
}
.hidden { display: none !important; }

.phone-lg .phone-notch { width: 86px; }
.phone-lg .phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: none;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 28% 78%, rgba(40, 120, 220, 0.16), transparent 44%),
    linear-gradient(180deg, rgba(7, 16, 24, 0.5), rgba(5, 10, 18, 0.88)),
    url("./art/camp-pixel.jpg") center 40% / cover no-repeat,
    #071018;
}

.ph-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(7, 16, 24, 0.22) 0%, rgba(5, 10, 18, 0.55) 100%),
    url("./art/camp-hero.jpg") center 60% / cover no-repeat;
  filter: saturate(0.7) contrast(1.05) hue-rotate(198deg);
}

.phone-lg .ph-status {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 6px 14px 2px;
  flex-shrink: 0;
}
.ph-status-mid {
  color: #e8eef4;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.ph-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.phone-lg .ph-nav:empty {
  visibility: hidden;
  min-height: 28px;
  margin: 0;
}
.phone-lg .ph-nav:not(:empty),
.ph-appbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 6px 10px;
  background: rgba(7, 16, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(154, 215, 255, 0.16);
  color: #e8eef4;
  font-size: 13px;
  flex-shrink: 0;
}
.phone-lg .phone-screen button.ph-appbar-back,
.ph-appbar-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px !important;
  padding: 0 6px !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--ice) !important;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ph-appbar-back::before { content: "‹"; }
.ph-appbar-name,
.ph-appbar strong {
  flex: 1;
  margin: 0;
  font-size: 13px;
  color: #e8eef4;
  letter-spacing: 0.02em;
}

.ph-widget {
  margin: 8px 16px 4px;
  padding: 14px 16px 12px;
  border-radius: 18px;
  background: rgba(20, 28, 36, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(154, 215, 255, 0.18);
  color: #e8eef4;
  text-align: center;
  flex-shrink: 0;
}
.ph-widget .ph-clock { font-size: 22px; margin: 4px 0; }
.ph-widget .ph-date { margin-bottom: 6px; }
.ph-widget-row {
  color: var(--ice);
  font-size: 11px;
  margin-top: 4px;
}
.ph-widget-time {
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.ph-widget-camp { display: block; margin-top: 8px; color: var(--mint); font-size: 11px; }

.ph-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 16px 8px;
  flex: 1;
  align-content: start;
}

.phone-lg .phone-screen button.ph-icon-btn,
.ph-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  color: #e8eef4 !important;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, sans-serif;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.ph-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 11px;
  color: #071018;
  letter-spacing: 0;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(180deg, #9ad7ff, #5ad0ff);
}
.ph-icon-name,
.ph-icon-label {
  font-size: 10px;
  line-height: 1.2;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e8eef4;
}
.ph-icon i,
.ph-icon-name i {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 14px;
  padding: 1px 4px;
  margin: 0;
  background: #ff3b30;
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  font-style: normal;
}
.ph-icon-name i { position: static; margin-left: 3px; }

.ph-folder-icon {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.18) !important;
}
.ph-folder-icon i {
  position: static;
  width: 12px;
  height: 12px;
  min-width: 0;
  padding: 0;
  border-radius: 3px;
  font-size: 0;
  display: block;
}

.ph-dots,
.ph-folder-pages,
.ph-folder-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 4px 0 2px;
  flex-shrink: 0;
}
.phone-lg .phone-screen button.ph-dot,
.ph-dots span,
.ph-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(232, 238, 244, 0.28) !important;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}
.ph-dots .on,
.ph-dot.on,
.ph-dots .active,
.ph-dot.active { background: #e8eef4 !important; }

.ph-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 12px 12px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(20, 28, 36, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(154, 215, 255, 0.12);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.ph-dock .ph-icon-btn { justify-content: center; }
.ph-dock .ph-icon-name { display: none; }

.ph-folder {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 18px 20px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: inherit;
}
.ph-body:has(.ph-folder) { overflow: hidden; }
.ph-folder-title {
  margin: 0;
  padding: 0;
  color: #e8eef4;
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-align: center;
}
.ph-folder .ph-quiet { padding: 0; font-size: 10px; text-align: center; }
.ph-folder-panel,
.ph-folder-grid,
.ph-folder .ph-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 260px;
  padding: 16px 14px 14px;
  border-radius: 18px;
  background: rgba(24, 32, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(154, 215, 255, 0.16);
  flex: 0;
}

.ph-saas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px 14px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.ph-saas-hero {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 12px;
  color: #071018;
  margin: 4px auto 2px;
}
.ph-saas h3 { text-align: center; margin: 0 0 4px; font-size: 16px; color: var(--gold); }
.ph-saas-kpis,
.ph-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 4px;
}
.ph-saas-kpis div,
.ph-kpi {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(154, 215, 255, 0.2);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}
.ph-saas-kpis b,
.ph-kpi strong {
  display: block;
  color: var(--mint);
  font-size: 12px;
  margin: 0;
}
.ph-saas-kpis span,
.ph-kpi span {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ph-saas p { line-height: 1.45; color: #dce8f0; }
.ph-saas-list { display: flex; flex-direction: column; gap: 8px; }
.phone-lg .phone-screen .ph-saas button,
.ph-saas-upgrade {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  padding: 10px 12px;
  text-align: center;
  background: var(--mint);
  border: 0;
  border-radius: 10px;
  color: #071018;
  font-family: "Press Start 2P", system-ui, sans-serif;
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.phone-lg .ph-chat {
  flex: 1;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 8px 10px 10px;
}
.phone-lg .bubble { flex-shrink: 0; }
.phone-lg .ph-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 10px 10px;
}
.phone-lg .ph-banner,
.phone-lg .ph-preview {
  width: auto;
  margin-left: 10px;
  margin-right: 10px;
  flex-shrink: 0;
}
.phone-lg .ph-home .ph-preview { margin-left: 16px; margin-right: 16px; }
.phone-lg .ph-row { width: 100%; }
.phone-lg .voice-btn { flex-shrink: 0; }
.phone-lg .ph-compose {
  flex-shrink: 0;
  padding: 0 10px 8px;
  margin-top: 0;
}
.phone-lg .ph-notes,
.phone-lg .ph-voice,
.phone-lg .ph-ig,
.phone-lg .ph-lock {
  padding: 8px 12px 12px;
}

@media (max-width: 920px) {
  .phone {
    width: 260px;
    top: auto;
    bottom: 10px;
    right: 8px;
  }
  .phone-lg .phone-screen {
    min-height: 200px;
    max-height: min(42vh, 420px);
  }
  .phone-lg .ph-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 10px;
  }
  .ph-home-grid { gap: 8px; padding: 8px 10px 6px; }
  .ph-dock { margin: 6px 8px 8px; padding: 6px; border-radius: 18px; }
  .ph-widget { margin: 4px 10px 6px; padding: 10px 12px; }
  .ph-widget .ph-clock,
  .ph-widget-time { font-size: 16px; }
}

.ph-widget-books {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  margin-top: 8px;
  font-size: 10px;
  text-align: left;
}
.ph-widget-books span { color: var(--ice); }
#ph-debt, #dk-debt { color: #ff8a8a; }
#ph-credit, #dk-credit { color: var(--gold); }
#ph-camp, #dk-camp { color: var(--mint); }

.ph-reels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.phone-lg .phone-screen button.ph-reel,
.ph-reel {
  aspect-ratio: 3 / 4;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px !important;
  background:
    linear-gradient(180deg, transparent, rgba(5, 10, 18, 0.88)),
    #102028 !important;
  border: 1px solid rgba(154, 215, 255, 0.25) !important;
  color: #e8eef4 !important;
  text-align: left;
  border-radius: 10px;
}
.ph-reel strong {
  font-size: 10px;
  margin: 0;
}
.ph-reel span {
  display: block;
  font-size: 10px;
  color: #c8d8e4;
  line-height: 1.3;
}
.ph-comments { margin: 8px 0; }
.ph-saas-status {
  text-align: center;
  color: var(--mint);
  letter-spacing: 0.08em;
  font-size: 11px;
  text-transform: uppercase;
  margin: 0;
}
.phone-lg .phone-screen button.ph-krow,
.ph-krow {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}
.ph-krow strong { margin: 0; font-size: 12px; }
.ph-krow span { color: var(--dim); font-size: 11px; }
.ph-split { margin: 0 0 8px; }
.ph-books-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ph-books-strip .ph-kpi strong { font-size: 10px; }

.desk {
  position: fixed;
  left: 16px;
  top: 58px;
  z-index: 58;
  width: min(720px, calc(100vw - 36px));
  max-height: calc(100vh - 64px);
  transform: translateX(-120%);
  pointer-events: none;
  transition: transform 0.28s ease;
}
body.desk-out .desk {
  transform: none;
  pointer-events: auto;
}
body.desk-out:not(.playing) .desk {
  left: 50%;
  transform: translateX(-50%);
}
.desk-bezel {
  background: #111;
  border-radius: 8px;
  padding: 10px 10px 14px;
  border: 1px solid #44d62c;
  box-shadow: 0 18px 50px #000a, 0 0 16px rgba(68, 214, 44, 0.12);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 64px);
}
.desk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 8px;
  flex-shrink: 0;
}
.desk-lights { display: flex; gap: 6px; }
.desk-lights i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.desk-lights i:nth-child(1) { background: #ff5f57; }
.desk-lights i:nth-child(2) { background: #febc2e; }
.desk-lights i:nth-child(3) { background: #28c840; }
.desk-menu {
  flex: 1;
  text-align: center;
  color: #44d62c;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.desk-screen {
  background: #07090b;
  min-height: 280px;
  max-height: calc(100vh - 200px);
  overflow: auto;
  border-radius: 4px;
  color: #e8f4ff;
  padding: 12px;
  flex: 1;
}
.desk-screen button {
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
  background: #12181c;
  border: 1px solid #3a5560;
  color: #e8f4ff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: left;
}
.desk-screen .ph-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.desk-screen .ph-chips button {
  text-align: center;
  color: #7cffb2;
  border-color: #2a6a50;
  background: #0e1814;
}
.desk-screen .ph-krow {
  background: #12181c;
  color: #e8f4ff;
}
.desk-screen .ph-krow span { color: #9ad7ff; }
.desk-screen p, .desk-screen .ph-sub { color: #c5d4de; }
.desk-dock {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 10px 8px 0;
  flex-shrink: 0;
}
.desk-dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  color: #2a3038;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.desk-dock-btn .ph-icon {
  width: 40px;
  height: 40px;
  font-size: 9px;
}
.desk-dock-btn.on .ph-icon {
  box-shadow: 0 0 0 2px #28c840;
}
@media (max-width: 920px) {
  .desk {
    width: min(100vw - 16px, 520px);
    left: 8px;
    top: auto;
    bottom: 10px;
  }
  body.desk-out:not(.playing) .desk { left: 8px; transform: none; }
}

.ph-hinge {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  padding: 0 10px 10px;
  text-align: left;
}
.hg-tabs {
  display: flex;
  gap: 6px;
  margin: 4px 0 10px;
  flex-shrink: 0;
}
.hg-tabs button {
  flex: 1;
  background: #13202c;
  border: 1px solid #2a3a52;
  color: #8aa0b8;
  border-radius: 999px;
  padding: 6px 8px;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.hg-tabs button.on {
  color: #ff6aa8;
  border-color: #ff6aa8;
}
.hg-tabs i {
  display: inline-block;
  margin-left: 4px;
  background: #ff2d55;
  color: #fff;
  border-radius: 8px;
  padding: 0 5px;
  font-style: normal;
  font-size: 9px;
}
.hg-card {
  background: #121820;
  border: 1px solid #2a3a52;
  border-radius: 18px;
  padding: 16px 14px 18px;
  touch-action: none;
  user-select: none;
  min-height: 220px;
}
.hg-card.yes { box-shadow: 0 0 0 2px #30d158; }
.hg-card.no { box-shadow: 0 0 0 2px #ff2d55; }
.hg-face {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 8px auto 12px;
  display: grid;
  place-items: center;
  font-family: "Press Start 2P", monospace;
  font-size: 28px;
  color: #0b0e14;
}
.hg-who { text-align: center; }
.hg-who b { display: block; color: #f4f0ea; font-size: 16px; }
.hg-who span, .hg-job, .hg-hint {
  display: block;
  color: #8aa0b8;
  font-size: 11px;
  text-align: center;
  margin-top: 4px;
}
.hg-prompt {
  color: #f4f0ea;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  margin: 12px 8px 8px;
}
.hg-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 12px;
}
.hg-x, .hg-heart {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #2a3a52;
  background: #0b0e14;
  color: #ff2d55;
  font-size: 20px;
  cursor: pointer;
}
.hg-heart { color: #30d158; border-color: #30d158; }
.hg-empty { color: #8aa0b8; padding: 24px 8px; text-align: center; }
.hg-list { display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.hg-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #121820;
  border: 1px solid #2a3a52;
  border-radius: 12px;
  padding: 8px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.hg-row .hg-face { width: 36px; height: 36px; font-size: 14px; margin: 0; flex-shrink: 0; }
.hg-row b { display: block; color: #f4f0ea; }
.hg-row small { color: #8aa0b8; font-size: 11px; }
.hg-row.unread b { color: #ff6aa8; }
.hg-row.dead { opacity: 0.55; }
.hg-flash {
  text-align: center;
  padding: 18px 8px;
}
.hg-flash p {
  color: #ff6aa8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.hg-chat { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.hg-chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.hg-chat-head .hg-face { width: 28px; height: 28px; font-size: 12px; margin: 0; }
.hg-chat-head button {
  background: none;
  border: 0;
  color: #6ad7ff;
  font: inherit;
  cursor: pointer;
}
.hg-thread {
  flex: 1;
  overflow: auto;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hg-bubble {
  max-width: 85%;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.35;
}
.hg-bubble.her { background: #1c2430; color: #f4f0ea; align-self: flex-start; }
.hg-bubble.you { background: #7c3aed; color: #fff; align-self: flex-end; }
.hg-chips, .hg-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  flex-shrink: 0;
}
.hg-chips button, .hg-dates button {
  background: #13202c;
  border: 1px solid #7c3aed;
  color: #e8d8ff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.ph-yt-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin: 8px 0;
}
.ph-yt-frame.wide { min-height: 220px; }
.ph-yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ph-hinge-wrap { text-align: left; padding: 8px 0 0; }
.ph-comments { margin: 8px 0; }

/* camp10 chrome */
.top {
  min-height: 48px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(62, 200, 212, 0.35);
  background: rgba(7, 16, 24, 0.96);
}
.brand { align-items: center; gap: 10px; }
.lot-home {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #3ec8d4;
  text-shadow: 0 0 10px rgba(62, 200, 212, 0.45);
}
.lot-door {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  height: 36px;
  padding: 0 10px;
  border: 2px solid #3ec8d4;
  color: #3ec8d4;
  background: #07141c;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}
body.playing .lot-door,
body.lot-open .lot-door { display: inline-flex; }
.lot-exit {
  display: none;
  position: absolute;
  z-index: 8;
  top: 14px;
  left: 18px;
  padding: 8px 12px;
  border: 2px solid #ffe680;
  background: rgba(7, 20, 28, 0.92);
  color: #ffe680;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-decoration: none;
}
body.playing .lot-exit { display: block; }
.lot-door-glyph {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.lot-door-glyph circle { fill: currentColor; stroke: none; }
.hud-right { gap: 0; }
.device-cluster {
  display: flex;
  align-items: stretch;
  border: 1px solid rgba(62, 200, 212, 0.4);
  background: rgba(0, 0, 0, 0.42);
}
.phone-fab, .desk-fab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  letter-spacing: 0.06em;
  padding: 7px 10px;
  background: transparent;
  border: 0;
  color: #9ad7ff;
  cursor: pointer;
}
.desk-fab { border-left: 1px solid rgba(62, 200, 212, 0.35); }
.fab-glyph {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}
body.phone-out .phone-fab,
body.desk-out .desk-fab,
.phone-fab.on,
.desk-fab.on { color: #3ec8d4; }
.phone-fab.has-unread::after,
.desk-fab.has-unread::after {
  top: -5px;
  right: -4px;
}

.ph-dock { flex-shrink: 0; }

.desk {
  top: 52px;
  max-height: min(68vh, 560px);
}
.desk-bezel {
  background: #111;
  border-radius: 8px;
  padding: 8px 8px 12px;
  border: 1px solid #44d62c;
  box-shadow: 0 18px 50px #000a, 0 0 16px rgba(68, 214, 44, 0.12);
  max-height: min(68vh, 560px);
}
.desk-led {
  height: 3px;
  margin: 0 8px 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #44d62c, transparent);
  box-shadow: 0 0 8px #44d62c;
  flex-shrink: 0;
}
.desk-bar { padding: 0 6px 8px; }
.desk-lights { display: none; }
.desk-menu {
  color: #44d62c;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.desk-screen {
  background: #07090b;
  border-radius: 4px;
  max-height: calc(min(68vh, 560px) - 88px);
}
.desk-dock-btn { color: #8a9088; }
.desk-dock-btn.on .ph-icon { box-shadow: 0 0 0 2px #44d62c; }

.sky-chip {
  text-align: center;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #9ad7ff;
  margin: -8px 0 14px;
}
body.phase-day .sky-chip { color: #5a4a20; }
body.phase-dawn .sky-chip { color: #c9a06a; }

.how-btn {
  display: block;
  margin: 0 auto 18px;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid rgba(62, 200, 212, 0.45);
  color: #3ec8d4;
  cursor: pointer;
}
body.playing .how-btn { display: none; }
.howto {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(5, 10, 18, 0.72);
}
.howto.hidden,
.howto[hidden] { display: none !important; }
.howto-card {
  width: min(420px, calc(100vw - 32px));
  padding: 22px 20px 18px;
  background: #0b141c;
  border: 3px solid #3ec8d4;
  color: #e8eef4;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.howto-card p {
  margin: 0 0 16px;
  line-height: 1.45;
  font-size: 14px;
}
.howto-hint {
  display: block;
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  letter-spacing: 0.08em;
  color: #3ec8d4;
}

.ph-icon {
  overflow: visible;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 2px 6px rgba(0, 0, 0, 0.35);
}
.ph-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 44%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
}
.ph-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  position: relative;
  z-index: 1;
}
.ph-icon > i { z-index: 2; }
.ph-glyph-letter {
  position: relative;
  z-index: 1;
  font-family: -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.ph-ico-followers {
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 48%, #6228d7 100%) !important;
}
.ph-ico-claude {
  background: linear-gradient(180deg, #f4a574, #d4653a) !important;
}
.ph-ico-notes {
  background: linear-gradient(180deg, #fff6c2, #ffd24a) !important;
}
.ph-ico-messages {
  background: #34c759 !important;
}
.ph-ico-youtube {
  background: #ff0000 !important;
}
.ph-ico-kronos {
  background: linear-gradient(180deg, #f3f9ff, #9ad7ff) !important;
}
.ph-ico-phone {
  background: #30d158 !important;
}
.ph-swipe {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  touch-action: pan-y;
  user-select: none;
}
.phone-lg .phone-screen button.ph-page-hint,
.ph-page-hint {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 0 2px !important;
  min-height: 22px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: rgba(232, 238, 244, 0.78) !important;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  cursor: pointer;
}
.ph-dots {
  gap: 12px;
  padding: 8px 0 12px;
}
.phone-lg .phone-screen button.ph-dot,
.ph-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50%;
  background: rgba(232, 238, 244, 0.42) !important;
  box-shadow: 0 0 0 6px transparent;
}
.ph-dot.on {
  width: 13px;
  height: 13px;
  min-width: 13px;
  min-height: 13px !important;
  background: #e8eef4 !important;
  box-shadow: 0 0 0 3px rgba(232, 238, 244, 0.22);
}
.desk-dock .ph-icon { width: 36px; height: 36px; border-radius: 10px; }
.desk-dock .ph-icon svg { width: 20px; height: 20px; }

#phone.phone,
.phone.phone-lg,
.phone {
  width: 300px;
  height: 520px;
  max-height: 520px;
}
#phone .phone-bezel,
.phone-bezel {
  height: 100%;
  max-height: none;
}
.phone-lg .phone-screen {
  min-height: 0;
  max-height: none;
}
.ph-banner-wrap {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 28px;
  z-index: 8;
  margin-bottom: 0;
}

/* Run controls are outside the fiction; bankruptcy remains in Kronos. */
.lot-tools { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.lot-tools .how-btn { position: static; margin: 0; }
.run-dialog { max-width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; padding: 24px; border: 3px solid var(--gold, #ffe680); background: #0b1723; color: #e8eef4; font: 14px/1.6 "IBM Plex Mono", monospace; }
.run-dialog::backdrop { background: #020810dd; }
.run-dialog h2 { margin: 0 0 18px; font: 13px/1.7 "Press Start 2P", monospace; color: #ffe680; }
.run-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.run-actions button { min-height: 44px; padding: 10px 12px; border: 1px solid #6ad7ff; background: #102537; color: #e8eef4; font: inherit; cursor: pointer; }
.run-actions button:disabled { opacity: .45; cursor: default; }
.run-actions #run-new { background: #ffe680; border-color: #ffe680; color: #071018; }
.run-error { color: #ffb1a4; }
.run-dialog button:focus-visible, .lot-tools button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ph-swipe { touch-action: pan-y; }

/* Keep the phone's internal 300 × 520 layout; only its outer presentation scales. */
#phone.phone { top: 60px; bottom: auto; right: 8px; transform-origin: top right; transform: translateX(120%) scale(var(--phone-scale, 1)); }
body.phone-out #phone.phone { transform: scale(var(--phone-scale, 1)); }
.phone-bezel { position: relative; }
.device-close { min-width: 32px; min-height: 32px; border: 1px solid #68859a; border-radius: 5px; background: #0b1723; color: #fff; font: 22px/1 monospace; cursor: pointer; }
.phone-close { position: absolute; top: 5px; right: 8px; z-index: 10; min-width: 24px; min-height: 24px; font-size: 18px; }
.desk-bar .device-close { margin-left: auto; }
.run-menu { min-width: 36px; min-height: 36px; margin-left: 8px; background: #0b1723; color: #ffe680; border: 1px solid #ffe680; font: 23px/1 monospace; cursor: pointer; }
kbd { padding: 2px 4px; border: 1px solid currentColor; border-radius: 3px; font: inherit; opacity: .9; }
.lot-controls { max-width: 660px; margin: 0 auto 24px; text-align: center; line-height: 1.8; font-size: 12px; color: #bad2de; }
.howto-controls { display: block; color: #bfe4f0; font: 12px/1.8 "IBM Plex Mono", monospace; margin: 20px 0; }
body.playing #mount { max-width: 1440px; margin: 0 auto; }
@media (min-width: 1800px) { body.playing #mount { height: min(82vh, 860px); } }
@media (max-width: 920px) {
  body.playing .stage-wrap, body.desk-out.playing .stage-wrap { height: auto; min-height: 0; padding: 8px; margin-left: 0; margin-right: 0; }
  body.playing #mount { height: min(58dvh, 600px); max-height: none; }
  .desk, body.desk-out:not(.playing) .desk { top: 60px; bottom: auto; left: 8px; width: calc(100vw - 16px); max-height: calc(100dvh - 72px); }
  .desk-bezel { max-height: calc(100dvh - 72px); }
  .desk-screen { min-height: 0; max-height: calc(100dvh - 170px); overflow: auto; }
  .phone-lg .phone-screen { min-height: 0; max-height: none; }
}
@media (max-width: 540px) {
  .top { padding: 8px; gap: 8px; }
  .brand { gap: 6px; }
  .lot-home { font-size: 9px; letter-spacing: 0; }
  .device-cluster { gap: 5px; }
  .phone-fab, .desk-fab { min-width: 42px; padding: 5px; }
  .phone-fab span, .desk-fab span { font-size: 7px; }
  .device-cluster kbd { display: none; }
  body.playing .lot-home { display: none; }
  .lobby { padding: 24px 12px 80px; }
  .howto-card { max-width: calc(100vw - 28px); }
}
@media (max-height: 500px) and (orientation: landscape) {
  body.playing #mount { height: calc(100dvh - 68px); }
}

/* Saved phone stories and the shared Blade apps. Keep the device canvas fixed. */
.ph-journal h3 { font: 700 15px/1.3 system-ui,sans-serif; margin: 16px 0 9px; }
.ph-today,.ph-post-composer,.ph-branch { padding: 12px; border: 1px solid #6d6653; border-radius: 10px; background: #242923; margin: 8px 0 12px; }
.ph-today>strong,.ph-post-composer>strong { color: #ffe7a1; }
.ph-today button,.ph-branch button,.ph-source-clip { display: block; width: 100%; text-align: left; margin-top: 7px; }
.ph-source-clip { background: #33252a; border: 1px solid #986070; border-radius: 8px; padding: 10px; color: #fff0e9; font: 12px/1.45 system-ui,sans-serif; }
.ph-source-clip span { display: block; color: #eeacaf; font-size: 10px; margin-bottom: 4px; }
.ph-journal-entry,.ph-award { border-top: 1px solid #48504a; padding: 11px 0; }
.ph-journal-entry strong,.ph-journal-entry small { display:block; }
.ph-journal-entry small { color:#a6c39b; margin-bottom:5px; font-size:10px; }
.ph-journal-entry p,.ph-award p { margin:5px 0 0; }
.ph-award { opacity: .8; }
.ph-award.earned { opacity:1; color: #f4df99; }
.ph-receipt { padding: 10px; background: #173e32; border-left: 3px solid #7bdfa5; color: #d8f6e5; font: 12px/1.45 system-ui,sans-serif; }
.ph-compose .ph-branch p { margin:0 0 6px; color:#f3d4b7; }
.bubble.voice small { display:block; font-size:9px; opacity:.8; margin:4px 0; }
.ph-post-composer button:disabled { opacity:.5; cursor:default; }
#desk .desk-dock { overflow-x:auto; justify-content:flex-start; max-width:100%; }
#desk .desk-dock-btn { flex-shrink:0; }
#desk-screen .ph-journal { max-width: 650px; margin: 0 auto; }
#desk-screen .ph-compose { max-width: 650px; margin:auto; }
#desk-screen .ph-chat { max-width: 650px; margin:0 auto 12px; }
.ph-journal,.ph-source-clip,.ph-post-composer,.bubble { overflow-wrap: anywhere; }


@media (max-height:500px) and (orientation:landscape) {
  body.playing .rpg-stage { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,.85fr); gap:8px; align-items:start; }
  body.playing #mount.rpg-mount { margin:0; }
  .rpg-stage > .rpg-panel { margin:0; max-height:calc(100dvh - 85px); overflow:auto; overscroll-behavior:contain; padding:10px; font-size:13px; }
  .rpg-stage .rpg-guide { display:none; }
}

/* Wide monitors spend horizontal room on controls, leaving height for the scene. */
@media (min-width:1800px) and (min-height:650px) {
  body.playing .rpg-stage { --rpg-width:min(1800px,calc(177.7778dvh - 195.56px)); display:grid; grid-template-columns:minmax(0,var(--rpg-width)) 340px; justify-content:center; gap:16px; align-items:start; }
  body.playing #mount.rpg-mount { margin:0; }
  .rpg-stage > .rpg-panel { margin:0; max-height:calc(100dvh - 110px); overflow:auto; overscroll-behavior:contain; }
}

.rpg-community-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.rpg-community-links button { flex:1 1 130px; }

/* The introduction keeps its primary action visible even in a short app panel. */
#howto .howto-card { display:flex; flex-direction:column; gap:12px; max-height:calc(100dvh - 100px); padding:18px; cursor:default; }
#howto .howto-copy { min-height:0; overflow:auto; }
#howto .howto-controls { margin:12px 0 0; line-height:1.55; }
#howto .howto-next { flex:none; min-height:48px; width:100%; padding:10px 16px; border:2px solid #3ec8d4; background:#153742; color:#f4fbfd; font:600 16px/1.35 "IBM Plex Mono",monospace; cursor:pointer; }
#howto .howto-next:focus-visible { outline:3px solid #ffe680; outline-offset:3px; }

/* Interface text is consistent; the brand alone keeps its display lettering. */
.top .lot-door, .top .lot-door span, .top button, .top button span,
.top kbd, .top summary, .top nav, .top nav a { font-family:system-ui,sans-serif; }

/* Navigation remains available on Home; world players may tuck it away. */
#world-nav-show,#world-nav-hide{display:none}
body:has(.rpg-stage) #world-nav-hide{display:block}
body:has(.rpg-stage) .lot-door{display:none}
body.world-nav-hidden:has(.rpg-stage) .top{display:none}
body.world-nav-hidden:has(.rpg-stage) #world-nav-show{display:block;position:fixed;right:8px;top:50px;z-index:35;min-height:44px;padding:8px 12px;border:1px solid #829896;border-radius:7px;background:#14272df0;color:#eef3ec;font:13px system-ui;cursor:pointer}
body.world-nav-hidden:has(.rpg-stage) .tesla-interior{top:0}
