:root {
  --accent: #a855f7;
  --text: #ffffff;
  --icon: #ffffff;
  --bgc: #07060b;
  --card-a: .35;
  --card-blur: 12px;
  --radius: 22px;
  --font: 'Inter';
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bgc);
  color: var(--text);
  font-family: var(--font), system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body.custom-cursor, body.custom-cursor * { cursor: var(--cursor-url), auto !important; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.bg { position: fixed; inset: -20px; z-index: 0; background: var(--bgc) center/cover no-repeat; }
.bg video { width: 100%; height: 100%; object-fit: cover; }
.bg.fx-blur { filter: blur(10px); }
.bg.fx-grayscale { filter: grayscale(1); }
.bg.fx-old { filter: sepia(.6) contrast(1.15) saturate(1.2); }
.bg.fx-old::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 4px);
  animation: flicker .15s infinite;
}
.bg.fx-invert { filter: invert(1) hue-rotate(180deg); }
@keyframes flicker { 50% { opacity: .8; } }
.dim { position: fixed; inset: 0; z-index: 1; background: #000; opacity: .3; pointer-events: none; }
.bg-default {
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 45%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 50%),
    var(--bgc);
}

.enter {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; cursor: pointer;
  background: rgba(0, 0, 0, var(--enter-dim, .55)); backdrop-filter: blur(var(--enter-blur, 22px)); -webkit-backdrop-filter: blur(var(--enter-blur, 22px));
  transition: opacity .7s ease, visibility .7s, transform .7s ease, filter .7s ease;
}
.enter-in { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 20px; text-align: center; }
.enter-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent), 0 0 40px var(--accent); animation: float 3s ease-in-out infinite; }
.enter-text { font-size: var(--enter-size, 18px); font-weight: 600; letter-spacing: .04em; text-shadow: 0 0 20px var(--accent); display: inline-block; }
.ea-pulse .enter-text { animation: pulse 2s ease-in-out infinite; }
.ea-blink .enter-text { animation: blink 1.1s steps(1) infinite; }
.ea-float .enter-text { animation: float 2.6s ease-in-out infinite; }
.ea-glow .enter-text { animation: glowB 2.4s ease-in-out infinite; }
.ea-glitch .enter-text { position: relative; animation: glitch 2.2s infinite steps(2); }
.ea-wave .enter-text span { display: inline-block; animation: wave 1.6s ease-in-out infinite; }
.enter.out { opacity: 0; visibility: hidden; }
.enter.out.ex-zoom { transform: scale(1.4); }
.enter.out.ex-slide { transform: translateY(-100%); opacity: 1; }
.enter.out.ex-blur { filter: blur(30px); }
@keyframes pulse { 50% { opacity: .45; } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes glowB { 50% { text-shadow: 0 0 6px var(--accent), 0 0 40px var(--accent), 0 0 80px var(--accent); } }

.stage {
  position: relative; z-index: 5; height: 100%; overflow-y: auto; display: flex;
  align-items: flex-start; justify-content: center; padding: 60px 16px 80px;
}
.card {
  width: 100%; max-width: 560px; text-align: center; padding: 38px 30px 28px; border-radius: var(--radius);
  background: rgba(0, 0, 0, var(--card-a));
  backdrop-filter: blur(var(--card-blur)); -webkit-backdrop-filter: blur(var(--card-blur));
  transition: transform .25s ease-out, opacity .8s ease, translate .8s ease;
  margin: auto 0;
}
.card.border { border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent) inset; }
.card.minimal { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: none; box-shadow: none; }
.card.pre { opacity: 0; translate: 0 24px; }

.avatar-wrap { width: 118px; height: 118px; margin: 0 auto 16px; border-radius: 50%; position: relative; }
.avatar-wrap::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%; z-index: -1;
  background: conic-gradient(var(--accent), transparent 40%, var(--accent) 70%, transparent);
  animation: spin 6s linear infinite; filter: blur(2px); opacity: .9;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #111; border: 3px solid rgba(0, 0, 0, .4); }

