:root{
  --bg:#000000;
  --fg:#ffffff;
  --surface:color-mix(in srgb,var(--fg) 4%,var(--bg));
  --surface-2:color-mix(in srgb,var(--fg) 8%,var(--bg));
  --dim:color-mix(in srgb,var(--fg) 55%,transparent);
  --line:color-mix(in srgb,var(--fg) 13%,transparent);
  --line-strong:color-mix(in srgb,var(--fg) 26%,transparent);
  --display:"Space Grotesk",-apple-system,BlinkMacSystemFont,sans-serif;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  color-scheme:dark;
}
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]){
    --bg:#ffffff;
    --fg:#000000;
    color-scheme:light;
  }
}
:root[data-theme="light"]{
  --bg:#ffffff;
  --fg:#000000;
  color-scheme:light;
}

*,*::before,*::after{
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}
::selection{
  background:var(--fg);
  color:var(--bg);
}
html{
  overflow-x:clip;
  scroll-padding-top:env(safe-area-inset-top,0px);
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--fg);
  font-family:var(--sans);
  font-size:15.5px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
[hidden]{display:none!important}
:focus:not(:focus-visible){outline:none}
a:focus-visible,button:focus-visible,input:focus-visible{
  outline:1.5px solid var(--fg);
  outline-offset:3px;
}

/* Subtle pure-monochrome top glow (no grid) */
.ambient-glow{
  position:fixed;
  top:-24%;
  left:50%;
  transform:translateX(-50%);
  width:min(900px,120vw);
  height:480px;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(50% 50% at 50% 35%,color-mix(in srgb,var(--fg) 7%,transparent),transparent 74%);
}

.wrap{
  max-width:1080px;
  margin:0 auto;
  padding-block:0 112px;
  padding-left:max(24px,env(safe-area-inset-left,0px));
  padding-right:max(24px,env(safe-area-inset-right,0px));
}

/* ---------- Top Header (Smooth Scrollable Tab Bar) ---------- */
header{
  position:relative;
  z-index:20;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:9px 12px;
  margin:20px 0 60px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
}
.brand-btn{
  display:inline-flex;
  align-items:center;
  gap:11px;
  background:none;
  border:0;
  color:var(--fg);
  font:inherit;
  text-align:left;
  padding:2px 6px 2px 3px;
  border-radius:12px;
  cursor:pointer;
  touch-action:manipulation;
  user-select:none;
  flex:none;
}
.av{
  position:relative;
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  flex:none;
}
.av .photo{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  display:block;
  background:var(--surface-2);
}
.av .deco{
  position:absolute;
  left:50%;
  top:50%;
  width:124%;
  height:124%;
  max-width:none;
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.av .fb{
  width:100%;
  height:100%;
  border-radius:50%;
  border:1px solid var(--line-strong);
  background:var(--surface-2);
  display:grid;
  place-items:center;
}
.av .fb::after{
  content:"";
  width:11px;
  height:11px;
  border-radius:50%;
  border:1.5px solid var(--dim);
}
.av .presence{
  position:absolute;
  right:-2px;
  bottom:-2px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--bg);
  display:grid;
  place-items:center;
}

/* Monochrome geometric presence dots */
.dot{
  display:inline-block;
  width:8.5px;
  height:8.5px;
  border-radius:50%;
  flex:none;
  border:1.5px solid var(--dim);
  background:transparent;
}
.dot.online{
  background:var(--fg);
  border-color:var(--fg);
}
.dot.idle{
  background:linear-gradient(90deg,var(--fg) 50%,transparent 50%);
  border-color:var(--fg);
}
.dot.dnd{
  background:var(--fg);
  border-color:var(--fg);
  box-shadow:inset 0 0 0 2px var(--bg);
}
.dot.offline{
  border-color:var(--dim);
}

