*{box-sizing:border-box}

:root{
  --bg:#09080d;
  --wall-top:#17131d;
  --wall-bottom:#201822;
  --floor:#1a1418;
  --floor-line:#2a2026;
  --desk:#60493d;
  --desk-dark:#32251f;
  --desk-light:#765a4a;
  --text:#f6efe8;
  --muted:#aca2ab;
  --cream:#f5e8d5;
  --pink:#d69ab7;
  --pink-dark:#9d657f;
  --green:#78946f;
  --green-dark:#40553c;
  --panel:#15131a;
  --panel2:#211d26;
  --line:#3b333f;
}

html,body{
  margin:0;
  min-height:100%;
  background:var(--bg);
  color:var(--text);
  font-family:"Courier New",monospace;
}

body{
  overflow-x:hidden;
}

button{
  font:inherit;
}

button:focus-visible{
  outline:3px solid var(--cream);
  outline-offset:4px;
}

#app{
  min-height:100vh;
}

.screen{
  display:none;
  min-height:100vh;
}

.screen.active{
  display:block;
}

/* ---------------- INTRO ---------------- */

#intro{
  min-height:100vh;
  padding:24px;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at 50% 35%,rgba(214,154,183,.07),transparent 32%),
    linear-gradient(180deg,#09080d,#0d0a10);
}

#intro.active{
  display:flex;
}

.intro-wrap{
  text-align:center;
  width:min(720px,100%);
}

.intro-line{
  opacity:0;
  transform:translateY(8px);
  font-size:clamp(20px,4vw,38px);
  margin:18px 0;
  transition:opacity .55s ease,transform .55s ease;
}

.intro-line.show{
  opacity:1;
  transform:none;
}

.pixel-btn{
  margin-top:26px;
  padding:12px 24px;
  color:#191418;
  background:var(--cream);
  border:3px solid #1a1518;
  box-shadow:6px 6px 0 #000;
  cursor:pointer;
  transition:transform .12s ease,box-shadow .12s ease;
}

.pixel-btn:hover{
  transform:translate(-2px,-2px);
  box-shadow:8px 8px 0 #000;
}

.hidden{
  visibility:hidden;
}

.pixel-lily{
  position:relative;
  width:72px;
  height:90px;
  margin:0 auto 20px;
  filter:drop-shadow(0 4px 0 rgba(0,0,0,.45));
}

.pixel-lily .stem{
  position:absolute;
  width:7px;
  height:48px;
  background:var(--green);
  left:33px;
  top:40px;
}

.pixel-lily .leaf{
  position:absolute;
  width:18px;
  height:8px;
  background:var(--green);
  top:62px;
}

.pixel-lily .l1{left:18px;transform:rotate(-20deg)}
.pixel-lily .l2{left:40px;transform:rotate(20deg)}

.pixel-lily .petal,
.pixel-lily .center{
  position:absolute;
  image-rendering:pixelated;
}

.pixel-lily .petal{
  width:22px;
  height:22px;
  background:var(--cream);
  border:3px solid #232023;
}

.pixel-lily .p1{left:25px;top:5px}
.pixel-lily .p2{left:7px;top:20px}
.pixel-lily .p3{left:42px;top:20px}
.pixel-lily .p4{left:16px;top:38px}
.pixel-lily .p5{left:35px;top:38px}

.pixel-lily .center{
  width:13px;
  height:13px;
  background:var(--pink);
  left:29px;
  top:27px;
  border:2px solid #232023;
}

/* ---------------- ROOM ---------------- */

.room{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  isolation:isolate;
  padding:28px;
  background:
    linear-gradient(90deg,transparent 49.6%,rgba(255,255,255,.018) 50%,transparent 50.4%) 0 0/70px 70px,
    linear-gradient(0deg,transparent 49.6%,rgba(255,255,255,.014) 50%,transparent 50.4%) 0 0/70px 70px,
    linear-gradient(180deg,var(--wall-top) 0 66%,var(--floor) 66% 100%);
}

.room::after{
  content:"";
  position:absolute;
  z-index:-2;
  left:0;
  right:0;
  top:66%;
  bottom:0;
  opacity:.5;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 95px,
      var(--floor-line) 96px 98px
    );
}

.room-title{
  position:relative;
  z-index:4;
  display:inline-flex;
  flex-direction:column;
  gap:3px;
}

.room-title strong{
  font-size:22px;
  letter-spacing:1px;
  font-weight:700;
}

.room-title span{
  color:var(--muted);
  font-size:11px;
}

.wall-decor{
  position:absolute;
  z-index:0;
  color:rgba(245,232,213,.055);
  user-select:none;
  pointer-events:none;
  line-height:1;
}

.wall-lily-a{
  font-size:170px;
  left:5%;
  top:15%;
  transform:rotate(-12deg);
}

.wall-lily-b{
  font-size:110px;
  right:30%;
  top:12%;
  transform:rotate(18deg);
}

.wall-lily-c{
  font-size:210px;
  right:-45px;
  top:35%;
  transform:rotate(-23deg);
}

.window{
  position:absolute;
  z-index:1;
  right:7%;
  top:9%;
  width:min(315px,34vw);
  aspect-ratio:1.65;
  padding:9px;
  border:7px solid #352c32;
  background:#151116;
  box-shadow:
    0 0 0 3px #0d0a0d,
    8px 10px 0 rgba(0,0,0,.28);
}

.window-sky{
  position:absolute;
  inset:9px;
  overflow:hidden;
  background:
    radial-gradient(circle at 70% 20%,rgba(146,157,193,.16),transparent 25%),
    linear-gradient(180deg,#080a14,#111326);
}

.moon{
  position:absolute;
  width:44px;
  height:44px;
  border-radius:50%;
  background:#e8dfce;
  right:26px;
  top:22px;
  box-shadow:0 0 18px rgba(232,223,206,.16);
}

.star{
  position:absolute;
  color:#d9ddeb;
}

.s1{left:17%;top:20%}
.s2{left:37%;top:62%}
.s3{left:56%;top:30%}
.s4{left:22%;top:74%}

.window-cross{
  position:absolute;
  z-index:2;
  background:#352c32;
}

.window-cross.vertical{
  top:9px;
  bottom:9px;
  width:6px;
  left:50%;
  transform:translateX(-50%);
}

.window-cross.horizontal{
  left:9px;
  right:9px;
  height:6px;
  top:50%;
  transform:translateY(-50%);
}

.wall-note{
  position:absolute;
  z-index:1;
  left:9%;
  top:24%;
  width:180px;
  padding:14px;
  transform:rotate(-3deg);
  background:#ead9bd;
  color:#2a2023;
  border:2px solid #4b3b3f;
  box-shadow:5px 7px 0 rgba(0,0,0,.22);
}

.wall-note span{
  display:block;
  font-weight:bold;
  margin-bottom:8px;
}

.wall-note small{
  font-size:10px;
  opacity:.68;
}

.desk-area{
  position:absolute;
  z-index:3;
  left:50%;
  bottom:12%;
  width:min(880px,88vw);
  height:280px;
  transform:translateX(-50%);
}

.desk-back{
  position:absolute;
  left:5%;
  right:5%;
  bottom:70px;
  height:19px;
  background:#282025;
  opacity:.55;
}

.desk{
  position:absolute;
  z-index:3;
  left:0;
  right:0;
  bottom:75px;
  height:175px;
  border:5px solid var(--desk-dark);
  background:
    linear-gradient(90deg,rgba(255,255,255,.035),transparent 18% 82%,rgba(0,0,0,.06)),
    var(--desk);
  box-shadow:
    0 11px 0 var(--desk-dark),
    0 18px 22px rgba(0,0,0,.22);
}

.desk::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:11px;
  height:4px;
  background:rgba(255,255,255,.07);
  pointer-events:none;
}

.desk-legs{
  position:absolute;
  z-index:1;
  left:5%;
  right:5%;
  bottom:0;
  height:90px;
  border-left:25px solid var(--desk-dark);
  border-right:25px solid var(--desk-dark);
  pointer-events:none;
}

.object{
  position:absolute;
  z-index:6;
  border:0;
  cursor:pointer;
  color:var(--text);
  transition:
    transform .16s ease,
    filter .16s ease;
  touch-action:manipulation;
}

.object:hover{
  transform:translateY(-8px);
  filter:brightness(1.1);
}

.object:active{
  transform:translateY(-3px) scale(.98);
}

.object-label{
  position:absolute;
  left:50%;
  bottom:calc(100% + 11px);
  transform:translateX(-50%) translateY(4px);
  padding:4px 7px;
  border:1px solid #4d424d;
  background:#110f14;
  color:#e9dfe6;
  font-size:10px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease,transform .15s ease;
}

