/* ================= Martnae page ================= */
.theme-martnae { --room: #12030d; --foam: #1d0616; --lamp: rgba(255, 45, 160, 0.16); }

/* ---------- Game room ---------- */
.room { margin-top: 40px; }
.room-shell {
  --ceil: 56px; --flr: 84px; --side: 13%;
  position: relative; max-width: 1280px; margin: 0 auto; border-radius: 28px; overflow: hidden;
  padding: var(--ceil) var(--side) var(--flr);
  background: #07000a; border: 1px solid rgba(255, 45, 160, 0.3);
  box-shadow: 0 0 80px rgba(255, 45, 160, 0.15), inset 0 0 120px rgba(0,0,0,0.8);
}
/* Desk lamp that follows the pointer */
.room-shell::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5; mix-blend-mode: screen;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%), var(--lamp), transparent 70%);
}
.room-wall, .room-floor, .room-ceiling { position: absolute; }
.room-left, .room-right { top: 0; bottom: 0; width: var(--side); display: grid; place-items: center; }
.room-left {
  left: 0; background: linear-gradient(90deg, #0a0010, #1a0520);
  clip-path: polygon(0 0, 100% var(--ceil), 100% calc(100% - var(--flr)), 0 100%);
}
.room-right {
  right: 0; background: linear-gradient(-90deg, #0a0010, #1a0520);
  clip-path: polygon(0 var(--ceil), 100% 0, 100% 100%, 0 calc(100% - var(--flr)));
}
.room-ceiling {
  top: 0; left: 0; right: 0; height: var(--ceil); background: #0c0010;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--side)) 100%, var(--side) 100%);
}
.room-ceiling::after { /* LED strip */
  content: ''; position: absolute; left: var(--side); right: var(--side); bottom: 0; height: 3px;
  background: linear-gradient(90deg, #ff2da0, #b57bff, #4fd8e6, #ff2da0); background-size: 200% 100%;
  box-shadow: 0 0 18px 4px rgba(255, 45, 160, 0.6); animation: rgb 6s linear infinite;
}
.room-floor {
  bottom: 0; left: 0; right: 0; height: var(--flr);
  clip-path: polygon(var(--side) 0, calc(100% - var(--side)) 0, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(90deg, rgba(255,45,160,0.35) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg, rgba(255,45,160,0.25) 0 1px, transparent 1px 20px),
    linear-gradient(#14001a, #050005);
}
@keyframes rgb { to { background-position: 200% 0; } }

.room-back {
  position: relative; z-index: 2; padding: 18px 22px 0; border-radius: 4px;
  background:
    repeating-conic-gradient(from 45deg, var(--foam) 0 25%, #13040f 0 50%) 0 0 / 34px 34px;
  box-shadow: inset 0 0 90px rgba(0,0,0,0.85);
}

.wall-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.on-air {
  padding: 8px 16px; border: 2px solid #4a1030; border-radius: 10px; font-weight: 700; letter-spacing: 0.18em;
  color: #4a1030; background: #0a0006; transition: 0.4s; font-size: 14px;
}
.on-air.on { color: #fff; border-color: #ff3b5c; background: #ff3b5c; box-shadow: 0 0 24px #ff3b5c, 0 0 60px rgba(255, 59, 92, 0.5); animation: onair 2.4s infinite; }
@keyframes onair { 50% { box-shadow: 0 0 10px #ff3b5c, 0 0 30px rgba(255, 59, 92, 0.3); } }
.status-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.status-led {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 8px; font-size: 13px;
  background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.12); text-decoration: none;
}
.status-led .icon { width: 14px; height: 14px; }
.wall-clock {
  font-family: 'Press Start 2P', monospace; font-size: 13px; color: var(--hot); padding: 9px 12px;
  background: #050003; border-radius: 8px; border: 1px solid #3a0a26; text-shadow: 0 0 8px var(--hot);
}

.setup { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; align-items: stretch; }
.monitor { display: flex; flex-direction: column; }
.bezel {
  position: relative; flex: 1; display: flex; flex-direction: column; background: #0a0a0d; border-radius: 14px; padding: 10px;
  border: 1px solid #26262e; box-shadow: 0 0 0 1px #000, 0 20px 50px rgba(0,0,0,0.7), 0 0 40px rgba(255, 45, 160, 0.18);
}
.main-monitor .screen { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.crt { position: absolute; inset: 10px; border-radius: 6px; pointer-events: none; opacity: 0; }
.crt.switching { animation: crt 0.55s ease-out; }
@keyframes crt {
  0% { opacity: 1; background: #fff; clip-path: inset(49.5% 0 49.5% 0); }
  35% { opacity: 1; background: #fff; clip-path: inset(0 0 0 0); }
  100% { opacity: 0; background: rgba(255,255,255,0); clip-path: inset(0 0 0 0); }
}
.monitor-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 4px 0; font-size: 14px; color: var(--ink-soft); }
.monitor-bar .btn { padding: 7px 14px; font-size: 13px; }
.monitor-bar .spacer { flex: 1; }
.side-monitor .bezel { min-height: 100%; }
.side-head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 10px; font-weight: 700; font-size: 14px; }
.side-head .icon { width: 16px; height: 16px; }
.chat-screen { position: relative; flex: 1; min-height: 320px; border-radius: 6px; overflow: hidden; background: #0e0e10; }

.screen-note {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  background: radial-gradient(circle, #2b0419 0%, #000 75%);
}
.screen-note p { margin: 0 0 16px; color: var(--ink-soft); }
.screen-note .big-icon { width: 54px; height: 54px; background: var(--hot); margin: 0 auto 14px; }

.desk {
  position: relative; margin: 18px -22px 0; padding: 18px 26px 22px;
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'console phone' 'keys keys'; gap: 14px 22px; align-items: end;
  background: linear-gradient(#2a1320, #150810); border-top: 1px solid #3b1a2c;
}
.desk::before { /* RGB edge */
  content: ''; position: absolute; left: 0; right: 0; top: -2px; height: 3px;
  background: linear-gradient(90deg, #ff2da0, #b57bff, #4fd8e6, #ff2da0); background-size: 200% 100%;
  animation: rgb 5s linear infinite; box-shadow: 0 0 16px rgba(255,45,160,0.6);
}
.console { grid-area: console; }
.console-slot {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 8px 14px; border-radius: 8px;
  background: #050003; border: 1px solid #3a0a26; font-family: 'Press Start 2P', monospace; font-size: 11px; color: #7dffb0;
  text-shadow: 0 0 6px #7dffb0;
}
.console-slot::before { content: ''; width: 46px; height: 6px; border-radius: 3px; background: #000; box-shadow: inset 0 1px 3px #000, 0 0 0 1px #2a2a2a; }
.cartridges { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.cart {
  position: relative; width: 88px; height: 98px; padding: 10px 8px 8px; border: 0; cursor: pointer;
  border-radius: 10px 10px 6px 6px; background: var(--c, #333); color: var(--t, #fff);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 4px;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,0.25), 0 6px 14px rgba(0,0,0,0.5); transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s;
  clip-path: polygon(0 10px, 12px 0, calc(100% - 12px) 0, 100% 10px, 100% 100%, 0 100%);
}
.cart .icon { width: 26px; height: 26px; background: var(--t, #fff); }
.cart .cart-name { font-size: 12px; font-weight: 700; }
.cart .cart-num { position: absolute; top: 6px; right: 10px; font-family: 'Press Start 2P', monospace; font-size: 9px; opacity: 0.8; }
.cart .live-dot { position: absolute; top: 8px; left: 10px; }
.cart:hover { transform: translateY(-6px) rotate(-2deg); }
.cart[aria-selected='true'] { transform: translateY(-16px); box-shadow: 0 0 0 2px #fff, 0 0 30px var(--c); }
.console-hint { margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); }
@media (hover: none) { .console-hint { display: none; } }

.desk-phone {
  grid-area: phone; justify-self: end; border: 0; background: none; cursor: pointer; display: grid; justify-items: center; gap: 6px;
}
.phone-screen {
  width: 62px; height: 112px; border-radius: 12px; border: 3px solid #222; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #25f4ee 0%, #000 45%, #fe2c55 100%); box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  transition: transform 0.25s;
}
.phone-screen::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 24px; height: 24px;
  background: #fff; -webkit-mask: url('https://cdn.jsdelivr.net/npm/simple-icons@13/icons/tiktok.svg') center/contain no-repeat; mask: url('https://cdn.jsdelivr.net/npm/simple-icons@13/icons/tiktok.svg') center/contain no-repeat;
}
.desk-phone:hover .phone-screen { transform: translateY(-6px) rotate(4deg); }
.phone-label { font-size: 12px; color: var(--ink-soft); }
.keyboard {
  grid-area: keys; height: 26px; border-radius: 6px; background: #0b0b0e; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; padding: 4px;
  box-shadow: 0 0 20px rgba(181, 123, 255, 0.35);
}
.keyboard i { border-radius: 2px; background: linear-gradient(90deg, #ff2da0, #b57bff, #4fd8e6); background-size: 1200% 100%; animation: rgb 4s linear infinite; opacity: 0.55; }
.keyboard i:nth-child(2n) { animation-delay: -0.4s; } .keyboard i:nth-child(3n) { animation-delay: -0.9s; }

/* Arcade cabinet (left wall) */
.arcade {
  width: 78%; max-width: 120px; aspect-ratio: 0.45; border: 0; cursor: pointer; padding: 0; color: #fff;
  display: flex; flex-direction: column; border-radius: 10px 10px 4px 4px; overflow: hidden;
  background: linear-gradient(#3b0a5a, #1a0330); box-shadow: 0 0 0 2px #ff2da0, 0 0 30px rgba(255,45,160,0.5);
  transform: perspective(500px) rotateY(32deg); transition: transform 0.3s, box-shadow 0.3s;
}
.arcade:hover { transform: perspective(500px) rotateY(18deg) scale(1.05); box-shadow: 0 0 0 2px #fff, 0 0 50px rgba(255,45,160,0.8); }
.arcade-marquee { font-family: 'Press Start 2P', monospace; font-size: 8px; padding: 10px 4px; background: #ff2da0; color: #000; text-align: center; line-height: 1.5; }
.arcade-screen { flex: 1.2; margin: 10px 8px; border-radius: 6px; background: #000; display: grid; place-items: center; box-shadow: inset 0 0 20px rgba(79,216,230,0.4); }
.arcade-screen .blink { font-family: 'Press Start 2P', monospace; font-size: 7px; color: #4fd8e6; animation: blink 1.1s steps(1) infinite; text-align: center; }
@keyframes blink { 50% { opacity: 0; } }
.arcade-controls { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: #12021f; }
.arcade-controls .stick { width: 8px; height: 22px; background: #aaa; border-radius: 4px; position: relative; }
.arcade-controls .stick::before { content: ''; position: absolute; top: -8px; left: -4px; width: 16px; height: 16px; border-radius: 50%; background: #ff2da0; }
.arcade-controls .btn-a, .arcade-controls .btn-b { width: 13px; height: 13px; border-radius: 50%; background: #4fd8e6; box-shadow: 0 3px 0 #1a7c86; }
.arcade-controls .btn-b { background: #dfe6ea; box-shadow: 0 3px 0 #7d8a92; }

/* Discord door (right wall) */
.door {
  width: 74%; max-width: 110px; aspect-ratio: 0.42; border: 0; background: none; cursor: pointer; padding: 0; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transform: perspective(500px) rotateY(-32deg); transition: transform 0.3s;
}
.door:hover { transform: perspective(500px) rotateY(-18deg) scale(1.04); }
.door-sign { font-family: 'Press Start 2P', monospace; font-size: 8px; color: #8c9eff; text-shadow: 0 0 8px #5865f2, 0 0 18px #5865f2; }
.door-panel {
  position: relative; flex: 1; width: 100%; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, #26114a, #3a1d6e);
  box-shadow: 0 0 0 3px #150828, 0 0 30px rgba(88,101,242,0.45); transform-origin: left center; transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.door-panel::before { content: ''; position: absolute; inset: 12% 14%; border: 2px solid rgba(255,255,255,0.1); border-radius: 4px; }
.door-knob { position: absolute; right: 12%; top: 52%; width: 9px; height: 9px; border-radius: 50%; background: #d6dee4; box-shadow: 0 0 8px #d6dee4; }
.door:hover .door-panel { transform: perspective(300px) rotateY(-18deg); }
.door.opening .door-panel { transform: perspective(300px) rotateY(-80deg); }
.door-label { font-size: 12px; color: var(--ink-soft); }

.room-mobile-tools { display: none; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 900px) {
  .room-shell { padding: 30px 14px 24px; --side: 0px; border-radius: 20px; }
  .room-left, .room-right, .room-floor { display: none; }
  .room-ceiling { height: 30px; }
  .room-back { padding: 14px 12px 0; }
  .setup { grid-template-columns: 1fr; }
  .chat-screen { min-height: 380px; }
  .desk { margin: 16px -12px 0; padding: 16px 14px 18px; grid-template-columns: 1fr; grid-template-areas: 'console' 'keys'; }
  .desk-phone { display: none; }
  .room-mobile-tools { display: flex; }
  .cart { width: 70px; height: 84px; }
}

/* Arcade overlay */
.arcade-modal { background: #0d0418; border: 2px solid #ff2da0; box-shadow: 0 0 60px rgba(255,45,160,0.45); }
.arcade-modal h3 { font-family: 'Press Start 2P', monospace; font-size: 15px; color: #dfe6ea; text-shadow: 3px 3px 0 #ff2da0; line-height: 1.5; }
.arcade-tv { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; margin: 14px 0; box-shadow: inset 0 0 40px rgba(79,216,230,0.3); }
.arcade-tv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.arcade-tv .attract { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: 'Press Start 2P', monospace; font-size: 12px; color: #4fd8e6; line-height: 2; }
.arcade-tv::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 4px); }
.game-select { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.game-select button {
  position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: #000; aspect-ratio: 16/10;
}
.game-select img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: 0.2s; }
.game-select span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 6px; font-size: 11px; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,0.9)); }
.game-select button.sel, .game-select button:hover { border-color: #dfe6ea; }
.game-select button.sel img, .game-select button:hover img { opacity: 1; }
.arcade-help { font-family: 'Press Start 2P', monospace; font-size: 9px; color: var(--ink-soft); margin-top: 12px; line-height: 1.8; }

/* ---------- Photo board ---------- */
.photo-board {
  position: relative; height: 680px; margin-top: 34px; border-radius: 26px; overflow: hidden; touch-action: pan-y;
  background: radial-gradient(ellipse at 50% 0%, #3a0826 0%, #12020c 60%, #070006 100%); border: 1px solid rgba(255,45,160,0.3);
}
.photo-board::before { /* string lights */
  content: ''; position: absolute; left: -2%; right: -2%; top: 18px; height: 40px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 20px 26px, #ffe9a8 0 4px, rgba(255,233,168,0.5) 5px, transparent 12px) 0 0 / 60px 40px repeat-x;
  animation: twinkle 3s ease-in-out infinite alternate; border-top: 1px solid rgba(255,255,255,0.15); border-radius: 50%;
}
@keyframes twinkle { to { filter: brightness(1.5) drop-shadow(0 0 6px #ffe9a8); } }
.polaroid {
  position: absolute; width: 190px; padding: 8px; background: #fdfbf7; border-radius: 3px; cursor: grab;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55); transform: rotate(var(--r, 0deg)); user-select: none; touch-action: none;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), left 0.6s cubic-bezier(.2,.8,.2,1), top 0.6s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s;
}
.polaroid.dragging { cursor: grabbing; transition: none; transform: rotate(0deg) scale(1.06); box-shadow: 0 30px 60px rgba(0,0,0,0.7); }
.polaroid:hover { box-shadow: 0 18px 40px rgba(0,0,0,0.65), 0 0 0 2px var(--hot); }
.polaroid .ph { position: relative; aspect-ratio: 1; background: #111; overflow: hidden; }
.polaroid img, .polaroid video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.polaroid .play { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,0.6); display: grid; place-items: center; color: #fff; font-size: 11px; }
.polaroid .cap { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: 'Caveat', cursive; font-size: 22px; color: #3a1025; }
.polaroid .tape { position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; margin-left: -35px; background: rgba(255, 221, 237, 0.7); transform: rotate(-4deg); }
@media (hover: none), (max-width: 700px) {
  .photo-board { height: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; padding: 56px 16px 24px; }
  .polaroid { position: relative; left: auto !important; top: auto !important; width: auto; cursor: pointer; }
}
.lightbox { background: #000; padding: 16px; }
.lightbox .lb-media { display: grid; place-items: center; max-height: 78svh; }
.lightbox img, .lightbox video { max-width: 100%; max-height: 78svh; border-radius: 12px; }
.lightbox .lb-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }

/* ---------- Kitchen ---------- */
.kitchen {
  margin-top: 36px; border-radius: 28px; overflow: hidden; border: 1px solid rgba(214, 222, 228, 0.3);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,0.06), transparent 50%),
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.05) 41%, transparent 43%, transparent 70%, rgba(255,255,255,0.04) 71%, transparent 72%),
    linear-gradient(160deg, #111114, #060607);
}
.kitchen-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 22px 26px 8px; }
.shelf { display: flex; align-items: flex-end; gap: 10px; padding: 0 12px 6px; border-bottom: 6px solid #2a0f1e; min-width: 150px; height: 60px; }
.shelf .jar { width: 22px; height: 34px; border-radius: 6px 6px 8px 8px; background: linear-gradient(#ffdded 0 22%, #f7b267 22%); opacity: 0.85; }
.shelf .j2 { height: 44px; background: linear-gradient(#ffdded 0 18%, #7bc67e 18%); }
.shelf .j3 { background: linear-gradient(#ffdded 0 25%, #c2371f 25%); }
.shelf .plant { width: 30px; height: 46px; border-radius: 50% 50% 4px 4px; background: radial-gradient(circle at 50% 30%, #4f9b3a 0 45%, transparent 46%), linear-gradient(transparent 60%, #b4643c 60%); }
.kitchen-sign { font-size: clamp(40px, 6vw, 64px); color: #ffdded; text-shadow: 0 0 10px #ff2da0, 0 0 30px #ff2da0; transform: rotate(-4deg); }
.timers { display: flex; flex-direction: column; gap: 8px; min-width: 150px; align-items: flex-end; }
.timer-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; font-family: 'Press Start 2P', monospace; font-size: 11px;
  background: #0a0006; border: 1px solid #ff7a3c; color: #ffb58a; box-shadow: 0 0 14px rgba(255,122,60,0.35);
}
.timer-chip button { background: none; border: 0; cursor: pointer; color: inherit; font-size: 12px; }
.timer-chip.done { animation: ring 0.4s linear infinite; border-color: #fff; color: #fff; }
@keyframes ring { 25% { transform: rotate(3deg); } 75% { transform: rotate(-3deg); } }

.kitchen-body { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 22px; padding: 16px 26px 28px; }
@media (max-width: 860px) { .kitchen-body { grid-template-columns: 1fr; } .kitchen-top { justify-content: center; } .timers { align-items: center; } }
.stove {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 26px; border-radius: 18px;
  background: linear-gradient(145deg, #17171a, #070708); border: 1px solid rgba(214,222,228,0.45);
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.08), 0 20px 40px rgba(0,0,0,0.5);
}
.burner {
  position: relative; border: 0; background: none; cursor: pointer; padding: 0; color: #fff; text-align: center;
  display: grid; justify-items: center; gap: 12px;
}
.burner .coil {
  position: relative; width: min(190px, 100%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #0b0b0d 0 6px, #2a2a30 6px 9px); box-shadow: inset 0 0 20px #000;
  transition: box-shadow 0.4s;
}
.burner.lit .coil { background: repeating-radial-gradient(circle, #1a0500 0 6px, #ff5a1f 6px 9px); box-shadow: 0 0 40px rgba(255, 90, 31, 0.6), inset 0 0 20px #000; }
.burner .pan {
  position: relative; width: 78%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 7px solid #1d1d22; box-shadow: 0 10px 20px rgba(0,0,0,0.6), inset 0 0 0 2px #45454f;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.burner .pan img { width: 100%; height: 100%; object-fit: cover; }
.burner .handle { position: absolute; right: -34%; top: 46%; width: 44%; height: 12px; border-radius: 6px; background: #1d1d22; transform: rotate(-12deg); }
.burner:hover .pan, .burner.active .pan { transform: translateY(-6px) rotate(-6deg); }
.burner .steam { position: absolute; top: -8%; left: 50%; display: flex; gap: 10px; transform: translateX(-50%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.burner .steam i { width: 6px; height: 40px; border-radius: 6px; background: linear-gradient(transparent, rgba(255,255,255,0.55)); filter: blur(3px); animation: steam 2s ease-in-out infinite; }
.burner .steam i:nth-child(2) { animation-delay: 0.5s; } .burner .steam i:nth-child(3) { animation-delay: 1s; }
.burner:hover .steam, .burner.active .steam, .burner.lit .steam { opacity: 1; }
@keyframes steam { 0% { transform: translateY(10px) scaleY(0.6); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-30px) scaleY(1.2) translateX(6px); opacity: 0; } }
.burner .label { font-weight: 700; font-size: 16px; line-height: 1.3; }
.burner .label small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; }
.burner.active .label { color: var(--blush); }
.stove-knobs { grid-column: 1 / -1; display: flex; justify-content: center; gap: 26px; padding-top: 6px; border-top: 1px solid #3a3a44; }
.stove-knobs i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #555, #1a1a1e); position: relative; transition: transform 0.4s; }
.stove-knobs i::after { content: ''; position: absolute; left: 50%; top: 3px; width: 3px; height: 10px; margin-left: -1.5px; background: #ff5a1f; border-radius: 2px; }
.stove-knobs i.on { transform: rotate(120deg); }
@media (max-width: 520px) { .stove { gap: 14px; padding: 16px; } .burner .label { font-size: 14px; } }

.fridge-door {
  position: relative; height: 100%; min-height: 360px; border-radius: 22px; padding: 26px 18px;
  background: linear-gradient(90deg, #f2eef0, #ffffff 60%, #e8e2e6); box-shadow: inset -6px 0 0 #d8d0d5, 0 20px 40px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; gap: 16px;
}
.fridge-door::after { content: ''; position: absolute; left: 10px; top: 30%; width: 8px; height: 90px; border-radius: 4px; background: #c9c1c6; }
.fridge-note {
  display: block; padding: 12px 14px 12px; color: #2b0b1b; text-decoration: none; background: var(--n, #fff4a8);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2); transform: rotate(var(--r, -2deg)); transition: transform 0.2s; position: relative;
}
.fridge-note::before { content: ''; position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; border-radius: 50%; margin-left: -8px; background: var(--m, #ff2da0); box-shadow: 0 2px 4px rgba(0,0,0,0.35); }
.fridge-note:hover { transform: rotate(0deg) scale(1.04); }
.fridge-note b { font-family: 'Caveat', cursive; font-size: 24px; display: block; line-height: 1.1; }
.fridge-note span { font-size: 13px; }

.cookbook {
  margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 16px; overflow: hidden; color: #2b1520;
  background: #fbf5ec; box-shadow: 0 30px 60px rgba(0,0,0,0.6); position: relative; animation: bookopen 0.5s cubic-bezier(.2,.8,.2,1);
}
.cookbook::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 40px; margin-left: -20px; background: linear-gradient(90deg, transparent, rgba(0,0,0,0.12), transparent); pointer-events: none; }
@keyframes bookopen { from { transform: perspective(1200px) rotateX(18deg) translateY(30px); opacity: 0; } }
.page { padding: 30px 32px; }
.page h3 { font-family: 'Caveat', cursive; font-size: 44px; margin: 0; color: #8c1d4f; }
.page .meta { font-size: 13px; color: #7a5a66; margin: 4px 0 14px; }
.page .hero-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.ing-group h4 { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: #8c1d4f; margin: 18px 0 6px; }
.ing { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed #e4d6c8; cursor: pointer; font-size: 15px; line-height: 1.45; }
.ing input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 1px; border: 2px solid #c79aac; border-radius: 6px; cursor: pointer; display: grid; place-items: center; }
.ing input:checked { background: #ff2da0; border-color: #ff2da0; }
.ing input:checked::after { content: '✓'; color: #fff; font-size: 13px; }
.ing input:checked + span { text-decoration: line-through; opacity: 0.5; }
.ing-progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #7a5a66; margin-top: 8px; }
.ing-progress .bar { flex: 1; height: 6px; border-radius: 3px; background: #eadccf; overflow: hidden; }
.ing-progress .bar i { display: block; height: 100%; background: #ff2da0; transition: width 0.3s; }
.cook-step { min-height: 220px; }
.cook-step .num { font-size: 13px; letter-spacing: 0.15em; text-transform: uppercase; color: #7a5a66; }
.cook-step h4 { font-family: 'Caveat', cursive; font-size: 36px; margin: 6px 0 8px; color: #2b1520; }
.cook-step p { font-size: 18px; line-height: 1.6; margin: 0; }
.step-timers { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.step-timers button { border: 1px solid #ff7a3c; background: #fff1e8; color: #a3400f; border-radius: 999px; padding: 7px 12px; cursor: pointer; font-size: 14px; }
.step-nav { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.step-nav .btn { color: #fff; background: #8c1d4f; }
.step-nav .btn.ghost { background: transparent; color: #8c1d4f; border-color: #d9b8c6; }
.step-dots { display: flex; gap: 5px; flex-wrap: wrap; margin-left: auto; }
.step-dots i { width: 8px; height: 8px; border-radius: 50%; background: #e4d0c0; }
.step-dots i.on { background: #ff2da0; }
.cookbook .full-post { display: inline-block; margin-top: 22px; color: #8c1d4f; font-weight: 700; }
@media (max-width: 800px) { .cookbook { grid-template-columns: 1fr; } .cookbook::before { display: none; } .page { padding: 24px 20px; } }

/* ---------- Mall ---------- */
.mall { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; margin-top: 36px; }
@media (max-width: 900px) { .mall { grid-template-columns: 1fr; } }
.directory { display: flex; flex-direction: column; gap: 16px; }
.directory-screen { padding: 18px; border-radius: 18px; background: #06000a; border: 2px solid #2d0b22; box-shadow: 0 0 30px rgba(255,45,160,0.2); }
.directory-title { margin: 0 0 12px; font-family: 'Press Start 2P', monospace; font-size: 10px; color: var(--hot); text-shadow: 0 0 8px var(--hot); }
.directory-screen input[type='search'] {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid #3b1a2c; background: #12030d; color: #fff; font: inherit; font-size: 15px;
}
.directory-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.directory-actions .btn { padding: 8px 12px; font-size: 13px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.toggle input { accent-color: var(--hot); width: 16px; height: 16px; }
.elevator {
  display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px;
  background: linear-gradient(145deg, #3a3a42, #1b1b20); border: 1px solid #4a4a55;
}
.floor-btn {
  display: flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font-size: 14px; color: #ddd;
}
.floor-btn b {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: 'Press Start 2P', monospace; font-size: 10px;
  background: radial-gradient(circle at 40% 35%, #6a6a75, #26262c); box-shadow: 0 3px 0 #111, inset 0 1px 0 rgba(255,255,255,0.2); transition: 0.2s;
}
.floor-btn[aria-selected='true'] b { background: radial-gradient(circle at 40% 35%, #ff7ac8, #ff2da0); color: #000; box-shadow: 0 0 18px var(--hot), 0 3px 0 #7a0a4a; }
.floor-btn .count { margin-left: auto; font-size: 12px; opacity: 0.6; }
@media (max-width: 900px) {
  .elevator { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .floor-btn { flex-direction: column; gap: 6px; font-size: 11px; text-align: center; min-width: 64px; }
  .floor-btn .count { display: none; }
}
.floor-display {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; margin-bottom: 18px; border-radius: 12px;
  background: #050003; border: 1px solid #3a0a26; font-family: 'Press Start 2P', monospace; font-size: 11px; color: #ffb3dc; text-shadow: 0 0 8px var(--hot);
}
.floor-display .arrow { animation: blink 1s steps(1) infinite; }
.storefronts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px 16px; }
.store {
  position: relative; border: 0; padding: 0; cursor: pointer; text-align: center; color: #fff; background: none;
  display: flex; flex-direction: column; transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
  animation: storein 0.45s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes storein { from { opacity: 0; transform: translateY(24px); } }
.store:hover { transform: translateY(-6px); }
.store .awning {
  height: 34px; border-radius: 10px 10px 0 0;
  background: repeating-linear-gradient(90deg, var(--c) 0 22px, #fff 22px 44px);
  mask: radial-gradient(circle at 11px 100%, transparent 10px, #000 11px) 0 0 / 22px 100% repeat-x, linear-gradient(#000, #000) top / 100% 70% no-repeat;
  -webkit-mask: radial-gradient(circle at 11px 100%, transparent 10px, #000 11px) 0 0 / 22px 100% repeat-x, linear-gradient(#000, #000) top / 100% 70% no-repeat;
}
.store .facade { position: relative; padding: 10px 12px 12px; background: linear-gradient(#1b0c16, #0e050b); border: 1px solid #3b1a2c; border-top: 0; border-radius: 0 0 12px 12px; }
.store .sign {
  font-weight: 700; font-size: 15px; padding: 6px 8px; margin-bottom: 10px; border-radius: 6px; background: #000;
  color: var(--c); text-shadow: 0 0 10px var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.store .window {
  position: relative; height: 110px; border-radius: 8px; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 4px #2a1020; transition: box-shadow 0.3s, filter 0.3s; filter: brightness(0.82);
}
.store:hover .window { filter: brightness(1); box-shadow: inset 0 0 0 4px var(--c), 0 0 30px var(--c); }
.store .window img { max-width: 86%; max-height: 80px; object-fit: contain; }
.store .window .mono { font-family: 'Cinzel', serif; font-size: 34px; color: #2b0b1b; }
.store .sticker {
  position: absolute; top: 88px; right: -8px; z-index: 2; padding: 6px 9px; border-radius: 50%; min-width: 58px; aspect-ratio: 1;
  display: grid; place-items: center; background: #ff2da0; color: #fff; font-weight: 700; font-size: 12px; line-height: 1.1;
  transform: rotate(12deg); box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}
.store .door-strip { margin-top: 10px; height: 8px; border-radius: 4px; background: repeating-linear-gradient(90deg, #3b1a2c 0 2px, transparent 2px 10px); }
.store-empty { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--ink-soft); }

.store-modal { max-width: 560px; text-align: center; background: linear-gradient(#170812, #0b0408); border-color: var(--c); box-shadow: 0 0 60px color-mix(in srgb, var(--c) 40%, transparent); }
.store-modal .welcome { font-family: 'Caveat', cursive; font-size: 26px; color: var(--c); margin: 0; }
.store-modal h3 { font-size: 30px; margin: 4px 0 10px; }
.store-modal .logo-wrap { width: 180px; height: 110px; margin: 10px auto 16px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.store-modal .logo-wrap img { max-width: 85%; max-height: 85%; object-fit: contain; }
.coupon {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 18px auto; padding: 14px 18px;
  border: 2px dashed var(--c); border-radius: 14px; max-width: 420px;
}
.coupon .deal { font-weight: 700; font-size: 20px; color: var(--c); }
.coupon code { font-family: 'Press Start 2P', monospace; font-size: 12px; letter-spacing: 0.06em; padding: 9px 12px; background: #000; border-radius: 8px; }

/* ---------- Tip jar ---------- */
.tip-zone { display: grid; grid-template-columns: 260px minmax(0, 420px); gap: 40px; justify-content: center; align-items: center; margin-top: 34px; }
@media (max-width: 720px) { .tip-zone { grid-template-columns: 1fr; justify-items: center; } }
.tip-jar { position: relative; width: 200px; height: 250px; border: 0; background: none; cursor: pointer; padding: 0; }
.jar-lid { position: absolute; left: 36px; right: 36px; top: 0; height: 26px; border-radius: 8px; background: linear-gradient(#ff7ac8, #b0006a); box-shadow: 0 4px 0 #7a0a4a; z-index: 2; }
.jar-glass {
  position: absolute; left: 10px; right: 10px; top: 22px; bottom: 0; border-radius: 30px 30px 40px 40px; overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04) 40%, rgba(255,255,255,0.12));
  border: 2px solid rgba(255,255,255,0.35); box-shadow: inset 0 0 30px rgba(255,45,160,0.25), 0 0 40px rgba(255,45,160,0.25);
}
.jar-coins { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; justify-content: center; gap: 2px; padding: 10px; }
.jar-coins i { width: 26px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff2b0, #e8b923); box-shadow: 0 1px 0 #7d8a92; }
.jar-label { position: absolute; left: 0; right: 0; top: 44%; text-align: center; font-size: 30px; color: #ffdded; text-shadow: 0 0 10px #ff2da0; }
.tip-jar:hover .jar-glass { box-shadow: inset 0 0 40px rgba(255,45,160,0.4), 0 0 60px rgba(255,45,160,0.45); }
.falling-coin {
  position: fixed; z-index: 70; width: 30px; height: 30px; border-radius: 50%; pointer-events: none; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #7a5a00;
  background: radial-gradient(circle at 40% 35%, #fff2b0, #e8b923); box-shadow: 0 2px 0 #7d8a92; animation: coin 0.7s cubic-bezier(.5,0,.8,.4) forwards;
}
@keyframes coin { from { transform: translateY(-160px) rotateY(0deg); } to { transform: translateY(0) rotateY(720deg); opacity: 0.4; } }
.tip-actions { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.support-list { display: grid; gap: 10px; }
.support-list a { justify-content: flex-start; }
.support-list .icon { background: currentColor; }
.donate-modal { width: min(760px, 100%); }
.donate-modal iframe { width: 100%; height: min(78svh, 900px); border: 0; border-radius: 14px; background: #fff; margin-top: 12px; }
.cookbook > .page:last-child { position: sticky; top: 76px; align-self: start; }
@media (max-width: 800px) { .cookbook > .page:last-child { position: static; } }
@media (max-width: 900px) {
  /* Console sits right under the player on phones, chat comes after. */
  .room-back { display: flex; flex-direction: column; }
  .setup { display: contents; }
  .wall-top { order: 1; }
  .main-monitor { order: 2; }
  .desk { order: 3; margin: 14px -12px; }
  .side-monitor { order: 4; margin-bottom: 14px; }
}
.concourse, .directory { min-width: 0; }
@media (max-width: 520px) {
  .storefronts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .store .sign { font-size: 12px; }
  .store .window { height: 84px; }
  .store .sticker { top: 70px; min-width: 48px; font-size: 11px; }
}
.reel-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.reel-filters button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ink-faint); background: none; cursor: pointer; font-size: 14px; }
.reel-filters button small { opacity: 0.6; margin-left: 2px; }
.reel-filters button[aria-pressed='true'] { background: var(--hot); color: #000; border-color: var(--hot); }
.polaroid .src-badge { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.polaroid .src-badge .icon { width: 15px; height: 15px; background: #fff; }
.reel-empty { position: relative; padding: 120px 20px; text-align: center; color: var(--ink-soft); }
.lightbox .lb-cap { margin: 10px 0 0; text-align: center; color: var(--ink-soft); font-size: 14px; }

/* ---------- 3D kitchen ---------- */
.kitchen-3d { display: none; position: relative; height: clamp(420px, 56vw, 640px); }
.has-3d .kitchen-3d { display: block; }
#kitchen-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.k-tip {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 18px)); width: max-content; max-width: 240px;
  padding: 9px 13px; border-radius: 12px; background: rgba(20, 4, 14, 0.92); border: 1px solid var(--hot); box-shadow: 0 0 24px rgba(255,45,160,0.35);
}
.k-tip b { display: block; font-family: 'Caveat', cursive; font-size: 24px; color: var(--blush); line-height: 1.1; }
.k-tip span { font-size: 13px; color: var(--ink-soft); }
.k-hud { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; pointer-events: none; }
.k-hud > * { pointer-events: auto; }
.k-hint { padding: 7px 12px; border-radius: 999px; background: rgba(0,0,0,0.6); font-size: 13px; color: var(--ink-soft); }
.k-hud .btn { padding: 7px 14px; font-size: 13px; background: rgba(0,0,0,0.6); }
.has-3d .kitchen-top .shelf, .has-3d .kitchen-top .kitchen-sign { display: none; }
.has-3d .kitchen-top { padding: 12px 20px 0; justify-content: flex-end; }
.has-3d .kitchen-body { grid-template-columns: 1fr; padding-top: 10px; }
.has-3d .stove { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.has-3d .stove .coil { width: min(110px, 100%); }
.has-3d .stove .label { font-size: 14px; }
.has-3d .stove-knobs { display: none; }
@media (max-width: 640px) { .has-3d .stove { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.has-3d .fridge { display: none; }
.has-3d.fridge-open .fridge {
  display: block; position: absolute; z-index: 4; top: 16px; right: 16px; width: min(260px, calc(100% - 32px));
  animation: storein 0.4s cubic-bezier(.2,.8,.2,1);
}
.has-3d .fridge-door { min-height: 0; }
.fridge-close { display: none; margin-top: 10px; width: 100%; justify-content: center; background: rgba(0,0,0,0.7); }
.has-3d .fridge-close { display: inline-flex; }
.kitchen { position: relative; }

/* 3D depth */
@media (hover: hover) and (min-width: 701px) {
  .photo-board { overflow: visible; transform-style: preserve-3d; }
  .polaroid { transform: translateZ(var(--z, 0px)) rotate(var(--r, 0deg)); }
  .polaroid:hover { transform: translateZ(calc(var(--z, 0px) + 60px)) rotate(0deg); }
  .polaroid.dragging { transform: translateZ(120px) rotate(0deg) scale(1.04); }
}
.storefronts { transform-style: preserve-3d; }
.store:hover { transform: translateY(-6px) translateZ(60px); }
.store .sticker { transform: rotate(12deg) translateZ(30px); }
.tip-zone .tip-jar { transform: translateZ(60px); }
.tip-zone .tip-actions { transform: translateZ(20px); }
.has-3d .stove .burner:hover { transform: translateZ(40px); }

/* ---------- 3D game room (house) ---------- */
.room3d { display: none; position: relative; height: clamp(520px, 78vh, 820px); border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,45,160,0.35); background: #07000a; box-shadow: 0 0 80px rgba(255,45,160,0.15); }
.room.has-3d .room3d { display: block; }
.room.has-3d .room-shell { display: none; }
#room-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.room-css3d { position: absolute !important; inset: 0; pointer-events: none; }
.css-tv, .css-chat { pointer-events: auto; background: #000; overflow: hidden; }
.css-tv #player { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
.css-tv .screen-note p { font-size: 34px; }
.css-tv .screen-note .btn { font-size: 30px; padding: 20px 40px; }
.css-tv .screen-note .big-icon { width: 110px; height: 110px; }
.css-chat { display: flex; flex-direction: column; background: #0e0e10; border-radius: 8px; }
.css-chat .side-head { padding: 10px 12px; font-size: 16px; }
.css-chat #chat-body { flex: 1; position: relative; }
.room-hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; z-index: 3; }
.room-hud > * > * { pointer-events: auto; }
.room-hud-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.room-views { display: flex; gap: 6px; flex-wrap: wrap; }
.room-views .btn { padding: 7px 12px; font-size: 13px; background: rgba(0,0,0,0.65); }
.room-hud-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.room-hud-bottom .cartridges { gap: 6px; }
.room-hud-bottom .cart { width: 64px; height: 72px; padding: 8px 6px 6px; }
.room-hud-bottom .cart .icon { width: 20px; height: 20px; }
.room-hud-bottom .cart .cart-name { font-size: 10px; }
.room-hud-bottom .cart[aria-selected='true'] { transform: translateY(-8px); }
#room-hud-bar .monitor-bar { padding: 8px 12px; border-radius: 999px; background: rgba(0,0,0,0.7); color: #fff; }
@media (max-width: 700px) {
  .room3d { height: 560px; }
  .room-hud .k-hint { display: none; }
  .room-hud-bottom .cart { width: 52px; height: 60px; }
  .room-hud-bottom .cart .cart-name { display: none; }
  #room-hud-bar { display: none; }
}

/* ---------- 3D mall building ---------- */
.mall3d { display: none; position: relative; margin-top: 36px; height: clamp(560px, 80vh, 860px); border-radius: 28px; overflow: hidden; border: 1px solid rgba(255,45,160,0.35); background: #05020a; }
#mall.has-3d .mall3d { display: block; }
#mall.has-3d #mall-scene { display: none; }
#mall.has-3d.show-list #mall-scene { display: grid; }
#mall.has-3d #mall-scene .directory { display: none; }
#mall.has-3d #mall-scene { grid-template-columns: 1fr; }
#mall-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.mall-enter { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 4; font-size: 18px; padding: 16px 28px; box-shadow: 0 0 40px rgba(255,45,160,0.6); }
.mall-hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none; padding: 14px; }
.mall-hud.inside { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mall-hud > * > *, .mall-hud-left > * { pointer-events: auto; }
.mall-hud-left { display: flex; flex-direction: column; gap: 10px; width: 250px; max-height: 100%; overflow: auto; scrollbar-width: none; }
.mall-hud-left .directory-screen { padding: 12px; background: rgba(6,0,10,0.82); }
.mall-hud-left .elevator { padding: 12px; gap: 6px; background: linear-gradient(145deg, rgba(58,58,66,0.9), rgba(27,27,32,0.9)); }
.mall-hud-left .floor-btn b { width: 32px; height: 32px; }
.mall-hud-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mall-hud-right .btn { padding: 8px 14px; font-size: 13px; background: rgba(0,0,0,0.65); }
.mall-turn { display: flex; gap: 6px; }
.mall-turn .btn { font-size: 18px; padding: 6px 14px; }
.mall-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); pointer-events: none; white-space: nowrap; }
@media (max-width: 760px) {
  .mall3d { height: 640px; }
  .mall-hud.inside { flex-direction: column; justify-content: flex-end; }
  .mall-hud-left { width: 100%; flex-direction: column-reverse; max-height: 55%; }
  .mall-hud-left .directory-screen { display: none; }
  .mall-hud-left .elevator { flex-direction: row; overflow-x: auto; }
  .mall-hud-right { position: absolute; top: 14px; right: 14px; }
  .mall-hint { display: none; }
}

/* Full screen TV: the live player fills the screen (or a theater overlay where full screen isn't allowed). */
.css-tv:fullscreen, .css-tv:-webkit-full-screen { width: 100vw !important; height: 100vh !important; transform: none !important; }
#player:fullscreen, #player:-webkit-full-screen { width: 100vw; height: 100vh; }
.room-views .btn.tv-full { background: var(--hot); color: #000; }
.theater { position: fixed; inset: 0; z-index: 90; background: #000; display: grid; grid-template-rows: auto 1fr; }
.theater-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: #0a0006; border-bottom: 1px solid rgba(255,45,160,0.35); }
.theater-bar b { font-size: 15px; }
.theater iframe { width: 100%; height: 100%; border: 0; background: #000; }
.theater .screen-note { height: 100%; }

/* Product quick view (shared with the Diamond Empire shop) for the closet's boutique racks */
.quickview { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .quickview { grid-template-columns: 1fr; } }
.qv-main { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; }
.qv-main img { width: 100%; height: 100%; object-fit: contain; }
.qv-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.qv-thumbs button { flex: none; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #fff; }
.qv-thumbs button.on { border-color: var(--teal); }
.qv-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qv-info h3 { font-family: 'Cinzel', serif; font-size: 24px; margin: 0 0 8px; }
.qv-price { font-size: 26px; font-weight: 700; color: var(--silver); margin-bottom: 14px; }
.qv-opt { margin-bottom: 12px; }
.qv-opt p { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.qv-opt .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qv-opt .chips button { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); background: none; cursor: pointer; font-size: 13px; }
.qv-opt .chips button[aria-pressed='true'] { background: var(--teal); color: #000; border-color: var(--teal); }
.qv-opt .chips button:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.qv-desc { font-size: 14px; color: var(--ink-soft); max-height: 180px; overflow: auto; margin: 12px 0; }

/* ---------- Mansion foyer ---------- */
.mansion { position: relative; margin-top: 30px; height: clamp(560px, 80vh, 860px); border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,45,160,0.35); background: #0c0409; }
.mansion canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.mansion .k-tip { z-index: 5; }
.mansion-doors { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; width: calc(100% - 28px); }
.mansion-doors a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14px;
  background: rgba(20, 4, 14, 0.72); border: 1px solid rgba(255,45,160,0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: 0.2s;
}
.mansion-doors a:hover { background: var(--hot); color: #000; }
.mansion-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; white-space: nowrap; }
.no-webgl .mansion { height: auto; padding: 20px; }
.no-webgl .mansion-doors { position: static; transform: none; width: auto; }
.no-webgl .mansion-hint { display: none; }
@media (max-width: 760px) { .mansion { height: 640px; } .mansion-doors a { font-size: 12px; padding: 7px 10px; } .mansion-hint { display: none; } }
.closet-views { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.closet-views .btn[aria-pressed='true'] { background: var(--hot) !important; color: #000 !important; }
[data-theme='day'] .mansion { border: 6px solid #fff; box-shadow: var(--soft-shadow), 0 0 0 1px var(--line); }
[data-theme='day'] .mansion-doors a { background: rgba(255,255,255,0.88); color: #2a1622; border-color: var(--line); }

/* Kitchen view buttons */
.k-views { display: flex; gap: 6px; flex-wrap: wrap; }
.k-views .btn[aria-pressed='true'] { background: var(--hot); border-color: var(--hot); color: #fff; }
.kitchen-3d:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
@media (max-width: 560px) { .k-hint { display: none; } .k-views { width: 100%; justify-content: center; } .k-views .btn { flex: 1; padding: 9px 6px; } }
.screen-note .screen-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 45, 160, 0.18); color: #fff; font-weight: 700; letter-spacing: 0.08em; }
