/* ==========================================================================
   THE GIFT ROOM — desk, objects, monitor, reveals, mobile adaptation
   ========================================================================== */
#room { overflow: hidden; background: #07090d; }
#room[data-mode="mobile"] { overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------ desktop */
.room-cam { position: absolute; inset: 0; transition: transform 1s var(--ease-cine), filter 1s var(--ease-cine), opacity 1s var(--ease-cine); }
.room-cam.is-zoom { transform: scale(1.9); filter: blur(6px); opacity: 0; }
#room.is-arriving .room-cam { animation: roomIn 3.6s var(--ease-cine) both; }
@keyframes roomIn { from { transform: scale(1.08); filter: blur(8px) brightness(0.3); } to { transform: none; filter: none; } }

.room-wall {
  position: absolute; left: 0; right: 0; top: 0; height: var(--desk-y, 66%);
  background: radial-gradient(40% 70% at 100% 30%, rgba(120, 80, 220, 0.25), transparent 70%), linear-gradient(180deg, #1c1729 0%, #251c33 70%, #2a1f35 100%);
}
.room-wall::before { content: ""; position: absolute; inset: 0; background: radial-gradient(34% 70% at 76% 88%, rgba(255, 150, 60, 0.42), transparent 70%); transition: opacity 0.8s var(--ease-out); }
.room-desk {
  position: absolute; left: 0; right: 0; top: var(--desk-y, 66%); bottom: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(6, 4, 10, 0.5) 100%),
    repeating-linear-gradient(178.8deg, rgba(255, 220, 180, 0.02) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, #3a2519 0%, #2a1a12 50%, #150c08 100%);
}
.room-desk::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 80% at 76% 0%, rgba(255, 150, 60, 0.4), transparent 70%); transition: opacity 0.8s var(--ease-out); }
.room-desk::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, rgba(255, 170, 110, 0.15), rgba(255, 180, 110, 0.5) 76%, rgba(200, 160, 255, 0.3)); }
#room.lamp-off .room-wall::before, #room.lamp-off .room-desk::before { opacity: 0.05; }