.brand-meta{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.brand-name{
  font-family:var(--display);
  font-weight:700;
  font-size:15px;
  line-height:1.15;
  letter-spacing:-.02em;
}
.brand-handle{
  font-family:var(--mono);
  font-size:11.5px;
  color:var(--dim);
  line-height:1.2;
}

.hr{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  flex:0 1 auto;
}
header nav{
  display:flex;
  align-items:center;
  gap:4px;
  background:var(--surface-2);
  padding:4px;
  border-radius:12px;
  border:1px solid var(--line);
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
  max-width:100%;
}
header nav::-webkit-scrollbar{
  display:none;
}
header nav button{
  background:none;
  border:0;
  color:var(--dim);
  font-family:var(--sans);
  font-size:13.5px;
  font-weight:500;
  padding:6.5px 14px;
  border-radius:8.5px;
  cursor:pointer;
  touch-action:pan-x manipulation;
  user-select:none;
  transition:color .16s,background .16s;
  white-space:nowrap;
  flex:none;
  scroll-snap-align:center;
}
header nav button:hover{color:var(--fg)}
header nav button.on{
  color:var(--bg);
  background:var(--fg);
  font-weight:600;
}

.theme{
  background:var(--surface-2);
  border:1px solid var(--line);
  color:var(--dim);
  width:35px;
  height:35px;
  border-radius:10px;
  cursor:pointer;
  touch-action:manipulation;
  user-select:none;
  display:grid;
  place-items:center;
  padding:0;
  flex:none;
  transition:color .16s,border-color .16s;
}
.theme:hover{
  color:var(--fg);
  border-color:var(--line-strong);
}
.theme svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* ---------- Views ---------- */
.view{display:none}
.view.on{display:block;animation:viewIn .3s cubic-bezier(.22,1,.36,1)}
@keyframes viewIn{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:none}
}

/* ---------- Home Asymmetric Split Hero ---------- */
.hero-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
  padding-top:10px;
}
@media (min-width:880px){
  .hero-grid{
    grid-template-columns:1.28fr 1fr;
    gap:56px;
    padding-top:24px;
  }
}

.live-pill{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:6px 13px;
  border-radius:999px;
  background:var(--surface);
  border:1px solid var(--line);
  font-size:13px;
  color:var(--dim);
  margin:0 0 20px;
  max-width:100%;
}
.live-pill span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--fg);
  font-weight:500;
}

.hero-title{
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(56px,14vw,112px);
  line-height:.94;
  letter-spacing:-.045em;
  margin:0 0 16px;
  background:linear-gradient(180deg,var(--fg) 45%,color-mix(in srgb,var(--fg) 42%,transparent));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  width:fit-content;
  max-width:100%;
}
.hero-subline{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--mono);
  font-size:13.5px;
  color:var(--dim);
  margin:0 0 24px;
}
.hero-subline .tag-chip{
  padding:3px 9px;
  border-radius:6px;
  background:var(--surface-2);
  border:1px solid var(--line);
  color:var(--fg);
  font-weight:500;
  font-size:12.5px;
}

.hero-bio{
  font-size:clamp(17px,2vw,19.5px);
  line-height:1.65;
  color:var(--dim);
  margin:0 0 32px;
  max-width:44ch;
}
.hero-bio strong{
  color:var(--fg);
  font-weight:600;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:11px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:11px 19px;
  border-radius:11px;
  font-family:var(--sans);
  font-size:14.5px;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  touch-action:manipulation;
  user-select:none;
  border:1px solid var(--line-strong);
  background:var(--surface);
  color:var(--fg);
  transition:transform .16s ease,border-color .16s,background .16s,color .16s;
}
.btn:hover{
  transform:translateY(-1.5px);
  border-color:var(--fg);
  background:var(--surface-2);
}
.btn:active{transform:scale(.98)}
.btn-primary{
  background:var(--fg);
  border-color:var(--fg);
  color:var(--bg);
}
.btn-primary:hover{
  background:color-mix(in srgb,var(--fg) 88%,var(--bg));
  border-color:color-mix(in srgb,var(--fg) 88%,var(--bg));
  color:var(--bg);
}
.btn svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Interactive Identity Deck (Monochrome) */
.deck-wrap{
  perspective:1000px;
}
.identity-deck{
  position:relative;
  background:var(--surface);
  border:1px solid var(--line-strong);
  border-radius:22px;
  padding:24px;
  transform-style:preserve-3d;
  transition:transform .25s ease,border-color .25s ease;
  overflow:hidden;
}
.identity-deck::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(280px circle at var(--gx,75%) var(--gy,20%),color-mix(in srgb,var(--fg) 9%,transparent),transparent 70%);
  pointer-events:none;
}
.deck-top{
  display:flex;
  align-items:center;
  gap:16px;
  padding-bottom:20px;
  border-bottom:1px solid var(--line);
}
.deck-av{
  position:relative;
  width:72px;
  height:72px;
  flex:none;
  display:grid;
  place-items:center;
}
.deck-av .photo{
  width:100%;
  height:100%;
  border-radius:18px;
  object-fit:cover;
  background:var(--surface-2);
}
.deck-av .fb{
  width:100%;
  height:100%;
  border-radius:18px;
  background:var(--surface-2);
  border:1px solid var(--line-strong);
  display:grid;
  place-items:center;
}
.deck-av .fb::after{
  content:"";
  width:20px;
  height:20px;
  border-radius:50%;
  border:2px solid var(--dim);
}
.deck-av .deco{
  position:absolute;
  left:50%;
  top:50%;
  width:124%;
  height:124%;
  max-width:none;
  transform:translate(-50%,-50%);
  pointer-events:none;
}
.deck-av .presence{
  position:absolute;
  right:-4px;
  bottom:-4px;
  width:17px;
  height:17px;
  border-radius:50%;
  background:var(--bg);
  display:grid;
  place-items:center;
}
.deck-av .presence .dot{
  width:10.5px;
  height:10.5px;
}
.deck-who{
  min-width:0;
  flex:1;
}
.deck-who h2{
  font-family:var(--display);
  font-weight:700;
  font-size:21px;
  line-height:1.15;
  margin:0 0 4px;
  letter-spacing:-.025em;
}
.deck-handle-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.deck-handle{
  font-family:var(--mono);
  font-size:13px;
  color:var(--dim);
}
.mini-copy{
  background:var(--surface-2);
  border:1px solid var(--line);
  color:var(--fg);
  font-family:var(--mono);
  font-size:11px;
  padding:2.5px 8px;
  border-radius:6px;
  cursor:pointer;
  touch-action:manipulation;
  user-select:none;
  transition:border-color .15s,background .15s,color .15s;
}
.mini-copy:hover{
  background:var(--fg);
  color:var(--bg);
  border-color:var(--fg);
}