.object:hover .object-label,
.object:focus-visible .object-label{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.phone{
  left:6%;
  bottom:20px;
  width:78px;
  height:128px;
  padding:0;
  border:5px solid #111;
  border-radius:10px;
  background:#242832;
  box-shadow:5px 5px 0 #111;
}

.phone-notch{
  position:absolute;
  top:7px;
  left:50%;
  width:29px;
  height:6px;
  transform:translateX(-50%);
  background:#111;
}

.phone-screen{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100%;
  font-size:34px;
}

.folder{
  left:25%;
  bottom:20px;
  width:150px;
  height:88px;
  padding:0;
  background:#c6a169;
  border:4px solid #80653f;
  color:#231b12;
  box-shadow:5px 5px 0 rgba(0,0,0,.18);
}

.folder-tab{
  position:absolute;
  left:9px;
  top:-19px;
  width:67px;
  height:21px;
  background:#c6a169;
  border:4px solid #80653f;
  border-bottom:0;
}

.folder-text{
  position:relative;
  z-index:1;
  display:block;
  font-weight:bold;
  line-height:1.05;
}

.lily-pot{
  left:50%;
  bottom:18px;
  width:116px;
  height:136px;
  padding:0;
  transform:translateX(-50%);
  background:transparent;
}

.lily-pot:hover{
  transform:translateX(-50%) translateY(-8px);
}

.pot{
  position:absolute;
  left:25px;
  bottom:0;
  width:66px;
  height:48px;
  border:4px solid #3b2825;
  background:#82594e;
  clip-path:polygon(7% 0,93% 0,82% 100%,18% 100%);
}

.flower-stem{
  position:absolute;
  width:6px;
  background:var(--green);
  bottom:46px;
  transform-origin:bottom;
}

.fs1{
  left:47px;
  height:70px;
  transform:rotate(-8deg);
}

.fs2{
  left:68px;
  height:62px;
  transform:rotate(8deg);
}

.flower-head{
  position:absolute;
  color:var(--cream);
  font-size:38px;
  line-height:1;
  text-shadow:0 2px 0 #493e41;
}

.fh1{
  left:25px;
  top:4px;
  transform:rotate(-12deg);
}

.fh2{
  left:57px;
  top:19px;
  transform:rotate(12deg);
}

.console{
  right:22%;
  bottom:23px;
  width:125px;
  height:82px;
  padding:0;
  border:4px solid #111;
  background:#272832;
  box-shadow:5px 5px 0 #111;
}

.console-screen{
  display:flex;
  align-items:center;
  justify-content:center;
  position:absolute;
  left:11px;
  top:11px;
  width:74px;
  height:55px;
  border:2px solid #0c0d10;
  background:#131914;
  color:#b8d4ad;
  font-size:11px;
  line-height:1.1;
}

.console-dot{
  position:absolute;
  right:12px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#9a7585;
  border:2px solid #111;
}

.d1{top:21px}
.d2{top:45px}

.envelope{
  right:5%;
  bottom:29px;
  width:76px;
  height:54px;
  padding:0;
  background:#eadfcd;
  border:4px solid #56463f;
  color:#2d251f;
  box-shadow:4px 4px 0 rgba(0,0,0,.2);
}

.envelope::before,
.envelope::after{
  content:"";
  position:absolute;
  bottom:5px;
  width:39px;
  height:3px;
  background:#7d6a5f;
}

.envelope::before{
  left:2px;
  transform:rotate(32deg);
  transform-origin:left;
}

.envelope::after{
  right:2px;
  transform:rotate(-32deg);
  transform-origin:right;
}

.envelope-mark{
  position:relative;
  z-index:2;
  font-size:25px;
}

.lock-mark{
  display:none;
  position:absolute;
  right:-9px;
  top:-17px;
  font-size:17px;
}

.envelope.locked{
  filter:grayscale(.8) brightness(.7);
  cursor:not-allowed;
}

.envelope.locked .lock-mark{
  display:block;
}

.floor-actions{
  position:absolute;
  z-index:4;
  left:28px;
  bottom:24px;
  display:flex;
  gap:10px;
}

.tiny-object{
  min-width:45px;
  min-height:42px;
  padding:7px 9px;
  border:2px solid #3a3038;
  background:#161219;
  color:#fff;
  cursor:pointer;
  box-shadow:3px 3px 0 rgba(0,0,0,.28);
  transition:transform .12s ease,background .12s ease;
}

.tiny-object:hover{
  transform:translateY(-3px);
  background:#241d27;
}

.room-help{
  position:absolute;
  z-index:4;
  right:28px;
  bottom:25px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#a79da6;
  font-size:12px;
}

.blink-dot{
  width:7px;
  height:7px;
  background:var(--pink);
  box-shadow:0 0 0 3px rgba(214,154,183,.1);
  animation:blink 1.6s ease-in-out infinite;
}

@keyframes blink{
  0%,100%{opacity:.35}
  50%{opacity:1}
}

.garden{
  position:absolute;
  z-index:2;
  left:0;
  right:0;
  bottom:0;
  height:105px;
  pointer-events:none;
  overflow:hidden;
}

.garden .flower{
  position:absolute;
  bottom:-4px;
  color:var(--cream);
  text-shadow:0 3px 0 rgba(0,0,0,.35);
  animation:grow .45s ease both;
}

@keyframes grow{
  from{transform:scale(.1) translateY(20px);opacity:0}
  to{transform:scale(1);opacity:1}
}

/* ---------------- MODALS / PANELS ---------------- */

.panel-screen{
  display:none;
  position:fixed;
  inset:0;
  z-index:50;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(5,4,7,.82);
  backdrop-filter:blur(3px);
}

.panel-screen.open{
  display:flex;
}

.panel-card{
  position:relative;
  width:min(720px,96vw);
  max-height:86vh;
  overflow:auto;
  padding:30px;
  border:2px solid var(--line);
  background:var(--panel);
  box-shadow:8px 8px 0 #050407;
}

.close-btn{
  position:absolute;
  z-index:2;
  right:12px;
  top:8px;
  width:42px;
  height:42px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:30px;
  cursor:pointer;
}

.panel-card h2{
  margin:0 50px 18px 0;
  font-size:22px;
}

.panel-card p{
  line-height:1.65;
}

.soft{
  color:var(--muted);
}

.bigline{
  margin:24px 0;
  font-size:clamp(22px,4vw,34px);
}

.snap-card{
  padding:18px;
  border:4px solid #111;
  background:#f4f1e9;
  color:#111;
}

.snap-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:12px 4px;
  border-bottom:2px dashed #bbb;
}

.snap-row:last-child{
  border-bottom:0;
}

.pin{
  font-size:18px;
}

.archive-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(155px,1fr));
  gap:12px;
}

.archive-item{
  min-height:110px;
  padding:16px;
  border:1px solid var(--line);
  background:var(--panel2);
}

.archive-item b{
  display:block;
  margin-bottom:8px;
}

.game-box{
  padding:18px;
  border:3px solid #445447;
  background:#0d120f;
}

.game-stage{
  position:relative;
  height:230px;
  overflow:hidden;
  margin:14px 0;
  border:3px solid #28352a;
  background:
    linear-gradient(rgba(255,255,255,.02),rgba(255,255,255,.02)),
    #161c18;
}

.player{
  position:absolute;
  left:20px;
  bottom:18px;
  font-size:31px;
}

.collectible{
  position:absolute;
  font-size:28px;
}

.game-controls{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.game-controls button{
  min-width:48px;
  min-height:44px;
  padding:10px;
  border:1px solid #566558;
  background:#242b25;
  color:#fff;
  cursor:pointer;
}

.letter{
  padding:26px;
  border:4px solid #655446;
  background:#efe6d8;
  color:#2c241d;
  line-height:1.8;
}

/* ---------------- TOAST ---------------- */

.toast{
  position:fixed;
  z-index:80;
  left:50%;
  bottom:25px;
  max-width:min(90vw,560px);
  transform:translateX(-50%) translateY(10px);
  padding:10px 14px;
  border:1px solid #463a45;
  background:#171219;
  color:#f6efe8;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
  text-align:center;
}

.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* ---------------- RUNAWAY ROXY ---------------- */

.roxy-runner{
  display:none;
  position:fixed;
  z-index:35;
  left:18px;
  top:18px;
  width:88px;
  height:110px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  transition:
    left .75s cubic-bezier(.22,.72,.25,1),
    top .75s cubic-bezier(.22,.72,.25,1),
    transform .12s ease;
  touch-action:manipulation;
}

.roxy-runner.show{
  display:block;
}

.roxy-runner:hover{
  transform:scale(1.04);
}

.roxy-runner img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
}

.roxy-popup{
  display:none;
  position:fixed;
  inset:0;
  z-index:90;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(0,0,0,.72);
}

.roxy-popup.open{
  display:flex;
}

.roxy-popup-card{
  width:min(360px,92vw);
  padding:28px;
  border:4px solid #111;
  background:var(--cream);
  color:#151515;
  box-shadow:8px 8px 0 #000;
  text-align:center;
}

.roxy-popup-card p{
  margin:0 0 20px;
  font-size:clamp(30px,8vw,52px);
  font-weight:bold;
}

.roxy-popup-card button{
  min-height:44px;
  padding:11px 16px;
  border:0;
  background:#111;
  color:#fff;
  cursor:pointer;
}

/* ---------------- MOBILE ---------------- */

@media(max-width:760px){
  .room{
    padding:20px;
  }

  .window{
    width:145px;
    right:18px;
    top:82px;
    border-width:5px;
  }

  .window-sky{
    inset:6px;
  }

  .window-cross.vertical{
    top:6px;
    bottom:6px;
  }

  .window-cross.horizontal{
    left:6px;
    right:6px;
  }

  .moon{
    width:28px;
    height:28px;
    right:14px;
    top:12px;
  }

  .wall-note{
    left:20px;
    top:160px;
    width:142px;
    padding:10px;
    font-size:12px;
  }

  .desk-area{
    width:94vw;
    bottom:15%;
    height:250px;
  }

  .desk{
    height:155px;
  }

  .phone{
    left:3%;
    transform:scale(.8);
    transform-origin:bottom left;
  }

  .phone:hover{
    transform:scale(.8) translateY(-8px);
  }

  .folder{
    left:22%;
    width:112px;
    height:74px;
    font-size:12px;
  }

  .lily-pot{
    left:52%;
    transform:translateX(-50%) scale(.82);
    transform-origin:bottom;
  }

  .lily-pot:hover{
    transform:translateX(-50%) scale(.82) translateY(-8px);
  }

  .console{
    right:9%;
    width:91px;
    height:72px;
  }

  .console-screen{
    width:55px;
    height:47px;
    font-size:9px;
  }

  .console-dot{
    right:8px;
  }

  .envelope{
    right:1%;
    bottom:103px;
    transform:scale(.82);
  }

  .envelope:hover{
    transform:scale(.82) translateY(-8px);
  }

  .floor-actions{
    left:15px;
    bottom:17px;
  }

  .room-help{
    right:15px;
    bottom:19px;
    max-width:150px;
    text-align:right;
  }

  .panel-card{
    padding:24px 18px;
  }

  .roxy-runner{
    width:70px;
    height:88px;
  }
}

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


/* ---------------- SCRIBBLED BLACK WALL ---------------- */

.room{
  background:
    linear-gradient(
      180deg,
      #050505 0,
      #050505 66%,
      var(--floor) 66%,
      var(--floor) 100%
    );
}

/* Old wall decorations are kept in the HTML but visually retired. */
.wall-decor,
.wall-note{
  display:none !important;
}

.scribble-wall{
  position:absolute;
  z-index:0;
  inset:0 0 34% 0;
  overflow:hidden;
  pointer-events:none;
  background:#050505;
}

/* subtle wall texture without using an image */
.scribble-wall::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.12;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.025) 0 1px,
      transparent 1px 5px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.015) 0 1px,
      transparent 1px 7px
    );
}

.scribble{
  position:absolute;
  color:#f4f4f4;
  font-family:"Segoe Print","Bradley Hand","Comic Sans MS","Marker Felt",cursive;
  font-weight:700;
  line-height:.9;
  white-space:nowrap;
  letter-spacing:-1px;
  opacity:.94;
  text-shadow:
    1px 0 0 rgba(255,255,255,.2),
    -1px 0 0 rgba(255,255,255,.15);
  mix-blend-mode:screen;
}

/* The slightly distorted look makes it feel hand-scrawled rather than typeset. */
.sc1{left:-1%;top:4%;font-size:clamp(38px,6vw,92px);transform:rotate(-8deg) skewX(-7deg)}
.sc2{left:22%;top:3%;font-size:clamp(28px,4.8vw,76px);transform:rotate(6deg) skewX(6deg)}
.sc3{left:60%;top:5%;font-size:clamp(30px,5vw,78px);transform:rotate(-5deg)}
.sc4{left:2%;top:22%;font-size:clamp(22px,3.6vw,58px);transform:rotate(4deg) skewX(-4deg)}
.sc5{left:58%;top:21%;font-size:clamp(34px,5.8vw,88px);transform:rotate(9deg)}
.sc6{left:78%;top:15%;font-size:clamp(25px,4vw,62px);transform:rotate(-12deg)}
.sc7{left:9%;top:42%;font-size:clamp(26px,4.3vw,68px);transform:rotate(-4deg)}
.sc8{left:-4%;top:67%;font-size:clamp(18px,3.15vw,50px);transform:rotate(2deg)}