.name { font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; position: relative; display: inline-block; word-break: break-word; }
.name.fx-glow { text-shadow: 0 0 6px var(--accent), 0 0 22px var(--accent), 0 0 44px color-mix(in srgb, var(--accent) 50%, transparent); }
.name.fx-rainbow {
  background: linear-gradient(90deg, #ff5f6d, #ffc371, #47e891, #4facfe, #a855f7, #ff5f6d); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow 4s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, .25));
}
@keyframes rainbow { to { background-position: 300% 0; } }
.name.fx-sparkle { text-shadow: 0 0 12px var(--accent); }
.spark { position: absolute; pointer-events: none; color: #fff; font-size: 12px; animation: spark 1.2s ease-out forwards; text-shadow: 0 0 8px var(--accent); }
@keyframes spark { 0% { opacity: 0; transform: scale(0) rotate(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.2) rotate(140deg) translateY(-10px); } }
.name.fx-glitch::before, .name.fx-glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: .8; }
.name.fx-glitch::before { color: #0ff; animation: glitch 2.4s infinite steps(2); clip-path: inset(0 0 55% 0); }
.name.fx-glitch::after { color: #f0f; animation: glitch 1.9s infinite reverse steps(2); clip-path: inset(50% 0 0 0); }
@keyframes glitch { 0%, 88%, 100% { transform: none; } 90% { transform: translate(-3px, 1px); } 94% { transform: translate(3px, -1px); } 97% { transform: translate(-1px, 2px); } }
.caret::after { content: '|'; margin-left: 2px; animation: blink 1s steps(1) infinite; font-weight: 300; }
@keyframes blink { 50% { opacity: 0; } }

.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.badges:empty { display: none; }
.badge {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); transition: .2s;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .6);
}
.badge svg, .badge img { width: 24px; height: 24px; }
@media (max-width: 520px) { .badge { width: 36px; height: 36px; border-radius: 11px; } .badge svg, .badge img { width: 21px; height: 21px; } }
.badge:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .12); }
.badge .tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); white-space: nowrap;
  background: rgba(10, 10, 14, .95); border: 1px solid rgba(255, 255, 255, .1); padding: 6px 10px; border-radius: 8px;
  font-size: 12px; opacity: 0; pointer-events: none; transition: .15s; z-index: 5; text-align: left;
}
.badge .tip small { display: block; color: #a1a1aa; font-size: 11px; }
.badge:hover .tip { opacity: 1; transform: translateX(-50%); }

.desc { margin-top: 10px; font-size: 16px; opacity: .9; white-space: pre-line; min-height: 1.5em; line-height: 1.5; }
.meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; opacity: .65; }
.meta:empty { display: none; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 14px; height: 14px; }

.discord {
  display: flex; align-items: center; gap: 12px; margin: 20px auto 0; padding: 12px; text-align: left;
  border-radius: calc(var(--radius) * .7); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); max-width: 420px;
}
.dc-av { position: relative; width: 54px; height: 54px; flex: none; }
.dc-av img { width: 100%; height: 100%; border-radius: 50%; }
.dc-dot { position: absolute; right: -1px; bottom: -1px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #18161f; background: #80848e; }
.dc-dot.online { background: #23a55a; } .dc-dot.idle { background: #f0b232; } .dc-dot.dnd { background: #f23f43; }
.dc-body { min-width: 0; flex: 1; }
.dc-name { font-weight: 700; font-size: 15px; display: flex; gap: 6px; align-items: baseline; }
.dc-name small { font-weight: 500; opacity: .5; font-size: 12px; }
.dc-act { font-size: 13px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-art { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; }
.dc-hint { font-size: 12px; opacity: .6; }

.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.socials:empty { display: none; }
.social { width: 34px; height: 34px; display: grid; place-items: center; transition: transform .2s; cursor: pointer; background: none; border: 0; }
.social svg { width: 30px; height: 30px; fill: var(--icon); transition: .2s; }
.socials.glow .social svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--icon) 70%, transparent)); }
.social:hover { transform: translateY(-3px) scale(1.08); }
.social:hover svg { fill: var(--accent); filter: drop-shadow(0 0 10px var(--accent)); }

.links { display: grid; gap: 10px; margin-top: 22px; }
.links:empty { display: none; }
.link {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px;
  border-radius: calc(var(--radius) * .6); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  font-weight: 600; font-size: 15px; transition: .2s; position: relative; overflow: hidden;
}
.link::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); translate: -100% 0; transition: .6s; }
.link:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: 0 0 24px -6px var(--accent); }
.link:hover::before { translate: 100% 0; }
.link img { width: 18px; height: 18px; border-radius: 4px; }