.deck-rows{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-top:18px;
}
.deck-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:11px 14px;
  border-radius:11px;
  background:var(--surface-2);
  border:1px solid var(--line);
  font-size:13.5px;
}
.deck-row-label{
  color:var(--dim);
  font-size:12.5px;
  flex:none;
}
.deck-row-val{
  font-weight:500;
  text-align:right;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* ---------- Section Headers ---------- */
.sec-head{
  margin:0 0 36px;
}
.sec-head h1{
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(40px,8.5vw,70px);
  line-height:.98;
  letter-spacing:-.04em;
  margin:0 0 12px;
}
.sec-head p{
  color:var(--dim);
  font-size:17px;
  margin:0;
  max-width:52ch;
}

/* ---------- Projects Grid ---------- */
.projs{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}
@media (min-width:760px){
  .projs{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
  }
}
.proj{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:18px;
  padding:26px;
  transition:border-color .18s ease,transform .18s ease;
}
.proj:hover{
  border-color:var(--line-strong);
  transform:translateY(-2px);
}
.proj-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.proj-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-family:var(--mono);
  font-size:11.5px;
  padding:4px 9px;
  border-radius:7px;
  background:var(--surface-2);
  border:1px solid var(--line);
  color:var(--dim);
}
.proj-badge.wip{
  color:var(--fg);
  border-style:dashed;
  border-color:var(--line-strong);
}
.proj h3{
  font-family:var(--display);
  font-weight:700;
  font-size:22px;
  line-height:1.22;
  letter-spacing:-.025em;
  margin:0 0 9px;
}
.proj p{
  margin:0 0 22px;
  color:var(--dim);
  font-size:15px;
  line-height:1.6;
}
.proj .acts{
  display:flex;
  align-items:center;
  gap:14px;
}
.proj .acts a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:14px;
  font-weight:600;
  color:var(--fg);
  text-decoration:none;
  padding:8.5px 14px;
  border-radius:9.5px;
  background:var(--surface-2);
  border:1px solid var(--line);
  touch-action:manipulation;
  transition:border-color .16s,background .16s,color .16s;
}
.proj .acts a:hover{
  border-color:var(--fg);
  background:var(--fg);
  color:var(--bg);
}
.proj .acts a svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
}

/* ---------- Manhwa Section ---------- */
.manhwa-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin:0 0 24px;
  padding:11px 15px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:15px;
}
.toolbar-left{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:13.5px;
  color:var(--dim);
}
.toolbar-left button{
  background:var(--surface-2);
  border:1px solid var(--line);
  color:var(--fg);
  font:inherit;
  font-size:13px;
  font-weight:600;
  padding:5px 11px;
  border-radius:8px;
  cursor:pointer;
  touch-action:manipulation;
  transition:border-color .15s,background .15s,color .15s;
}
.toolbar-left button:hover:not(:disabled){
  background:var(--fg);
  color:var(--bg);
  border-color:var(--fg);
}
.toolbar-left button:disabled{opacity:.4;cursor:default}