.sc9{left:74%;top:40%;font-size:clamp(27px,4.5vw,72px);transform:rotate(10deg)}
.sc10{left:45%;top:34%;font-size:clamp(20px,3vw,46px);transform:rotate(-9deg)}
.sc11{left:44%;top:55%;font-size:clamp(28px,5vw,80px);transform:rotate(5deg)}
.sc12{left:3%;top:56%;font-size:clamp(20px,3.3vw,50px);transform:rotate(-7deg)}
.sc13{left:68%;top:59%;font-size:clamp(22px,3.8vw,60px);transform:rotate(-2deg)}
.sc14{left:23%;top:15%;font-size:clamp(18px,2.6vw,40px);transform:rotate(-13deg)}
.sc15{left:52%;top:75%;font-size:clamp(17px,2.7vw,42px);transform:rotate(8deg)}
.sc16{left:80%;top:77%;font-size:clamp(18px,2.8vw,44px);transform:rotate(-8deg)}
.sc17{left:24%;top:80%;font-size:clamp(20px,3vw,46px);transform:rotate(-3deg)}
.sc18{left:92%;top:2%;font-size:clamp(28px,4.5vw,70px);transform:rotate(13deg)}
.sc19{left:83%;top:31%;font-size:clamp(23px,4vw,62px);transform:rotate(-6deg)}
.sc20{left:4%;top:83%;font-size:clamp(18px,3vw,44px);transform:rotate(7deg)}
.sc21{left:34%;top:31%;font-size:clamp(22px,3.8vw,58px);transform:rotate(11deg)}
.sc22{left:57%;top:87%;font-size:clamp(20px,3.2vw,48px);transform:rotate(-9deg)}
.sc23{left:78%;top:88%;font-size:clamp(17px,2.7vw,42px);transform:rotate(5deg)}
.sc24{left:1%;top:12%;font-size:clamp(15px,2.2vw,34px);transform:rotate(12deg)}

.scribble-mark{
  position:absolute;
  color:#efefef;
  font-family:"Segoe Print","Comic Sans MS",cursive;
  font-weight:700;
  opacity:.8;
  pointer-events:none;
}
.mark1{left:41%;top:9%;font-size:56px;transform:rotate(12deg)}
.mark2{left:88%;top:49%;font-size:46px;transform:rotate(-8deg)}
.mark3{left:16%;top:35%;font-size:58px;transform:rotate(23deg)}
.mark4{left:67%;top:13%;font-size:72px;transform:rotate(-11deg)}
.mark5{left:36%;top:71%;font-size:47px;transform:rotate(-8deg)}
.mark6{left:12%;top:72%;font-size:50px;transform:rotate(14deg)}

/* Keep the functional room content above the wall writing. */
.room-title,
.window,
.desk-area,
.floor-actions,
.room-help,
.garden{
  z-index:3;
}

/* Dark backing behind title so it stays legible over scribbles. */
.room-title{
  padding:8px 10px;
  background:rgba(0,0,0,.62);
  border:1px solid rgba(255,255,255,.12);
}

/* Let the window and desk stand out against the busy wall. */
.window{
  box-shadow:
    0 0 0 3px #0d0a0d,
    8px 10px 0 rgba(0,0,0,.45);
}

@media(max-width:760px){
  .scribble-wall{
    inset:0 0 36% 0;
  }

  .scribble{
    opacity:.83;
  }

  .sc4{top:25%}
  .sc7{top:47%}
  .sc8{top:72%}
  .sc11{top:59%}
  .sc17{top:84%}
  .sc20{top:88%}

  /* Some of the far-edge graffiti is hidden on narrow screens to avoid unreadable clutter. */
  .sc18,.sc23,.mark2{
    display:none;
  }
}


/* =========================================================
   SCREEN-FIT PASS
   Desktop stays one scene; phones get their own composition.
   ========================================================= */

html, body, #app,
.screen,
.room{
  width:100%;
  max-width:100%;
}

.room{
  height:100vh;
  min-height:0;
  overflow:hidden;
  padding:clamp(14px,2vw,28px);
}

/* Keep the writing safely inside the visible wall. */
.scribble-wall{
  inset:0 0 34% 0;
}

.scribble{
  max-width:94%;
  overflow-wrap:anywhere;
}

/* Reposition the main phrases so none of the important writing hangs off-screen. */
.sc1{left:2%;top:3%;font-size:clamp(34px,5.2vw,78px)}
.sc2{left:24%;top:4%;font-size:clamp(26px,4vw,60px)}
.sc3{left:61%;top:5%;font-size:clamp(27px,4.2vw,64px)}
.sc4{
  left:3%;
  top:22%;
  width:53%;
  white-space:normal;
  font-size:clamp(18px,2.9vw,44px);
}
.sc5{left:62%;top:23%;font-size:clamp(29px,4.7vw,70px)}
.sc6{left:78%;top:15%;font-size:clamp(20px,3vw,46px)}
.sc7{
  left:7%;
  top:43%;
  width:61%;
  white-space:normal;
  font-size:clamp(20px,3.2vw,49px);
}
.sc8{
  left:3%;
  top:69%;
  width:94%;
  max-width:94%;
  white-space:normal;
  line-height:.92;
  font-size:clamp(16px,2.45vw,36px);
}
.sc9{left:73%;top:42%;font-size:clamp(22px,3.3vw,50px)}
.sc10{left:46%;top:34%;font-size:clamp(17px,2.5vw,38px)}
.sc11{left:45%;top:56%;font-size:clamp(22px,3.8vw,56px)}
.sc12{left:4%;top:58%;font-size:clamp(17px,2.6vw,39px)}
.sc13{left:69%;top:59%;font-size:clamp(17px,2.7vw,41px)}
.sc14{left:25%;top:15%;font-size:clamp(14px,2vw,30px)}
.sc15{left:54%;top:80%;font-size:clamp(14px,2vw,30px)}
.sc16{left:77%;top:78%;font-size:clamp(14px,2vw,30px)}
.sc17{left:24%;top:84%;font-size:clamp(15px,2.2vw,32px)}
.sc18{left:90%;top:2%;font-size:clamp(20px,3vw,45px)}
.sc19{left:82%;top:31%;font-size:clamp(18px,2.7vw,41px)}
.sc20{left:4%;top:85%;font-size:clamp(14px,2vw,30px)}
.sc21{left:34%;top:31%;font-size:clamp(18px,2.8vw,42px)}
.sc22{left:58%;top:90%;font-size:clamp(14px,2vw,30px)}
.sc23{left:78%;top:88%;font-size:clamp(14px,1.9vw,28px)}
.sc24{left:2%;top:13%;font-size:clamp(13px,1.7vw,25px)}

.mark1{left:41%;top:10%;font-size:clamp(30px,4vw,55px)}
.mark2{left:87%;top:49%;font-size:clamp(28px,3.6vw,48px)}
.mark3{left:16%;top:35%;font-size:clamp(30px,4vw,54px)}
.mark4{left:67%;top:13%;font-size:clamp(38px,5vw,68px)}
.mark5{left:36%;top:72%;font-size:clamp(28px,3.7vw,48px)}
.mark6{left:12%;top:73%;font-size:clamp(28px,3.7vw,48px)}

/* Desktop composition: scale from viewport height, not a fixed oversized scene. */
.window{
  right:4.5%;
  top:8%;
  width:clamp(165px,23vw,300px);
  max-height:26vh;
}

.desk-area{
  bottom:6%;
  width:min(880px,86vw);
  height:clamp(210px,30vh,275px);
}

.desk{
  bottom:clamp(56px,8vh,75px);
  height:clamp(138px,19vh,175px);
}

.desk-legs{
  height:clamp(65px,10vh,90px);
}

.floor-actions{
  bottom:14px;
}

.room-help{
  bottom:18px;
}

/* If a laptop has a short viewport, shrink the furniture as one unit. */
@media (min-width:761px) and (max-height:720px){
  .desk-area{
    bottom:2%;
    transform:translateX(-50%) scale(.82);
    transform-origin:bottom center;
  }

  .window{
    top:5%;
    transform:scale(.83);
    transform-origin:top right;
  }

  .room-title{
    transform:scale(.9);
    transform-origin:top left;
  }

  .scribble-wall{
    inset:0 0 31% 0;
  }

  .scribble{
    opacity:.82;
  }
}

/* =========================================================
   PHONE LAYOUT
   This is deliberately rearranged, not just shrunk.
   ========================================================= */