.views {
  display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px;
  font-size: 13px; font-weight: 600; color: var(--text); opacity: .7; font-variant-numeric: tabular-nums;
}
.views svg { width: 15px; height: 15px; }
.card.lay-split .views { grid-column: 1 / -1; justify-content: flex-start; }
.card.lay-compact .views { justify-content: flex-start; }
.card.lay-portfolio .views { justify-content: flex-start; padding: 0 40px; margin-top: 26px; }
@media (max-width: 640px) { .card.lay-portfolio .views { padding: 0 20px; justify-content: center; } .card.lay-compact .views { justify-content: center; } }
.player {
  position: fixed; top: 16px; left: 16px; z-index: 6; display: flex; align-items: center; gap: 10px;
  padding: 7px 12px 7px 7px; border-radius: 99px; background: rgba(0, 0, 0, .45); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .1); max-width: calc(100vw - 32px);
}
.pbtn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--accent); display: grid; place-items: center; cursor: pointer; flex: none; color: #fff; }
.pbtn svg { width: 14px; height: 14px; fill: currentColor; }
.ptitle { width: 130px; overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ptitle span { display: inline-block; padding-left: 100%; animation: marquee 10s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.player input[type=range] { width: 80px; accent-color: var(--accent); }
.made { position: fixed; right: 16px; bottom: 14px; z-index: 6; font-size: 12px; font-weight: 700; opacity: .4; letter-spacing: .06em; transition: .2s; }
.made:hover { opacity: .9; }
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 60; transform: translate(-50%, 20px); opacity: 0;
  padding: 10px 16px; border-radius: 12px; background: rgba(15, 15, 20, .95); border: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px; transition: .25s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 520px) {
  .card { padding: 30px 18px 22px; }
  .name { font-size: 28px; }
  .avatar-wrap { width: 100px; height: 100px; }
  .ptitle { width: 90px; }
  .player input[type=range] { width: 60px; }
}


.bg.fx-vivid { filter: saturate(1.6) contrast(1.08); }
.bg.fx-hue { animation: hue 14s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg); } }
.bg.fx-zoom { animation: kenburns 30s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.15) translate(-2%, -1%); } }
.bg.fx-parallax { transition: transform .2s ease-out; inset: -40px; }
.bgfx { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.bgfx.fx-vignette { background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .85) 100%); }
.bgfx.fx-scanlines { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); }
.bgfx.fx-grain::before {
  content: ''; position: absolute; inset: -100%; opacity: .14; animation: grain 1s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-7%, 2%); } 80% { transform: translate(3%, 5%); } 100% { transform: translate(0, 0); } }

.name.fx-gradient { background: linear-gradient(120deg, #fff, var(--accent) 60%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.name.fx-neon { color: #fff; text-shadow: 0 0 4px #fff, 0 0 12px var(--accent), 0 0 28px var(--accent), 0 0 52px var(--accent); animation: neon 4s infinite; }
@keyframes neon { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .55; text-shadow: none; } }
.name.fx-wave span { display: inline-block; animation: wave 1.8s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-6px); } }
.name.fx-shadow3d { text-shadow: 1px 1px 0 var(--accent), 2px 2px 0 var(--accent), 3px 3px 0 color-mix(in srgb, var(--accent) 70%, #000), 4px 4px 0 color-mix(in srgb, var(--accent) 50%, #000), 6px 8px 14px rgba(0, 0, 0, .6); }
.name.fx-outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 60%, transparent); }

.desc.dx-glow { text-shadow: 0 0 10px var(--accent), 0 0 24px color-mix(in srgb, var(--accent) 50%, transparent); }
.desc.dx-gradient { background: linear-gradient(90deg, var(--text), var(--accent), var(--text)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow 6s linear infinite; }
.desc.dx-wave span { display: inline-block; animation: wave 2.2s ease-in-out infinite; white-space: pre; }
.desc.dx-fade { transition: opacity .6s ease, transform .6s ease; }
.desc.dx-fade.out { opacity: 0; transform: translateY(6px); }
.desc.dx-reveal span { opacity: 0; display: inline-block; filter: blur(6px); transform: translateY(6px); transition: opacity .5s, filter .5s, transform .5s; white-space: pre; }
.desc.dx-reveal span.in { opacity: 1; filter: none; transform: none; }
.desc.dx-decode { font-family: ui-monospace, 'JetBrains Mono', monospace; letter-spacing: .02em; }

.socials.brand .social svg { fill: var(--brand, var(--icon)); }
.socials.brand.glow .social svg { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--brand, var(--icon)) 70%, transparent)); }
.link .host { display: block; font-size: 11px; font-weight: 500; opacity: .55; margin-top: 2px; letter-spacing: .02em; }
.link .lt { display: flex; flex-direction: column; align-items: center; min-width: 0; }

