/* Signature themes: each skin reshapes the card into a different object. */
.deco { pointer-events: none; white-space: pre-line; }
.card[class*="skin-"]:not(.skin-none) .deco-head, .card[class*="skin-"]:not(.skin-none) .deco-sub { order: -2; width: 100%; text-align: center; }
.card[class*="skin-"]:not(.skin-none) .deco-foot { order: 20; width: 100%; text-align: center; }

/* Layered mood overlay and textures */
body[data-skin="scrap"] .bg::after, body[data-skin="sumi"] .bg::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='p'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .34 0 0 0 0 .25 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23p)'/%3E%3C/svg%3E"); }

/* Receipt */
.skin-receipt { padding: 22px 22px 30px; box-shadow: none; -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 18px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% 100% / 18px 100%; }
.pulse:has(.skin-receipt) { filter: drop-shadow(0 14px 22px rgba(0,0,0,.55)); }
.skin-receipt .avatar > img:first-child { filter: grayscale(1) contrast(1.2); }
.skin-receipt .deco-head { font-weight: 700; font-size: 13px; line-height: 1.5; padding-bottom: 10px; border-bottom: 1px dashed currentColor; }
.skin-receipt .deco-foot { font-size: 11.5px; letter-spacing: .08em; }
.skin-receipt .deco-barcode { order: 19; width: 78%; height: 42px; background: repeating-linear-gradient(90deg, #1a1a1a 0 2px, transparent 2px 4px, #1a1a1a 4px 7px, transparent 7px 8px, #1a1a1a 8px 9px, transparent 9px 13px); }
.skin-receipt .widget, .skin-receipt .player { border-style: dashed; background: none; }

/* Boarding pass */
.skin-ticket { padding-top: 16px; -webkit-mask: radial-gradient(14px at 0 calc(100% - 76px), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(14px at 100% calc(100% - 76px), #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(14px at 0 calc(100% - 76px), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(14px at 100% calc(100% - 76px), #0000 98%, #000) right / 51% 100% no-repeat; }
.skin-ticket .deco-head { font-size: 12px; font-weight: 700; letter-spacing: .28em; color: #fff; background: var(--accent); margin: -16px -26px 0; width: calc(100% + 52px) !important; padding: 10px; }
.skin-ticket .deco-foot { font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-top: 8px; padding-top: 22px; border-top: 2px dashed rgba(0,0,0,.28); }
.skin-ticket .stats { order: 19; }

/* Broadsheet */
.skin-news { text-align: left; align-items: stretch; padding: 22px 24px; background-image: radial-gradient(rgba(0,0,0,.05) .6px, transparent .7px); background-size: 4px 4px; box-shadow: 0 18px 44px rgba(0,0,0,.6); }
.skin-news .deco-head { font: 400 40px/1 'Gloock', serif; padding-bottom: 8px; border-bottom: 3px double currentColor; overflow-wrap: anywhere; }
.skin-news .deco-sub { font-size: 12.5px; font-style: italic; padding-bottom: 8px; border-bottom: 1px solid currentColor; margin-top: -8px; }
.skin-news .avatar { align-self: center; }
.skin-news .avatar > img:first-child { filter: grayscale(1) contrast(1.15); border-radius: 0; box-shadow: none; }
.skin-news .ident { align-items: center; }
.skin-news .name { text-align: center; }
.skin-news .bio { font-size: 17px; font-style: italic; }
.skin-news .widget, .skin-news .player { background: none; border-width: 1px 0 0; border-radius: 0; }

/* Scrapbook */
.skin-scrap { rotate: -1.4deg; padding: 28px 24px 22px; box-shadow: 0 2px 3px rgba(0,0,0,.2), 0 16px 30px rgba(60,40,10,.35); }
.skin-scrap .avatar { rotate: 3deg; padding: 7px 7px 26px; background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); width: calc(var(--avatar) + 14px); height: calc(var(--avatar) + 33px); }
.skin-scrap .avatar > img:first-child { border-radius: 0; box-shadow: none; }
.tape { position: absolute; width: 96px; height: 28px; background: rgba(240,222,150,.75); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.tape-a { top: -12px; left: -18px; rotate: -32deg; }
.tape-b { top: -12px; right: -18px; rotate: 34deg; }
.skin-scrap .widget, .skin-scrap .player { border-style: dashed; }

/* Museum label */
.skin-museum { align-items: flex-start; text-align: left; padding: 26px 26px 20px; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 12px 30px rgba(0,0,0,.1); }
.skin-museum .avatar { outline: 10px solid #fff; box-shadow: 0 0 0 11px #1d1d1b, 0 16px 26px rgba(0,0,0,.28); align-self: center; margin: 14px 0 22px; }
.skin-museum .avatar > img:first-child { border-radius: 0; box-shadow: none; }
.skin-museum .ident, .skin-museum .name-row { align-items: flex-start; justify-content: flex-start; }
.skin-museum .deco-foot { font-style: italic; font-size: 14px; color: var(--muted); text-align: left !important; }
.skin-museum .badges, .skin-museum .links { justify-content: flex-start; }

/* Blueprint */
.skin-blueprint { border: 1px dashed rgba(230,241,255,.7); outline: 1px solid rgba(230,241,255,.25); outline-offset: 7px; padding: 22px 30px; }
.skin-blueprint .deco-head, .skin-blueprint .deco-foot { font-size: 11.5px; letter-spacing: .14em; color: var(--muted); }
.skin-blueprint .avatar > img:first-child { filter: grayscale(1) sepia(1) hue-rotate(170deg) saturate(2.6); }
.skin-blueprint .widget, .skin-blueprint .player { background: none; border-style: dashed; }
.dim { position: absolute; color: var(--muted); }
.dim-a { left: 0; right: 0; bottom: -24px; height: 10px; border: solid currentColor; border-width: 0 1px 1px; }
.dim-b { top: 0; bottom: 0; right: -24px; width: 10px; border: solid currentColor; border-width: 1px 1px 1px 0; }

/* Desktop 98 */
.skin-os { padding: 40px 18px 16px; border: 2px solid; border-color: #fff #000 #000 #fff; box-shadow: inset -1px -1px #808080, inset 1px 1px #dfdfdf, 6px 6px 0 rgba(0,0,0,.35); }
.deco-title { position: absolute; top: 4px; left: 4px; right: 4px; height: 26px; padding: 4px 8px; font-size: 14px; font-weight: 700; color: #fff; text-align: left; background: linear-gradient(90deg, #000080, #1084d0); }
.deco-btns { position: absolute; top: 7px; right: 9px; font-size: 13px; letter-spacing: 3px; color: #fff; }
.skin-os .widget, .skin-os .player, .skin-os .link, .skin-os .badge { background: #c0c0c0 !important; border: 2px solid !important; border-color: #fff #808080 #808080 #fff !important; border-radius: 0 !important; color: #000; }
.skin-os .avatar > img:first-child { border-radius: 0; box-shadow: inset 0 0 0 2px #808080; }

/* Pocket LCD */
.skin-lcd { padding: 18px; border-radius: 10px 10px 54px 10px; outline: 18px solid #d7d4cb; box-shadow: 0 0 0 19px #a7a39a, 0 28px 40px 18px rgba(0,0,0,.5); background-image: linear-gradient(rgba(47,59,42,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(47,59,42,.07) 1px, transparent 1px); background-size: 3px 3px; }
.skin-lcd .avatar > img:first-child { filter: grayscale(1) contrast(1.4) sepia(.6) hue-rotate(40deg); image-rendering: pixelated; border-radius: 0; box-shadow: 0 0 0 3px var(--text); }
.skin-lcd .deco-head, .skin-lcd .deco-foot { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.skin-lcd .widget, .skin-lcd .player { background: none; border: 2px solid var(--text); border-radius: 0; }

/* Phosphor */
.skin-crt { border: 14px solid #1b1612; box-shadow: inset 0 0 70px rgba(255,176,0,.17), 0 0 0 2px #000, 0 0 50px rgba(255,176,0,.14); text-shadow: 0 0 6px rgba(255,176,0,.55); }
.skin-crt .avatar > img:first-child { filter: sepia(1) saturate(4) hue-rotate(-12deg) contrast(1.15); }
.skin-crt .widget, .skin-crt .player { background: none; border-color: rgba(255,176,0,.4); }

/* Cassette */
.skin-tape { padding: 16px 20px 18px; border: 2px solid #2b2118; box-shadow: 0 16px 34px rgba(0,0,0,.55); background-image: linear-gradient(transparent 0 42px, #e4572e 42px 48px, #f2a65a 48px 54px, #f6d365 54px 60px, transparent 60px); }
.skin-tape .deco-head { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; padding-bottom: 30px; }
.reels { order: 18; width: 66%; height: 46px; background: radial-gradient(circle at 20% 50%, #2b2118 0 7px, #e9dcc3 7px 9px, #2b2118 9px 22px, transparent 22.5px), radial-gradient(circle at 80% 50%, #2b2118 0 7px, #e9dcc3 7px 9px, #2b2118 9px 22px, transparent 22.5px), linear-gradient(#b8a78c, #b8a78c) center / 100% 46px no-repeat; border-radius: 24px; }

/* Comic panel */
body[data-skin="comic"] .bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(#e6232a 1.6px, transparent 1.9px) 0 0 / 11px 11px; opacity: .33; }
.skin-comic { border: 5px solid #111 !important; box-shadow: 12px 12px 0 #111; rotate: .8deg; }
.deco-pow { position: absolute; top: -26px; right: -22px; padding: 16px 20px; font: 400 32px/1 'Bangers', sans-serif; color: #fff; background: #e6232a; rotate: 12deg; -webkit-text-stroke: 1px #111; clip-path: polygon(50% 0, 62% 18%, 84% 6%, 80% 30%, 100% 40%, 82% 54%, 96% 78%, 70% 74%, 60% 100%, 46% 80%, 22% 96%, 26% 70%, 0 62%, 20% 48%, 4% 24%, 30% 26%); }
.skin-comic .widget, .skin-comic .player, .skin-comic .badge, .skin-comic .link { border: 3px solid #111 !important; border-radius: 0 !important; background: #fff; }
.skin-comic .avatar > img:first-child { border-radius: 0; box-shadow: 0 0 0 4px #111; }

/* Chalkboard */
.skin-chalk { border: 16px solid #7a5230; box-shadow: inset 0 0 40px rgba(0,0,0,.45), 0 16px 34px rgba(0,0,0,.5); background-image: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.06), transparent 60%); }
.skin-chalk .avatar > img:first-child { filter: grayscale(1) contrast(1.3) brightness(1.2); }
.skin-chalk .widget, .skin-chalk .player { background: none; border: 2px dashed rgba(244,241,232,.5); }

/* Sumi */
.skin-sumi { background: transparent; }
.skin-sumi .avatar > img:first-child { filter: grayscale(1) contrast(1.35); box-shadow: 0 0 0 2.5px #a4161a; }
.skin-sumi .widget, .skin-sumi .player { background: none; border-width: 0 0 1px; border-radius: 0; }

/* Cathedral: a stained glass arch */
.skin-glass { padding-top: 58px; border: 7px solid #0b0713; box-shadow: 0 0 0 2px #f5c542, 0 0 60px rgba(245,197,66,.25); background: conic-gradient(from 200deg at 50% 18%, #7a1533cc, #1d3f8acc, #0f6b5ccc, #a8710fcc, #6a1b84cc, #7a1533cc), var(--card); background-blend-mode: multiply; }
.skin-glass .avatar > img:first-child { box-shadow: 0 0 0 4px #0b0713, 0 0 0 6px #f5c542; }
.skin-glass .widget, .skin-glass .player { background: rgba(0,0,0,.42); border-color: rgba(245,197,66,.4); }

/* Hologram */
.skin-foil { background: linear-gradient(115deg, #ffb3e6cc, #b3f0ffcc 30%, #d9ffb3cc 50%, #ffe0b3cc 70%, #d0b3ffcc) 0 0 / 300% 300%; animation: foil 9s ease-in-out infinite alternate; box-shadow: 0 16px 50px rgba(120,120,200,.4), inset 0 0 0 1px rgba(255,255,255,.7); }
@keyframes foil { to { background-position: 100% 100%; } }
.skin-foil .widget, .skin-foil .player { background: rgba(255,255,255,.34); border-color: rgba(255,255,255,.7); }

/* Liquid glass */
.skin-liquid { border: 1px solid rgba(255,255,255,.42); box-shadow: inset 0 1px 1px rgba(255,255,255,.75), inset 0 -14px 30px rgba(255,255,255,.08), 0 26px 50px rgba(0,0,0,.35); backdrop-filter: blur(var(--card-blur)) saturate(1.9); -webkit-backdrop-filter: blur(var(--card-blur)) saturate(1.9); }
.skin-liquid .widget, .skin-liquid .player { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); border-radius: 18px; }

/* Event horizon and lava keep the card quiet and let the scene do the work */
.skin-void { box-shadow: 0 0 80px rgba(255,138,60,.14); }
.skin-lava .widget, .skin-lava .player { border-radius: 22px; }

/* Marquee: chasing light bulbs */
.skin-marquee { border: 3px solid #5b1212; padding: 34px 30px 24px; }
.bulbs { position: absolute; inset: 7px; border-radius: 12px; --dot: radial-gradient(circle, #ffd76a 0 3px, rgba(255,215,106,.25) 3.5px 6px, transparent 6.5px); background: var(--dot) 0 0 / 20px 12px repeat-x, var(--dot) 0 100% / 20px 12px repeat-x, var(--dot) 0 0 / 12px 20px repeat-y, var(--dot) 100% 0 / 12px 20px repeat-y; animation: chase .7s steps(2) infinite; }
@keyframes chase { to { background-position: 20px 0, -20px 100%, 0 -20px, 100% 20px; } }

/* ---------- Living Page ---------- */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #22c55e; }
:root.mood-fade { transition: --accent 1.4s ease; }
.bg-mood { position: absolute; inset: -14%; background-size: cover; background-position: center; filter: blur(70px) saturate(1.5); opacity: 0; transition: opacity 1.4s ease; pointer-events: none; }
.bg-mood.on { opacity: .62; }
.bg-filter { transition: filter 1.6s ease; }
body[data-mood="idle"] .bg { filter: saturate(.5) brightness(.8); }
body[data-mood="offline"] .bg { filter: saturate(.35) brightness(.6); }
.bg { transition: filter 1.6s ease; }
.mood-pill { position: fixed; z-index: 25; top: 14px; left: 50%; translate: -50% -60px; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 110px); padding: 7px 14px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.14); border-radius: 99px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: translate .6s cubic-bezier(.16,1,.3,1); white-space: nowrap; }
.mood-pill.on { translate: -50% 0; }
.mood-pill span { overflow: hidden; text-overflow: ellipsis; }
.mood-pill i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 var(--accent); } 100% { box-shadow: 0 0 0 9px transparent; } }
body[data-mood="offline"] .avatar > img:first-child { filter: grayscale(.8) brightness(.8); }
body[data-mood="offline"] .avatar::after { content: 'z z z'; position: absolute; top: -8px; right: -34px; font-size: 14px; font-weight: 700; letter-spacing: 3px; color: var(--text); animation: snooze 3.2s ease-in-out infinite; }
@keyframes snooze { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-16px) scale(1.15); } }

/* ---------- Extras row ---------- */
.extras { position: relative; z-index: 7; order: 7; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.extra-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; color: var(--text); border: 1px solid var(--panel-line); border-radius: var(--radius-in); background: var(--panel); transition: border-color .15s, color .15s; }
.extra-btn svg { width: 14px; height: 14px; }
.extra-btn:hover { color: var(--accent); border-color: var(--accent); }
.falling { position: relative; z-index: 5; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.falling.held { cursor: grabbing; z-index: 6; }

/* ---------- Collectible card ---------- */
.collect { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; align-content: center; gap: 16px; padding: 16px; background: rgba(4,4,8,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-family: var(--font); overflow-y: auto; }
.pack { position: relative; width: min(230px, 56vw); aspect-ratio: 3 / 4.2; color: #fff; border-radius: 10px; background: linear-gradient(135deg, #17172a, #3a2a6e 45%, var(--accent) 120%); box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.2); animation: pack-float 3s ease-in-out infinite; }
.pack::before, .pack::after { content: ''; position: absolute; left: 0; right: 0; height: 14px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 5px, transparent 5px 10px); }
.pack::before { top: 0; } .pack::after { bottom: 0; }
.pack b { display: block; padding: 0 14px; font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.pack small { display: block; margin-top: 8px; font-size: 12px; opacity: .75; }
@keyframes pack-float { 50% { transform: translateY(-8px) rotate(1.5deg); } }
.pack.tearing { animation: pack-shake .7s linear both; }
@keyframes pack-shake { 0%, 100% { transform: none; } 15% { transform: translateX(-7px) rotate(-3deg); } 30% { transform: translateX(7px) rotate(3deg); } 45% { transform: translateX(-9px) rotate(-4deg); } 60% { transform: translateX(9px) rotate(4deg); } 80% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.collect-flash { position: fixed; inset: 0; z-index: 56; background: var(--flash, #fff); pointer-events: none; animation: flash .8s ease-out both; }
@keyframes flash { from { opacity: .95; } to { opacity: 0; } }
.tcg { perspective: 1100px; width: min(300px, 74vw, 46vh); aspect-ratio: 5 / 7; }
.tcg-inner { position: relative; width: 100%; height: 100%; border-radius: 4.5% / 3.2%; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 44px var(--rarity); transform-style: preserve-3d; touch-action: none; animation: tcg-in .9s cubic-bezier(.16,1,.3,1) both; }
@keyframes tcg-in { from { transform: rotateY(180deg) scale(.6); opacity: 0; } }
.tcg canvas { display: block; width: 100%; height: 100%; }
.tcg-holo { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: var(--holo, .35); background: radial-gradient(circle at var(--px, 50%) var(--py, 40%), rgba(255,255,255,.75), transparent 42%), repeating-linear-gradient(115deg, #ff0080 0%, #ffbf00 7%, #39ff14 14%, #00e5ff 21%, #7a00ff 28%, #ff0080 35%); background-size: 100% 100%, 240% 240%; background-position: 0 0, var(--px, 50%) var(--py, 50%); }
.collect-info { text-align: center; font-size: 14.5px; }
.collect-info b { display: block; font-size: 20px; }
.collect-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.collect-actions button { padding: 10px 16px; font-weight: 700; color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; }
.collect-actions button:first-child { color: #0a0a0a; background: #fff; border-color: #fff; }

/* Frames and shadows that sit outside the card need to shrink on phones */
@media (max-width: 480px) {
  .skin-lcd { outline-width: 8px; box-shadow: 0 0 0 9px #a7a39a, 0 16px 24px 8px rgba(0,0,0,.5); }
  .skin-crt { border-width: 8px; }
  .skin-chalk { border-width: 9px; }
  .skin-comic { box-shadow: 6px 6px 0 #111; }
  .tape-a { left: -6px; } .tape-b { right: -6px; }
  .deco-pow { right: -4px; top: -20px; font-size: 24px; }
  .dim { display: none; }
  .skin-ticket .deco-head { margin: -16px -16px 0; width: calc(100% + 32px) !important; }
  .mood-pill { max-width: calc(100vw - 32px); font-size: 12px; }
}

/* Press safety: bigger targets that also cover the gap a hover animation opens up */
.link, .icon-btn, .extra-btn, .hint { position: relative; }
.link::after, .icon-btn::after, .extra-btn::after, .hint::after { content: ''; position: absolute; inset: -6px; }
.links-buttons .link::after { inset: -3px 0; }
.range { height: 22px; }
.links-buttons.hover-lift .link:hover { transform: translateY(-1px); }

/* UID on name hover */
.name-row.has-uid { position: relative; outline-offset: 4px; }
.uid-tip { position: absolute; z-index: 8; left: 50%; bottom: calc(100% + 7px); translate: -50% 5px; padding: 4px 10px; font: 700 12px/1.3 var(--font); letter-spacing: .02em; white-space: nowrap; color: #fff; background: rgba(8,8,10,.94); border: 1px solid rgba(255,255,255,.16); border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s; }
.name-row.has-uid:hover .uid-tip, .name-row.has-uid:focus .uid-tip { opacity: 1; translate: -50% 0; }

/* Ghost Visitors and Hidden Gem */
.ghost-fx { position: fixed; inset: 0; z-index: 20; width: 100%; height: 100%; pointer-events: none; }
.hidden-gem { position: fixed; z-index: 35; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; color: #fff; background: none; border: 0; cursor: pointer; animation: gem-in 5s ease-in-out both; }
.hidden-gem svg { width: 19px; height: 19px; filter: drop-shadow(0 0 6px #7dd3fc) drop-shadow(0 0 13px #c084fc); }
@keyframes gem-in { 0%, 100% { opacity: 0; transform: scale(.4) rotate(-20deg); } 12%, 88% { opacity: 1; transform: scale(1); } 50% { transform: scale(1.25) rotate(8deg); } }
.p-controls .icon-btn::after { inset: -6px -1px; }

/* Smooth play and pause */
.p-play svg { animation: icon-swap .24s cubic-bezier(.16,1,.3,1); }
@keyframes icon-swap { from { opacity: 0; transform: scale(.55) rotate(-30deg); } }
.sound-btn button svg { animation: icon-swap .24s cubic-bezier(.16,1,.3,1); }

/* About me: the second page */
.stage { will-change: opacity, transform; }
.stage.waiting ~ .about-page { display: none; }
.scroll-hint { position: absolute; left: 50%; bottom: 14px; margin-left: -22px; display: grid; place-items: center; width: 44px; height: 44px; color: var(--text); animation: hint-bob 2s ease-in-out infinite; }
.scroll-hint svg { width: 26px; height: 26px; }
.stage.waiting .scroll-hint { display: none; }
@keyframes hint-bob { 50% { transform: translateY(7px); } }
.about-page { position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 70px 16px 90px; color: var(--text); font-family: var(--font); }
.about-inner { width: min(760px, 100%); display: flex; flex-direction: column; gap: 20px; }
.about-title { font: 700 clamp(34px, 7vw, 58px)/1.1 var(--name-font); letter-spacing: -.01em; overflow-wrap: anywhere; }
.about-block, .about-fact, .about-project { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(var(--card-blur)); -webkit-backdrop-filter: blur(var(--card-blur)); }
.about-block { padding: 22px 24px; }
.about-text { font-size: 17px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.about-label { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.about-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.about-fact { padding: 14px 16px; min-width: 0; }
.about-fact small { display: block; font-size: 12.5px; color: var(--muted); }
.about-fact b { display: block; margin-top: 2px; font-size: 18px; overflow-wrap: anywhere; }
.about-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.about-project { display: block; overflow: hidden; min-width: 0; }
a.about-project:hover { border-color: var(--accent); }
.about-project img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.about-project-body { padding: 14px 16px; }
.about-project-body b { display: block; font-size: 16px; overflow-wrap: anywhere; }
.about-project-body p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .8s cubic-bezier(.16,1,.3,1), border-color .2s; }
.reveal.shown { opacity: 1; transform: none; }

/* Live Roblox stats */
.rbx { display: flex; flex-direction: column; gap: 12px; animation: rbx-in .7s ease both; }
@keyframes rbx-in { from { opacity: 0; transform: translateY(18px); } }
.rbx-user, .rbx-game { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(var(--card-blur)); -webkit-backdrop-filter: blur(var(--card-blur)); }
.rbx-user { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.rbx-user img { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--panel); }
.rbx-user-text { flex: 1; min-width: 0; }
.rbx-name { display: block; font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbx-name:hover { color: var(--accent); }
.rbx-status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.rbx-status i { width: 8px; height: 8px; border-radius: 50%; }
.rbx-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.rbx-game { display: flex; gap: 14px; padding: 12px; min-width: 0; transition: border-color .2s, transform .25s cubic-bezier(.16,1,.3,1); }
.rbx-game:hover { border-color: var(--accent); transform: translateY(-2px); }
.rbx-game img { width: 92px; height: 92px; flex: none; object-fit: cover; border-radius: var(--radius-in); }
.rbx-game-body { flex: 1; min-width: 0; }
.rbx-game-name { display: block; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbx-live { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13.5px; font-weight: 700; color: #23a55a; font-variant-numeric: tabular-nums; white-space: pre; }
.rbx-live i { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; animation: rbx-live 1.8s ease-out infinite; }
@keyframes rbx-live { 0% { box-shadow: 0 0 0 0 rgba(35,165,90,.7); } 100% { box-shadow: 0 0 0 8px transparent; } }
.rbx-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 7px; }
.rbx-stat { min-width: 0; }
.rbx-stat b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.rbx-stat small { display: block; font-size: 11.5px; color: var(--muted); }
.rbx-user .rbx-stat { flex: none; text-align: right; }
@media (max-width: 480px) { .rbx-game img { width: 68px; height: 68px; } }

/* Page dots: show which page you are on */
.page-dots { position: fixed; z-index: 30; right: 16px; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 4px; }
.page-dots button { position: relative; display: grid; place-items: center; width: 28px; height: 34px; padding: 0; }
.page-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--text); opacity: .35; transition: height .45s cubic-bezier(.16,1,.3,1), opacity .3s, background .3s; }
.page-dots button.on::before { height: 24px; opacity: 1; background: var(--accent); }
.page-dots button:hover::before { opacity: .85; }
.page-dots span { position: absolute; right: 100%; top: 50%; translate: 6px -50%; padding: 3px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; color: #fff; background: rgba(8,8,10,.9); border-radius: 7px; opacity: 0; pointer-events: none; transition: opacity .15s, translate .15s; }
.page-dots button:hover span, .page-dots button:focus-visible span { opacity: 1; translate: 0 -50%; }
.stage.waiting ~ .page-dots, body:has(.enter:not(.gone)) .page-dots { display: none; }
@media (max-width: 480px) { .page-dots { right: 4px; } }

/* Stop links and images starting a drag, which cancels the click */
.card a, .card img { -webkit-user-drag: none; }

/* Main game */
.about-game { display: flex; align-items: center; gap: 18px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(var(--card-blur)); -webkit-backdrop-filter: blur(var(--card-blur)); min-width: 0; }
a.about-game:hover { border-color: var(--accent); }
.game-art { flex: none; width: 200px; aspect-ratio: 460 / 215; overflow: hidden; border-radius: var(--radius-in); background: var(--panel); }
.game-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-art.tile { display: grid; place-items: center; color: #fff; font-size: 40px; font-weight: 700; }
.game-art.tile svg { width: 42%; height: 62%; }
.about-game-text { min-width: 0; }
.about-game-text small { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.about-game-text b { display: block; font-size: clamp(22px, 4vw, 30px); line-height: 1.15; overflow-wrap: anywhere; }
.about-game-text span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
@media (max-width: 480px) { .about-game { flex-direction: column; align-items: stretch; } .game-art { width: 100%; } }