@media (max-width:760px){
  body{
    overflow:hidden;
  }

  .screen,
  #intro,
  .room{
    height:100vh;
    min-height:0;
  }

  @supports (height:100svh){
    .screen,
    #intro,
    .room{
      height:100svh;
    }
  }

  .room{
    padding:10px 11px;
    background:
      linear-gradient(
        180deg,
        #050505 0,
        #050505 61%,
        var(--floor) 61%,
        var(--floor) 100%
      );
  }

  .room::after{
    top:61%;
  }

  .room-title{
    top:0;
    padding:5px 7px;
    max-width:150px;
  }

  .room-title strong{
    font-size:16px;
  }

  .room-title span{
    font-size:8px;
  }

  /* A compact high window leaves room for the graffiti. */
  .window{
    top:53px;
    right:9px;
    width:96px;
    height:64px;
    aspect-ratio:auto;
    padding:4px;
    border-width:4px;
    transform:none;
  }

  .window-sky{
    inset:4px;
  }

  .window-cross.vertical{
    top:4px;
    bottom:4px;
    width:4px;
  }

  .window-cross.horizontal{
    left:4px;
    right:4px;
    height:4px;
  }

  .moon{
    width:19px;
    height:19px;
    right:9px;
    top:8px;
  }

  /* The mobile wall only keeps the useful/recognisable writing.
     All of the exact phrases remain visible. */
  .scribble-wall{
    inset:0 0 39% 0;
  }

  .scribble{
    opacity:.86;
    text-shadow:none;
    letter-spacing:-.5px;
  }

  .sc1{
    left:3%;top:8%;
    font-size:30px;
    transform:rotate(-8deg);
  }

  .sc2{
    left:27%;top:5%;
    font-size:20px;
    transform:rotate(5deg);
  }

  .sc3{
    left:5%;top:20%;
    font-size:22px;
    transform:rotate(-5deg);
  }

  .sc4{
    left:35%;top:23%;
    width:61%;
    font-size:14px;
    line-height:.95;
    transform:rotate(4deg);
  }

  .sc5{
    left:5%;top:36%;
    font-size:25px;
    transform:rotate(8deg);
  }

  .sc6{
    left:56%;top:38%;
    font-size:17px;
    transform:rotate(-10deg);
  }

  .sc7{
    left:5%;top:51%;
    width:89%;
    font-size:16px;
    line-height:.95;
    transform:rotate(-3deg);
  }

  .sc8{
    left:4%;top:68%;
    width:92%;
    max-width:92%;
    font-size:13px;
    line-height:.94;
    transform:rotate(1deg);
  }

  .sc9{
    left:67%;top:53%;
    font-size:17px;
    transform:rotate(9deg);
  }

  .sc10{
    left:39%;top:46%;
    font-size:13px;
    transform:rotate(-8deg);
  }

  .sc11{
    left:8%;top:83%;
    font-size:17px;
    transform:rotate(5deg);
  }

  .sc12{
    left:56%;top:84%;
    font-size:13px;
    transform:rotate(-5deg);
  }

  .sc13{
    left:69%;top:14%;
    font-size:12px;
    transform:rotate(-2deg);
  }

  /* Extra filler disappears on phones so the wall stays legible. */
  .sc14,.sc15,.sc16,.sc17,.sc18,.sc19,.sc20,.sc21,.sc22,.sc23,.sc24,
  .mark1,.mark2,.mark3,.mark5,.mark6{
    display:none;
  }

  .mark4{
    display:block;
    left:76%;
    top:30%;
    font-size:34px;
    opacity:.55;
  }

  /* The desk is now a compact phone-specific scene. */
  .desk-area{
    left:50%;
    bottom:3%;
    width:96vw;
    height:37vh;
    min-height:230px;
    max-height:315px;
    transform:translateX(-50%);
  }

  .desk{
    left:0;
    right:0;
    bottom:53px;
    height:145px;
    border-width:4px;
  }

  .desk-legs{
    left:5%;
    right:5%;
    bottom:0;
    height:62px;
    border-left-width:17px;
    border-right-width:17px;
  }

  .object-label{
    display:none;
  }

  /* Row 1: four main objects */
  .phone{
    left:2%;
    bottom:13px;
    width:48px;
    height:80px;
    border-width:3px;
    transform:none;
    box-shadow:3px 3px 0 #111;
  }

  .phone:hover,
  .phone:active{
    transform:translateY(-3px);
  }

  .phone-notch{
    width:18px;
    height:4px;
    top:4px;
  }

  .phone-screen{
    font-size:23px;
  }

  .folder{
    left:19%;
    bottom:13px;
    width:78px;
    height:57px;
    border-width:3px;
    font-size:9px;
    transform:none;
    box-shadow:3px 3px 0 rgba(0,0,0,.18);
  }

  .folder:hover,
  .folder:active{
    transform:translateY(-3px);
  }

  .folder-tab{
    top:-12px;
    left:5px;
    width:42px;
    height:14px;
    border-width:3px;
  }

  .lily-pot{
    left:51%;
    bottom:11px;
    width:65px;
    height:88px;
    transform:translateX(-50%);
  }

  .lily-pot:hover,
  .lily-pot:active{
    transform:translateX(-50%) translateY(-3px);
  }

  .pot{
    left:16px;
    width:38px;
    height:30px;
    border-width:3px;
  }

  .flower-stem{
    width:4px;
    bottom:28px;
  }

  .fs1{left:29px;height:45px}
  .fs2{left:41px;height:39px}

  .flower-head{
    font-size:25px;
  }

  .fh1{left:13px;top:8px}
  .fh2{left:34px;top:20px}

  .console{
    right:3%;
    bottom:13px;
    width:76px;
    height:57px;
    border-width:3px;
    transform:none;
    box-shadow:3px 3px 0 #111;
  }

  .console:hover,
  .console:active{
    transform:translateY(-3px);
  }

  .console-screen{
    left:7px;
    top:7px;
    width:45px;
    height:38px;
    font-size:7px;
  }

  .console-dot{
    right:6px;
    width:8px;
    height:8px;
    border-width:1px;
  }

  .d1{top:14px}
  .d2{top:31px}

  /* Row 2: the letter sits above the console, so all 5 objects fit cleanly. */
  .envelope{
    right:5%;
    bottom:82px;
    width:54px;
    height:37px;
    border-width:3px;
    transform:none;
    box-shadow:3px 3px 0 rgba(0,0,0,.2);
  }

  .envelope:hover,
  .envelope:active{
    transform:translateY(-3px);
  }

  .envelope-mark{
    font-size:17px;
  }

  .lock-mark{
    right:-8px;
    top:-14px;
    font-size:13px;
  }

  .floor-actions{
    left:8px;
    bottom:7px;
    gap:5px;
  }

  .tiny-object{
    min-width:34px;
    min-height:32px;
    padding:4px 5px;
    font-size:14px;
    box-shadow:2px 2px 0 rgba(0,0,0,.28);
  }

  .room-help{
    right:8px;
    bottom:9px;
    max-width:112px;
    gap:5px;
    font-size:9px;
    line-height:1.15;
  }

  .blink-dot{
    flex:0 0 auto;
    width:5px;
    height:5px;
  }

  .garden{
    height:68px;
  }

  .roxy-runner{
    width:58px;
    height:74px;
  }

  /* Phone modals use nearly the whole screen and never exceed it. */
  .panel-screen,
  .roxy-popup{
    padding:8px;
  }

  .panel-card{
    width:100%;
    max-height:calc(100vh - 16px);
    padding:20px 14px 16px;
    box-shadow:4px 4px 0 #050407;
  }

  @supports (height:100svh){
    .panel-card{
      max-height:calc(100svh - 16px);
    }
  }

  .close-btn{
    right:5px;
    top:3px;
    width:38px;
    height:38px;
  }

  .panel-card h2{
    margin-right:40px;
    font-size:18px;
  }

  .bigline{
    font-size:22px;
  }

  .snap-card{
    padding:11px;
    border-width:3px;
  }

  .snap-row{
    padding:9px 2px;
    font-size:12px;
  }

  .archive-grid{
    grid-template-columns:1fr 1fr;
    gap:7px;
  }

  .archive-item{
    min-height:83px;
    padding:10px;
    font-size:11px;
  }

  .game-box{
    padding:10px;
  }

  .game-stage{
    height:170px;
    margin:9px 0;
  }

  .letter{
    padding:17px 14px;
    font-size:13px;
  }

  .roxy-popup-card{
    width:min(330px,94vw);
    padding:22px;
  }

  .roxy-popup-card p{
    font-size:38px;
  }
}

/* Very narrow phones: preserve spacing rather than letting controls collide. */
@media (max-width:370px){
  .folder{
    left:18%;
    width:70px;
  }

  .lily-pot{
    left:50%;
    transform:translateX(-50%) scale(.9);
    transform-origin:bottom;
  }

  .console{
    right:2%;
    width:69px;
  }

  .envelope{
    right:4%;
  }

  .room-help{
    display:none;
  }

  .sc4{
    font-size:12px;
  }

  .sc8{
    font-size:11px;
  }
}


/* =========================================================
   NON-OVERLAPPING GRAFFITI WALL
   Invisible grid = chaotic look without text collisions.
   ========================================================= */

.scribble-wall,
.scribble,
.scribble-mark{
  display:none !important;
}

.graffiti-wall{
  position:absolute;
  z-index:0;
  inset:0 0 34% 0;
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  grid-template-rows:repeat(11,minmax(0,1fr));
  grid-auto-flow:dense;
  gap:clamp(2px,.35vw,7px) clamp(5px,.7vw,14px);
  padding:clamp(9px,1.4vw,21px);
  overflow:hidden;
  pointer-events:none;
  background:#050505;
}

/* Very faint wall grain */
.graffiti-wall::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.11;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.025) 0 1px,
      transparent 1px 5px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.014) 0 1px,
      transparent 1px 9px
    );
}

.graffiti-item{
  position:relative;
  z-index:1;
  grid-column:span var(--span,2);
  min-width:0;
  min-height:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  padding:2px 4px;
}

/* Inner span rotates, outer grid cell prevents it hitting neighbours. */
.graffiti-item > span{
  display:block;
  max-width:100%;
  color:#f4f4f4;
  font-family:
    "Segoe Print",
    "Bradley Hand",
    "Comic Sans MS",
    "Marker Felt",
    cursive;
  font-weight:700;
  line-height:.88;
  text-align:center;
  overflow-wrap:anywhere;
  word-break:normal;
  text-shadow:
    .7px 0 0 rgba(255,255,255,.2),
    -.7px 0 0 rgba(255,255,255,.16);
  opacity:.95;
  transform-origin:center;
}

.g-big > span{
  font-size:clamp(22px,3.6vw,58px);
}

.g-med > span{
  font-size:clamp(16px,2.55vw,40px);
}

.g-small > span{
  font-size:clamp(12px,1.72vw,27px);
}

.g-long > span{
  font-size:clamp(14px,2.15vw,34px);
}

.g-ultra > span{
  width:100%;
  font-size:clamp(15px,2.65vw,42px);
  letter-spacing:-.04em;
}

/* Small rotations preserve the scribbled/reference feel,
   while the grid cell clips the footprint so phrases never overlap. */
.r1 > span{transform:rotate(-4deg) skewX(-2deg)}
.r2 > span{transform:rotate(3deg)}
.r3 > span{transform:rotate(-2deg) skewX(2deg)}
.r4 > span{transform:rotate(4deg) skewX(-1deg)}
.r5 > span{transform:rotate(-3deg)}
.r6 > span{transform:rotate(2deg) skewX(2deg)}

.room-title,
.window,
.desk-area,
.floor-actions,
.room-help,
.garden{
  position:relative;
  z-index:3;
}

.window,
.desk-area,
.floor-actions,
.room-help{
  position:absolute;
}

/* Short screens get a slightly denser but still collision-free wall. */
@media (min-width:761px) and (max-height:720px){
  .graffiti-wall{
    inset:0 0 31% 0;
    padding:7px 12px;
    gap:2px 7px;
  }

  .g-big > span{font-size:clamp(18px,3vw,44px)}
  .g-med > span{font-size:clamp(14px,2.15vw,32px)}
  .g-small > span{font-size:clamp(10px,1.45vw,22px)}
  .g-long > span{font-size:clamp(12px,1.8vw,27px)}
  .g-ultra > span{font-size:clamp(13px,2.1vw,32px)}
}

/* PHONE: separate 4-column wall. Important phrases all remain.
   Desktop-only filler disappears so it stays readable and fits. */
@media (max-width:760px){
  .graffiti-wall{
    inset:0 0 39% 0;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-template-rows:repeat(10,minmax(0,1fr));
    gap:2px 4px;
    padding:6px 7px;
  }

  .graffiti-item{
    grid-column:span var(--mspan,1);
    padding:1px 2px;
  }

  .desktop-extra{
    display:none;
  }

  .g-big > span{
    font-size:clamp(17px,6vw,28px);
  }

  .g-med > span{
    font-size:clamp(12px,4.15vw,20px);
  }

  .g-small > span{
    font-size:clamp(9px,3.05vw,14px);
  }

  .g-long > span{
    font-size:clamp(10px,3.4vw,16px);
  }

  .g-ultra > span{
    font-size:clamp(10px,3.25vw,15px);
    line-height:.9;
  }

  /* Keep rotations even tighter on narrow screens. */
  .r1 > span{transform:rotate(-2deg)}
  .r2 > span{transform:rotate(2deg)}
  .r3 > span{transform:rotate(-1.5deg)}
  .r4 > span{transform:rotate(2deg)}
  .r5 > span{transform:rotate(-2deg)}
  .r6 > span{transform:rotate(1.5deg)}
}

@media (max-width:370px){
  .graffiti-wall{
    padding:5px;
    gap:1px 3px;
  }

  .g-big > span{font-size:clamp(15px,5.3vw,22px)}
  .g-med > span{font-size:clamp(10px,3.7vw,16px)}
  .g-small > span{font-size:clamp(8px,2.7vw,12px)}
  .g-long > span{font-size:clamp(9px,3vw,13px)}
  .g-ultra > span{font-size:clamp(9px,2.8vw,12px)}
}


