.display { font-family: var(--font-pixel); font-weight: 700; font-size: clamp(28px, 5vw, 44px); letter-spacing: 1px; }
.hero { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
/* blok nama boleh menyusut (teks perannya ikut wrap) supaya panel status
   tetap muat sebaris dengan Smoky di lebar window yang ada */
.hero > div:not(.tama) { flex: 1 1 auto; min-width: 0; }
.hero .tama { flex: 0 0 auto; margin: 0 0 0 auto; }
.hero-art svg { image-rendering: pixelated; }
.role { font-size: 14px; margin-top: 4px; }
.status { font-family: var(--font-pixel); font-size: 12px; margin-top: 6px; }
.status .dot { display: inline-block; width: 8px; height: 8px; background: var(--tl-green); border: 2px solid var(--ink); margin-right: 6px; }
.bio { max-width: 60ch; margin: 10px 0 16px; line-height: 1.6; font-size: 14px; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.stat { border: 3px solid var(--ink); padding: 8px 12px; background: var(--surface); }
.stat b { font-family: var(--font-pixel); display: block; }
.stat span { font-size: 12px; }
.panel h2 { font-family: var(--font-pixel); font-size: 16px; margin: 18px 0 8px; border-bottom: 3px solid var(--ink); padding-bottom: 4px; }
.xp h3 { font-size: 14px; }
.xp ul { margin: 6px 0 12px 18px; font-size: 13px; line-height: 1.6; }
.period { font-size: 12px; opacity: .7; }
.awards { margin-left: 18px; font-size: 13px; line-height: 1.8; }
.miniwin { border: 3px solid var(--ink); background: var(--surface); margin-bottom: 16px; box-shadow: 4px 4px 0 rgba(26,26,26,.3); }
.miniwin-bar { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-bottom: 3px solid var(--ink); background: var(--win-dark); font-family: var(--font-pixel); font-size: 12px; }
.mw-dots i { display: inline-block; width: 8px; height: 8px; border: 2px solid var(--ink); margin-right: 3px; background: var(--tl-red); }
.mw-dots i:nth-child(2) { background: var(--tl-yellow); }
.mw-dots i:nth-child(3) { background: var(--tl-green); }
.miniwin-body { padding: 12px; font-size: 13px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 5px; border: 2px solid var(--ink); padding: 2px 8px; font-size: 12px; background: var(--win); }
.tag img { image-rendering: pixelated; }
.links { margin-top: 10px; }
.pxbtn { display: inline-block; font-family: var(--font-pixel); font-size: 12px; color: var(--ink); text-decoration: none; border: 3px solid var(--ink); background: var(--tl-yellow); padding: 4px 10px; box-shadow: 3px 3px 0 var(--ink); margin-right: 8px; }
.pxbtn:active { transform: translate(3px, 3px); box-shadow: none; }
.pxbtn.big { font-size: 14px; padding: 10px 16px; margin-bottom: 8px; }
.char-card { display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap; border: 3px solid var(--ink); background: var(--surface); padding: 14px; box-shadow: 4px 4px 0 rgba(26,26,26,.3); }
.char-portrait { display: grid; place-items: center; gap: 6px; border: 3px solid var(--ink); background: var(--win); padding: 10px 16px; }
.char-portrait svg { image-rendering: pixelated; animation: catbob 1.2s steps(2) infinite; }
.char-partner { font-family: var(--font-pixel); font-size: 11px; }
.char-info { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 8px; }
.char-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.char-display { font-size: 24px; }
.char-lv { font-family: var(--font-pixel); font-size: 11px; border: 2px solid var(--ink); background: var(--tl-yellow); padding: 2px 8px; }
.char-class { font-family: var(--font-pixel); font-size: 12px; }
.char-hearts { font-size: 20px; letter-spacing: 5px; color: #c94867; }
.char-hearts .hh:not(.on) { color: var(--ink); opacity: .35; }
.smoky-box { position: relative; }
.smoky-btn { border: 0; background: none; padding: 0; display: grid; place-items: center; }
.smoky-btn svg { image-rendering: pixelated; animation: catbob 1.2s steps(2) infinite; }
.smoky-bubble {
  position: absolute; top: -6px; left: 68%; white-space: nowrap;
  font-family: var(--font-pixel); font-size: 11px;
  background: var(--surface); border: 2px solid var(--ink); padding: 3px 8px;
  box-shadow: 2px 2px 0 var(--ink); z-index: 5;
}
@keyframes heartfloat { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-34px); opacity: 0; } }
.heart-float { position: absolute; top: 18%; color: #c94867; font-size: 16px; animation: heartfloat .9s steps(5) forwards; pointer-events: none; }
.care-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.wardrobe { display: grid; gap: 8px; }
.wr-slot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wr-label { font-family: var(--font-pixel); font-size: 11px; flex: 0 0 78px; }
.wr-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.wr-opt {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  border: 2px solid var(--ink); background: var(--surface); padding: 3px 10px;
}
.wr-opt[aria-pressed="true"] { background: var(--tl-yellow); font-weight: 700; box-shadow: 2px 2px 0 var(--ink); }
.pxbtn.care { display: inline-flex; align-items: center; gap: 6px; background: var(--win); }
.pxbtn.care svg { image-rendering: pixelated; }
.stat-group { font-family: var(--font-pixel); font-size: 13px; margin: 14px 0 6px; }
.skillgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; }
.skill { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bar { display: flex; gap: 3px; }
.bar i { width: 14px; height: 14px; border: 2px solid var(--ink); background: var(--surface); }
.bar i.on { background: var(--tl-green); }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
/* tombol easter egg: tanpa chrome tombol sama sekali agar tidak ketahuan */
.contact-smoky {
  display: inline-grid; place-items: center; gap: 6px; margin-top: 8px;
  border: 0; background: none; padding: 0; color: inherit; font: inherit;
}
.contact-smoky svg { image-rendering: pixelated; }
.h2i { display: flex; align-items: center; gap: 8px; }
.h2i svg { image-rendering: pixelated; flex: 0 0 auto; }
/* Contact — mesh ala Tailscale */
.contact-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-center .bio { margin-left: auto; margin-right: auto; }
.mesh { display: flex; flex-direction: column; align-items: center; width: min(460px, 100%); }
@keyframes dashflowy { from { background-position: 0 0; } to { background-position: 0 12px; } }
@keyframes dashflowx { from { background-position: 0 0; } to { background-position: 12px 0; } }
.mesh-stem {
  width: 4px; height: 24px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 12px);
  animation: dashflowy 0.6s steps(2) infinite;
}
.mesh-rail {
  width: 78%; height: 4px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
  animation: dashflowx 0.6s steps(2) infinite;
}
.mesh-drops { display: flex; justify-content: space-between; width: 78%; }
.mesh-drops i {
  width: 4px; height: 18px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 12px);
  animation: dashflowy 0.6s steps(2) infinite;
}
.mesh-peers { justify-content: space-between; width: 100%; margin: 0; }
/* tombol peer memakai warna brand masing-masing + ikon pixel-nya */
.peer { display: inline-flex; align-items: center; gap: 8px; }
.peer svg, .peer img { image-rendering: pixelated; width: 20px; height: 20px; flex: 0 0 auto; }
.peer-gmail { background: #fff; color: #c5221f; }
.peer-github { background: #1a1a1a; color: #fff; }
.peer-linkedin { background: #0a66c2; color: #fff; }
.mesh-status { font-family: var(--font-pixel); font-size: 11px; margin-top: 16px; color: #2e6e3a; }
@keyframes pressboing { 0% { transform: scale(.9); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
.boing { animation: pressboing .18s steps(3); }
@keyframes panelpop { from { transform: translateY(4px); } to { transform: translateY(0); } }
.panel.pop { animation: panelpop .14s steps(2); }
.fineprint { font-size: 11px; opacity: .7; margin-top: 30px; }
/* ── Experience sebagai apartemen (Tomodachi Life core) ─────────────── */
.apt { border: 3px solid var(--ink); background: #d8cfc0; margin: 10px 0 18px; }
.apt-roof {
  position: relative; background: var(--ink); color: var(--win);
  padding: 7px 10px; text-align: center;
}
.apt-sign { font-family: var(--font-pixel); font-size: 11px; letter-spacing: 1px; }
.apt-antenna {
  position: absolute; left: 50%; top: -13px; width: 4px; height: 13px;
  background: var(--ink);
}
.apt-antenna::after {
  content: ''; position: absolute; left: -3px; top: -6px;
  width: 10px; height: 6px; background: var(--tl-red);
}
.apt-floor { display: flex; align-items: stretch; border-top: 3px solid var(--ink); }
/* Kamar: latar lokasinya digambar sebagai peta pixel (PixelArt), jadi di sini
   tidak ada bentuk CSS sama sekali — cuma penempatan. Gelap-terang pakai
   overlay .apt-dim supaya scene-nya tetap utuh saat lampunya mati. */
.apt-room {
  position: relative; flex: 0 0 104px;
  border-right: 3px solid var(--ink); overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 96px;
}
.apt-back { position: absolute; inset: 0; }
/* svg-nya tidak diregangkan vertikal — piksel harus tetap persegi. Kamar yang
   tinggi diisi warna dinding scene-nya lewat background-color di bawah ini. */
/* > svg: khusus peta perabot yang menempel di dasar kamar. Tanpa tanda ini
   aturannya ikut kena ke svg langit-langit dan melemparnya ke luar kamar. */
.apt-back > svg {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: auto; display: block; image-rendering: pixelated;
}
/* Dinding di antara langit-langit dan perabot diisi pola pixel yang berulang,
   jadi kamar yang memanjang tidak menyisakan bidang warna kosong. */
.apt-room { image-rendering: pixelated; background-repeat: repeat; }
.apt-ceil { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.apt-ceil svg { position: static; width: 100%; height: auto; display: block; image-rendering: pixelated; }
/* hiasan dinding baru muncul kalau kamarnya memanjang */
.apt-decor { display: none; }
.apt-floor.lit .apt-decor {
  display: block; position: absolute; top: 48px; left: 50%;
  transform: translateX(-50%); z-index: 2;
}
.apt-decor svg { image-rendering: pixelated; display: block; }
.sceneOffice { background-color: #8f8a7e; background-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20shape-rendering='crispEdges'><rect%20width='20'%20height='20'%20fill='%238f8a7e'/><rect%20x='0'%20y='0'%20width='2'%20height='20'%20fill='%236f6a60'/><rect%20x='0'%20y='0'%20width='20'%20height='1'%20fill='%237f7a6e'/></svg>"); }
.sceneStage { background-color: #3a3358; background-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20shape-rendering='crispEdges'><rect%20width='16'%20height='16'%20fill='%233a3358'/><rect%20x='0'%20y='0'%20width='8'%20height='8'%20fill='%23423a63'/><rect%20x='8'%20y='8'%20width='8'%20height='8'%20fill='%23423a63'/></svg>"); }
.sceneVolunteer { background-color: #efe0c8; background-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20shape-rendering='crispEdges'><rect%20width='12'%20height='12'%20fill='%23efe0c8'/><rect%20x='0'%20y='0'%20width='2'%20height='12'%20fill='%23e2d0b2'/></svg>"); }
.sceneHospital { background-color: #dfe9e6; background-image: url("data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20shape-rendering='crispEdges'><rect%20width='16'%20height='16'%20fill='%23dfe9e6'/><rect%20x='0'%20y='0'%20width='16'%20height='1'%20fill='%23cfdcd8'/><rect%20x='0'%20y='8'%20width='16'%20height='1'%20fill='%23cfdcd8'/></svg>"); }
.apt-dim {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: rgba(10, 9, 18, .5);
}
.apt-floor.lit .apt-dim { background: transparent; }
.apt-tenant { position: relative; z-index: 3; padding-bottom: 8px; }
.apt-tenant svg { image-rendering: pixelated; display: block; }
.apt-floor.lit .apt-tenant { animation: aptpace 1.6s steps(2) infinite; }
@keyframes aptpace { 0%, 100% { transform: translateX(-7px); } 50% { transform: translateX(7px); } }
/* huruf z mengambang, cuma saat penghuninya masih tidur */
.apt-zzz { position: absolute; top: 5px; left: 7px; z-index: 6; display: flex; gap: 2px; }
.apt-zzz i {
  font-family: var(--font-pixel); font-style: normal; font-size: 10px; color: #fff;
  text-shadow: 1px 1px 0 #000;
  animation: zfloat 2.1s steps(4) infinite;
}
@keyframes zfloat {
  0% { transform: translateY(4px); opacity: 0; }
  40% { opacity: .9; }
  100% { transform: translateY(-10px); opacity: 0; }
}
.apt-floor.lit .apt-zzz, .apt-floor.lit .apt-sleep { display: none; }
.apt-sleep { position: absolute; inset: 0; z-index: 4; }
.apt-sleep svg { position: absolute; image-rendering: pixelated; }
/* penempatan prop tidur per lokasi */
.sceneStage .apt-sleep svg { left: 8px; bottom: 12px; }
.sceneVolunteer .apt-sleep svg { left: 50%; margin-left: -15px; bottom: 10px; }
.sceneHospital .apt-sleep svg { left: 50%; margin-left: -24px; bottom: 12px; }
.apt-info { flex: 1 1 auto; min-width: 0; background: var(--win); }
.apt-door {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; background: none; border: 0; text-align: left;
  font-family: var(--font-mono); color: var(--ink);
}
.apt-door:hover { background: #dcdcdc; }
.apt-unit {
  flex: 0 0 auto; font-family: var(--font-pixel); font-size: 10px;
  border: 2px solid var(--ink); background: var(--tl-yellow); padding: 3px 5px;
}
.apt-who { display: flex; flex-direction: column; min-width: 0; }
.apt-who b { font-size: 13px; }
.apt-who i { font-style: normal; font-size: 11px; opacity: .7; }
.apt-period { margin-left: auto; font-size: 11px; opacity: .6; flex: 0 0 auto; }
.apt-knock {
  flex: 0 0 auto; font-family: var(--font-pixel); font-size: 9px;
  border: 2px solid var(--ink); padding: 2px 4px; background: var(--win);
}
.apt-door[aria-expanded="true"] .apt-knock { background: var(--tl-green); }
/* speech bubble ala Tomodachi, ekornya nunjuk ke kamar */
.apt-bubble {
  position: relative; margin: 0 12px 12px 46px;
  border: 3px solid var(--ink); background: var(--surface-soft); padding: 10px 12px;
}
.apt-bubble::before {
  content: ''; position: absolute; left: -12px; top: 14px;
  width: 12px; height: 6px; background: var(--ink);
}
.apt-bubble::after {
  content: ''; position: absolute; left: -6px; top: 17px;
  width: 6px; height: 6px; background: var(--surface-soft);
}
.apt-bubble ul { margin: 0 0 0 16px; font-size: 12px; line-height: 1.6; }
.apt-ground {
  display: flex; align-items: center; gap: 8px;
  border-top: 3px solid var(--ink); background: var(--ink); color: var(--win);
  padding: 6px 10px; font-size: 11px;
}
.apt-mail { font-family: var(--font-pixel); font-size: 9px; opacity: .6; }
@media (max-width: 640px) {
  .apt-room { flex-basis: 74px; }
  .apt-period { display: none; }
  .apt-bubble { margin-left: 12px; }
  .apt-bubble::before, .apt-bubble::after { display: none; }
}
/* ── Awards sebagai tangan kartu Joker (Balatro core) ───────────────── */
.jokers {
  border: 3px solid var(--ink); margin: 22px 0 18px;
  background: #35654d;                       /* felt meja kartu */
  background-image:
    repeating-linear-gradient(45deg, rgba(0,0,0,.06) 0 3px, transparent 3px 6px);
  padding: 22px 12px 12px;
}
.joker-hand {
  display: flex; justify-content: center; align-items: flex-end;
  flex-wrap: wrap; gap: 6px;
  /* kartu pinggir turun + miring, jadi butuh ruang ekstra di bawah
     supaya sudutnya tidak ketiban papan info */
  padding: 0 0 28px;
  perspective: 700px;
}
.joker {
  --rx: 0deg; --ry: 0deg; --fan: 0deg; --lift: 0px;
  position: relative; flex: 0 0 104px; width: 104px; min-height: 152px;
  border: 3px solid var(--ink); background: #fdf6e3; color: var(--ink);
  padding: 0; display: flex; flex-direction: column;
  font-family: var(--font-mono); text-align: center;
  transform: rotate(var(--fan)) translateY(var(--lift));
  transform-style: preserve-3d;
  transition: transform .12s ease-out, box-shadow .12s ease-out;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
}
.joker:hover, .joker:focus-visible {
  transform: rotate(0deg) translateY(-10px) scale(1.06)
             rotateX(var(--rx)) rotateY(var(--ry));
  box-shadow: 6px 10px 0 rgba(0, 0, 0, .5);
  z-index: 2;
}
.joker.picked {
  transform: rotate(0deg) translateY(-16px) scale(1.04);
  box-shadow: 0 0 0 3px var(--tl-yellow), 6px 10px 0 rgba(0, 0, 0, .5);
  z-index: 3;
}
.joker-face {
  flex: 1 1 auto; display: flex; flex-direction: column;
  align-items: center; gap: 4px; padding: 6px 6px 4px;
}
.joker-year { font-family: var(--font-pixel); font-size: 9px; opacity: .55; align-self: flex-start; }
.joker-art { margin: 2px 0 4px; }
.joker-art svg, .joker-art img { image-rendering: pixelated; display: block; }
.joker-name { font-size: 9.5px; line-height: 1.3; }
/* pita kelangkaan di kaki kartu */
.joker-rar {
  font-family: var(--font-pixel); font-size: 8px; letter-spacing: .5px;
  text-transform: uppercase; padding: 3px 0; border-top: 3px solid var(--ink);
  color: #fff;
}
.rar-common .joker-rar { background: #6b7280; }
.rar-uncommon .joker-rar { background: #2f7d4f; }
.rar-rare .joker-rar { background: #2f6fb8; }
.rar-legendary .joker-rar { background: #8b3fbf; }
/* papan info ala "run info" Balatro */
.joker-info {
  border: 3px solid var(--ink); background: #1f1f24; color: #f4f1e6;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 3px;
}
.joker-info-name { font-size: 13px; }
.joker-info-meta { font-size: 11px; opacity: .65; }
.joker-info-blurb { font-style: normal; font-size: 11px; color: var(--tl-yellow); }
.joker-count {
  display: flex; align-items: baseline; gap: 6px; padding-top: 8px;
  color: #dfe9df; font-size: 11px;
}
.joker-count b { font-family: var(--font-pixel); font-size: 14px; color: var(--tl-yellow); }
.joker-count i { font-style: normal; margin-left: auto; opacity: .6; font-size: 10px; }
@media (max-width: 640px) {
  /* di layar sempit kartu terpaksa wrap jadi beberapa baris; kalau sudut
     kipasnya dipertahankan, baris bawah nabrak baris atas. --fan dan --lift
     di-set inline lewat JS, jadi butuh !important untuk menimpanya. */
  .joker { flex-basis: 88px; width: 88px; min-height: 136px;
    --fan: 0deg !important; --lift: 0px !important; }
  .joker-hand { align-items: flex-start; padding-bottom: 14px; }
  .joker-count i { display: none; }
}
/* ── Stats sebagai layar status Tamagotchi ──────────────────────────── */
.tama {
  display: inline-flex; flex-direction: column; gap: 8px;
  border: 3px solid var(--ink); background: #d8d2c4;
  padding: 10px 10px 8px; margin: 14px 0 18px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .25);
  max-width: 100%;
}
.tama-lcd {
  background: #9bbc0f; border: 3px solid #2f3a13;
  padding: 7px 9px; min-width: 246px;
  display: flex; flex-direction: column; gap: 5px;
  font-family: var(--font-pixel); color: #21300b;
}
.tama-title { font-size: 9px; letter-spacing: 2px; opacity: .6; }
.tama-row { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.tama-k { flex: 0 0 42px; }
.tama-row b { margin-left: auto; font-size: 10px; }
/* bar tersegmentasi biar kelihatan seperti LCD, bukan progress bar mulus */
.tama-bar {
  position: relative; flex: 1 1 auto; height: 12px;
  border: 2px solid #2f3a13; background: #8bac0f;
}
.tama-bar i {
  display: block; height: 100%;
  background: repeating-linear-gradient(90deg, #21300b 0 4px, transparent 4px 6px);
}
.tama-pips { display: flex; gap: 3px; flex: 1 1 auto; }
.tama-pips i {
  width: 9px; height: 9px; border: 2px solid #2f3a13; background: transparent;
}
.tama-pips i.on { background: #21300b; }
.tama-btns { display: flex; justify-content: center; gap: 14px; }
.tama-btns svg { image-rendering: pixelated; display: block; }
@media (max-width: 640px) {
  .hero { flex-wrap: wrap; }
  .hero .tama { margin: 0; width: 100%; }
  .tama { display: flex; }
  .tama-lcd { min-width: 0; }
}
/* ── Apartemen Smoky: denah pixel + penghuni yang pindah zona sendiri ── */
.flat { margin: 14px 0 18px; }
.flat-stage {
  position: relative; border: 3px solid var(--ink); overflow: hidden;
  line-height: 0; background: #efe0c8;
}
.flat-stage > svg, .flat-stage > img {
  width: 100%; height: auto; display: block; image-rendering: pixelated;
}
/* hotspot per zona: tidak terlihat sampai di-hover/di-fokus */
.flat-spots { position: absolute; inset: 0; }
.flat-spot { position: absolute; top: 0; bottom: 0; padding: 0; background: none; border: 0; }
.flat-spot:hover, .flat-spot:focus-visible { background: rgba(255, 255, 255, .16); }
.flat-tag {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-pixel); font-size: 8px; white-space: nowrap;
  border: 2px solid var(--ink); background: var(--tl-yellow); color: var(--ink);
  padding: 2px 4px; opacity: 0;
}
.flat-spot:hover .flat-tag, .flat-spot:focus-visible .flat-tag { opacity: 1; }
/* lebarnya persen, bukan piksel tetap, supaya proporsinya terhadap ruangan
   tetap sama waktu denahnya mengecil di layar sempit */
.flat-cat {
  position: absolute; bottom: 14%; left: 38%; width: 8%;
  transform: translateX(-50%);
  padding: 0; background: none; border: 0; line-height: 0; z-index: 2;
  transition: left 2.2s steps(14);
}
.flat-cat svg { width: 100%; height: auto; image-rendering: pixelated; display: block; }
.flat-read {
  border: 3px solid var(--ink); border-top: 0; background: var(--ink);
  color: var(--win); padding: 7px 12px; font-size: 12px; min-height: 34px;
}
.flat-read b { color: var(--tl-yellow); }
@media (prefers-reduced-motion: reduce) { .flat-cat { transition: none; } }
@media (max-width: 640px) { .flat-read { font-size: 11px; } }
/* ── Footer Y2K (GeoCities core) ────────────────────────────────────── */
.y2k {
  margin: 24px 0 8px; padding: 14px 12px;
  border: 3px solid var(--ink); background: #1b1b2f; color: #e8e8f0;
  text-align: center;
}
.y2k-hits { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.y2k-label { font-size: 11px; opacity: .8; }
/* odometer: tiap digit kotak sendiri, seperti pencacah kunjungan lama */
.y2k-odo { display: inline-flex; gap: 2px; }
.y2k-odo i {
  font-family: var(--font-pixel); font-style: normal; font-size: 14px;
  background: #000; color: #33ff66; border: 2px solid #4a4a6a;
  padding: 3px 5px; min-width: 18px;
}
.y2k-note { font-size: 10px; opacity: .45; width: 100%; }
.y2k-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0;
}
/* badge 88x31, ukuran wajib era webring */
.y2k-badge {
  width: 88px; height: 31px; border: 2px solid #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.1; overflow: hidden;
}
.y2k-badge b { font-family: var(--font-pixel); font-size: 8px; }
.y2k-badge i { font-style: normal; font-size: 7px; opacity: .8; }
.y2k-ring {
  display: inline-flex; align-items: center; gap: 10px;
  border: 2px solid #4a4a6a; padding: 4px 10px; font-size: 11px;
}
.y2k-ring-name { font-family: var(--font-pixel); font-size: 9px; color: var(--tl-yellow); }
.y2k-sig { font-size: 10px; opacity: .5; margin-top: 10px; }

/* ── Tombol unduh CV, di bawah panel status ─────────────────────────── */
.y2k-row {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap; margin: 4px 0 2px;
}
.y2k-smoky svg { image-rendering: pixelated; display: block; }
.y2k-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cv-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cv-note { font-size: 10.5px; opacity: .7; line-height: 1.4; text-align: center; max-width: 250px; }
.cv-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 3px solid var(--ink); background: var(--tl-yellow); color: var(--ink);
  padding: 6px 10px; font-family: var(--font-pixel); font-size: 9px;
  text-decoration: none; box-shadow: 3px 3px 0 rgba(0, 0, 0, .25);
}
.cv-btn:hover { background: #ffe86b; }
.cv-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .25); }
.cv-btn svg, .cv-btn img { image-rendering: pixelated; display: block; }
/* ── Easter egg: konfeti + toast kode Konami ────────────────────────── */
.confetti { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
/* kotak pixel, bukan bentuk bulat */
.confetti i {
  position: absolute; top: -12px; width: 6px; height: 6px; display: block;
  animation: cfall linear forwards;
}
@keyframes cfall {
  0% { transform: translateY(0); }
  100% { transform: translateY(102vh); }
}
.egg-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
  z-index: 61; pointer-events: none;
  font-family: var(--font-pixel); font-size: 11px; letter-spacing: 1px;
  border: 3px solid var(--ink); background: var(--tl-yellow); color: var(--ink);
  padding: 8px 14px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .35);
}
/* slot wardrobe yang masih terkunci */
.wr-opt:disabled { opacity: .45; }
/* ── Easter egg: Smoky di footer bisa dicolek ───────────────────────── */
.y2k-smoky { position: relative; background: none; border: 0; padding: 0; }
.y2k-smoky.poked { animation: pressboing .18s steps(3); }
.y2k-purr {
  position: absolute; top: -6px; right: -6px;
  font-family: var(--font-pixel); font-size: 9px; white-space: nowrap;
  border: 3px solid var(--ink); background: var(--surface-soft); color: var(--ink);
  padding: 4px 6px;
}
.y2k-purr[hidden] { display: none; }
/* ── Detail tambahan kartu Joker: bingkai dalam, jendela art, nilai Mult ── */
.joker {
  /* garis dalam tipis seperti kartu cetak beneran */
  box-shadow: inset 0 0 0 2px #e6d9b8, 3px 3px 0 rgba(0, 0, 0, .45);
}
.joker:hover, .joker:focus-visible {
  box-shadow: inset 0 0 0 2px #e6d9b8, 6px 10px 0 rgba(0, 0, 0, .5);
}
.joker.picked {
  box-shadow: inset 0 0 0 2px #e6d9b8, 0 0 0 3px var(--tl-yellow), 6px 10px 0 rgba(0, 0, 0, .5);
}
/* ikonnya duduk di jendela art sendiri, seperti kartu Balatro */
.joker-art {
  border: 2px solid var(--ink); background: #efe4c6;
  padding: 4px 10px; margin: 3px 0 5px;
  box-shadow: inset 0 0 0 1px #fff8e4;
}
.joker-mult {
  margin-top: auto; display: inline-flex; align-items: baseline; gap: 3px;
  border: 2px solid var(--ink); background: #b8402f; color: #fff;
  padding: 2px 5px; margin-bottom: 4px;
}
.joker-mult b { font-family: var(--font-pixel); font-size: 9px; }
.joker-mult i { font-style: normal; font-size: 7px; opacity: .85; }
.joker-total { color: #ff8f6b; }
/* kilau foil pada kartu legendary — dither diagonal, bukan gradasi mulus */
.rar-legendary .joker-face { position: relative; overflow: hidden; }
.rar-legendary .joker-face::after {
  content: ''; position: absolute; top: -60%; left: -120%;
  width: 60%; height: 220%; pointer-events: none;
  background: repeating-linear-gradient(70deg,
    rgba(255, 255, 255, .55) 0 2px, transparent 2px 4px,
    rgba(214, 168, 255, .45) 4px 6px, transparent 6px 8px);
  animation: foil 3.4s steps(12) infinite;
}
@keyframes foil { 0% { left: -120%; } 100% { left: 160%; } }
@media (prefers-reduced-motion: reduce) { .rar-legendary .joker-face::after { animation: none; opacity: .3; } }
/* ── Tab Skills sebagai monitor ala btop ────────────────────────────── */
.bt {
  border: 3px solid var(--ink); background: #10131a; color: #cfe3d0;
  font-family: var(--font-mono); margin: 10px 0 18px;
}
.bt-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 7px 10px; border-bottom: 3px solid var(--ink); background: #1a2030;
}
/* font pixel Silkscreen tidak punya glyph @ yang benar — 'daffa@portfolio'
   terbaca 'daffaEportfolio'. Baris ini pakai mono, tetap terasa terminal. */
.bt-head b { font-family: var(--font-mono); font-weight: 700; font-size: 12px; color: #7fd070; }
.bt-head span { font-size: 11px; opacity: .7; }
.bt-head i { font-style: normal; font-size: 10px; opacity: .5; margin-left: auto; }
.bt-grid {
  display: grid; grid-template-columns: 1.5fr 1.2fr .9fr; gap: 0;
  border-bottom: 3px solid var(--ink);
}
.bt-box { padding: 9px 10px; border-right: 2px solid #263043; min-width: 0; }
.bt-box:last-child { border-right: 0; }
.bt-box h4 {
  font-family: var(--font-pixel); font-size: 8px; letter-spacing: 1px;
  color: #7fd070; margin-bottom: 7px; text-transform: uppercase;
}
.bt-row { display: flex; align-items: center; gap: 7px; padding: 3px 0; font-size: 11px; }
.bt-k { flex: 0 0 auto; min-width: 62px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-v { margin-left: auto; font-family: var(--font-pixel); font-size: 9px; color: #e8e8ea; }
/* meter bertangga — kotak terpisah, bukan bar mulus */
.bt-meter { display: inline-flex; gap: 2px; flex: 1 1 auto; min-width: 40px; }
.bt-meter i { flex: 1 1 auto; height: 9px; background: #23304a; display: block; }
.bt-meter.hi i.on { background: #7fd070; }
.bt-meter.mid i.on { background: #d7c552; }
.bt-meter.lo i.on { background: #d78b52; }
.bt-stack { display: flex; gap: 2px; height: 16px; margin-bottom: 8px; }
.bt-stack .seg { display: block; }
.seg.s0, .dot.s0 { background: #7fd070; }
.seg.s1, .dot.s1 { background: #5aa9d6; }
.seg.s2, .dot.s2 { background: #d7c552; }
.seg.s3, .dot.s3 { background: #c07fd0; }
.bt-legend { display: flex; flex-direction: column; gap: 3px; }
.bt-leg { display: flex; align-items: center; gap: 6px; font-size: 10px; opacity: .8; }
.bt-leg .dot { width: 9px; height: 9px; display: block; flex: 0 0 auto; }
.bt-proc { padding: 8px 10px 10px; }
.bt-prow {
  display: grid; grid-template-columns: 1.7fr 1.2fr 34px 46px 1.1fr;
  gap: 8px; align-items: center; padding: 2px 0; font-size: 11px;
}
.bt-phead { border-bottom: 2px solid #263043; padding-bottom: 4px; margin-bottom: 4px; }
.bt-th, .bt-th-static {
  font-family: var(--font-pixel); font-size: 8px; letter-spacing: .5px;
  background: none; border: 0; color: #7fd070; text-align: left; padding: 0; opacity: .75;
}
.bt-th[aria-pressed="true"] { opacity: 1; text-decoration: underline; }
.bt-pname { display: flex; align-items: center; gap: 5px; min-width: 0; }
.bt-pname img { image-rendering: pixelated; flex: 0 0 auto; display: block; }
.bt-pname span, .bt-pgrp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-pgrp { opacity: .55; font-size: 10px; }
.bt-plvl { font-family: var(--font-pixel); font-size: 9px; }
.bt-plvl.hi { color: #7fd070; }
.bt-plvl.mid { color: #d7c552; }
.bt-plvl.lo { color: #d78b52; }
.bt-puse { font-size: 10px; opacity: .7; text-align: right; }
.bt-foot {
  border-top: 2px solid #263043; padding: 7px 10px;
  font-size: 10px; opacity: .55; line-height: 1.5;
}
@media (max-width: 640px) {
  .bt-grid { grid-template-columns: 1fr; }
  .bt-box { border-right: 0; border-bottom: 2px solid #263043; }
  .bt-prow { grid-template-columns: 1.6fr 40px 46px; }
  .bt-pgrp, .bt-prow .bt-meter { display: none; }
}