.banner { height: 150px; margin: -38px -30px 0; border-radius: var(--radius) var(--radius) 0 0; background: center/cover no-repeat; position: relative; }
.banner:not(.hidden) + .card-main .avatar-wrap { margin-top: -60px; }
.banner:not(.hidden) + .card-main .avatar { border-color: rgba(0, 0, 0, .7); }

.card.lay-split { max-width: 920px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; text-align: left; align-items: center; }
.card.lay-split .banner { grid-column: 1 / -1; }
.card.lay-split .avatar-wrap { margin-left: 0; }
.card.lay-split .badges, .card.lay-split .meta, .card.lay-split .socials { justify-content: flex-start; }
.card.lay-split .card-side .discord { margin-top: 0; }
.card.lay-compact { max-width: 620px; text-align: left; padding: 22px 24px; }
.card.lay-compact .card-main { display: flex; gap: 20px; align-items: center; }
.card.lay-compact .avatar-wrap { width: 86px; height: 86px; margin: 0; flex: none; }
.card.lay-compact .name { font-size: 26px; }
.card.lay-compact .badges, .card.lay-compact .meta { justify-content: flex-start; }
.card.lay-compact .socials { justify-content: flex-start; margin-top: 16px; }
.card.lay-compact .links { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.card.lay-compact .banner { margin: -22px -24px 16px; height: 110px; }
.card.lay-compact .banner:not(.hidden) + .card-main .avatar-wrap { margin-top: -50px; }

.card.lay-portfolio { max-width: 1060px; text-align: left; padding: 0 0 34px; overflow: hidden; }
.card.lay-portfolio .banner { margin: 0; height: 230px; border-radius: var(--radius) var(--radius) 0 0; }
.card.lay-portfolio .card-main { display: flex; gap: 26px; align-items: flex-start; padding: 0 40px; margin-top: 30px; }
.card.lay-portfolio .banner:not(.hidden) + .card-main { margin-top: 0; }
.card.lay-portfolio .banner:not(.hidden) + .card-main .avatar-wrap { margin-top: -66px; }
.card.lay-portfolio .banner:not(.hidden) + .card-main .card-head { padding-top: 16px; }
.card.lay-portfolio .avatar-wrap { width: 132px; height: 132px; margin: 0; flex: none; }
.card.lay-portfolio .name { font-size: 40px; }
.card.lay-portfolio .badges, .card.lay-portfolio .meta { justify-content: flex-start; }
.card.lay-portfolio .card-side { display: none; }
.card.lay-portfolio.pf-center .card-main { flex-direction: column; align-items: center; text-align: center; }
.card.lay-portfolio.pf-center .card-main .badges, .card.lay-portfolio.pf-center .card-main .meta { justify-content: center; }
.portfolio { padding: 6px 40px 0; display: grid; gap: 30px; margin-top: 18px; }
.pf-headline { font-size: 19px; font-weight: 600; opacity: .9; margin-top: 6px; }
.pf-sec h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .16em; opacity: .55; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.pf-sec h2::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
.pf-about { font-size: 16px; line-height: 1.7; opacity: .9; white-space: pre-line; max-width: 75ch; }
.pf-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-skill { padding: 7px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.pf-grid { display: grid; grid-template-columns: repeat(var(--pf-cols, 2), minmax(0, 1fr)); gap: 16px; align-items: start; }
.pf-card { border-radius: calc(var(--radius) * .7); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; text-align: left; }
.pf-card[data-href] { cursor: pointer; }
.pf-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px var(--accent); }
.pf-glass .pf-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.pf-solid .pf-card { background: color-mix(in srgb, var(--bgc) 70%, #fff 6%); border: 1px solid transparent; }
.pf-outline .pf-card { background: transparent; border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.pf-card:hover { border-color: var(--accent); }
.pf-img { aspect-ratio: 16 / 9; background: rgba(255, 255, 255, .04) center/cover no-repeat; }
.pf-body { padding: 16px 18px 18px; }
.pf-body b { display: block; font-size: 17px; margin-bottom: 6px; }
.pf-body p { font-size: 14px; opacity: .75; line-height: 1.55; }
.pf-body .host { display: inline-block; margin-top: 10px; font-size: 12px; opacity: .55; }
.portfolio .socials { justify-content: flex-start; margin-top: 0; }
.portfolio .links { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.portfolio .discord { margin: 0; max-width: 460px; }

.leave { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px); animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.leave-box { width: 100%; max-width: 460px; padding: 26px; border-radius: 20px; background: #121019; border: 1px solid rgba(255, 255, 255, .12); color: #f4f2fa; font-family: 'Inter', system-ui, sans-serif; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); animation: pop .25s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.leave-box h2 { font-size: 20px; margin-bottom: 6px; }
.leave-sub { font-size: 14px; color: #a39fb3; margin-bottom: 14px; }
.leave-url { font-family: ui-monospace, 'JetBrains Mono', monospace; font-size: 13.5px; padding: 12px 14px; border-radius: 12px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .1); word-break: break-all; line-height: 1.5; color: #8b86a0; user-select: all; }
.leave-url b { color: #fff; font-weight: 700; background: rgba(168, 85, 247, .25); padding: 1px 4px; border-radius: 4px; }
.leave-warn { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(244, 63, 94, .12); border: 1px solid rgba(244, 63, 94, .35); color: #fda4af; font-size: 13px; }
.leave-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.lbtn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 12px; border: 0; font: 600 14px 'Inter', system-ui, sans-serif; cursor: pointer; background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; }
.lbtn.ghost { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.leave-adult { text-align: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.adult-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #f43f5e; color: #f43f5e; font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.leave-adult p { font-size: 14px; color: #c9c4d6; }

@media (max-width: 820px) {
  .card.lay-split { grid-template-columns: 1fr; text-align: center; }
  .card.lay-split .avatar-wrap { margin: 0 auto 16px; }
  .card.lay-split .badges, .card.lay-split .meta, .card.lay-split .socials { justify-content: center; }
  .card.lay-portfolio .card-main { flex-direction: column; align-items: center; text-align: center; padding: 0 20px; }
  .card.lay-portfolio .badges, .card.lay-portfolio .meta { justify-content: center; }
  .portfolio { padding: 6px 20px 0; }
  .pf-grid { grid-template-columns: 1fr; }
  .card.lay-portfolio .banner { height: 160px; }
}
@media (max-width: 520px) {
  .banner { margin: -30px -18px 0; height: 120px; }
  .card.lay-compact .card-main { flex-direction: column; text-align: center; }
  .card.lay-compact .badges, .card.lay-compact .meta, .card.lay-compact .socials { justify-content: center; }
  .card.lay-compact .avatar-wrap { margin: 0 auto; }
}

.stage.tilt { perspective: 1000px; }

/* ---------- FiveM layout (built on the portfolio layout) ---------- */
.portfolio.fm .fm-grid { --pf-cols: 2; }
.fm-server { padding: 16px 18px 18px; gap: 10px; }
.fm-top { display: flex; align-items: center; gap: 12px; }
.fm-logo { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, .04)) center/cover no-repeat; border: 1px solid rgba(255, 255, 255, .12); }
.fm-head { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fm-head b { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-when { font-size: 12.5px; opacity: .6; }
.fm-live { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px;
  color: #4ade80; background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .35); }
.fm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-role, .fm-dept { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 8px; }
.fm-role { background: color-mix(in srgb, var(--accent) 18%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.fm-dept { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.fm-desc { font-size: 14px; opacity: .75; line-height: 1.55; }
.fm-server .host { font-size: 12px; opacity: .55; }
.fm-server:not(.is-current) .fm-logo { filter: saturate(.6); }
.fm-chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.fm-char { padding: 12px 14px; border-radius: calc(var(--radius) * .6); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 2px; }
.fm-char b { font-size: 15px; }
.fm-char span { font-size: 13px; opacity: .65; }
@media (max-width: 640px) { .portfolio.fm .fm-grid { --pf-cols: 1; } }