/* LILIE PHOTO PAGE */
.lilie-page{
  display:grid;
  grid-template-columns:minmax(230px,.9fr) minmax(260px,1.1fr);
  gap:24px;
  align-items:center;
}

.lilie-photo-wrap{
  position:relative;
  overflow:hidden;
  border:3px solid #4a3b45;
  background:#0b090d;
  box-shadow:6px 6px 0 rgba(0,0,0,.25);
}

.lilie-photo{
  display:block;
  width:100%;
  max-height:58vh;
  object-fit:cover;
  object-position:center;
}

.lilie-copy{
  min-width:0;
}

.lilie-copy .bigline{
  margin-top:0;
}

.lilie-joke{
  margin-top:22px;
  padding:10px 12px;
  border:1px dashed #5a4a56;
  background:#201921;
  color:#efe6eb;
  font-size:12px;
  font-weight:700;
  line-height:1.45;
}

@media(max-width:760px){
  .lilie-page{
    grid-template-columns:1fr;
    gap:14px;
  }

  .lilie-photo{
    max-height:40svh;
    object-position:center 38%;
  }

  .lilie-copy .bigline{
    margin:4px 0 12px;
  }

  .lilie-copy p{
    font-size:13px;
    line-height:1.5;
  }

  .lilie-joke{
    margin-top:14px !important;
    font-size:10px !important;
  }
}


/* ROXY QUEST REVAMP */
.rq-wrap{
  background:#0b100d;
  border:3px solid #3d4b40;
  padding:14px;
}

.rq-topbar{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-bottom:8px;
}

.rq-topbar span{
  padding:8px 10px;
  background:#161c18;
  border:1px solid #334138;
  text-align:center;
  font-size:13px;
}

.rq-help{
  color:#aab7ad;
  font-size:12px;
  margin-bottom:10px;
  text-align:center;
}

.rq-stage{
  position:relative;
  height:320px;
  overflow:hidden;
  border:3px solid #2c392f;
  background:
    linear-gradient(rgba(255,255,255,.02),rgba(255,255,255,.02)),
    repeating-linear-gradient(
      0deg,
      #121814 0 31px,
      #151c17 32px
    );
  outline:none;
}

.rq-stage:focus-visible{
  outline:2px solid #d8c9b6;
  outline-offset:3px;
}

.rq-player,
.rq-enemy,
.rq-item{
  position:absolute;
  user-select:none;
}

.rq-player{
  z-index:5;
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  transition:left .08s linear,top .08s linear,transform .15s ease;
}

.rq-player::after{
  content:"roxy";
  position:absolute;
  top:35px;
  left:50%;
  transform:translateX(-50%);
  color:#d9cbd3;
  font-size:7px;
  opacity:.7;
}

.rq-enemy{
  z-index:4;
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:31px;
  filter:drop-shadow(0 2px 0 rgba(0,0,0,.4));
}

.rq-item{
  z-index:3;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:25px;
  animation:rqFloat 1.3s ease-in-out infinite alternate;
}

.rq-lily{
  filter:drop-shadow(0 0 5px rgba(255,255,255,.08));
}

.rq-tiktok{animation-delay:.1s}
.rq-skates{animation-delay:.25s}
.rq-ps5{animation-delay:.45s}

@keyframes rqFloat{
  from{transform:translateY(-2px)}
  to{transform:translateY(3px)}
}

.rq-hit{
  animation:rqHit .18s linear 4 !important;
}

@keyframes rqHit{
  0%,100%{opacity:1;transform:translateX(0)}
  50%{opacity:.35;transform:translateX(5px)}
}

.rq-legend{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 14px;
  padding:9px 0 4px;
  color:#9fa9a1;
  font-size:10px;
}

.rq-controls{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px;
  margin-top:8px;
}

.rq-controls button{
  min-height:44px;
  border:1px solid #526057;
  background:#202822;
  color:#fff;
  cursor:pointer;
  font-size:19px;
}

.rq-controls button:hover{
  background:#2a342c;
}

.rq-status{
  min-height:42px;
  margin-top:10px;
  padding:10px;
  border:1px dashed #3b473e;
  color:#d3d9d4;
  text-align:center;
  font-size:12px;
}

.rq-pop{
  animation:rqPop .22s ease;
}

@keyframes rqPop{
  from{transform:scale(.97);opacity:.45}
  to{transform:scale(1);opacity:1}
}

.rq-finished::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:8;
  background:rgba(7,10,8,.48);
  pointer-events:none;
}

.rq-result{
  padding:5px 0;
}

.rq-result-title{
  font-size:18px;
  font-weight:bold;
  margin-bottom:6px;
}

.rq-reward{
  margin-top:8px;
  font-size:18px;
}

.rq-retry{
  padding:8px 13px;
  border:1px solid #59665c;
  background:#242d26;
  color:#fff;
  cursor:pointer;
}

@media(max-width:760px){
  .rq-wrap{
    padding:9px;
  }

  .rq-topbar{
    gap:4px;
  }

  .rq-topbar span{
    padding:6px 4px;
    font-size:10px;
  }

  .rq-help{
    font-size:10px;
  }

  .rq-stage{
    height:220px;
  }

  .rq-player,
  .rq-enemy{
    width:34px;
    height:34px;
    font-size:27px;
  }

  .rq-item{
    width:30px;
    height:30px;
    font-size:22px;
  }

  .rq-controls{
    gap:5px;
  }

  .rq-controls button{
    min-height:40px;
  }
}


/* PERSISTENT MUSIC WIDGET */
.music-widget{
  display:none;
  position:fixed;
  z-index:32;
  right:16px;
  top:15px;
  width:min(315px,calc(100vw - 32px));
  min-height:58px;
  align-items:center;
  gap:10px;
  padding:7px 10px 7px 7px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(7,7,8,.84);
  color:#f4f0ea;
  box-shadow:4px 4px 0 rgba(0,0,0,.28);
  cursor:pointer;
  text-align:left;
  backdrop-filter:blur(5px);
}

.music-widget.visible{
  display:flex;
}

.vinyl{
  position:relative;
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:50%;
  background:
    radial-gradient(circle at center,
      #111 0 4px,
      #c9b8a4 5px 9px,
      #111 10px 15px,
      #222 16px 17px,
      #080808 18px 22px);
  border:1px solid #333;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.035);
}

.vinyl::before,
.vinyl::after{
  content:"";
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.11);
}

.vinyl::before{
  inset:5px;
}

.vinyl::after{
  inset:12px;
}

.vinyl-label{
  position:absolute;
  left:50%;
  top:50%;
  width:5px;
  height:5px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:#090909;
}

.music-widget.playing .vinyl{
  animation:vinylSpin 2.4s linear infinite;
}

.music-widget.paused .vinyl{
  animation-play-state:paused;
}

@keyframes vinylSpin{
  to{transform:rotate(360deg)}
}