.filter-box{
  position:relative;
  flex:1 1 220px;
  max-width:300px;
}
.filter-box input{
  width:100%;
  background:var(--surface-2);
  border:1px solid var(--line);
  color:var(--fg);
  font:inherit;
  font-size:13.5px;
  padding:7px 12px;
  border-radius:9.5px;
}
.filter-box input::placeholder{color:var(--dim)}
.filter-box input:focus{border-color:var(--fg);outline:none}

.grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px 16px;
}
@media (min-width:580px){.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 20px}}
@media (min-width:860px){.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:30px 22px}}
@media (min-width:1060px){.grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:28px 18px}}

.card{
  display:flex;
  flex-direction:column;
  color:inherit;
  text-decoration:none;
  min-width:0;
}
.cv{
  aspect-ratio:3/4;
  border-radius:13px;
  position:relative;
  overflow:hidden;
  display:grid;
  place-items:center;
  font-family:var(--display);
  font-weight:700;
  font-size:42px;
  color:var(--dim);
  background:var(--surface);
  border:1px solid var(--line);
  transition:border-color .2s ease;
}
.cv img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:grayscale(1) contrast(1.06);
  transition:filter .35s ease,transform .35s cubic-bezier(.22,1,.36,1);
}
a.card:hover .cv,a.card:focus-visible .cv{
  border-color:var(--fg);
}
a.card:hover .cv img,a.card:focus-visible .cv img{
  filter:none;
  transform:scale(1.04);
}
.cv-badge{
  position:absolute;
  left:8px;
  bottom:8px;
  z-index:2;
  padding:2.5px 7.5px;
  border-radius:6.5px;
  background:rgba(0,0,0,.85);
  color:#ffffff;
  font-family:var(--mono);
  font-size:11px;
  font-weight:500;
  border:1px solid rgba(255,255,255,.18);
}
.card strong{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-top:10px;
  font-size:14.5px;
  font-weight:600;
  line-height:1.35;
}
.card span.meta-sub{
  display:block;
  color:var(--dim);
  font-size:12.5px;
  margin-top:3px;
}

.sk .cv{
  background:linear-gradient(110deg,var(--surface) 30%,var(--surface-2) 50%,var(--surface) 70%);
  background-size:200% 100%;
  animation:shimmer 1.3s linear infinite;
}
@keyframes shimmer{to{background-position:-200% 0}}

.note{
  color:var(--dim);
  margin-top:24px;
  font-size:14px;
}

.pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:36px;
  padding-top:24px;
  border-top:1px solid var(--line);
  flex-wrap:wrap;
}
.pager[hidden]{display:none}
.pager button{
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--fg);
  font:inherit;
  font-size:14px;
  font-weight:600;
  padding:8.5px 17px;
  border-radius:10px;
  cursor:pointer;
  touch-action:manipulation;
  transition:border-color .15s,background .15s,color .15s;
}
.pager button:hover:not(:disabled){
  border-color:var(--fg);
  background:var(--fg);
  color:var(--bg);
}
.pager button:disabled{opacity:.35;cursor:default}
.pg{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--dim);
  font-size:14px;
}
.pg input{
  width:62px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:9px;
  color:var(--fg);
  font-family:var(--mono);
  font-size:14px;
  text-align:center;
  padding:6px 4px;
  -moz-appearance:textfield;
  appearance:textfield;
}
.pg input::-webkit-outer-spin-button,.pg input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.pg input:focus{outline:0;border-color:var(--fg)}

