/* ============================================================
   استوديو مؤيد — pink dress-up studio
   palette: #1b0411 #240616 #3d0826 · #ff1e7a #ff4d94 #ff9ebb #ffd6e7
   ============================================================ */

:root {
  --ink: #1b0411;
  --ink-2: #240616;
  --ink-3: #3d0826;
  --hot: #ff1e7a;
  --rose: #ff4d94;
  --blush: #ff9ebb;
  --candy: #ffd6e7;
  --ui: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --glass: rgba(61, 8, 38, .55);
  --glass-2: rgba(36, 6, 22, .72);
  --line: rgba(255, 158, 187, .22);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 26px 60px -30px rgba(0, 0, 0, .95);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--candy);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(120% 80% at 50% -10%, #4a0b2c 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 100%, #3d0826 0%, transparent 55%),
    var(--ink);
}

button, input, textarea { font-family: inherit; }
button { cursor: pointer; }

/* ── ambient aura ─────────────────────────────────────────── */
.aura { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.aura i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  animation: drift 18s ease-in-out infinite;
}
.aura i:nth-child(1) { width: 340px; height: 340px; background: #ff1e7a; top: -120px; inset-inline-start: -80px; }
.aura i:nth-child(2) { width: 300px; height: 300px; background: #ff9ebb; bottom: -140px; inset-inline-end: -60px; animation-delay: -6s; }
.aura i:nth-child(3) { width: 220px; height: 220px; background: #ff4d94; top: 40%; inset-inline-end: 30%; opacity: .28; animation-delay: -11s; }
.aura i:nth-child(4) { width: 180px; height: 180px; background: #ffd6e7; bottom: 30%; inset-inline-start: 10%; opacity: .2; animation-delay: -3s; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(24px, -30px, 0) scale(1.12); }
}

/* ── glass ────────────────────────────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 214, 231, .18), var(--shadow);
}

/* ── topbar ───────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 12px clamp(12px, 3vw, 26px);
  background: linear-gradient(to bottom, rgba(27, 4, 17, .95), rgba(27, 4, 17, .55));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 158, 187, .12);
}

.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand b { font-size: .95rem; letter-spacing: .01em; color: #fff; white-space: nowrap; }
.brand em {
  font-style: normal; font-size: .58rem; letter-spacing: .22em;
  color: var(--blush); opacity: .7; white-space: nowrap;
}
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 4px rgba(255, 30, 122, .16), 0 0 16px var(--hot);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.wallet {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 30, 122, .14);
  border: 1px solid rgba(255, 30, 122, .34);
  font-size: .82rem; color: #fff; margin-inline-start: auto;
}
.wallet b { font-variant-numeric: tabular-nums; }

.topbtns { display: flex; gap: 8px; }

.icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: .95rem; color: var(--candy);
  transition: transform .18s var(--ease), background .18s, color .18s;
}
.icon:hover { background: rgba(255, 30, 122, .26); color: #fff; }
.icon:active { transform: scale(.94); }
.icon[aria-pressed="false"] { opacity: .45; }
.icon.sm { width: 34px; height: 34px; border-radius: 10px; font-size: .82rem; }

/* ── layout ───────────────────────────────────────────────── */
.layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 388px;
  gap: 16px;
  padding: 16px clamp(12px, 3vw, 26px) 26px;
  min-height: calc(100svh - 64px);
  align-items: start;
}

/* ── stage ────────────────────────────────────────────────── */
.stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(80% 70% at 50% 20%, #3d0826, #12030c);
  border: 1px solid rgba(255, 158, 187, .16);
  box-shadow: var(--shadow), inset 0 0 90px rgba(255, 30, 122, .16);
  aspect-ratio: 1 / .82;
  max-height: calc(100svh - 96px);
  touch-action: none;
  cursor: grab;
}
.stage:active { cursor: grabbing; }
.stage canvas { display: block; width: 100%; height: 100%; outline: none; }

.boot {
  position: absolute; inset: 0; z-index: 8;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  background: radial-gradient(60% 50% at 50% 45%, #2a0618, #12030c);
  transition: opacity .6s var(--ease), visibility .6s;
}
.boot span {
  font-size: .58rem; letter-spacing: .2em; color: var(--blush);
  animation: pulse 1.3s ease-in-out infinite;
}
.boot i { width: 78px; height: 3px; border-radius: 999px; background: rgba(255, 158, 187, .2); overflow: hidden; }
.boot i::after {
  content: ""; display: block; width: 42%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--hot), transparent);
  animation: slide 1.1s linear infinite;
}
@keyframes slide { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
.boot.is-off { opacity: 0; visibility: hidden; pointer-events: none; }

.stage-top {
  position: absolute; top: 0; inset-inline: 0; z-index: 5;
  display: flex; justify-content: space-between; gap: 8px;
  padding: 12px 14px 0; pointer-events: none;
}
.pill {
  padding: 6px 13px; border-radius: 999px; font-size: .66rem; letter-spacing: .04em;
  background: rgba(27, 4, 17, .68); border: 1px solid rgba(255, 30, 122, .3);
  color: #fff; backdrop-filter: blur(10px);
  max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pill.ghost { color: var(--blush); border-color: rgba(255, 158, 187, .2); }

.bubble {
  position: absolute; z-index: 6; top: 16%; inset-inline-start: 50%;
  transform: translate(-50%, -8px) scale(.9);
  padding: 8px 16px; border-radius: 18px;
  background: rgba(255, 214, 231, .96); color: #3b0724;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease-out);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .8);
}
.bubble::after {
  content: ""; position: absolute; bottom: -6px; inset-inline-start: 50%;
  width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
.bubble.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }

.stage-side {
  position: absolute; z-index: 6; inset-inline-end: 12px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
}

.backdrops {
  position: absolute; z-index: 6; bottom: 12px; inset-inline: 12px;
  display: flex; gap: 6px; overflow-x: auto; padding: 2px;
  scrollbar-width: none;
}
.backdrops::-webkit-scrollbar { display: none; }
.bd {
  flex: 0 0 auto; padding: 7px 13px; border-radius: 999px;
  font-size: .62rem; color: var(--blush);
  background: rgba(27, 4, 17, .72); border: 1px solid rgba(255, 158, 187, .18);
  backdrop-filter: blur(10px); white-space: nowrap;
  transition: all .18s var(--ease);
}
.bd.is-on { background: rgba(255, 30, 122, .3); color: #fff; border-color: var(--hot); }

/* ── panel ────────────────────────────────────────────────── */
.panel {
  position: sticky; top: 76px;
  border-radius: 26px;
  background: var(--glass-2);
  border: 1px solid rgba(255, 158, 187, .16);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 214, 231, .12);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  max-height: calc(100svh - 100px);
  overflow: hidden;
}

.tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid rgba(255, 158, 187, .1); }
.tab {
  flex: 1; padding: 9px 4px; border-radius: 12px; border: 0;
  background: transparent; color: var(--blush);
  font-size: .74rem; font-weight: 600;
  transition: background .18s, color .18s;
}
.tab:hover { background: rgba(255, 30, 122, .12); color: #fff; }
.tab.is-on { background: rgba(255, 30, 122, .26); color: #fff; }

.pane { display: none; padding: 12px; overflow-y: auto; flex: 1; }
.pane.is-on { display: block; }
.pane::-webkit-scrollbar { width: 6px; }
.pane::-webkit-scrollbar-thumb { background: rgba(255, 30, 122, .4); border-radius: 999px; }

.searchrow { display: flex; gap: 6px; margin-bottom: 10px; }
.searchrow input {
  flex: 1; min-width: 0; padding: 10px 14px;
  border-radius: 12px; border: 1px solid rgba(255, 158, 187, .2);
  background: rgba(27, 4, 17, .6); color: #fff; font-size: .78rem;
  outline: none; transition: border-color .18s;
}
.searchrow input::placeholder { color: rgba(255, 158, 187, .5); }
.searchrow input:focus { border-color: var(--hot); }

.chips { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.sub { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: 0 0 auto; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 158, 187, .18); background: rgba(27, 4, 17, .5);
  color: var(--blush); font-size: .66rem; white-space: nowrap;
  transition: all .16s var(--ease);
}
.chip:hover { border-color: rgba(255, 30, 122, .5); color: #fff; }
.chip.is-on { background: rgba(255, 30, 122, .28); border-color: var(--hot); color: #fff; }

.counter { margin: 4px 2px 10px; font-size: .68rem; color: rgba(255, 158, 187, .75); }
.counter b { color: #fff; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }

.item {
  position: relative; text-align: start; padding: 9px 10px;
  border-radius: 13px; border: 1px solid rgba(255, 158, 187, .14);
  background: rgba(61, 8, 38, .45);
  color: var(--candy); transition: all .16s var(--ease);
  overflow: hidden;
}
.item:hover { border-color: rgba(255, 30, 122, .55); background: rgba(61, 8, 38, .75); transform: translateY(-1px); }
.item.is-on { border-color: var(--hot); background: rgba(255, 30, 122, .24); box-shadow: 0 0 0 1px var(--hot) inset; }
.item.is-locked { opacity: .5; }
.item .nm { display: block; font-size: .7rem; font-weight: 600; line-height: 1.35; }
.item .meta { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: .56rem; color: rgba(255, 158, 187, .8); }
.item .sw {
  width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .35);
}
.item .rar { letter-spacing: .05em; text-transform: uppercase; }
.rar-common { color: rgba(255, 214, 231, .6); }
.rar-rare { color: #ff9ebb; }
.rar-epic { color: #ff66a3; }
.rar-legend { color: #fff; text-shadow: 0 0 8px var(--hot); }
.item .lock { position: absolute; inset-inline-end: 8px; top: 8px; font-size: .6rem; opacity: .8; }

.unlockall {
  width: 100%; margin-top: 12px; padding: 11px;
  border-radius: 13px; border: 1px solid rgba(255, 30, 122, .5);
  background: rgba(255, 30, 122, .18); color: #fff;
  font-size: .74rem; font-weight: 700;
  transition: all .18s var(--ease);
}
.unlockall:hover { background: rgba(255, 30, 122, .34); }
.unlockall.ghost { border-color: rgba(255, 158, 187, .3); background: rgba(255, 158, 187, .08); }
.unlockall.ghost:hover { background: rgba(255, 158, 187, .16); }

/* ── animations ───────────────────────────────────────────── */
.grid.anim { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.animcard {
  text-align: start; padding: 12px 10px; border-radius: 14px;
  border: 1px solid rgba(255, 158, 187, .16);
  background: linear-gradient(150deg, rgba(61, 8, 38, .7), rgba(36, 6, 22, .7));
  color: var(--candy); transition: all .16s var(--ease);
}
.animcard:hover { border-color: var(--hot); transform: translateY(-2px); }
.animcard.is-on { border-color: var(--hot); background: rgba(255, 30, 122, .22); }
.animcard .ico { font-size: 1.1rem; display: block; margin-bottom: 5px; }
.animcard .nm { font-size: .7rem; font-weight: 600; display: block; }
.animcard .en { font-size: .54rem; color: rgba(255, 158, 187, .7); letter-spacing: .06em; }

.hintline { margin: 10px 2px 0; font-size: .68rem; color: rgba(255, 158, 187, .75); line-height: 1.6; }
.hintline b { color: #fff; }

/* ── games ────────────────────────────────────────────────── */
.grid.games { grid-template-columns: 1fr; }
.gamecard {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 13px; text-align: start;
  border: 1px solid rgba(255, 158, 187, .14);
  background: rgba(61, 8, 38, .45); color: var(--candy);
  transition: all .16s var(--ease);
}
.gamecard:hover { border-color: var(--hot); background: rgba(61, 8, 38, .78); transform: translateX(-2px); }
.gamecard .ico { font-size: 1.15rem; flex: 0 0 auto; width: 26px; text-align: center; }
.gamecard .txt { min-width: 0; flex: 1; }
.gamecard .nm { display: block; font-size: .72rem; font-weight: 600; }
.gamecard .tag { font-size: .56rem; color: rgba(255, 158, 187, .7); }
.gamecard .best { font-size: .58rem; color: #fff; opacity: .7; font-variant-numeric: tabular-nums; }

/* ── looks ────────────────────────────────────────────────── */
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot {
  padding: 12px 10px; border-radius: 14px; text-align: start;
  border: 1px dashed rgba(255, 158, 187, .26);
  background: rgba(61, 8, 38, .35); color: var(--blush);
  transition: all .16s var(--ease); min-height: 84px;
  display: flex; flex-direction: column; gap: 4px;
}
.slot:hover { border-color: var(--hot); }
.slot.has { border-style: solid; background: rgba(255, 30, 122, .16); color: #fff; }
.slot .idx { font-size: .56rem; letter-spacing: .1em; opacity: .65; }
.slot .nm { font-size: .7rem; font-weight: 600; }
.slot .sub { font-size: .56rem; opacity: .7; }
.slot .row { display: flex; gap: 5px; margin-top: auto; }
.slot .mini {
  flex: 1; padding: 4px; border-radius: 7px; font-size: .56rem;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1);
  color: inherit;
}
.slot .mini:hover { background: rgba(255, 30, 122, .4); }

/* ── modals ───────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 20px;
  background: rgba(10, 2, 8, .78);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .26s var(--ease), visibility .26s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.sheet {
  position: relative; width: min(430px, 100%);
  max-height: min(86svh, 760px); overflow-y: auto;
  border-radius: 26px; padding: 22px 20px 20px;
  background: linear-gradient(165deg, rgba(61, 8, 38, .96), rgba(27, 4, 17, .98));
  transform: translateY(14px) scale(.97);
  transition: transform .3s var(--ease-out);
}
.sheet.wide { width: min(520px, 100%); }
.modal.is-open .sheet { transform: none; }
.sheet::-webkit-scrollbar { width: 6px; }
.sheet::-webkit-scrollbar-thumb { background: rgba(255, 30, 122, .4); border-radius: 999px; }

.close { position: absolute; inset-inline-end: 12px; top: 12px; width: 32px; height: 32px; font-size: .8rem; }

.sheet-over { margin: 0 0 4px; font-size: .54rem; letter-spacing: .24em; color: var(--blush); opacity: .7; }
.sheet-title { margin: 0 0 14px; font-size: 1.16rem; color: #fff; font-weight: 700; }

textarea {
  width: 100%; padding: 11px 14px; border-radius: 13px;
  border: 1px solid rgba(255, 158, 187, .22);
  background: rgba(27, 4, 17, .65); color: #fff; font-size: .78rem;
  resize: vertical; outline: none; line-height: 1.6;
}
textarea::placeholder { color: rgba(255, 158, 187, .45); }
textarea:focus { border-color: var(--hot); }

.send {
  width: 100%; margin-top: 12px; padding: 12px;
  border-radius: 14px; border: 0;
  background: linear-gradient(135deg, var(--hot), var(--rose));
  color: #fff; font-size: .82rem; font-weight: 700;
  box-shadow: 0 12px 28px -14px var(--hot);
  transition: transform .16s var(--ease), filter .16s;
}
.send:hover { filter: brightness(1.1); }
.send:active { transform: scale(.98); }

.ghostbtn {
  padding: 11px 14px; border-radius: 13px;
  border: 1px solid rgba(255, 158, 187, .3);
  background: rgba(255, 158, 187, .08); color: var(--candy);
  font-size: .74rem; font-weight: 600;
  transition: all .16s;
}
.ghostbtn:hover { background: rgba(255, 158, 187, .18); }

.snap {
  width: 100%; border-radius: 16px; display: block; margin-bottom: 12px;
  border: 1px solid rgba(255, 158, 187, .2); background: #12030c;
}
.sharerow { display: flex; gap: 8px; align-items: stretch; }
.sharerow .send { flex: 1; margin: 0; }

/* ── vault ────────────────────────────────────────────────── */
.vault-count { margin: 0 0 12px; font-size: .68rem; color: var(--blush); font-variant-numeric: tabular-nums; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note {
  padding: 12px 14px; border-radius: 14px;
  border: 1px solid rgba(255, 158, 187, .18);
  background: rgba(61, 8, 38, .5);
}
.note b { display: block; font-size: .76rem; color: #fff; margin-bottom: 5px; }
.note p { margin: 0; font-size: .72rem; line-height: 1.7; color: var(--blush); }
.note.locked { opacity: .45; }
.note.locked b { color: rgba(255, 158, 187, .6); }
.note.locked p { font-size: .6rem; letter-spacing: .2em; }

/* ── minigame ─────────────────────────────────────────────── */
.game-desc { margin: 0 0 14px; font-size: .74rem; line-height: 1.65; color: var(--blush); }
.game-body {
  min-height: 190px; border-radius: 18px;
  background: rgba(27, 4, 17, .6);
  border: 1px solid rgba(255, 158, 187, .14);
  padding: 14px; display: grid; gap: 10px; place-items: center;
  align-content: center; text-align: center;
}
.game-body .big { font-size: 1.6rem; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.game-body .lbl { font-size: .66rem; color: var(--blush); letter-spacing: .08em; }
.game-body .q { font-size: 1.3rem; color: #fff; font-weight: 700; }
.game-body .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.game-body .opt {
  padding: 10px 18px; border-radius: 12px; min-width: 74px;
  border: 1px solid rgba(255, 158, 187, .28);
  background: rgba(61, 8, 38, .7); color: #fff;
  font-size: .84rem; font-weight: 700; transition: all .14s var(--ease);
}
.game-body .opt:hover { border-color: var(--hot); background: rgba(255, 30, 122, .28); }
.game-body .opt.ok { background: rgba(255, 30, 122, .5); border-color: #fff; }
.game-body .opt.bad { opacity: .35; }
.game-body .pad {
  display: grid; grid-template-columns: repeat(3, 62px); gap: 8px;
}
.game-body .cell {
  aspect-ratio: 1; border-radius: 14px;
  border: 1px solid rgba(255, 158, 187, .2);
  background: rgba(61, 8, 38, .6); color: #fff;
  font-size: 1.1rem; display: grid; place-items: center;
  transition: all .12s var(--ease);
}
.game-body .cell:hover { border-color: var(--hot); }
.game-body .cell.on { background: rgba(255, 30, 122, .55); border-color: #fff; }
.game-body .bar {
  width: 100%; height: 12px; border-radius: 999px;
  background: rgba(255, 158, 187, .16); overflow: hidden;
}
.game-body .bar i {
  display: block; height: 100%; width: 50%;
  background: linear-gradient(90deg, var(--hot), var(--candy));
  transition: width .12s linear;
}
.game-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
}
.game-score { flex: 1; font-size: .68rem; color: var(--blush); font-variant-numeric: tabular-nums; }
.game-foot .send { width: auto; margin: 0; padding: 11px 22px; }

.helplist { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.helplist li { font-size: .76rem; line-height: 1.6; color: var(--blush); padding-inline-start: 16px; position: relative; }
.helplist li::before { content: "♥"; position: absolute; inset-inline-start: 0; color: var(--hot); font-size: .6rem; top: 4px; }
.helplist b { color: #fff; }

/* ── intro ────────────────────────────────────────────────── */
.intro {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: radial-gradient(70% 60% at 50% 40%, #3d0826, #12030c 70%);
  cursor: pointer;
  transition: opacity .9s var(--ease), visibility .9s;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-in { text-align: center; padding: 26px; animation: rise 1s var(--ease-out) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.intro-cat { width: clamp(120px, 30vw, 168px); margin: 0 auto 12px; }
.intro-cat svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 16px 34px rgba(255, 30, 122, .55)); }
.intro-over { margin: 0 0 6px; font-size: .56rem; letter-spacing: .3em; color: var(--blush); opacity: .75; }
.intro-title {
  margin: 0; font-family: "Segoe UI", Tahoma, var(--ui); font-weight: 800;
  font-size: clamp(2.4rem, 10vw, 3.6rem); line-height: 1.25; color: #fff;
  text-shadow: 0 0 26px rgba(255, 30, 122, .9), 0 0 66px rgba(255, 30, 122, .5);
  animation: rise 1.1s .1s var(--ease-out) forwards;
}
.intro-line { margin: 8px 0 0; font-size: .84rem; color: var(--blush); animation: rise 1.1s .2s var(--ease-out) forwards; }
.intro-hint {
  margin: 22px 0 0; font-size: .68rem; color: var(--hot);
  animation: pulse 2s ease-in-out infinite;
}

/* ── toast ────────────────────────────────────────────────── */
.toast {
  position: fixed; z-index: 90; bottom: 26px; inset-inline-start: 50%;
  transform: translate(-50%, 14px);
  padding: 11px 20px; border-radius: 999px;
  background: rgba(255, 214, 231, .97); color: #3b0724;
  font-size: .76rem; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease-out);
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .9);
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 12px 12px 22px;
    gap: 12px;
  }
  .stage { aspect-ratio: 1 / 1; max-height: 62svh; border-radius: 24px; }
  .panel {
    position: static; max-height: 58svh;
    border-radius: 24px;
  }
  .pane { max-height: 46svh; }
  .brand em { display: none; }
  .brand b { font-size: .84rem; }
}

@media (max-width: 480px) {
  .topbar { padding: 10px 12px; gap: 8px; }
  .brand b { font-size: .78rem; }
  .wallet { padding: 5px 10px; font-size: .74rem; }
  .icon { width: 34px; height: 34px; border-radius: 10px; }
  .stage { aspect-ratio: 1 / 1.02; max-height: 58svh; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .item { padding: 8px; }
  .item .nm { font-size: .64rem; }
  .tabs { padding: 6px; }
  .tab { font-size: .68rem; padding: 8px 2px; }
  .pane { padding: 10px; }
  .sheet { padding: 18px 16px 16px; border-radius: 22px; }
  .sheet-title { font-size: 1.02rem; }
  .intro-title { font-size: clamp(2.1rem, 12vw, 3rem); }
  .game-body .pad { grid-template-columns: repeat(3, 54px); }
  .stage-side { inset-inline-end: 8px; gap: 6px; }
}

@media (max-height: 640px) {
  .stage { aspect-ratio: 1 / .8; max-height: 52svh; }
  .panel { max-height: 54svh; }
  .pane { max-height: 42svh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