.music-copy{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.music-kicker{
  color:#8f888d;
  font-size:8px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.music-title{
  overflow:hidden;
  color:#eee7e2;
  font-size:10px;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.music-state{
  flex:0 0 auto;
  width:22px;
  color:#aaa1a7;
  font-size:12px;
  text-align:center;
}

.music-widget:hover{
  border-color:rgba(255,255,255,.28);
  background:rgba(13,12,14,.92);
}

/* Avoid colliding with the window/other room UI on narrow screens. */
@media(max-width:760px){
  .music-widget{
    top:auto;
    right:7px;
    bottom:52px;
    width:min(250px,calc(100vw - 14px));
    min-height:48px;
    gap:7px;
    padding:5px 7px 5px 5px;
  }

  .vinyl{
    flex-basis:34px;
    width:34px;
    height:34px;
  }

  .music-title{
    font-size:8px;
  }

  .music-kicker{
    font-size:7px;
  }

  .music-state{
    width:18px;
    font-size:10px;
  }
}

@media(prefers-reduced-motion:reduce){
  .music-widget.playing .vinyl{
    animation:none;
  }
}


/* MOBILE COMFORT PASS */
@media (max-width:760px){

  /* Give the room clearer vertical zones instead of squeezing everything together. */
  .room{
    padding:12px;
    background:
      linear-gradient(
        180deg,
        #050505 0,
        #050505 57%,
        var(--floor) 57%,
        var(--floor) 100%
      );
  }

  .room::after{
    top:57%;
  }

  .room-title{
    max-width:138px;
    padding:5px 7px;
  }

  .room-title strong{
    font-size:15px;
  }

  .room-title span{
    font-size:7px;
  }

  .window{
    top:49px;
    right:10px;
    width:82px;
    height:55px;
  }

  /* Less graffiti on mobile, but all of the important lines remain.
     This makes it feel intentional rather than crushed together. */
  .graffiti-wall{
    inset:0 0 43% 0;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-template-rows:repeat(9,minmax(0,1fr));
    gap:3px 5px;
    padding:7px 8px;
  }

  .graffiti-item{
    padding:1px 2px;
  }

  .g-big > span{
    font-size:clamp(17px,5.4vw,25px);
  }

  .g-med > span{
    font-size:clamp(11px,3.75vw,18px);
  }

  .g-small > span{
    font-size:clamp(8px,2.65vw,12px);
  }

  .g-long > span{
    font-size:clamp(9px,3vw,14px);
  }

  .g-ultra > span{
    font-size:clamp(9px,2.85vw,13px);
    line-height:.96;
  }

  /* Keep only a few extra jokes on phone; the wall still looks full,
     but the meaningful text isn't fighting for space. */
  .mobile-extra,
  .desktop-extra{
    display:none !important;
  }

  /* Desk gets a true two-row phone layout. */
  .desk-area{
    bottom:2%;
    width:94vw;
    height:40vh;
    min-height:250px;
    max-height:330px;
  }

  .desk{
    bottom:48px;
    height:172px;
  }

  .desk-legs{
    height:56px;
  }

  /* Top row: phone, folder, lily */
  .phone{
    left:8%;
    bottom:74px;
    width:52px;
    height:86px;
  }

  .folder{
    left:50%;
    bottom:82px;
    width:92px;
    height:62px;
    transform:translateX(-50%);
    font-size:10px;
  }

  .folder:hover,
  .folder:active{
    transform:translateX(-50%) translateY(-3px);
  }

  .lily-pot{
    left:auto;
    right:6%;
    bottom:68px;
    width:72px;
    height:95px;
    transform:none;
  }

  .lily-pot:hover,
  .lily-pot:active{
    transform:translateY(-3px);
  }

  /* Bottom row: game + letter, centred with breathing room. */
  .console{
    left:18%;
    right:auto;
    bottom:10px;
    width:92px;
    height:61px;
  }

  .console-screen{
    left:8px;
    top:8px;
    width:55px;
    height:42px;
    font-size:8px;
  }

  .envelope{
    right:18%;
    bottom:16px;
    width:61px;
    height:42px;
  }

  /* Hidden joke buttons sit under the desk instead of competing with objects. */
  .floor-actions{
    left:12px;
    bottom:6px;
    gap:7px;
  }

  .tiny-object{
    min-width:38px;
    min-height:36px;
    font-size:15px;
  }

  .room-help{
    display:none;
  }

  .garden{
    height:54px;
  }

  .roxy-runner{
    width:52px;
    height:66px;
  }

  /* Music bar is smaller and raised enough not to cover the desk controls. */
  .music-widget{
    right:8px;
    bottom:48px;
    width:min(220px,calc(100vw - 16px));
    min-height:43px;
    padding:4px 6px 4px 4px;
    gap:6px;
  }

  .vinyl{
    flex-basis:30px;
    width:30px;
    height:30px;
  }

  .music-title{
    font-size:7px;
  }

  .music-kicker{
    font-size:6px;
  }

  /* Modal pages get more comfortable reading space. */
  .panel-screen{
    padding:10px;
  }

  .panel-card{
    width:100%;
    max-height:calc(100vh - 20px);
    padding:24px 18px 20px;
    border-width:1px;
    box-shadow:3px 3px 0 #050407;
  }

  @supports (height:100svh){
    .panel-card{
      max-height:calc(100svh - 20px);
    }
  }

  .panel-card h2{
    margin:0 42px 18px 0;
    font-size:19px;
  }

  .panel-card p{
    line-height:1.6;
  }

  .bigline{
    font-size:22px;
    line-height:1.25;
  }

  /* Snapchat list is easier to scan on phone. */
  .snap-card{
    padding:14px;
  }

  .snap-row{
    padding:12px 2px;
    gap:10px;
    font-size:13px;
  }

  .snap-row span:first-child{
    min-width:0;
    overflow-wrap:anywhere;
  }

  /* Archive cards were too cramped as 2 columns. */
  .archive-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .archive-item{
    min-height:auto;
    padding:14px;
    font-size:12px;
    line-height:1.5;
  }

  .archive-item b{
    margin-bottom:7px;
  }

  /* Lilie page gets more room between the photo and text. */
  .lilie-page{
    gap:18px;
  }

  .lilie-photo{
    max-height:34svh;
  }

  .lilie-copy p{
    font-size:13px;
    line-height:1.65;
  }

  .lilie-joke{
    padding:11px !important;
    font-size:10px !important;
    line-height:1.55 !important;
  }

  /* Letter becomes more like a readable note instead of a wall of lines. */
  .letter{
    padding:20px 16px;
    font-size:13px;
    line-height:1.72;
  }

  .letter p{
    margin:8px 0;
  }

  /* ROXY QUEST: larger stage, cleaner HUD and a real phone-friendly D-pad. */
  .rq-wrap{
    padding:11px;
  }

  .rq-topbar{
    gap:6px;
  }

  .rq-topbar span{
    padding:7px 4px;
    font-size:11px;
  }

  .rq-help{
    margin:8px 0 10px;
    font-size:10px;
    line-height:1.35;
  }

  .rq-stage{
    height:245px;
  }

  .rq-legend{
    gap:6px 12px;
    padding:8px 0 3px;
    font-size:9px;
  }

  .rq-controls{
    grid-template-columns:repeat(3,1fr);
    grid-template-areas:
      ". up ."
      "left down right";
    gap:6px;
    width:min(230px,100%);
    margin:10px auto 0;
  }

  .rq-controls button{
    min-height:44px;
    font-size:18px;
  }

  .rq-controls button[data-rq-move="up"]{grid-area:up}
  .rq-controls button[data-rq-move="left"]{grid-area:left}
  .rq-controls button[data-rq-move="down"]{grid-area:down}
  .rq-controls button[data-rq-move="right"]{grid-area:right}

  .rq-status{
    margin-top:10px;
    padding:9px;
    font-size:11px;
    line-height:1.45;
  }
}

/* Extra-small phones get one final spacing adjustment. */
@media (max-width:370px){
  .desk-area{
    width:96vw;
  }

  .phone{
    left:5%;
  }

  .folder{
    width:84px;
  }

  .lily-pot{
    right:3%;
  }

  .console{
    left:12%;
  }

  .envelope{
    right:14%;
  }

  .music-widget{
    width:min(200px,calc(100vw - 14px));
  }

  .snap-row{
    font-size:12px;
  }

  .panel-card{
    padding:20px 14px 16px;
  }
}


/* PROGRESS TUTORIAL */
.tutorial-popup{
  display:none;
  position:fixed;
  inset:0;
  z-index:95;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(3,3,4,.78);
  backdrop-filter:blur(5px);
}

.tutorial-popup.open{
  display:flex;
}

.tutorial-card{
  position:relative;
  width:min(560px,96vw);
  max-height:88vh;
  overflow:auto;
  padding:28px;
  border:2px solid #4b414a;
  background:#141116;
  color:#f4eee8;
  box-shadow:8px 8px 0 rgba(0,0,0,.5);
}

.tutorial-close{
  position:absolute;
  right:9px;
  top:7px;
  width:40px;
  height:40px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:28px;
  cursor:pointer;
}

.tutorial-lily{
  margin-bottom:7px;
  color:var(--cream);
  font-size:34px;
}

.tutorial-card h2{
  margin:0 42px 12px 0;
  font-size:20px;
}

.tutorial-card > p{
  line-height:1.5;
}

.tutorial-steps{
  display:grid;
  gap:9px;
  margin:18px 0;
}

.tutorial-step{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid #3a3139;
  background:#1d181e;
}

.tutorial-step > span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border:1px solid #5a4d57;
  background:#0f0d10;
  font-weight:700;
}

.tutorial-step p{
  margin:0;
  font-size:12px;
  line-height:1.45;
}

.tutorial-note{
  color:#aaa1a8;
  font-size:11px;
}

.tutorial-start{
  width:100%;
  min-height:46px;
  margin-top:4px;
  border:2px solid #191518;
  background:var(--cream);
  color:#181318;
  font-weight:700;
  cursor:pointer;
  box-shadow:4px 4px 0 #000;
}

.tutorial-start:hover{
  transform:translate(-1px,-1px);
  box-shadow:5px 5px 0 #000;
}

@media(max-width:760px){
  .tutorial-popup{
    padding:10px;
  }

  .tutorial-card{
    width:100%;
    max-height:calc(100vh - 20px);
    padding:22px 16px 18px;
    box-shadow:4px 4px 0 rgba(0,0,0,.5);
  }

  @supports (height:100svh){
    .tutorial-card{
      max-height:calc(100svh - 20px);
    }
  }

  .tutorial-card h2{
    font-size:18px;
  }

  .tutorial-step{
    grid-template-columns:30px minmax(0,1fr);
    gap:8px;
    padding:9px;
  }

  .tutorial-step > span{
    width:27px;
    height:27px;
    font-size:12px;
  }

  .tutorial-step p{
    font-size:11px;
  }

  .tutorial-note{
    font-size:10px;
  }
}


/* ROXY QUEST MOBILE JOYSTICK */
.rq-joystick-wrap{
  display:none;
}

@media(max-width:760px){
  /* Remove the old D-pad on touch-sized layouts. */
  .rq-desktop-controls{
    display:none !important;
  }

  .rq-joystick-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:7px;
    margin:12px auto 3px;
  }

  .rq-joystick-label{
    color:#879087;
    font-size:9px;
    line-height:1;
  }

  .rq-joystick{
    position:relative;
    width:118px;
    height:118px;
    flex:0 0 118px;
    border-radius:50%;
    border:2px solid #4b574d;
    background:
      radial-gradient(
        circle at center,
        #1c241e 0 30%,
        #151b17 31% 58%,
        #0c110e 59% 100%
      );
    box-shadow:
      inset 0 0 0 5px rgba(255,255,255,.018),
      inset 0 0 18px rgba(0,0,0,.45),
      0 5px 0 rgba(0,0,0,.25);
    touch-action:none;
    user-select:none;
    -webkit-user-select:none;
  }

  .rq-joystick::before,
  .rq-joystick::after{
    content:"";
    position:absolute;
    left:50%;
    top:50%;
    background:rgba(255,255,255,.055);
    pointer-events:none;
  }

  .rq-joystick::before{
    width:1px;
    height:78%;
    transform:translate(-50%,-50%);
  }

  .rq-joystick::after{
    width:78%;
    height:1px;
    transform:translate(-50%,-50%);
  }

  .rq-joystick-ring{
    position:absolute;
    inset:18px;
    border:1px dashed rgba(255,255,255,.10);
    border-radius:50%;
    pointer-events:none;
  }

  .rq-joystick-knob{
    position:absolute;
    z-index:2;
    left:50%;
    top:50%;
    width:50px;
    height:50px;
    border-radius:50%;
    border:2px solid #667369;
    background:
      radial-gradient(circle at 38% 32%,#4a584d,#283229 58%,#171e19 100%);
    box-shadow:
      inset 0 2px 3px rgba(255,255,255,.09),
      0 4px 8px rgba(0,0,0,.35);
    transform:translate(-50%,-50%);
    pointer-events:none;
    will-change:transform;
  }

  /* Slightly reclaim vertical space because the joystick itself is larger
     but much easier to use than four buttons. */
  .rq-stage{
    height:230px;
  }

  .rq-status{
    margin-top:7px;
  }
}

@media(max-width:370px){
  .rq-joystick{
    width:106px;
    height:106px;
    flex-basis:106px;
  }

  .rq-joystick-knob{
    width:46px;
    height:46px;
  }

  .rq-stage{
    height:215px;
  }
}


/* FINAL LETTER PHOTO */
.letter-final-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:8px;
}

.letter-final-line{
  flex:1 1 auto;
  margin:0;
}

.letter-photo-btn{
  flex:0 0 auto;
  width:92px;
  height:118px;
  padding:0;
  border:3px solid #6b5a4d;
  background:#d7c7b5;
  box-shadow:5px 5px 0 rgba(0,0,0,.18);
  cursor:pointer;
  transform:rotate(2deg);
  transition:transform .15s ease, box-shadow .15s ease;
}

.letter-photo-btn:hover{
  transform:rotate(0deg) scale(1.03);
  box-shadow:6px 6px 0 rgba(0,0,0,.22);
}

.letter-photo-btn img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.photo-lightbox{
  display:none;
  position:fixed;
  inset:0;
  z-index:120;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.88);
  backdrop-filter:blur(6px);
}

.photo-lightbox.open{
  display:flex;
}

.photo-lightbox img{
  display:block;
  max-width:min(92vw,820px);
  max-height:88vh;
  object-fit:contain;
  border:3px solid rgba(255,255,255,.18);
  box-shadow:0 12px 40px rgba(0,0,0,.45);
}

.photo-lightbox-close{
  position:absolute;
  right:14px;
  top:10px;
  width:44px;
  height:44px;
  border:0;
  background:rgba(0,0,0,.45);
  color:#fff;
  font-size:32px;
  cursor:pointer;
}

@media(max-width:760px){
  .letter-final-row{
    gap:12px;
    align-items:flex-end;
  }

  .letter-photo-btn{
    width:72px;
    height:94px;
    border-width:2px;
    box-shadow:3px 3px 0 rgba(0,0,0,.18);
  }

  .letter-final-line{
    font-size:15px;
    line-height:1.25;
  }

  .photo-lightbox{
    padding:10px;
  }

  .photo-lightbox img{
    max-width:95vw;
    max-height:86svh;
  }
}