.sub-section{
  margin-top:68px;
}
.sub-section h2{
  font-family:var(--display);
  font-weight:700;
  font-size:26px;
  line-height:1.15;
  letter-spacing:-.025em;
  margin:0 0 18px;
}
.picks{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:1fr;
  gap:11px;
}
@media (min-width:720px){
  .picks{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
}
@media (min-width:1020px){
  .picks{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.picks li{
  display:flex;
  align-items:center;
  gap:13px;
  padding:15px 17px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:13px;
  font-size:15px;
  font-weight:600;
  transition:border-color .16s,transform .16s;
}
.picks li:hover{
  border-color:var(--line-strong);
  transform:translateY(-1px);
}
.picks li .pick-idx{
  font-family:var(--mono);
  font-size:12px;
  color:var(--dim);
  flex:none;
}

/* ---------- Contact View ---------- */
.contact-stack{
  display:flex;
  flex-direction:column;
  gap:13px;
  max-width:640px;
}
.line{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:20px 22px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  text-decoration:none;
  color:var(--fg);
  font-family:var(--display);
  font-weight:700;
  font-size:20px;
  letter-spacing:-.02em;
  touch-action:manipulation;
  transition:border-color .16s,transform .16s,background .16s,color .16s;
}
.line span{
  font-family:var(--mono);
  color:var(--dim);
  font-size:14px;
  font-weight:400;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition:color .16s;
}
.line svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.line:hover{
  background:var(--fg);
  color:var(--bg);
  border-color:var(--fg);
  transform:translateY(-2px);
}
.line:hover span{color:var(--bg)}

.copy-bar{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:12px;
}

/* ---------- Entry Gate (Discord Avatar + Clean Prompt) ---------- */
#gate{
  position:fixed;
  inset:0;
  z-index:100;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  width:100%;
  border:0;
  margin:0;
  padding:24px;
  background:radial-gradient(50% 45% at 50% 45%,color-mix(in srgb,var(--fg) 7%,transparent),transparent 75%),var(--bg);
  color:var(--fg);
  font:inherit;
  cursor:pointer;
  touch-action:manipulation;
  outline:0;
  user-select:none;
  transition:opacity .5s ease,visibility .5s,filter .5s ease;
}
.gate-av{
  position:relative;
  width:82px;
  height:82px;
  display:grid;
  place-items:center;
}
.gate-av .photo{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  border:1px solid var(--line-strong);
  background:var(--surface-2);
}
.gate-av .fb{
  width:100%;
  height:100%;
  border-radius:50%;
  border:1px solid var(--line-strong);
  background:var(--surface);
  display:grid;
  place-items:center;
}
.gate-av .fb::after{
  content:"";
  width:20px;
  height:20px;
  border-radius:50%;
  border:2px solid var(--dim);
}
.gate-av .deco{
  position:absolute;
  left:50%;
  top:50%;
  width:124%;
  height:124%;
  max-width:none;
  transform:translate(-50%,-50%);
  pointer-events:none;
}
#gate .gate-label{
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(19px,4.2vw,24px);
  letter-spacing:-.02em;
  animation:pulseText 2.2s ease-in-out infinite;
}
#gate.out{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  filter:blur(8px);
}
@keyframes pulseText{0%,100%{opacity:.48}50%{opacity:1}}

/* ---------- Bottom Sound Toggle Pill ---------- */
#snd{
  position:fixed;
  right:18px;
  bottom:calc(18px + env(safe-area-inset-bottom,0px));
  z-index:50;
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--surface);
  border:1px solid var(--line-strong);
  color:var(--fg);
  font-family:var(--mono);
  font-size:12px;
  padding:7.5px 13px;
  border-radius:999px;
  cursor:pointer;
  touch-action:manipulation;
  user-select:none;
  transition:border-color .16s,background .16s,color .16s;
}
#snd:hover{
  border-color:var(--fg);
}
#snd[hidden]{display:none}
.eq{
  display:inline-flex;
  align-items:flex-end;
  gap:2px;
  height:11px;
}
.eq i{
  display:block;
  width:2.5px;
  height:4px;
  border-radius:2px;
  background:var(--fg);
  transition:height .2s;
}
#snd.playing .eq i:nth-child(1){animation:eqBar .7s ease-in-out infinite}
#snd.playing .eq i:nth-child(2){animation:eqBar .55s ease-in-out .15s infinite}
#snd.playing .eq i:nth-child(3){animation:eqBar .8s ease-in-out .3s infinite}
@keyframes eqBar{0%,100%{height:3px}50%{height:11px}}

@media (max-width:640px){
  header{
    padding:8px 10px;
    margin-bottom:36px;
    gap:10px;
  }
  .brand-meta{display:none}
  .hr{
    flex:1 1 auto;
    min-width:0;
  }
  header nav{
    flex:1 1 auto;
  }
  header nav button{
    font-size:13.5px;
    padding:6.5px 13px;
  }
  .theme{width:34px;height:34px}
  .line{
    font-size:18px;
    padding:17px 18px;
  }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation:none!important;
    transition:none!important;
  }
}