.room-scroll { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.room-scroll::-webkit-scrollbar { display: none; }
.room-track { position: relative; height: 100%; }
.room-stage { position: absolute; left: 50%; top: 50%; width: 1600px; height: 1000px; transform-origin: center; }
#room.is-pan .room-hint { bottom: calc(64px + env(safe-area-inset-bottom)); }
.rl { position: absolute; inset: 0; will-change: transform; pointer-events: none; }   /* layers are see-through for clicks… */
.rl .obj:not(.is-deco) { pointer-events: auto; }                                         /* …only the objects catch them */

/* the wall: window onto Atlanta, lamp glow */
.dk-wallpaint { position: absolute; left: -300px; top: -40px; width: 2200px; height: 704px; pointer-events: none; background: radial-gradient(20% 40% at 12% 30%, rgba(90, 160, 90, 0.08), transparent 70%); }
.dk-window { position: absolute; left: 1330px; top: -40px; width: 330px; height: 600px; overflow: hidden; background: linear-gradient(180deg, #2a1f48 0%, #4a2e62 34%, #9a4c70 60%, #e17c5c 80%, #f4a868 100%); box-shadow: inset 10px 0 0 #120f1c, 0 0 120px 30px rgba(140, 90, 230, 0.2); }
.dk-sky { position: absolute; left: -40px; right: -60px; bottom: 60px; height: 320px; }
.dk-sky .skyline { width: 100%; height: 100%; }
.dk-slats { position: absolute; left: 0; right: 0; top: 0; height: 230px; background: repeating-linear-gradient(180deg, rgba(190, 170, 255, 0.55) 0 12px, rgba(30, 20, 60, 0.75) 12px 16px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); }
.dk-slats::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 10px; background: #d9d2f0; opacity: 0.7; }
.dk-frame-v { position: absolute; left: 156px; top: 0; bottom: 0; width: 10px; background: #120f1c; }
.dk-sill { position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(180deg, #1a1426, #0f0c16); border-top: 4px solid #2a2238; }
.dk-blinds-cord { position: absolute; left: 22px; top: 0; height: 330px; width: 1px; background: rgba(230, 220, 255, 0.55); }
.dk-lampglow { position: absolute; left: 960px; top: 200px; width: 620px; height: 720px; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 150, 60, 0.4), rgba(255, 120, 40, 0.1) 60%, transparent); mix-blend-mode: screen; transition: opacity 0.8s var(--ease-out); }
#room.lamp-off .dk-lampglow { opacity: 0; }
.dk-deskedge { position: absolute; left: -300px; width: 2200px; top: 660px; height: 3px; pointer-events: none; background: linear-gradient(90deg, rgba(255, 170, 110, 0.12), rgba(255, 180, 110, 0.45) 76%, rgba(200, 160, 255, 0.25)); }
.dk-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
.bd-footer { position: absolute; left: 0; right: 0; top: 972px; text-align: center; color: rgba(236, 230, 218, 0.45); font-size: 11px; letter-spacing: 0.4em; }

/* objects */
.obj { position: absolute; display: block; padding: 0; transform: rotate(var(--rot, 0deg)); transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out); }
.obj > .art, .obj > div:first-child { width: 100%; height: 100%; }
.obj .art svg, .obj svg { display: block; overflow: visible; width: 100%; height: 100%; }
.rl-board .obj { filter: brightness(0.82) drop-shadow(0 10px 10px rgba(6, 4, 14, 0.6)); }
.rl-desk .obj, .rl-fore .obj { filter: brightness(0.92); }
.obj:not(.is-deco):hover { transform: rotate(calc(var(--rot, 0deg) * 0.4)) translateY(-5px) scale(1.02); z-index: 2; }
.rl-board .obj:not(.is-deco):hover { filter: brightness(1.02) drop-shadow(0 16px 14px rgba(10, 6, 30, 0.6)); }
.rl-desk .obj:not(.is-deco):hover, .rl-fore .obj:not(.is-deco):hover { filter: brightness(1.06); }
.obj--monitor:hover { transform: none !important; }
.obj.is-deco { pointer-events: none; }
.tape-top { position: absolute; left: 50%; top: -9px; width: 64px; height: 20px; margin-left: -32px; background: rgba(230, 220, 200, 0.55); transform: rotate(-4deg); z-index: 3; }
.hand { font-family: "Caveat", "Bradley Hand", cursive; color: #1f1d1a; line-height: 1.05; font-weight: 500; }
.logo-inv { filter: invert(1); mix-blend-mode: screen; }

/* gift tags */
.gtag { position: absolute; display: flex; align-items: center; white-space: nowrap; pointer-events: none; transform-origin: 0 50%; animation: tagSway 6s ease-in-out infinite; z-index: 4; }
.gtag i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid rgba(236, 230, 218, 0.7); margin-right: -1px; }
.gtag .mono { background: #ece6da; color: #121317; padding: 5px 9px 4px 12px; font-size: 9.5px; letter-spacing: 0.2em; font-weight: 500; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45); clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%); }
@keyframes tagSway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(-1deg); } }
#room:not(.is-settled) .gtag { opacity: 0; }
#room.is-settled .gtag { opacity: 1; transition: opacity 1.4s var(--ease-out); }

/* the poster — his brand */
.cp-poster { position: relative; background: #0b0a10; padding: 7px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05); }
.cp-inner { position: relative; width: 100%; height: 100%; overflow: hidden; }
.cp-city { position: absolute; left: -20px; right: -20px; bottom: 0; height: 64%; }
.cp-city .skyline { width: 100%; height: 100%; }
.cp-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 20, 0.2), transparent 30%, transparent 55%, rgba(10, 8, 20, 0.85) 100%); }
.cp-title { position: absolute; left: 22px; top: 44%; display: flex; flex-direction: column; font-weight: 800; font-size: 30px; line-height: 0.95; letter-spacing: -0.02em; color: #f4efe8; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }
.cp-title sup { position: absolute; right: -14px; bottom: 16px; font-size: 14px; font-weight: 400; }
.cp-sub { position: absolute; left: 24px; top: calc(44% + 70px); font-size: 7.5px; letter-spacing: 0.24em; color: rgba(244, 239, 232, 0.75); }
.cp-globe { position: absolute; left: 22px; bottom: 26px; width: 26px; height: 26px; color: rgba(244, 239, 232, 0.8); }
.cp-logo { position: absolute; right: -6px; bottom: -10px; width: 200px; opacity: 1; }
.cp-glare { position: absolute; inset: 7px; background: linear-gradient(125deg, rgba(255, 255, 255, 0.08), transparent 30%, transparent 70%, rgba(255, 180, 120, 0.08)); pointer-events: none; }

/* the ninja things */
.dk-scroll { position: relative; display: flex; flex-direction: column; align-items: center; }
.dk-scroll-cord { position: absolute; top: -18px; left: 50%; width: 46px; height: 22px; margin-left: -23px; border: 1.5px solid #c9a86a; border-bottom: 0; border-radius: 30px 30px 0 0; }
.dk-scroll-rod { width: 100%; height: 9px; background: linear-gradient(180deg, #4a3222, #1f140c); border-radius: 5px; position: relative; z-index: 1; }
.dk-scroll-rod--b { width: 108%; height: 11px; }
.dk-scroll-paper { position: relative; flex: 1; width: 86%; display: flex; flex-direction: column; align-items: center; padding-top: 22px; background: #d9cfbc; border-left: 7px solid #1c2438; border-right: 7px solid #1c2438; box-shadow: 0 16px 20px -12px rgba(0, 0, 0, 0.7); }
.dk-scroll-jp { writing-mode: vertical-rl; font-family: var(--jp); font-size: 36px; color: #141418; letter-spacing: 0.1em; }
.dk-scroll-seal { width: 18px; height: 18px; margin-top: 12px; display: grid; place-items: center; background: #a8322d; color: #e6dfd1; font-family: var(--serif); font-size: 12px; }
.dk-scroll-en { position: absolute; bottom: 10px; font-size: 7px; color: #6b655a; letter-spacing: 0.2em; }
.dk-kunai { position: relative; }
.dk-kunai-paper { position: absolute; inset: 22px 0 0 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px 16px; background: #e0d8c6; box-shadow: 0 14px 18px -10px rgba(0, 0, 0, 0.7); }
.dk-kunai-t { font-size: 33px; transform: rotate(-6deg); }
.dk-kunai-s { font-size: 19px; color: #8e2a26 !important; }
.dk-kunai-blade { position: absolute; left: 50%; top: -76px; width: 30px; height: 112px; margin-left: -15px; transform: rotate(18deg); z-index: 2; filter: drop-shadow(4px 8px 5px rgba(0, 0, 0, 0.55)); }
.dk-headband { filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.5)); }
.dk-japan { position: relative; }
.dk-cord { position: absolute; left: 23px; top: -150px; width: 1px; height: 172px; background: rgba(230, 230, 255, 0.55); }
.dk-japan .art { position: absolute; left: -6px; top: 18px; width: 60px; height: 78px; }
.dk-pol { background: #efeae2; padding: 8px 8px 26px; box-shadow: 0 12px 16px -10px rgba(10, 6, 30, 0.7); }
.dk-pol .ph.is-empty { background: linear-gradient(180deg, #2c2a3a 0%, #6a4452 50%, #c77d5c 85%, #e8a870 100%); }
.dk-pol .ph.is-empty::after, .dk-pol .ph-crop { display: none; }
.dk-pol-dusk { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.dk-pol-dusk .skyline { width: 100%; height: 55%; }
.dk-board { display: flex; flex-direction: column; justify-content: center; padding: 6px 10px; background: #7f2521; color: #ece6da; box-shadow: 0 8px 10px -6px rgba(0, 0, 0, 0.7); }
.dk-board .mono { font-size: 6.5px; color: rgba(236, 230, 218, 0.7); }
.dk-board strong { font-weight: 800; font-size: 13px; letter-spacing: 0.04em; }

/* the screen — always trading */
.im { position: relative; }
.im-screen { position: absolute; left: 0; top: 0; width: 748px; height: 336px; padding: 14px; background: #0b0c0f; border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 0 110px rgba(80, 200, 160, 0.12), 0 0 0 1px #24262c; }
.im-chart { position: relative; width: 100%; height: 100%; overflow: hidden; background: #06080c; }
.im-chart .tm { width: 600px; height: 258px; transform: scale(1.2); transform-origin: 0 0; }
.im-gloss { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 40%); pointer-events: none; }
.im-chin { position: absolute; left: 0; top: 336px; width: 748px; height: 70px; border-radius: 0 0 12px 12px; display: grid; place-items: center; background: linear-gradient(180deg, #d6d4d0, #b7b5b0 60%, #9f9d98); }
.im-logo { width: 24px; height: 24px; color: #6e6d6a; }
.im-logo svg { width: 100%; height: 100%; }
.im-neck { position: absolute; left: 324px; top: 406px; width: 100px; height: 52px; background: linear-gradient(90deg, #8f8e8a, #cfceca 50%, #8f8e8a); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.im-base { position: absolute; left: 274px; top: 452px; width: 200px; height: 18px; border-radius: 50%; background: linear-gradient(180deg, #cfceca, #8d8c88); box-shadow: 0 10px 18px rgba(0, 0, 0, 0.6); }

/* desk things */
.dk-books { display: flex; flex-direction: column-reverse; }
.dk-book { height: 30px; margin-top: 2px; display: flex; align-items: center; padding-left: 26px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06), 0 4px 6px rgba(0, 0, 0, 0.45); }
.dk-book .mono { font-size: 11px; letter-spacing: 0.24em; color: #d8cfc0; white-space: nowrap; }
.dk-book--0 { background: #1c1b20; width: 100%; }
.dk-book--1 { background: #232228; width: 96%; margin-left: 2%; }
.dk-book--2 { background: #1a191e; width: 98%; }
.dk-book--3 { background: #25242a; width: 94%; margin-left: 3%; }
.dk-books--r .dk-book { height: 32px; }
.dk-mat { width: 100%; height: 100%; background: #0f0f12; border-radius: 12px 0 0 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.dk-lamp { position: relative; }
.dk-lamp .lamp-shade { fill: #ff9a2e; transition: fill 0.6s var(--ease-out); }
.dk-lamp .lamp-stem { fill: #ffb24a; transition: fill 0.6s var(--ease-out); }
.dk-lamp-halo { position: absolute; left: -40px; right: -40px; top: -60px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 160, 60, 0.55), transparent); filter: blur(10px); pointer-events: none; transition: opacity 0.6s var(--ease-out); }
.dk-lamp .art { position: relative; filter: drop-shadow(0 0 24px rgba(255, 150, 50, 0.8)); transition: filter 0.6s var(--ease-out); }
#room.lamp-off .dk-lamp .lamp-shade { fill: #4a3222; }
#room.lamp-off .dk-lamp .lamp-stem { fill: #3a281c; }
#room.lamp-off .dk-lamp .lamp-shine { stroke-opacity: 0.1; }
#room.lamp-off .dk-lamp-halo { opacity: 0; }
#room.lamp-off .dk-lamp .art { filter: none; }
.obj--lamp:hover { transform: none !important; }
.dk-mug { position: relative; }
.dk-mug-seal { position: absolute; left: 50px; top: 36px; width: 68px; height: 68px; object-fit: contain; opacity: 0.85; }
.dk-mug-text { position: absolute; left: 20px; width: 128px; top: 106px; text-align: center; font-size: 17px; color: #d8d0c1 !important; }
.dk-sticky { display: grid; place-items: center; padding: 8px 12px; text-align: center; background: #d9b27a; box-shadow: 0 10px 12px -6px rgba(0, 0, 0, 0.7); }
.dk-sticky .hand { font-size: 21px; color: #2a2016; }
.dk-phone { width: 100%; height: 100%; border-radius: 12px; background: linear-gradient(135deg, #202127, #06070a); box-shadow: inset 0 0 0 2px #2c2e33, 0 8px 12px rgba(0, 0, 0, 0.55); }
.dk-tag { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 30px 12px 14px; background: #efece6; filter: drop-shadow(-8px 10px 6px rgba(0, 0, 0, 0.55)); text-align: center; }
.dk-tag-hole { position: absolute; top: 12px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #3a2f2a; }
.dk-tag p { font-family: "Special Elite", "Courier New", monospace; font-size: 11.5px; line-height: 1.45; color: #1a1a1f; }
.dk-notebook { position: relative; display: flex; background: #ddd5c7; box-shadow: 0 20px 26px -12px rgba(0, 0, 0, 0.8); }
.dk-rings { width: 24px; background: repeating-linear-gradient(180deg, transparent 0 6px, #2a2a30 6px 11px, transparent 11px 14px); border-right: 1px solid #b9af9c; }
.dk-page { flex: 1; padding: 12px 26px; }
.dk-plan-t { font-size: 24px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; display: block; margin-bottom: 4px; }
.dk-li { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.dk-li i { flex: 0 0 auto; width: 9px; height: 9px; border: 1.4px solid #3a352d; }
.dk-li .hand { font-size: 19px; color: #2a2620; white-space: nowrap; }
.dk-pen { position: absolute; right: 40px; top: 60px; width: 190px; height: 9px; border-radius: 4px; background: linear-gradient(180deg, #2c2d33, #0b0b0e); transform: rotate(-26deg); transform-origin: right; box-shadow: 4px 8px 6px rgba(0, 0, 0, 0.45); }
.dk-pen::after { content: ""; position: absolute; left: -10px; top: 1px; border: 3px solid transparent; border-right: 10px solid #9a978f; }
.dk-quote { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px 20px; background: #16151b; box-shadow: 0 14px 20px -10px rgba(0, 0, 0, 0.7); }
.dk-quote span { font-weight: 300; font-size: 15px; letter-spacing: 0.24em; color: #bdb6a9; }
.dk-quote-globe { width: 22px; height: 22px; margin: 16px auto 0; color: #8a8578; }
.dk-plant, .dk-pencup, .dk-vine { width: 100%; height: 100%; }
.dk-vine { filter: brightness(0.85); }
.dk-pol .ph { background-size: cover; }
.dk-pol-city { position: absolute; left: -10px; right: -10px; bottom: 0; height: 70%; }
.dk-pol-city .skyline { width: 100%; height: 100%; }
.obj--mug .steam path { stroke-dasharray: 10 14; animation: steam 5s linear infinite; }
@keyframes steam { to { stroke-dashoffset: -96; } }
.obj--camera .glare { transform: translate(var(--gx, 0px), var(--gy, 0px)); transition: transform 0.5s var(--ease-out); }
#room.is-settled .obj.is-gift { animation: giftHint 1.6s 0.6s var(--ease-out) 1; }
@keyframes giftHint { 40% { transform: rotate(calc(var(--rot, 0deg) * 0.2)) translateY(-8px); } }

/* tooltip */
.room-tip {
  position: fixed; left: 0; top: 0; z-index: 30; max-width: 290px; padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 5px;
  background: rgba(5, 6, 8, 0.88); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.room-tip.is-on { opacity: 1; }
.tip-name { color: var(--paper-dim); font-size: 9.5px; }
.tip-line { font-style: italic; font-size: 17px; line-height: 1.3; color: var(--paper); }
.tip-open { color: var(--red-soft); font-size: 9px; margin-top: 3px; }

/* entrance */
.room-intro { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; pointer-events: none; opacity: 0; background: radial-gradient(50% 40% at 50% 50%, rgba(3, 4, 6, 0.75), transparent); }
.room-intro .mono { color: var(--red-soft); letter-spacing: 0.5em; padding-left: 0.5em; }
.room-intro h2 { font-weight: 300; font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.02em; font-style: italic; }
#room.is-arriving .room-intro { animation: roomIntro 3.4s var(--ease-cine) forwards; }
@keyframes roomIntro { 0% { opacity: 0; } 25% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
.room-hint { position: absolute; left: 50%; bottom: calc(46px + env(safe-area-inset-bottom)); transform: translateX(-50%); color: var(--paper-dim); white-space: nowrap; opacity: 0; pointer-events: none; text-shadow: 0 1px 10px #000; }
#room.is-settled .room-hint { animation: hint 10s 0.6s ease forwards; }
@keyframes hint { 0% { opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }

/* ------------------------------------------------------ trading monitor */
.tm { width: 100%; height: 100%; display: flex; flex-direction: column; font-family: var(--mono); font-size: 8px; color: #7e879b; background: #06080c; letter-spacing: 0.04em; line-height: 1.4; }
.tm-top { display: flex; gap: 10px; align-items: center; padding: 6px 9px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); white-space: nowrap; }
.tm-brand { color: var(--paper); font-weight: 500; letter-spacing: 0.16em; }
.tm-brand b { color: var(--red-soft); font-weight: 500; }
.tm-pair { color: #aab2c4; }
.tm-price { color: #eef1f7; font-size: 10px; }
.tm-chg.up, .tm-wc.up { color: var(--up); }
.tm-chg.dn, .tm-wc.dn { color: var(--dn); }
.tm-sim { margin-left: auto; border: 1px solid rgba(255, 255, 255, 0.14); padding: 1px 5px; font-size: 6.5px; letter-spacing: 0.22em; color: #8a92a6; }
.tm-body { flex: 1; display: flex; min-height: 0; }
.tm-chartwrap { flex: 1; position: relative; min-width: 0; }
.tm-chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-side { width: 124px; border-left: 1px solid rgba(255, 255, 255, 0.06); padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; }
.tm-h { font-size: 6.5px; letter-spacing: 0.22em; color: #4d5568; margin: 3px 0 1px; }
.tm-row { display: grid; grid-template-columns: 26px 1fr 38px; gap: 4px; }
.tm-ws { color: #cfd5e3; }
.tm-wv { color: #aab2c4; text-align: right; }
.tm-wc { text-align: right; }
.tm-port { display: flex; justify-content: space-between; color: var(--paper); }
.tm-port b { color: var(--blue); font-weight: 400; }
.tm-bars { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-top: auto; }
.tm-bars i { flex: 1; background: linear-gradient(180deg, rgba(110, 168, 255, 0.6), rgba(110, 168, 255, 0.15)); }
.tm-foot { display: flex; gap: 12px; padding: 4px 9px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 6.5px; letter-spacing: 0.16em; color: #4d5568; white-space: nowrap; }
.tm-foot span:first-child { color: var(--up); }
.tm-clock { margin-left: auto; }

/* ------------------------------------------------ camera / travel reveal */
#reveal { position: fixed; inset: 0; z-index: 45; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(3, 4, 6, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-y: auto; }
#reveal.is-on { display: flex; animation: fadeIn 0.5s both; }
#reveal.is-black { background: #000; animation: none; }
#reveal.is-out { opacity: 0; transition: opacity 0.6s var(--ease-cine); }
.rv-flash { position: fixed; inset: 0; background: #fff; pointer-events: none; animation: flash 1.1s ease-out forwards; z-index: 2; }
.cam-rv { display: flex; flex-direction: column; align-items: center; gap: 28px; width: min(100%, 780px); }
.cam-rv-photo { width: 100%; background: #efe9dd; padding: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); animation: camPhoto 2.2s var(--ease-out) both; }
@keyframes camPhoto { from { filter: brightness(3) blur(8px); transform: scale(1.04); } to { filter: none; transform: none; } }
.cam-rv-line { font-weight: 300; font-style: italic; font-size: clamp(24px, 3vw, 38px); text-align: center; animation: fadeUp 1.4s 0.9s var(--ease-out) both; }
.rv-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: center; animation: fadeUp 1.2s 1.3s var(--ease-out) both; }
.rv-btn { display: inline-flex; gap: 10px; align-items: center; padding: 12px 18px; border: 1px solid var(--line-2); transition: background 0.4s, color 0.4s, border-color 0.4s; }
.rv-btn:hover { background: var(--paper); color: #0a0b0d; border-color: var(--paper); }
.rv-back { color: var(--mute); transition: color 0.3s; padding: 10px 0; }
.rv-back:hover { color: var(--paper); }

.tr-card { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 420px); gap: 48px; align-items: center; animation: fadeUp 1s var(--ease-out) both; }
.tr-photo { width: 100%; max-width: 280px; perspective: 1100px; }
.tr-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.tr-num { color: var(--mute); }
.tr-place { font-family: var(--sans); font-weight: 500; font-size: clamp(40px, 6vw, 84px); letter-spacing: 0.08em; line-height: 1; margin-top: 8px; }
.tr-date { color: var(--red-soft); letter-spacing: 0.3em; }
.tr-line { font-style: italic; font-weight: 300; font-size: clamp(19px, 1.8vw, 24px); color: var(--paper); margin-top: 18px; max-width: 26ch; }
.tr-souv { color: var(--paper-dim); font-size: 14px; max-width: 40ch; }
.tr-text .rv-back { margin-top: 20px; }

@media (max-width: 759px) {
  .tr-card { grid-template-columns: 1fr; gap: 28px; width: 100%; max-width: 380px; }
  .tr-photo { width: 70%; margin: 0 auto; }
  #reveal { align-items: flex-start; padding-top: 60px; }
}
@media (min-width: 760px) and (max-width: 1100px) {
  .tr-card { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ============================================================ GIFT LOCK */
#room.is-locked .room-cam { filter: blur(7px) brightness(0.45); pointer-events: none; transition: filter 1s var(--ease-out); }
#room.is-locked .room-hint, #room.is-locked .room-intro { display: none; }
.lk { position: fixed; inset: 0; z-index: 66; display: grid; place-items: center; padding: 20px; background: rgba(4, 4, 8, 0.55); animation: fadeIn 0.8s both; }
.lk.is-out { opacity: 0; transition: opacity 0.8s var(--ease-cine); }
.lk-box { display: flex; flex-direction: column; align-items: center; text-align: center; width: min(100%, 340px); }
.lk-seal { width: 46px; height: 46px; color: var(--red-soft); filter: drop-shadow(0 0 14px rgba(198, 90, 81, 0.6)); transition: color 0.6s, filter 0.6s; }
.lk-seal svg { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.lk.is-right .lk-seal { color: #9ec2ff; filter: drop-shadow(0 0 20px rgba(110, 168, 255, 0.9)); }
.lk.is-right .lk-seal svg { animation-duration: 1.2s; }
.lk-kicker { margin-top: 18px; color: var(--paper-dim); letter-spacing: 0.34em; padding-left: 0.34em; font-size: 10px; }
.lk-title { margin-top: 10px; font-weight: 300; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; }
.lk-line { margin-top: 8px; font-style: italic; color: var(--paper-dim); font-size: 17px; }
.lk-dots { display: flex; gap: 14px; margin: 26px 0 22px; }
.lk-dots i { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid rgba(236, 230, 218, 0.55); transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.lk-dots i.is-on { background: var(--paper); border-color: var(--paper); }
.lk.is-right .lk-dots i { background: #6ea8ff; border-color: #6ea8ff; box-shadow: 0 0 12px rgba(110, 168, 255, 0.8); }
.lk.is-wrong .lk-dots { animation: lkShake 0.45s; }
.lk.is-wrong .lk-dots i { border-color: var(--red-soft); }
@keyframes lkShake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.lk-pad { display: grid; grid-template-columns: repeat(3, 68px); gap: 12px; }
.lk-key { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-size: 24px; font-weight: 300; color: var(--paper);
  background: rgba(236, 230, 218, 0.06); border: 1px solid rgba(236, 230, 218, 0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.2s, transform 0.15s; }
.lk-key:hover { background: rgba(236, 230, 218, 0.14); }
.lk-key:active { transform: scale(0.94); background: rgba(236, 230, 218, 0.28); }
.lk-key--fn { font-size: 9px; background: transparent; border-color: transparent; color: var(--paper-dim); }
.lk-key--fn[aria-label="delete"] { font-size: 20px; font-family: var(--sans); }
.lk-msg { min-height: 16px; margin-top: 18px; font-size: 10px; color: var(--red-soft); letter-spacing: 0.2em; }
.lk.is-right .lk-msg { color: #9ec2ff; }
@media (max-width: 380px) { .lk-pad { grid-template-columns: repeat(3, 60px); } .lk-key { width: 60px; height: 60px; } }

/* ======================================================= KEEPSAKE CARDS */
.dk-photos { position: relative; }
.dk-photo { position: absolute; width: 100px; background: #efeae2; padding: 6px 6px 18px; box-shadow: 0 10px 14px -8px rgba(0, 0, 0, 0.7); }
.dk-photo--0 { left: 4px; top: 14px; transform: rotate(-10deg); }
.dk-photo--1 { left: 26px; top: 6px; transform: rotate(4deg); }
.dk-photo--2 { left: 44px; top: 18px; transform: rotate(-2deg); }
#reveal.rv-token { position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(4, 4, 8, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fadeIn 0.4s both; }
#reveal.is-out { opacity: 0; transition: opacity 0.5s var(--ease-cine); }
.tk-card { position: relative; display: flex; align-items: center; gap: 40px; width: min(100%, 720px); padding: 36px 40px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(40, 28, 44, 0.95), rgba(14, 12, 20, 0.97)); border: 1px solid rgba(236, 230, 218, 0.14);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(255, 150, 60, 0.25); animation: tkIn 0.6s var(--ease-out) both; }
@keyframes tkIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
.tk-x { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: var(--paper); border: 1px solid rgba(236, 230, 218, 0.25); transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out); }
.tk-x:hover { background: var(--paper); color: #0b0b10; transform: rotate(90deg); }
.tk-art { position: relative; flex: 0 0 auto; display: grid; place-items: center; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.6)); animation: tkFloat 4s ease-in-out infinite; }
.tk-art-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tk-art-in > * { width: 100%; height: 100%; }
@keyframes tkFloat { 50% { transform: translateY(-6px); } }
.tk-photos { flex: 0 0 auto; display: grid; grid-template-columns: repeat(2, 120px); gap: 10px; }
.tk-photos .ph { border: 5px solid #efeae2; border-bottom-width: 16px; box-shadow: 0 10px 16px -8px rgba(0, 0, 0, 0.7); }
.tk-photos .ph:nth-child(odd) { transform: rotate(-3deg); }
.tk-photos .ph:nth-child(even) { transform: rotate(3deg); }
.tk-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tk-kicker { color: var(--red-soft); font-size: 10px; }
.tk-name { font-weight: 300; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -0.01em; }
.tk-meaning { font-style: italic; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--paper-2); }
@media (max-width: 640px) {
  .tk-card { flex-direction: column; gap: 24px; padding: 34px 24px 28px; text-align: center; }
  .tk-text { align-items: center; }
  .tk-photos { grid-template-columns: repeat(2, 104px); }
}

/* ==========================================================================
   GIFT 02 · THE BOOK — on the desk, and the preview you can flip through
   ========================================================================== */
/* the real cover: dark, with red light leaks, white type */
.bk-cover-art { position: relative; overflow: hidden; background:
    radial-gradient(70% 9% at 50% 22%, rgba(255, 70, 40, 0.95), rgba(220, 40, 20, 0.5) 45%, transparent 75%),
    radial-gradient(55% 5% at 40% 52%, rgba(200, 40, 25, 0.5), transparent 80%),
    radial-gradient(60% 9% at 55% 82%, rgba(255, 80, 40, 0.8), rgba(180, 30, 15, 0.35) 50%, transparent 78%),
    linear-gradient(180deg, #121010, #1a1412 50%, #120f0e); color: #fff; font-family: "Helvetica Neue", Arial, sans-serif; }
.bk-cover-art::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px); mix-blend-mode: screen; pointer-events: none; }
.bk-brand { position: absolute; right: 8%; top: 44%; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; text-transform: none; }
.bk-by { position: absolute; right: 8%; bottom: 8%; font-weight: 600; opacity: 0.92; white-space: nowrap; text-transform: none; letter-spacing: 0; }

/* on the desk: a closed hardcover lying flat */
.dk-pbook { position: absolute; inset: 0; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.55)); }
.dk-pbook-pages { position: absolute; left: 6px; right: -4px; top: 6px; bottom: -7px; border-radius: 2px 6px 6px 2px;
  background: repeating-linear-gradient(180deg, #f1ece2 0 1.4px, #d9d2c4 1.4px 2.4px); }
.dk-pbook-cover { position: absolute; inset: 0; border-radius: 3px 7px 7px 3px; box-shadow: inset 7px 0 0 rgba(255, 255, 255, 0.05), inset 9px 0 0 rgba(0, 0, 0, 0.35); }
.dk-pbook .bk-brand { font-size: 15px; top: 45%; }
.dk-pbook .bk-by { font-size: 7px; }
/* the photo book's spine, hiding in the right stack */
.dk-books--r .dk-book { height: 26px; }
.dk-book--photo { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 97%; margin-left: 1%; padding: 0 12px; cursor: pointer;
  border-radius: 2px; background-size: 100% 600%; background-position: 50% 22%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s; }
.dk-pb-brand { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 10px; letter-spacing: 0.02em; color: #fff; white-space: nowrap; }
.dk-pb-title { font-family: var(--serif); font-style: italic; font-size: 9px; color: rgba(255, 255, 255, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-book--photo:hover, .dk-book--photo:focus-visible { transform: translateX(-10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 18px rgba(255, 80, 40, 0.55); outline: none; }

/* the preview */
.bk { position: fixed; inset: 0; z-index: 72; display: grid; place-items: center; padding: calc(56px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(80% 70% at 40% 45%, #2a1210, #070506 75%); opacity: 0; transition: opacity 0.5s var(--ease-out); overflow-y: auto; }
.bk.is-on { opacity: 1; }
.bk-x { position: fixed; right: 16px; top: calc(16px + env(safe-area-inset-top)); z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); background: rgba(8, 9, 14, 0.8); border: 1px solid rgba(236, 230, 218, 0.3); font-size: 14px; }
.bk-wrap { --pw: min(300px, 30vw, calc((100vh - 140px) * 0.76)); display: flex; align-items: center; gap: clamp(28px, 5vw, 70px); }
.bk-stage { perspective: 2200px; flex: none; width: calc(var(--pw) * 2); display: grid; place-items: center; }
.bk-book { position: relative; width: calc(var(--pw) * 2); aspect-ratio: 2 / 1.32; display: flex; transform-style: preserve-3d; transition: transform 0.9s var(--ease-cine); animation: bkIn 0.9s 0.1s var(--ease-out) both; }
@keyframes bkIn { from { opacity: 0; transform: translateY(30px) rotateX(12deg); } }
.bk-book.is-closed { transform: translateX(-25%); }
.bk-book.is-closed.is-opening { transform: translateX(0); }
.bk-page { position: relative; width: 50%; height: 100%; cursor: pointer; }
.bk-page.is-empty { pointer-events: none; }
.bk-page--l { border-radius: 4px 0 0 4px; }
.bk-page--r { border-radius: 0 4px 4px 0; }
.bk-face { position: absolute; inset: 0; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.bk-page--l .bk-face, .bk-leaf--r .bk-leaf-back .bk-face, .bk-leaf--l .bk-leaf-front .bk-face { border-radius: 4px 0 0 4px; }
.bk-page--r .bk-face, .bk-leaf--r .bk-leaf-front .bk-face, .bk-leaf--l .bk-leaf-back .bk-face { border-radius: 0 4px 4px 0; }
.bk-paper { background: #f6f3ee; }
/* the fold in the middle */
.bk-page--l .bk-paper::after, .bk-page--r .bk-paper::after { content: ""; position: absolute; top: 0; bottom: 0; width: 16%; pointer-events: none; }
.bk-page--l .bk-paper::after { right: 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.18)); }
.bk-page--r .bk-paper::after { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent); }
.bk-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bk-placed { position: absolute; object-fit: cover; }
.bk-page .bk-brand { font-size: calc(var(--pw) * 0.062); }
.bk-page .bk-by, .bk-leaf .bk-by { font-size: calc(var(--pw) * 0.03); }
.bk-leaf .bk-brand { font-size: calc(var(--pw) * 0.062); }
.bk-titlepage, .bk-endpage { display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; color: #1b1b1b; padding: 12%; }
.bk-t1 { font-family: var(--serif); font-style: italic; font-size: calc(var(--pw) * 0.075); line-height: 1.15; }
.bk-t2 { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: calc(var(--pw) * 0.045); letter-spacing: 0.02em; margin-top: 6px; }
.bk-t3 { font-family: var(--mono); font-size: calc(var(--pw) * 0.028); letter-spacing: 0.14em; text-transform: uppercase; color: #8a8378; }
.bk-end { font-family: var(--serif); font-style: italic; font-size: calc(var(--pw) * 0.07); }
/* a turning page */
.bk-leaf { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; transition: transform 0.9s var(--ease-cine); z-index: 3; }
.bk-leaf--r { left: 50%; transform-origin: 0 50%; }
.bk-leaf--l { left: 0; transform-origin: 100% 50%; }
.bk-leaf--r.is-turned { transform: rotateY(-180deg); }
.bk-leaf--l.is-turned { transform: rotateY(180deg); }
.bk-leaf-front, .bk-leaf-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bk-leaf-back { transform: rotateY(180deg); }
/* the message */
.bk-text { width: min(360px, 34vw); display: grid; gap: 14px; color: var(--paper); animation: fadeUp 1s 0.4s var(--ease-out) both; }
.bk-kicker { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: #ff7a5c; }
.bk-heading { font-weight: 300; font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -0.02em; }
.bk-msg { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; font-style: italic; }
.bk-note { font-size: 13.5px; line-height: 1.55; color: var(--paper-dim); }
.bk-ctrl { display: flex; align-items: center; gap: 18px; margin-top: 6px; min-height: 44px; }
.bk-openbtn { padding: 12px 18px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: #140b0a; background: var(--paper); border-radius: 2px; transition: transform 0.3s var(--ease-out); }
.bk-openbtn:hover { transform: translateY(-2px); }
.bk-navs { display: none; align-items: center; gap: 14px; }
.bk.is-reading .bk-openbtn { display: none; }
.bk.is-reading .bk-navs { display: flex; }
.bk-nav { width: 42px; height: 42px; border-radius: 50%; color: var(--paper); border: 1px solid rgba(236, 230, 218, 0.35); font-size: 16px; }
.bk-nav:disabled { opacity: 0.25; }
.bk-count { font-size: 11px; letter-spacing: 0.18em; color: var(--paper-dim); min-width: 44px; text-align: center; }
@media (max-width: 860px) {
  .bk { place-items: start center; }
  .bk-wrap { --pw: min(44vw, calc((100vh - 360px) * 0.76)); flex-direction: column; gap: 22px; }
  .bk-text { width: min(440px, 100%); text-align: center; justify-items: center; gap: 10px; }
  .bk-msg { font-size: 17px; }
  .bk-note { font-size: 12.5px; }
}