/* EXACT WALL LIST OVERRIDE */
.graffiti-wall{
  inset:0 0 34% 0;
  grid-template-columns:repeat(12,minmax(0,1fr));
  grid-template-rows:repeat(12,minmax(0,1fr));
  gap:3px 10px;
  padding:10px 14px;
}

.graffiti-item > span{
  text-align:center;
  line-height:.9;
}

.g-big > span{
  font-size:clamp(18px,2.8vw,44px);
}

.g-med > span{
  font-size:clamp(14px,2vw,31px);
}

.g-small > span{
  font-size:clamp(11px,1.45vw,22px);
}

.g-long > span{
  font-size:clamp(12px,1.7vw,26px);
}

.g-ultra > span{
  font-size:clamp(12px,1.95vw,30px);
  letter-spacing:-.03em;
}

@media (min-width:761px) and (max-height:720px){
  .graffiti-wall{
    inset:0 0 31% 0;
    grid-template-rows:repeat(12,minmax(0,1fr));
    gap:2px 8px;
    padding:7px 11px;
  }

  .g-big > span{font-size:clamp(15px,2.3vw,34px)}
  .g-med > span{font-size:clamp(12px,1.65vw,24px)}
  .g-small > span{font-size:clamp(9px,1.18vw,17px)}
  .g-long > span{font-size:clamp(10px,1.42vw,20px)}
  .g-ultra > span{font-size:clamp(10px,1.55vw,22px)}
}

@media (max-width:760px){
  .graffiti-wall{
    inset:0 0 43% 0;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-template-rows:repeat(13,minmax(0,1fr));
    gap:2px 5px;
    padding:7px 8px;
  }

  .graffiti-item{
    grid-column:span var(--mspan,1);
    padding:1px 2px;
  }

  .g-big > span{
    font-size:clamp(12px,4.8vw,20px);
  }

  .g-med > span{
    font-size:clamp(10px,3.2vw,15px);
  }

  .g-small > span{
    font-size:clamp(8px,2.45vw,11px);
  }

  .g-long > span{
    font-size:clamp(8px,2.75vw,12px);
  }

  .g-ultra > span{
    font-size:clamp(8px,2.55vw,11px);
    line-height:.92;
  }

  .r1 > span{transform:rotate(-2deg)}
  .r2 > span{transform:rotate(2deg)}
  .r3 > span{transform:rotate(-1.5deg)}
  .r4 > span{transform:rotate(2deg)}
  .r5 > span{transform:rotate(-2deg)}
  .r6 > span{transform:rotate(1.5deg)}
}

@media (max-width:370px){
  .graffiti-wall{
    grid-template-rows:repeat(14,minmax(0,1fr));
    gap:1px 4px;
    padding:5px 6px;
  }

  .g-big > span{font-size:clamp(11px,4.3vw,17px)}
  .g-med > span{font-size:clamp(9px,2.95vw,13px)}
  .g-small > span{font-size:clamp(7px,2.1vw,10px)}
  .g-long > span{font-size:clamp(7px,2.35vw,10px)}
  .g-ultra > span{font-size:clamp(7px,2.2vw,9px)}
}


/* GRAFFITI WALL REBUILD */
.graffiti-wall{
  position:absolute;
  z-index:0;
  inset:0 0 38% 0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:6px;
  padding:14px 16px 18px;
  overflow:hidden;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 12%, rgba(255,255,255,.03), transparent 32%),
    radial-gradient(circle at 18% 36%, rgba(255,255,255,.02), transparent 28%),
    linear-gradient(180deg, #050505 0%, #070707 100%);
}

/* subtle chalk/grain */
.graffiti-wall::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.08;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.035) 0 1px,
      transparent 1px 6px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.02) 0 1px,
      transparent 1px 9px
    );
  pointer-events:none;
}

.graffiti-row{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px 12px;
  width:100%;
}

.row1{padding-right:5%; transform:translateX(-1.2%)}
.row2{padding-left:4%; padding-right:2%}
.row3{padding-right:1%; transform:translateX(1%)}
.row4{padding-left:1.5%; padding-right:4%}
.row5{padding-right:5%; transform:translateX(-.5%)}
.row6{padding-left:2.5%; padding-right:1%}
.row7{padding-right:3%; transform:translateX(.7%)}
.row8{padding-left:1%; padding-right:1%}
.row9{padding-left:3%; padding-right:5%}
.row10{padding-right:2%; transform:translateX(-1.3%)}
.row11{padding-left:1%; padding-right:4%}

.graffiti-item{
  color:#f5f4f0;
  font-family:"Segoe Print","Bradley Hand","Comic Sans MS","Marker Felt",cursive;
  font-weight:700;
  line-height:.88;
  letter-spacing:-.03em;
  text-shadow:
    0 0 .6px rgba(255,255,255,.75),
    0 0 10px rgba(255,255,255,.03);
  transform-origin:center;
  display:inline-block;
  white-space:nowrap;
  flex:0 1 auto;
}

.graffiti-item.small{font-size:clamp(12px,1.25vw,18px)}
.graffiti-item.med{font-size:clamp(15px,1.65vw,24px)}
.graffiti-item.big{font-size:clamp(20px,2.2vw,34px)}
.graffiti-item.giant{font-size:clamp(26px,3.1vw,46px)}

.graffiti-item.wide,
.graffiti-item.xwide{
  white-space:normal;
  text-align:center;
}

.graffiti-item.wide{max-width:30%}
.graffiti-item.xwide{max-width:37%}

.t1{transform:rotate(-4deg) skewX(-2deg)}
.t2{transform:rotate(3deg)}
.t3{transform:rotate(-2.5deg) skewX(1.5deg)}
.t4{transform:rotate(4deg) skewX(-1deg)}
.t5{transform:rotate(-3deg)}
.t6{transform:rotate(2.5deg) skewX(1deg)}

@media (min-width:761px) and (max-height:720px){
  .graffiti-wall{
    inset:0 0 35% 0;
    gap:4px;
    padding:10px 12px 12px;
  }

  .graffiti-item.small{font-size:clamp(10px,1.05vw,15px)}
  .graffiti-item.med{font-size:clamp(12px,1.35vw,20px)}
  .graffiti-item.big{font-size:clamp(16px,1.8vw,28px)}
  .graffiti-item.giant{font-size:clamp(20px,2.4vw,38px)}
}

@media (max-width:760px){
  .graffiti-wall{
    inset:0 0 45% 0;
    gap:5px;
    padding:10px 8px 12px;
  }

  .graffiti-row{
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:3px 9px;
    padding:0 !important;
    transform:none !important;
  }

  .graffiti-item{
    line-height:.93;
  }

  .graffiti-item.small{font-size:clamp(8px,2.1vw,11px)}
  .graffiti-item.med{font-size:clamp(10px,2.7vw,14px)}
  .graffiti-item.big{font-size:clamp(13px,3.4vw,18px)}
  .graffiti-item.giant{font-size:clamp(16px,4.4vw,22px)}

  .graffiti-item.wide{max-width:68%}
  .graffiti-item.xwide{max-width:88%}
}

@media (max-width:370px){
  .graffiti-wall{
    inset:0 0 47% 0;
    gap:4px;
    padding:8px 6px 9px;
  }

  .graffiti-item.small{font-size:clamp(7px,1.9vw,9px)}
  .graffiti-item.med{font-size:clamp(9px,2.4vw,12px)}
  .graffiti-item.big{font-size:clamp(11px,3vw,15px)}
  .graffiti-item.giant{font-size:clamp(14px,3.8vw,18px)}
}


/* GRAFFITI DOODLES LAYER */
.graffiti-wall{
  isolation:isolate;
}

.graffiti-doodles{
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
}

.graffiti-doodle{
  position:absolute;
  color:rgba(244,244,240,.42);
  font-family:"Segoe Print","Bradley Hand","Comic Sans MS","Marker Felt",cursive;
  font-weight:700;
  line-height:1;
  text-shadow:0 0 .6px rgba(255,255,255,.25);
  user-select:none;
  white-space:nowrap;
}

.graffiti-row{
  z-index:1;
}

/* Desktop placements: intentionally tucked into empty zones. */
.d1{left:18%; top:7%; font-size:18px; transform:rotate(-12deg)}
.d2{left:81%; top:10%; font-size:18px; transform:rotate(10deg)}
.d3{left:6%; top:18%; font-size:20px; transform:rotate(24deg)}
.d4{left:92%; top:20%; font-size:24px; transform:rotate(-8deg)}
.d5{left:31%; top:26%; font-size:18px; transform:rotate(-14deg)}
.d6{left:73%; top:31%; font-size:19px; transform:rotate(7deg)}
.d7{left:16%; top:39%; font-size:18px; transform:rotate(-10deg)}
.d8{left:53%; top:40%; font-size:18px; transform:rotate(15deg)}
.d9{left:86%; top:42%; font-size:17px; transform:rotate(-8deg)}
.d10{left:22%; top:49%; font-size:20px; transform:rotate(8deg)}
.d11{left:44%; top:52%; font-size:22px; transform:rotate(-6deg)}
.d12{left:69%; top:54%; font-size:20px; transform:rotate(11deg)}
.d13{left:9%; top:57%; font-size:19px; transform:rotate(-16deg)}
.d14{left:58%; top:61%; font-size:18px; transform:rotate(4deg)}
.d15{left:80%; top:65%; font-size:18px; transform:rotate(-12deg)}
.d16{left:4%; top:69%; font-size:17px; transform:rotate(7deg)}
.d17{left:35%; top:73%; font-size:19px; transform:rotate(15deg)}
.d18{left:68%; top:74%; font-size:18px; transform:rotate(-7deg)}
.d19{left:92%; top:75%; font-size:20px; transform:rotate(9deg)}
.d20{left:13%; top:81%; font-size:18px; transform:rotate(-10deg)}
.d21{left:48%; top:84%; font-size:20px; transform:rotate(5deg)}
.d22{left:73%; top:86%; font-size:18px; transform:rotate(-10deg)}
.d23{left:24%; top:90%; font-size:18px; transform:rotate(8deg)}
.d24{left:88%; top:89%; font-size:17px; transform:rotate(-6deg)}
.d25{left:60%; top:15%; font-size:17px; transform:rotate(16deg)}
.d26{left:39%; top:33%; font-size:18px; transform:rotate(-9deg)}
.d27{left:94%; top:58%; font-size:18px; transform:rotate(9deg)}
.d28{left:3%; top:30%; font-size:18px; transform:rotate(-8deg)}

@media (min-width:761px) and (max-height:720px){
  .graffiti-doodle{
    opacity:.9;
  }
  .d1,.d2,.d3,.d4,.d5,.d6,.d7,.d8,.d9,.d10,.d11,.d12,.d13,.d14,.d15,.d16,.d17,.d18,.d19,.d20,.d21,.d22,.d23,.d24,.d25,.d26,.d27,.d28{
    font-size:14px;
  }
}

