/* Personal collections share the OS shell; artwork provides the color. */
#library-scene { background: radial-gradient(ellipse at 85% 0%, #31332b38, transparent 55%), #101113; }
.library { height: 100%; overflow-y: auto; padding: 128px max(6vw, 28px) 145px; color: #f7f6f2; scrollbar-width: thin; scrollbar-color: #ffffff24 transparent; }
.library button, .library input { font: inherit; }
.library button { cursor: pointer; color: inherit; }
.library-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 40px; }
.library-eyebrow { font: 10px var(--mono, monospace); letter-spacing: .18em; color: #c0c8ad; margin: 0 0 16px; }
.library h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.08; font-weight: 550; letter-spacing: -.055em; margin: 0; }
.library h1 span { color: #bbc5a7; }
.library-intro { margin: 16px 0 0; color: #a8aaaf; font-size: 16px; line-height: 1.5; }
.library-storage { display: flex; align-items: center; gap: 9px; color: #a8aaaf; font-size: 12px; padding-bottom: 4px; }
.library-status-dot { width: 5px; height: 5px; border-radius: 50%; background: #bbc5a7; flex-shrink: 0; }
.library-toolbar { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid #ffffff12; }
.library-tabs { display: flex; gap: 6px; }
.library-tabs button { border: 1px solid transparent; background: transparent; padding: 11px 17px; border-radius: 8px; color: #abacb0; font-size: 13px; display: flex; align-items: center; gap: 9px; transition: background 160ms ease, color 160ms ease; }
.library-tabs button[aria-pressed="true"] { color: #f7f6f2; background: #bbc5a715; border-color: #bbc5a72c; }
.library-tabs button span { font-size: 10px; color: #9caa88; font-variant-numeric: tabular-nums; }
.library-search input { border: 1px solid #ffffff16; border-radius: 8px; padding: 11px 14px; background: #ffffff03; color: #f7f6f2; font-size: 13px; width: 230px; min-height: 42px; }
.library-search input::placeholder { color: #95969c; }
.library .sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
.library-empty { min-height: min(450px, 46vh); padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.library-empty-icon { display: grid; place-items: center; width: 58px; height: 58px; background: linear-gradient(145deg,#bbc5a712,#bbc5a703); border: 1px solid #bbc5a723; box-shadow: inset 0 1px 0 #ffffff09; border-radius: 16px; color: #bbc5a7; margin-bottom: 28px; }
.library-empty-icon svg { width: 26px; height: 26px; }
.library-empty h2 { margin: 0; font-weight: 450; font-size: clamp(25px, 2.8vw, 38px); letter-spacing: -.035em; }
.library-empty > p:not(.library-eyebrow) { max-width: 470px; margin: 16px 0 25px; line-height: 1.7; font-size: 14px; color: #a8aaaf; }
.library-cta { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; padding: 12px 18px; background: #f1eddf; border: 1px solid #ffffff50; border-radius: 9px; color: #141518 !important; font-size: 13px !important; font-weight: 550 !important; }
.library-cta svg { width: 17px; height: 17px; }
.library-section { margin-top: 34px; }
.library-section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.library-section h2 { font-size: 23px; font-weight: 500; letter-spacing: -.025em; margin: 0; }
.library-section-head p { margin: 8px 0 0; font-size: 13px; color: #a8aaaf; }
.library-section-head > span { font: 10px var(--mono, monospace); color: #9c9da3; white-space: nowrap; }
.library-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.library-card { position: relative; min-width: 0; }
.library-open { text-align: left; display: block; width: 100%; background: none; border: 0; padding: 0; border-radius: 12px; }
.library-art { aspect-ratio: 16 / 10; position: relative; overflow: hidden; border-radius: 12px; border: 1px solid #ffffff14; background: #23252a; }
.library-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--os-settle); }
.library-art-shade { position: absolute; inset: 0; background: linear-gradient(0deg,#0008,transparent 60%); pointer-events: none; }
.library-play { display: grid; place-items: center; position: absolute; bottom: 16px; left: 16px; width: 34px; height: 34px; background: #16171966; border: 1px solid #ffffff70; border-radius: 50%; backdrop-filter: blur(8px); }
.library-play svg { width: 16px; height: 16px; }
.library-card-copy { padding: 14px 0 6px; }
.library-card h3 { font-size: 15px; font-weight: 500; margin: 0 0 7px; line-height: 1.45; }
.library-card-copy p { color: #b0b1b5; font-size: 12px; line-height: 1.5; margin: 0; }
.library-remove { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ffffff30; background: #17181dd9; color: #e6e6e8 !important; font-size: 23px !important; opacity: .85; }
.library-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #ffffff25; }
.library-progress i { display: block; height: 100%; background: #e6e7d7; }
.library-footer { border-top: 1px solid #ffffff10; padding-top: 22px; margin: 40px 0 0; font-size: 12px; line-height: 1.5; color: #97999f; }
.library button:focus-visible, .library input:focus-visible { outline: 2px solid #e2e8cd; outline-offset: 4px; }
.library button:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .library-open:hover .library-art img { transform: scale(1.025); }
  .library-tabs button:hover { background: #ffffff09; color: #fff; }
  .library-remove:hover { background: #393a40; opacity: 1; }
  .library-cta:hover { background: #fffaf0; }
}
@media (max-width: 1000px) { .library-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; } }
@media (max-width: 700px) {
  .library { padding: 106px 22px 145px; }
  .library-head { display: block; margin-bottom: 26px; }
  .library-storage { margin-top: 20px; font-size: 11px; }
  .library-toolbar { align-items: stretch; flex-direction: column; gap: 16px; }
  .library-tabs { justify-content: space-between; gap: 2px; }
  .library-tabs button { padding: 11px 10px; font-size: 12px; gap: 5px; }
  .library-search input { width: 100%; }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 14px; }
  .library-empty { padding: 40px 4px; min-height: 380px; }
  .library-section h2 { font-size: 21px; }
  #dock { max-width: calc(100vw - 20px); }
  #dock > span { width: clamp(48px, 16vw, 72px); }
  #dock > span b { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) { .library *, .library *::before, .library *::after { transition: none !important; } .library-open:hover .library-art img { transform: none; } }
body.keyboard-nav .library * { transition: none !important; }

/* Collectible cases: original artwork, a visible spine, and a floating shadow. */
.library-case-grid { gap: 28px; }
.library-case-stage { position: relative; aspect-ratio: 4 / 5; perspective: 1100px; isolation: isolate; }
.library-case-stage::after { content: ''; position: absolute; left: 13%; right: 9%; bottom: 1%; height: 8%; background: #000; border-radius: 50%; filter: blur(12px); opacity: .5; transform: scaleX(.88); transition: transform 350ms ease, opacity 350ms ease; z-index: -1; }
.library-case-float { position: absolute; inset: 5% 9% 10% 13%; transform-style: preserve-3d; }
.library-case-object { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(-15deg) rotateX(5deg) rotateZ(-2deg); transition: transform 400ms var(--os-settle); }
.library-case-front { position: absolute; inset: 0; overflow: hidden; border: 1px solid #e7e5d54a; border-left: 4px solid #b0b1ac55; border-radius: 6px 13px 13px 6px; background: #222527; box-shadow: inset 0 0 0 3px #080a0b, 5px 10px 20px #0004; transform: translateZ(7px); }
.library-case-front > img { width: 100%; height: 100%; object-fit: cover; }
.library-case-front::after { content: ''; position: absolute; inset: 0; border: 3px solid #ffffff12; border-radius: inherit; box-shadow: inset 1px 0 1px #fff6, inset -2px 0 3px #0009; pointer-events: none; }
.library-case-gloss { position: absolute; inset: 0; background: linear-gradient(105deg,#ffffff2b 0%,#ffffff07 22%,transparent 40%,#ffffff09 75%,transparent), linear-gradient(0deg,#080a0bf5, #080a0b20 65%,#080a0b80); pointer-events: none; }
.library-case-spine { position: absolute; inset: 0 auto 0 -7px; width: 15px; border: 1px solid #ffffff26; border-radius: 4px 0 0 4px; transform: rotateY(-90deg); background: linear-gradient(90deg,#161b1c,#515857 45%,#262d2f); color: #b9bfbc; writing-mode: vertical-rl; text-align: center; text-transform: uppercase; font: 8px var(--mono,monospace); letter-spacing: .18em; }
.library-case-brand { position: absolute; top: 16px; left: 15px; right: 15px; display: flex; justify-content: space-between; align-items: center; color: #f7f6f2; font-size: 13px; font-weight: 650; letter-spacing: -.05em; }
.library-case-brand i { font: normal 7px var(--mono,monospace); letter-spacing: .14em; opacity: .8; }
.library-case-cover-copy { position: absolute; left: 17px; right: 15px; bottom: 23px; display: flex; flex-direction: column; gap: 10px; }
.library-case-cover-copy > span { color: #c8c9bc; font: 7px var(--mono,monospace); letter-spacing: .15em; line-height: 1.5; }
.library-case-cover-copy strong { font-size: clamp(20px,2.2vw,36px); font-weight: 700; line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.library-case-cover-copy .library-case-edition { border-top: 1px solid #ffffff30; padding-top: 10px; font-size: 6px; }
.library-case-card .library-card-copy { padding: 10px 13% 6px; }
.library-case-card .library-remove { right: 0; top: 0; width: 30px; height: 30px; font-size: 20px !important; }
.col .cacts { flex-wrap: wrap; align-items: center; }
.col .cacts .trailer-icon-btn { width: 48px; min-width: 48px; height: 48px; flex: 0 0 48px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.col .cacts .trailer-icon-btn svg { width: 24px; height: 24px; margin: 0; }
.col .cacts .trailer-icon-btn .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.col .cacts .trailer-icon-btn:focus-visible { outline: 2px solid var(--bone, #f7f6f2); outline-offset: 4px; }
.col .cacts .library-world-save { width: 48px; min-width: 48px; height: 48px; flex: 0 0 48px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.col .cacts .library-world-save svg { width: 20px; height: 20px; margin: 0; }
.col .cacts .library-world-save[aria-pressed="true"] { background: rgba(246,233,210,.16); border-color: rgba(246,233,210,.5); }
.col .cacts .library-world-save:focus-visible { outline: 2px solid var(--bone, #f7f6f2); outline-offset: 4px; }
@keyframes library-case-drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #library-scene.on .library-case-float { animation: library-case-drift 6s ease-in-out infinite; }
  .library-case-card:nth-child(2n) .library-case-float { animation-delay: -2s !important; }
  .library-case-card:nth-child(3n) .library-case-float { animation-delay: -4s !important; }
  .library-case-stage:hover .library-case-object, .library-case-card:focus-within .library-case-object { transform: translateY(-8px) rotateY(-5deg) rotateX(1deg) rotateZ(0deg); }
  .library-case-stage:hover::after { transform: scaleX(.72); opacity: .3; }
  .library-case-stage:hover .library-case-float, .library-case-card:focus-within .library-case-float { animation-play-state: paused !important; }
}
@media (max-width: 700px) {
  .library-case-grid { gap: 22px 12px; }
  .library-case-brand { top: 10px; left: 10px; right: 10px; font-size: 10px; }
  .library-case-brand i { display: none; }
  .library-case-cover-copy { left: 10px; right: 9px; bottom: 15px; gap: 7px; }
  .library-case-cover-copy strong { font-size: 19px; }
  .library-case-cover-copy > span { font-size: 6px; letter-spacing: .07em; }
  .library-case-cover-copy .library-case-edition { display: none; }
  .library-case-card .library-card-copy { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .library-case-float { animation: none !important; }
  .library-case-object { transform: rotateY(-8deg); transition: none; }
}
body.keyboard-nav .library-case-float { animation: none !important; }
body.library-paused .library-case-float { animation-play-state: paused !important; }
body.viewing .library-case-float, body.inworld .library-case-float { animation-play-state: paused !important; }

/* Everside RGB foil: concentrated on the case, with clear cover artwork. */
.library-case-front::after {
  border-color: #ffffff12;
  background:
    linear-gradient(90deg, #f04e4eaa, #2bb67399 48%, #2e44e6bb) top / 100% 2px no-repeat,
    linear-gradient(180deg, #f04e4e88, #2bb67377 48%, #2e44e699) left / 2px 100% no-repeat,
    linear-gradient(90deg, #2e44e688, #2bb67377 48%, #f04e4e88) bottom / 100% 1px no-repeat;
  box-shadow: inset 1px 0 2px #ffffff70, inset -2px 0 4px #0009;
}
.library-case-gloss::before {
  content: '';
  position: absolute;
  inset: -25%;
  background: linear-gradient(118deg, transparent 25%, #f04e4e33 34%, #ffffff1f 39%, #2bb67338 44%, #2e44e64d 50%, transparent 60%);
  opacity: .55;
  transform: translateX(-13%);
  mix-blend-mode: screen;
  transition: transform 650ms var(--os-settle), opacity 300ms ease;
}
.library-case-spine {
  background: linear-gradient(90deg, #0b1019bb, #ffffff19 45%, #0b1019aa), linear-gradient(180deg, #743f49, #335e4e 48%, #343d76);
  border-color: #b7c1e044;
}
.library-case-brand i::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-left: 7px;
  vertical-align: middle;
  border-radius: 1px;
  background: var(--rgb);
}
.library-case-cover-copy .library-case-edition { position: relative; padding-right: 22px; }
.library-case-edition::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 14px;
  height: 16px;
  border: 1px solid #e4e8f06e;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg,#ffffff44 0 1px,transparent 1px 4px), linear-gradient(140deg,#f04e4eaa,#d5e6d199 38%,#2bb673aa 55%,#2e44e6aa);
  box-shadow: inset 0 0 0 2px #13191c44;
}
@media (hover: hover) and (pointer: fine) {
  .library-open:hover .library-case-gloss::before,
  .library-open:focus-visible .library-case-gloss::before { transform: translateX(17%); opacity: .95; }
}
@media (prefers-reduced-motion: reduce) { .library-case-gloss::before { transition: none; transform: none !important; } }

/* Preserve BLACKBIRD's established Originals title treatment on its case. */
.library-brand-blackbird .library-case-front { container-type: inline-size; }
.library-brand-blackbird .library-case-cover-copy strong {
  font-family: var(--bb, 'Alfa Slab One', Georgia, serif);
  font-weight: 400;
  font-size: clamp(11px, 10cqw, 30px);
  letter-spacing: .005em;
  line-height: 1.12;
  color: var(--cream, #f6e9d2);
  overflow-wrap: normal;
}
.library-brand-blackbird .library-card-copy h3 {
  font-family: var(--bb, 'Alfa Slab One', Georgia, serif);
  font-weight: 400;
  letter-spacing: .005em;
  color: var(--cream, #f6e9d2);
}

/* Originals branding comes from the same world definition used by the OS. */
.library-world-branded .library-case-cover-copy strong,
.library-world-branded .library-card-copy h3 {
  font-family: var(--library-world-font);
  font-weight: var(--library-world-weight, 700);
  color: var(--library-world-ink, #f7f6f2);
}
.library-case-cover-copy > .library-world-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85px;
  object-fit: contain;
  object-position: left center;
}
.library-card-copy .library-world-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 30px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 700px) {
  .library-case-cover-copy > .library-world-logo { max-height: 55px; }
  .library-card-copy .library-world-logo { height: 24px; }
}
/* World updates keep the cases quiet until a later release is available. */
.library-world-updates{position:absolute;left:14%;top:12px;z-index:3;display:inline-flex;align-items:center;gap:6px;border:1px solid #ffffff30;border-radius:20px;padding:7px 10px;background:#14171ce8;color:#d4d8d2!important;font:10px/1.1 var(--mono,monospace)!important;box-shadow:0 3px 12px #0003}.library-world-updates.has-new{border-color:#78e9b45a;color:#b5f2d1!important;background:#14241ef0}.library-world-updates i,.library-dock-new{width:5px;height:5px;border-radius:50%;background:#78e9b4;box-shadow:0 0 8px #78e9b440}.library-dock-new{position:absolute;right:8px;top:8px}.library-dock-new[hidden]{display:none}#dock>[data-i]{position:relative}.library-new-pill{display:inline-flex;align-items:center;border:1px solid #78e9b43b;background:#78e9b40b;color:#b5f2d1;border-radius:12px;padding:4px 8px;font:10px/1 var(--mono,monospace);letter-spacing:.04em}.library-update-banner{display:flex;gap:12px;align-items:center;justify-content:flex-start;margin-top:26px;width:100%;padding:16px 20px;background:linear-gradient(100deg,#78e9b40d,#ffffff02);border:1px solid #78e9b42c;border-radius:12px;font-size:13px!important;text-align:left}.library-update-banner>span:last-child{margin-left:auto}.library-refresh,.library-all-updates,.library-update-actions>button:not(.library-cta){border:1px solid #ffffff24;background:#ffffff05;border-radius:9px;padding:10px 14px;font-size:12px!important;min-height:42px}.library-refresh:disabled{opacity:.6;cursor:wait}.library-all-updates{margin:0 0 20px}.library-update-list{display:grid;gap:18px}.library-update-item{display:grid;grid-template-columns:minmax(150px,28%) 1fr;gap:26px;border:1px solid #ffffff14;border-radius:16px;padding:18px;background:#ffffff02;align-items:center}.library-update-item.is-new{border-color:#78e9b43a;background:linear-gradient(110deg,#78e9b407,#ffffff02)}.library-update-item>img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:10px}.library-update-item h3{font-size:22px;letter-spacing:-.03em;margin:10px 0;font-weight:550}.library-update-item p{color:#afb4bc;font-size:13px;line-height:1.7;margin:0 0 14px;max-width:660px}.library-update-item .library-update-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font:10px/1.5 var(--mono,monospace);letter-spacing:.05em;color:#bbc5b5;margin:0}.library-update-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.library-update-actions>span{font-size:11px;color:#919aa6}.library-update-actions .library-cta{gap:8px;min-height:42px;padding:10px 15px}.library-update-source,.library-update-notice{font-size:12px;line-height:1.7;color:#a1a7af;margin:22px 0}.library-update-notice{border:1px solid #d9b87533;padding:12px 16px;border-radius:10px;color:#e3cba4}.library-update-title:focus{outline:none}.library-tabs{flex-wrap:wrap}.library-toolbar{flex-wrap:wrap}@media(max-width:700px){.library-update-item{grid-template-columns:1fr;gap:16px}.library-update-item h3{font-size:21px}.library-updates .library-section-head{align-items:flex-start;flex-direction:column;gap:15px}.library-tabs{justify-content:flex-start}.library-world-updates{padding:6px 8px;top:8px;font-size:9px!important}}
.library-pixel-wave{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:26;contain:strict}.library-preview-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 20px;color:#8d969f;font-size:11px}.library-preview-controls button,.library-badge-preview-note button{background:#ffffff05;border:1px solid #ffffff24;border-radius:8px;padding:10px 13px;font-size:11px;min-height:40px}.library-badge-preview-note{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border:1px dashed #78e9b44a;background:#78e9b407;padding:14px 18px;margin:24px 0;border-radius:12px;color:#b9c5be;font-size:12px}.library-badge-preview-note button{margin-left:auto}.library-case-card .library-open{transform-origin:50% 55%}@media(prefers-reduced-motion:reduce){.library-pixel-wave{display:none}}

/* A thin holographic label, adhered to the front of the collectible case. */
.library .library-case-front:active { transform: translateZ(7px); }
.library-world-updates.has-new {
  left: 7%; top: 13%; width: clamp(48px, 25%, 64px); min-height: 0; aspect-ratio: 1;
  padding: 6px 4px 5px; display: flex; flex-direction: column; justify-content: center; gap: 0;
  border: 1px solid #edfefbd9; border-radius: 4px; overflow: hidden; isolation: isolate;
  color: #133336 !important; transform: translateZ(8px) rotate(-9deg);
  background:
    repeating-linear-gradient(135deg, #ffffff21 0 1px, transparent 1px 4px),
    linear-gradient(115deg, #e4ddd5 0%, #edbbc9 16%, #cec4ed 31%, #8edbd7 46%, #e0f1c8 59%, #eee1d7 72%, #c3d8ea 88%, #e2b9d2 100%);
  background-size: 100% 100%, 210% 100%; background-position: 0 0, 20% 50%;
  box-shadow: inset 0 0 0 1px #ffffff66, 0 1px 1px #06191d99, 0 2px 3px #0003;
  transition: background-position 700ms var(--os-settle), filter 220ms ease;
}
.library-world-updates.has-new::before {
  content: ''; position: absolute; inset: 3px; border: 1px solid #19414745; border-radius: 2px;
  pointer-events: none; z-index: -1;
}
.library-world-updates.has-new::after {
  content: ''; position: absolute; inset: -25%; pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, #fff0 39%, #fff9 46%, #fff0 53%, transparent 65%);
  opacity: .4; transform: translateX(-18%); mix-blend-mode: screen;
  transition: transform 900ms var(--os-settle), opacity 700ms ease;
}
.library-drop-emblem { position: relative; display: block; width: 19px; height: 19px; margin: 0 0 3px; }
.library-drop-star { width: 100%; height: 100%; overflow: visible; shape-rendering: crispEdges; filter: saturate(.55) contrast(1.25); }
.library-drop-label { font: 800 12px/1 var(--mono,monospace); letter-spacing: .12em; text-indent: .12em; text-shadow: 0 1px #ffffff73; }
.library-drop-caption { font: 6px/1.4 var(--mono,monospace); letter-spacing: .05em; color: #173d40; margin-top: 3px; }
.library-drop-rgb { display: flex; gap: 1px; margin-top: 3px; opacity: .85; }
.library-drop-rgb b { width: 7px; height: 1px; background: #b04462; }
.library-drop-rgb b:nth-child(2) { background: #27886c; }
.library-drop-rgb b:nth-child(3) { background: #455fbc; }
.library-drop-spark { display: none; }
.library .library-world-updates.has-new:active { transform: translateZ(8px) rotate(-9deg); filter: brightness(.92); }
.library-world-updates.has-new:focus-visible { outline: 2px solid #efffff; outline-offset: 3px; }
@media (hover:hover) and (pointer:fine) {
  .library-case-stage:hover .library-world-updates.has-new, .library-world-updates.has-new:focus-visible { background-position: 0 0, 90% 50%; }
  .library-case-stage:hover .library-world-updates.has-new::after, .library-world-updates.has-new:focus-visible::after { transform: translateX(20%); opacity: .75; }
}
@media (max-width:700px) {
  .library-world-updates.has-new { top: 15%; left: 8%; width: 46px; padding: 4px; }
  .library-drop-emblem { width: 15px; height: 15px; margin-bottom: 2px; }
  .library-drop-label { font-size: 10px; }
  .library-drop-caption { font-size: 5px; margin-top: 2px; }
  .library-drop-rgb { margin-top: 2px; }
}
@media (prefers-reduced-motion:reduce) {
  .library-world-updates.has-new, .library-world-updates.has-new::after { transition: none; }
  .library-world-updates.has-new::after { transform: none !important; }
}

.library-account-controls{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}.library-account-controls a,.library-account-controls button{display:inline-flex;align-items:center;min-height:40px;padding:9px 14px;border:1px solid #ffffff26;border-radius:9px;background:#ffffff05;color:#d7e7df;font:11px/1.4 var(--mono,monospace);text-decoration:none}.library-account-controls [hidden]{display:none}

/* Library keeps the same compact, legible phone header as the social page. */
@media (max-width:1500px) {
  body:has(#library-scene.on) #hud .clock { display: none; }
}
@media (max-width:600px) {
  body:has(#library-scene.on) #hud .top { display: flex; justify-content: space-between; padding: 0 18px; height: 64px; background: var(--ink); }
  body:has(#library-scene.on) #hud .scname, body:has(#library-scene.on) #hud .right > span { display: none; }
  body:has(#library-scene.on) #hud .right { gap: 8px; white-space: nowrap; }
  body:has(#library-scene.on) #hud .os-profile-launch { padding: 8px 10px; font-size: 10px; }
  body:has(#library-scene.on) #hints { display: none; }
  .library { padding-top: 90px; }
}
