/* INU metalwork. Opt-in surface: homepage and library only. */
.inu-crafted {
  --inu-gold:#ffc575; --inu-cream:#fff3d7; --inu-rim:#ad793a; --inu-ink:#10151d;
  --inu-panel:linear-gradient(145deg,#25303bea,#101720ef 72%);
  --inu-frame:inset 0 1px 0 #fff0bd70,inset 0 -2px 0 #000a,0 0 0 2px #17130f,0 0 0 3px #916735,0 8px 0 #090e15,0 18px 35px #0005;
}
/* Shared bevel, raised lower edge, and two-tone enamel. */
.inu-crafted.command-room :is(.room-story-actions button,.room-dock>button,.room-dock>a,.home-hero-controls button,.status-chip,.drawer-head button,.world-controls .cinema-view),
.inu-crafted .inu-motion-toggle {
  --button-top:#eef5fc;--button-mid:#c4d1df;--button-low:#8a9daf;--button-base:#bdcbd8;--button-edge:#3b4e62;--button-ink:#132234;--button-glint:#fff;
  border:2px solid #111721;border-radius:10px;
  background:linear-gradient(175deg,var(--button-top) 0%,var(--button-mid) 46%,var(--button-low) 49%,var(--button-base) 100%);
  color:var(--button-ink);font-weight:900;line-height:1.3;letter-spacing:.015em;
  text-shadow:0 1px 0 #fff8;
  box-shadow:inset 0 2px 0 var(--button-glint),inset 0 -2px 0 #0004,0 4px 0 var(--button-edge),0 5px 0 #05080e,0 8px 14px #0005;
  transition:translate .16s ease,filter .16s ease,box-shadow .16s ease;
  cursor:pointer;touch-action:manipulation;
}
.inu-crafted.command-room :is(.room-story-actions .lime,.home-pose-buttons [aria-pressed='true']),
.inu-crafted .inu-motion-toggle[aria-pressed='true'] {
  --button-top:#fff0bf;--button-mid:#ffc462;--button-low:#e98420;--button-base:#ffb145;--button-edge:#7a4219;--button-ink:#2e1809;--button-glint:#fff7dd;
}
.inu-crafted.command-room .room-dock b{color:inherit;text-shadow:0 1px 0 #fff2;font-weight:900}
.inu-crafted.command-room .room-dock>:is(a,button)::before{display:none}
.inu-crafted.command-room .room-dock{gap:10px;border-color:#f2c277;box-shadow:var(--inu-frame);background:var(--inu-panel)}
.inu-crafted.command-room .room-copy{border:1px solid #d6a762;box-shadow:var(--inu-frame);background:linear-gradient(115deg,#111b27ed,#17222ed9);border-radius:19px}
.inu-crafted.command-room .room-copy::before{content:'';position:absolute;inset:8px;border:1px solid #e7ba702e;border-radius:12px;pointer-events:none}
.inu-crafted.command-room .room-copy::after{content:'';position:absolute;top:-2px;left:14%;width:26%;height:3px;background:linear-gradient(90deg,transparent,#ffe3a1,transparent);opacity:.65;pointer-events:none}
.inu-crafted.command-room .room-shell[data-wallpaper='live'] .room-copy::after{animation:inu-lantern 4.8s ease-in-out infinite}
.inu-crafted.command-room .room-copy h1{color:var(--inu-cream);filter:none;text-shadow:0 2px 0 #0c1016,0 4px 0 #070a10,1px 0 #0a0d13,-1px 0 #0a0d13;letter-spacing:-.025em}
.inu-crafted.command-room .room-copy h1 span{color:#ffba62}
.inu-crafted.command-room .room-subtitle strong{color:#ffe1ad;font-weight:850}
.inu-crafted.command-room .pack-manifesto{color:#e0e6ed;font-weight:600}
.inu-crafted.command-room .room-copy .origin-trigger{color:#ffd296;font-weight:900;letter-spacing:1.3px}
.inu-crafted.command-room :is(.world-controls,.pack-side-links){border:1px solid #aa8046;background:var(--inu-panel);box-shadow:inset 0 1px #ffdea64d,0 5px 0 #090f17,0 12px 25px #0004}
.inu-crafted.command-room .world-controls select{border:1px solid #8d9aa8;border-radius:7px;background:#16212e;color:#fff1d9;color-scheme:dark;font-weight:800;box-shadow:inset 0 1px #fff2,0 2px #080d14}
/* Native menus need explicit option colors as well as the closed select surface. */
.inu-crafted.command-room .world-controls :is(option,optgroup){background:#16212e;color:#fff1d9}
.inu-crafted.command-room .world-controls label{color:#e8cda1;font-weight:900}
.inu-crafted.command-room .pack-side-links>span{color:#ffd49a;font-weight:900;letter-spacing:1.2px}
.inu-crafted.command-room .pack-side-links a{color:#f2e5cf;font-weight:800;border-radius:6px;transition:background .16s,color .16s}
.inu-crafted.command-room .pack-side-links a:hover{background:#ffc5751c;color:white}
.inu-crafted.command-room .drawer{border-color:#d1a262;box-shadow:var(--inu-frame)}
.inu-crafted.command-room .drawer-head{background:linear-gradient(#34414c,#18222f);border-color:#a6783e}
.inu-crafted.command-room .drawer-head button{min-width:44px;min-height:44px}
.inu-crafted.command-room :is(.drawer h2,.drawer h3){color:var(--inu-cream);text-shadow:0 2px #05090f}
/* Crisp navigation remains compact on narrow screens. */
.inu-crafted .inu-network a{font-weight:850;color:#ecdfc9;border-bottom:2px solid transparent;transition:background .16s,border-color .16s,color .16s}
.inu-crafted .inu-network a:hover,.inu-crafted .inu-network a[aria-current='page']{background:#ffb95619;color:#ffd089;border-bottom-color:#ffc575}
.inu-crafted :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #8be9f7;outline-offset:5px}
/* Library: an illustrated entrance, steel shelves, and gold picture frames. */
body.inu-library.inu-crafted{background:radial-gradient(ellipse at 90% 8%,#9d60201c,transparent 42%),radial-gradient(ellipse at 0 60%,#15565120,transparent 60%),#0b111a;color:#f5efe4;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.inu-library.inu-crafted .nav{background:linear-gradient(110deg,#17232ff0,#101720);border-bottom:1px solid #ae7d40;box-shadow:0 4px 0 #070b12;max-width:none;padding-inline:max(24px,calc((100vw - 1240px)/2))}
.inu-library.inu-crafted main{padding-top:26px}
.inu-library.inu-crafted .gallery-intro{position:relative;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:28px;padding:28px 32px;margin:4px 0 42px;background:var(--inu-panel);border:1px solid #d1a262;border-radius:20px;box-shadow:var(--inu-frame);isolation:isolate}
.inu-library.inu-crafted .gallery-intro::before{content:'';position:absolute;inset:7px;border:1px solid #ffd58d26;border-radius:14px;pointer-events:none}
.inu-library.inu-crafted .gallery-intro h1{font-size:clamp(36px,4.2vw,60px);font-weight:950;letter-spacing:-.045em;line-height:1.05;color:#fff1d3;text-shadow:0 3px #080d14;margin:12px 0 16px;text-wrap:balance}
.inu-library.inu-crafted .gallery-intro h1 em{display:block;color:#ffb954}
.inu-library.inu-crafted .gallery-intro-copy>p:not(.eyebrow){color:#d5dce4;font-size:14px;line-height:1.7;max-width:530px}
.inu-library.inu-crafted .eyebrow{color:#ffc680;font-weight:900;font-size:11px;letter-spacing:1.6px}
.inu-library.inu-crafted h2{font-weight:900;color:#fff0d4;letter-spacing:-.025em;text-shadow:0 2px #080d14}
.inu-library.inu-crafted :is(.search,.archive-controls label,.share-tools label){font-weight:750;color:#e1d4bf}
.inu-library.inu-crafted :is(input,textarea,select){background:#101b27;border:1px solid #9a7e55;border-radius:9px;color:#f8f3e9;box-shadow:inset 0 2px 5px #0006;font:600 14px/1.5 system-ui}
.inu-library.inu-crafted input::placeholder{color:#b2becc;font-weight:500}
.inu-library.inu-crafted select{min-height:44px}
.inu-library.inu-crafted .gallery-stage{border:2px solid #d1a262;box-shadow:inset 0 1px #fff5,0 0 0 2px #15110e,0 6px 0 #070c14,0 16px 35px #0005;background:linear-gradient(130deg,#243442,#111923 80%)}
.inu-library.inu-crafted .gallery-viewer{border-inline-end:1px solid #c7994d66;background:radial-gradient(ellipse,#31302a,#080e16 80%)}

.inu-library.inu-crafted .gallery-details #gallery-caption{color:#e0e4eb;font-weight:500}
.inu-library.inu-crafted .gallery-details #gallery-meta{color:#ebcda1;font-weight:700;letter-spacing:.5px}
.inu-library.inu-crafted .gallery-controls #gallery-position{font:800 13px/1.5 system-ui;font-variant-numeric:tabular-nums;color:#f5dfbc}
.inu-library.inu-crafted .gallery-reel{padding:10px 6px 18px;gap:14px}
.inu-library.inu-crafted .gallery-thumb{transition:translate .18s,box-shadow .18s,opacity .18s;border-color:#798899;box-shadow:inset 0 1px #fff4,0 4px #050a10}
.inu-library.inu-crafted .gallery-thumb[aria-pressed='true']{border-color:#ffd082;box-shadow:0 0 0 2px #b87530,0 5px #603719,0 0 18px #ffb34826}
.inu-library.inu-crafted .gallery-thumb span{font-size:11px;font-weight:800;color:#f4e6cf}
.inu-library.inu-crafted .guest-callout{border-color:#a47d45;background:var(--inu-panel);box-shadow:inset 0 1px #fff2,0 5px #070c14}
.inu-library.inu-crafted :is(.results-line,.hint,footer,.guest-callout p:not(.eyebrow)){color:#c2ccd8}
.inu-library.inu-crafted dialog{background:linear-gradient(135deg,#263541,#111b28 65%);border:2px solid #d1a262;box-shadow:var(--inu-frame)}
/* Scene illumination: bounded to the illustration; no effect over the meme. */
.inu-library-scene{position:relative;margin:0;overflow:hidden;border:2px solid #e2bc77;border-radius:15px;box-shadow:inset 0 0 0 3px #15100c,0 5px 0 #664324,0 12px 25px #0007;isolation:isolate}
.inu-library-scene>img{display:block;width:100%;height:auto;aspect-ratio:640/351;object-fit:cover}
.inu-library-scene::after{content:'';position:absolute;inset:0;border:5px solid #1b171024;border-radius:12px;pointer-events:none;box-shadow:inset 0 0 18px #331e1866}
.inu-scene-light{position:absolute;left:61%;top:36%;width:13%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#ffe6a8a6,transparent 68%);mix-blend-mode:screen;pointer-events:none;opacity:.35;animation:inu-lantern 4.8s ease-in-out infinite}
.inu-scene-light.second{left:46%;top:39%;width:12%;animation-delay:-2.3s}
.inu-scene-spark{position:absolute;left:24%;top:65%;width:4px;height:4px;border-radius:50%;background:#ffdb9c;box-shadow:0 0 8px #ffc269;pointer-events:none;animation:inu-ember 7s linear infinite}
.inu-scene-spark.second{left:78%;top:72%;animation-delay:-3.7s;animation-duration:9s}
.inu-scene-spark.third{left:36%;top:60%;animation-delay:-1.8s;animation-duration:8s}
.inu-crafted .inu-motion-toggle{font-size:11px;min-height:36px;padding:7px 12px;margin-top:10px;gap:7px;display:inline-flex;align-items:center}
.inu-motion-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.inu-crafted[data-inu-motion='paused'] :is(.inu-scene-light,.inu-scene-spark){animation-play-state:paused;opacity:0}
@keyframes inu-lantern{0%,100%{opacity:.3}40%{opacity:.72}65%{opacity:.5}}
@keyframes inu-ember{0%{translate:0 14px;opacity:0}20%{opacity:.7}80%{opacity:.45}100%{translate:14px -50px;opacity:0}}
@media(hover:hover) and (pointer:fine){
  .inu-crafted.command-room :is(.room-story-actions button,.room-dock>button,.room-dock>a,.home-hero-controls button,.status-chip,.drawer-head button,.world-controls .cinema-view):hover:not(:disabled),.inu-crafted .inu-motion-toggle:hover{translate:0 -2px;filter:brightness(1.07)}
  .inu-library.inu-crafted .gallery-thumb:hover{translate:0 -3px;opacity:1}
}
.inu-crafted.command-room :is(.room-story-actions button,.room-dock>button,.room-dock>a,.home-hero-controls button,.status-chip,.drawer-head button,.world-controls .cinema-view):active:not(:disabled),.inu-crafted .inu-motion-toggle:active{translate:0 3px;transform:none;box-shadow:inset 0 2px 4px #0004,0 1px 0 var(--button-edge)}
.inu-crafted.command-room :is(button:disabled,[aria-disabled='true']){filter:saturate(.35);opacity:.6}
@media(max-width:900px){
  .inu-crafted.command-room .room-dock{gap:7px;padding-bottom:calc(13px + env(safe-area-inset-bottom,0px))}
  .inu-crafted.command-room .room-dock>:is(button,a){min-height:46px;padding:5px;font-size:11px}
  .inu-crafted.command-room .room-copy h1{font-size:clamp(40px,10vw,66px)}
}
@media(max-width:700px){
  .inu-library.inu-crafted .nav{padding-inline:18px}
  .inu-library.inu-crafted main{padding-top:18px}
  .inu-library.inu-crafted .gallery-intro{grid-template-columns:1fr;gap:23px;padding:24px 20px;margin-bottom:32px}
  .inu-library.inu-crafted .gallery-intro h1{font-size:clamp(36px,9vw,52px);letter-spacing:-.04em}
  .inu-library-scene{max-width:440px;width:100%;justify-self:center}
  .inu-library.inu-crafted .gallery-viewer{border-inline-end:0;border-bottom:1px solid #c7994d66}
  .inu-library.inu-crafted .search{min-width:0}
  .inu-library.inu-crafted .gallery-details h2{font-size:26px}
  .inu-library.inu-crafted .gallery-details{padding:20px 16px}
  .inu-library.inu-crafted .collection-heading h2{font-size:24px}
}
@media(prefers-reduced-motion:reduce){
  .inu-crafted{scroll-behavior:auto}
  html:has(.inu-crafted){scroll-behavior:auto}
  .inu-crafted *, .inu-crafted *::before,.inu-crafted *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .inu-crafted :is(.inu-scene-light,.inu-scene-spark){display:none}
  .inu-crafted.command-room :is(button,a):hover,.inu-library.inu-crafted :is(button,a):hover{translate:none;transform:none}
}
/* Override legacy ID colors without changing hero-control behavior. */
.inu-crafted.command-room #home-hero-next{background:linear-gradient(175deg,#fff0bf 0%,#ffc462 46%,#e98420 49%,#ffb145 100%);color:#2e1809;--button-edge:#7a4219;--button-glint:#fff7dd}
.inu-crafted.command-room:has(#pack-window[open]) .room-dock [data-open='pack-window'],
.inu-crafted.command-room:has(#heroes-window[open]) .room-dock [data-open='heroes-window'],
.inu-crafted.command-room:has(#launch-window[open]) .room-dock [data-open='launch-window'],
.inu-crafted.command-room:has(#progress-window[open]) .room-dock [data-open='progress-window']{outline:2px solid #ffe0a0;outline-offset:3px;filter:brightness(1.12)}

/* Materials belong to the building and its controls. The artwork stays unobstructed. */
body[data-building="shelf"] .gallery-reel {
  border-block:1px solid #936338;
  border-radius:8px;
  padding:14px 10px 18px;
  background:linear-gradient(to bottom,#50321e 0,#231b18 5px,#121316 17px,#141416 calc(100% - 13px),#dda667 calc(100% - 12px),#6d4329 calc(100% - 9px),#302117 100%);
  box-shadow:inset 0 1px #f6d69677,0 5px 9px #0005;
}
body[data-building="shelf"] .gallery-thumb span {font-size:.8rem;line-height:1.35}
body[data-building="shelf"] :is(.gallery-details #gallery-meta,.reel-hint,.filters button,.archive-controls label) {font-size:.875rem}
body[data-building="shelf"] :is(#gallery-position,#count) {font-variant-numeric:tabular-nums}

body[data-building="forge"] :is(.rail-heading,.preview-heading),
body[data-building="shelf"] .pack-dialog .pack-eyebrow {
  background:radial-gradient(circle at 8px 8px,#d4dce2 1px,#566473 2px,transparent 3px),
    linear-gradient(110deg,#343d47,#202935 65%,#3c3833);
  border-block:1px solid #71808b;
  box-shadow:inset 0 -3px #141b23;
}
body[data-building="forge"] .studio-heading h1,
body[data-building="instrument"] .welcome h1,
.inu-crafted #district-title,
body[data-building="shelf"] .gallery-details h2 {
  font-weight:900;
  text-shadow:-1px 0 #10131b,1px 0 #10131b,0 2px #10131b;
}
body[data-building="forge"] :is(.project-name label,.studio-kicker,.preview-heading label) {font-size:.875rem}
body[data-building="forge"] :is(#dimensions,#save-status) {font-variant-numeric:tabular-nums}
body[data-building="instrument"] .projection-screen {
  border:2px solid #ab8d56;
  background:linear-gradient(135deg,#b79d6a,#4d4941 8%,#1e2b34 22%,#273a40 85%,#8d764d);
  box-shadow:inset 0 1px #f7e3aa99,0 6px 18px #0007;
}
body[data-building="instrument"] .screen-surface {
  background-image:linear-gradient(115deg,#9bdde014,transparent 24%,#101d2700 72%,#57767d12);
  box-shadow:inset 0 0 14px #071821,0 0 0 1px #8a785b;
}
body[data-building="instrument"] :is(.capsule-reading,.terminal-stats strong,.room-number b) {font-variant-numeric:tabular-nums}
body[data-building="instrument"] :is(.capsule-label,.range-control label,.terminal-stats>div>span) {font-size:.875rem}
body[data-building="instrument"] .capsule-reading {font-size:.8rem}

.inu-crafted .destination-detail {--district-rim:#b49670;--district-fill:#302b25}
.inu-crafted [data-district="hall-of-george"] {--district-rim:#d5aa68;--district-fill:#443120}
.inu-crafted [data-district="fusion"] {--district-rim:#e6975b;--district-fill:#373b42}
.inu-crafted [data-district="launchpad"] {--district-rim:#6ae2bd;--district-fill:#173e36}
.inu-crafted [data-district="hero-hall"] {--district-rim:#dba1aa;--district-fill:#412933}
.inu-crafted [data-district="arcade"] {--district-rim:#b8a7ff;--district-fill:#312b45}
.inu-crafted [data-district="gold-rush"] {--district-rim:#edcf66;--district-fill:#40351d}
.inu-crafted [data-district="library"] {--district-rim:#e5b574;--district-fill:#3a291e}
.inu-crafted [data-district="inudex"] {--district-rim:#8acfb9;--district-fill:#193534}
.inu-crafted [data-district="observatory"] {--district-rim:#bdad75;--district-fill:#173a43}
.inu-crafted [data-district="park"] {--district-rim:#a1c77d;--district-fill:#29382a}
.inu-crafted .destination-detail[data-district] {border-color:var(--district-rim)}
.inu-crafted .destination-detail .district-card-body {border-top:3px solid var(--district-rim);background:linear-gradient(150deg,var(--district-fill),#141a22 75%)}
.inu-crafted .destination-detail .destination-territory {color:var(--district-rim);font-size:.875rem}
.inu-crafted :is(.district-index,.district-tabs span,.growth-count) {font-variant-numeric:tabular-nums}

@keyframes inu-selection-glint {from{outline:2px solid #ffe5a4;outline-offset:0}to{outline:2px solid transparent;outline-offset:3px}}
@media (prefers-reduced-motion:no-preference) {
  :is([data-building],.inu-crafted) :is(.filters button,.gallery-thumb,.district-tabs button,.slot-button,#tabs button,.layer-toolbar button)[aria-pressed="true"]:not(:focus-visible) {animation:inu-selection-glint .38s ease-out}
  :is([data-building="forge"],[data-building="instrument"]) button:active:not(:disabled),
  .inu-crafted :is(.district-shortcut,.district-tabs button,.gallery-thumb):active:not(:disabled) {scale:.97}
}
@media (prefers-reduced-motion:no-preference) and (hover:hover) and (pointer:fine) {
  :is([data-building="forge"] .creative-rail,[data-building="instrument"] .control-bar,.inu-crafted .district-shortcut) {transition:translate .15s ease-out,box-shadow .15s ease-out}
  :is([data-building="forge"] .creative-rail,[data-building="instrument"] .control-bar,.inu-crafted .district-shortcut):hover {translate:0 -2px}
}