/* Mobile placements: fewer/lighter doodles so it doesn't get messy. */
@media (max-width:760px){
  .graffiti-doodle{
    color:rgba(244,244,240,.28);
    font-size:12px !important;
  }

  .d1{left:8%; top:6%; transform:rotate(-10deg)}
  .d2{left:82%; top:8%; transform:rotate(8deg)}
  .d3{left:7%; top:17%; transform:rotate(18deg)}
  .d4{left:89%; top:20%; transform:rotate(-6deg)}
  .d5{left:71%; top:26%; transform:rotate(-12deg)}
  .d6{left:16%; top:34%; transform:rotate(6deg)}
  .d7{left:86%; top:39%; transform:rotate(-8deg)}
  .d8{left:8%; top:47%; transform:rotate(11deg)}
  .d9{left:77%; top:52%; transform:rotate(-6deg)}
  .d10{left:34%; top:57%; transform:rotate(6deg)}
  .d11{left:10%; top:64%; transform:rotate(-6deg)}
  .d12{left:85%; top:69%; transform:rotate(9deg)}
  .d13{left:18%; top:75%; transform:rotate(-12deg)}
  .d14{left:70%; top:79%; transform:rotate(5deg)}
  .d15{left:44%; top:86%; transform:rotate(-8deg)}

  /* Hide the rest on mobile so the phrases stay clean. */
  .d16,.d17,.d18,.d19,.d20,.d21,.d22,.d23,.d24,.d25,.d26,.d27,.d28{
    display:none;
  }
}

@media (max-width:370px){
  .graffiti-doodle{
    font-size:10px !important;
    color:rgba(244,244,240,.24);
  }
}


/* DOODLE VISIBILITY FIX */
.graffiti-wall{
  position:absolute;
  isolation:isolate;
}

.graffiti-wall::before{
  z-index:0;
}

.graffiti-doodles{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  overflow:hidden;
}

.graffiti-row{
  position:relative;
  z-index:2;
}

.graffiti-doodle{
  z-index:1;
  color:rgba(248,247,242,.72);
  font-size:22px;
  font-weight:700;
  text-shadow:
    0 0 1px rgba(255,255,255,.85),
    0 0 5px rgba(255,255,255,.06);
}

.d1{left:18%;top:8%;font-size:24px}
.d2{left:82%;top:10%;font-size:23px}
.d3{left:7%;top:19%;font-size:24px}
.d4{left:93%;top:21%;font-size:30px}
.d5{left:31%;top:27%;font-size:23px}
.d6{left:73%;top:31%;font-size:24px}
.d7{left:16%;top:39%;font-size:22px}
.d8{left:54%;top:41%;font-size:23px}
.d9{left:86%;top:43%;font-size:22px}
.d10{left:22%;top:50%;font-size:25px}
.d11{left:44%;top:52%;font-size:28px}
.d12{left:69%;top:55%;font-size:24px}
.d13{left:9%;top:58%;font-size:23px}
.d14{left:58%;top:62%;font-size:23px}
.d15{left:80%;top:65%;font-size:23px}
.d16{left:4%;top:70%;font-size:21px}
.d17{left:35%;top:74%;font-size:23px}
.d18{left:68%;top:75%;font-size:23px}
.d19{left:92%;top:75%;font-size:25px}
.d20{left:13%;top:82%;font-size:23px}
.d21{left:48%;top:84%;font-size:26px}
.d22{left:73%;top:86%;font-size:22px}
.d23{left:24%;top:90%;font-size:22px}
.d24{left:88%;top:89%;font-size:21px}
.d25{left:60%;top:15%;font-size:22px}
.d26{left:39%;top:33%;font-size:23px}
.d27{left:94%;top:58%;font-size:22px}
.d28{left:3%;top:30%;font-size:23px}

@media(max-width:760px){
  .graffiti-doodles{
    z-index:1;
  }

  .graffiti-row{
    z-index:2;
  }

  .graffiti-doodle{
    color:rgba(248,247,242,.48);
    font-size:14px !important;
  }

  .d1{left:8%;top:7%}
  .d2{left:82%;top:9%}
  .d3{left:6%;top:18%}
  .d4{left:90%;top:21%}
  .d5{left:70%;top:27%}
  .d6{left:15%;top:35%}
  .d7{left:85%;top:40%}
  .d8{left:8%;top:47%}
  .d9{left:78%;top:52%}
  .d10{left:34%;top:58%}
  .d11{left:10%;top:65%}
  .d12{left:85%;top:69%}
  .d13{left:18%;top:76%}
  .d14{left:69%;top:79%}
  .d15{left:44%;top:87%}

  .d16,.d17,.d18,.d19,.d20,.d21,.d22,.d23,.d24,.d25,.d26,.d27,.d28{
    display:none;
  }
}


/* PLAYLIST / VINYL PLAYER */
.vinyl-player{
  position:absolute;
  left:18%;
  right:auto;
  bottom:10px;
  width:108px;
  height:74px;
  border:3px solid #2a241d;
  background:linear-gradient(180deg,#3b3127,#231d17);
  box-shadow:5px 5px 0 rgba(0,0,0,.25);
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}

.vinyl-player:hover,
.vinyl-player:active{
  transform:translateY(-3px);
  box-shadow:7px 7px 0 rgba(0,0,0,.25);
}

.vinyl-lid{
  position:absolute;
  left:6px;
  top:6px;
  width:62px;
  height:42px;
  border:2px solid rgba(0,0,0,.35);
  background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.08));
}

.vinyl-record{
  position:absolute;
  right:11px;
  top:10px;
  width:40px;
  height:40px;
  border-radius:50%;
  background:
    radial-gradient(circle at center,#111 0 4px,#d6b282 5px 9px,#121212 10px 14px,#222 15px 16px,#0a0a0a 17px 100%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);
}

.vinyl-center{
  position:absolute;
  left:50%;
  top:50%;
  width:7px;
  height:7px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:#17110d;
}

.vinyl-arm{
  position:absolute;
  right:4px;
  top:8px;
  width:28px;
  height:3px;
  background:#bfb7ae;
  transform:rotate(35deg);
  transform-origin:right center;
  border-radius:99px;
}

.vinyl-arm::after{
  content:"";
  position:absolute;
  left:-2px;
  top:-2px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#d7ccc1;
}

.vinyl-base-label{
  position:absolute;
  left:8px;
  bottom:6px;
  font-size:9px;
  letter-spacing:.08em;
  color:#e9ddcf;
}

.playlist-panel{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:14px;
  min-height:min(72vh,660px);
}

.playlist-note{
  padding:14px;
  border:2px solid #473f45;
  background:#161216;
}

.playlist-note p{
  margin:0 0 10px;
}

.playlist-note p:last-child{
  margin-bottom:0;
}

.playlist-scroll{
  min-height:0;
  max-height:42vh;
  overflow:auto;
  border:2px solid #3b3338;
  background:#0e0c0f;
  padding:8px 10px;
}

.playlist-list{
  margin:0;
  padding:0;
  list-style:none;
}

.playlist-list li{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:9px 4px;
  border-bottom:1px solid rgba(255,255,255,.07);
}

.playlist-list li:last-child{
  border-bottom:0;
}

.pl-num{
  color:#8c8088;
  font-size:11px;
  font-weight:700;
}

.pl-song{
  font-size:13px;
  line-height:1.45;
  color:#f2ece7;
  overflow-wrap:anywhere;
}

.playlist-link-box{
  padding:12px 14px;
  border:2px dashed #544953;
  background:#171318;
}

.playlist-link-box p{
  margin:0 0 10px;
}

.playlist-link{
  display:inline-block;
  padding:10px 14px;
  border:2px solid #171216;
  background:var(--cream);
  color:#171216;
  text-decoration:none;
  font-weight:700;
  box-shadow:4px 4px 0 #000;
}

.playlist-link:hover{
  transform:translate(-1px,-1px);
  box-shadow:5px 5px 0 #000;
}

@media(max-width:760px){
  .vinyl-player{
    left:18%;
    bottom:10px;
    width:96px;
    height:64px;
  }

  .vinyl-lid{
    width:54px;
    height:36px;
  }

  .vinyl-record{
    right:9px;
    top:9px;
    width:34px;
    height:34px;
  }

  .vinyl-arm{
    width:24px;
  }

  .vinyl-base-label{
    left:6px;
    bottom:5px;
    font-size:8px;
  }

  .playlist-panel{
    min-height:auto;
    gap:10px;
  }

  .playlist-note{
    padding:12px;
  }

  .playlist-scroll{
    max-height:41svh;
    padding:7px 8px;
  }

  .playlist-list li{
    grid-template-columns:34px minmax(0,1fr);
    gap:8px;
    padding:8px 2px;
  }

  .pl-num{
    font-size:10px;
  }

  .pl-song{
    font-size:12px;
    line-height:1.4;
  }

  .playlist-link-box{
    padding:10px 11px;
  }

  .playlist-link{
    width:100%;
    text-align:center;
  }
}


/* PLAYLIST DESK FIX */
#playlistBtn.vinyl-player{
  position:absolute;
  right:22%;
  left:auto;
  bottom:18px;
  width:122px;
  height:84px;
  padding:0;
  border:4px solid #17120f;
  background:linear-gradient(180deg,#514034,#2a211b);
  color:#eee;
  box-shadow:5px 5px 0 #111;
  overflow:visible;
  z-index:7;
}

#playlistBtn.vinyl-player .vinyl-lid{
  position:absolute;
  left:7px;
  top:7px;
  width:70px;
  height:49px;
  border:2px solid #17120f;
  background:linear-gradient(180deg,#70665e,#413a35);
}

#playlistBtn.vinyl-player .vinyl-record{
  position:absolute;
  right:10px;
  top:11px;
  width:45px;
  height:45px;
  border-radius:50%;
  background:
    radial-gradient(circle at center,#111 0 4px,#c6a16d 5px 9px,#111 10px 15px,#232323 16px 17px,#080808 18px 100%);
  animation:deskRecordSpin 4s linear infinite;
}

@keyframes deskRecordSpin{
  to{transform:rotate(360deg)}
}

#playlistBtn.vinyl-player .vinyl-center{
  position:absolute;
  left:50%;
  top:50%;
  width:6px;
  height:6px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:#080808;
}

#playlistBtn.vinyl-player .vinyl-arm{
  position:absolute;
  right:1px;
  top:8px;
  width:32px;
  height:3px;
  background:#d0c6ba;
  transform:rotate(38deg);
  transform-origin:right center;
  border-radius:999px;
}

#playlistBtn.vinyl-player .vinyl-arm::after{
  content:"";
  position:absolute;
  left:-2px;
  top:-2px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#d8cec1;
}

#playlistBtn.vinyl-player .vinyl-base-label{
  position:absolute;
  left:8px;
  bottom:6px;
  color:#eadfce;
  font-size:9px;
  letter-spacing:.08em;
}

@media(max-width:760px){
  #playlistBtn.vinyl-player{
    right:auto;
    left:15%;
    bottom:10px;
    width:100px;
    height:66px;
    border-width:3px;
  }

  #playlistBtn.vinyl-player .vinyl-lid{
    width:56px;
    height:38px;
    left:6px;
    top:6px;
  }

  #playlistBtn.vinyl-player .vinyl-record{
    width:36px;
    height:36px;
    right:8px;
    top:8px;
  }

  #playlistBtn.vinyl-player .vinyl-arm{
    width:25px;
    right:1px;
    top:6px;
  }

  #playlistBtn.vinyl-player .vinyl-base-label{
    font-size:7px;
    left:6px;
    bottom:4px;
  }
}
