/* Pods, Studio, Profile, Friends, Shop, Aurora, Settings, Bubble Pop. */

.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rot90 { transform: rotate(90deg); }

/* Pods ------------------------------------------------------------------------ */
.pods-hero { display: flex; gap: 24px; align-items: center; padding: 22px 24px; flex-wrap: wrap; }
.pods-hero h2 { font-size: 1.6rem; margin-bottom: 6px; }
.pods-hero p { max-width: 560px; margin: 0; }
.pods-hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pods-hero-actions .field { width: 240px; }
.pod-orb {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.8rem;
  text-shadow: none;
  position: relative;
  border: 0;
  background: radial-gradient(circle at 50% 118%, color-mix(in srgb, var(--pc, var(--accent)) 30%, white), transparent 55%), radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--pc, var(--accent)) 45%, white), var(--pc, var(--accent)) 62%, color-mix(in srgb, var(--pc, var(--accent)) 65%, black));
  box-shadow: inset 0 -4px 8px color-mix(in srgb, var(--pc, var(--accent)) 50%, black), inset 0 0 0 1px color-mix(in srgb, var(--pc, var(--accent)) 50%, black), 0 6px 16px -4px color-mix(in srgb, var(--pc, var(--accent)) 70%, transparent);
}
.pod-orb::before { content: ''; position: absolute; top: 3px; left: 18%; right: 18%; height: 42%; border-radius: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.05)); pointer-events: none; }
.pod-orb.xl { width: 96px; height: 96px; font-size: 2.9rem; }
.pod-orb.pick { cursor: pointer; transition: transform 0.35s var(--spring); }
.pod-orb.pick:hover { transform: scale(1.08) rotate(-6deg); }
.pod-card { --pc: var(--accent); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.4s var(--spring); }
.pod-card:hover { transform: translateY(-4px); }
.pod-card-top {
  position: relative;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5) 0 5%, transparent 6%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.4) 0 4%, transparent 5%),
    radial-gradient(circle at 65% 20%, rgba(255, 255, 255, 0.35) 0 3%, transparent 4%),
    linear-gradient(180deg, color-mix(in srgb, var(--pc) 55%, white), color-mix(in srgb, var(--pc) 85%, transparent));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5);
}
.pod-card-top .pod-orb { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7), inset 0 -4px 8px color-mix(in srgb, var(--pc) 50%, black), 0 8px 18px -6px rgba(0, 0, 0, 0.4); }
.pod-card-top .official { position: absolute; top: 8px; right: 8px; }
.pod-card-body { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pod-card-body p { margin: 0; flex: 1; }
.official { color: #0b5fa8; }
.color-dot { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.2), inset 0 3px 3px rgba(255, 255, 255, 0.4); transition: transform 0.3s var(--spring); }
.color-dot:hover { transform: scale(1.15); }
.color-dot.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent), inset 0 -3px 5px rgba(0, 0, 0, 0.2); }

.pod-banner { --pc: var(--accent); position: relative; overflow: hidden; padding: 0; border-radius: var(--r-xl); }
.pod-banner-bg { position: absolute; inset: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 70%, white), color-mix(in srgb, var(--pc) 90%, black)); opacity: 0.55; border-radius: inherit; z-index: -1; }
.pod-banner-bg span { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.1) 60%, transparent 70%); animation: float 8s ease-in-out infinite; }
.bb1 { width: 120px; height: 120px; right: 8%; top: -30px; }
.bb2 { width: 60px; height: 60px; right: 26%; bottom: 10px; animation-delay: -3s !important; }
.bb3 { width: 34px; height: 34px; right: 4%; bottom: 30px; animation-delay: -5s !important; }
.pod-banner-main { position: relative; display: flex; gap: 20px; align-items: center; padding: 24px; flex-wrap: wrap; }
.pod-banner-main h1 { font-size: 2rem; }
.pod-banner-main p { margin: 6px 0 10px; max-width: 640px; }
.pod-actions { display: flex; gap: 8px; align-items: center; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-right: -8px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); border-radius: 50%; }
.avatar-stack .avatar:last-child { margin-right: 6px; }
.join-prompt { display: flex; align-items: center; gap: 14px; }
.member-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; text-align: center; transition: transform 0.35s var(--spring); }
.member-card:hover { transform: translateY(-3px); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--gap); }
.gallery-item { margin: 0; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gallery-item figcaption { width: 100%; display: flex; flex-direction: column; gap: 4px; }

/* Studio ------------------------------------------------------------------------ */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--gap); align-items: start; }
.studio-actions { display: flex; flex-direction: column; gap: 10px; }
.like-btn { gap: 4px; }
@media (max-width: 1100px) { .studio-grid { grid-template-columns: 1fr; } }

/* Profile ----------------------------------------------------------------------- */
.profile-effect { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.profile-hero { display: flex; align-items: center; gap: 24px; padding: 24px 28px; flex-wrap: wrap; border-radius: 34px; }
.hero-avatar { flex: none; animation: pip-bob 5s ease-in-out infinite; }
.hero-main { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 8px; }
.hero-name { font-size: 2.2rem; line-height: 1.1; }
.hero-name .aurora-mark { width: 26px; height: 26px; vertical-align: 4px; }
.hero-name .aurora-mark .ic { width: 16px; height: 16px; }
.mood-bubble {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 18px 18px 18px 4px;
  font-weight: 800;
  color: #0b2540;
  text-shadow: none;
  background: linear-gradient(180deg, #ffffff, #e8f5ff);
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px -4px rgba(0, 30, 70, 0.4);
}
.mood-emoji { font-size: 1.3rem; }
.now-playing { display: inline-flex; align-items: center; gap: 8px; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -0.3s; }
.eq i:nth-child(3) { animation-delay: -0.6s; }
.eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.badge-row { display: flex; gap: 6px; flex-wrap: wrap; }
.badge-chip { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; text-shadow: none; background: radial-gradient(circle at 35% 30%, #fffbe6, #ffe08a 60%, #e9b21c); box-shadow: inset 0 -2px 4px rgba(150, 90, 0, 0.35), 0 3px 8px -3px rgba(150, 90, 0, 0.6); cursor: help; transition: transform 0.35s var(--spring); }
.badge-chip:hover { transform: scale(1.2) rotate(-8deg); }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.profile-grid { columns: 3 320px; column-gap: var(--gap); }
.profile-grid > .widget { break-inside: avoid; margin-bottom: var(--gap); display: flex; flex-direction: column; gap: 10px; }
.profile-grid .card-head { margin-bottom: 0; }
.bio { font-size: 1.02rem; margin: 0; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag.removable button { border: 0; background: none; cursor: pointer; margin-left: 4px; font-weight: 900; color: inherit; }
.meter-row { display: flex; flex-direction: column; gap: 4px; }
.top-friends { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.top-friend { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; transition: transform 0.35s var(--spring); }
.top-friend:hover { transform: translateY(-3px) scale(1.05); }
.top-friend span { max-width: 100%; }
.tank-canvas { width: 100%; height: 190px; border-radius: 18px; display: block; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), 0 8px 20px -8px rgba(0, 40, 90, 0.5); }
.jingle-view, .jingle-edit { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; flex: 1; }
.jcol { display: grid; grid-template-rows: repeat(8, 1fr); gap: 3px; border-radius: 4px; padding: 1px; transition: background 0.1s; }
.jcol.now { background: rgba(var(--accent-rgb), 0.35); }
.jcol i { height: 6px; border-radius: 2px; background: rgba(var(--ink-rgb), 0.1); }
.jcol i.on { background: linear-gradient(180deg, #ffb3dc, #ff4f9a); box-shadow: 0 0 6px rgba(255, 79, 154, 0.7); }
.jcell { height: 16px; border: 0; border-radius: 4px; background: rgba(var(--ink-rgb), 0.1); cursor: pointer; padding: 0; }
.jcell.on { background: linear-gradient(180deg, #ffb3dc, #ff4f9a); box-shadow: 0 0 6px rgba(255, 79, 154, 0.7); }
.jcell:hover { outline: 2px solid rgba(var(--accent-rgb), 0.6); }
.mini-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.mini-art .pixel-frame { padding: 6px; border-radius: 12px; }
.gb-form { display: flex; flex-direction: column; gap: 6px; }
textarea.gb-input { min-height: 3.2em; }
.gb-list { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; }
.gb-entry { position: relative; display: flex; gap: 10px; align-items: flex-start; }
.gb-bubble { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: rgba(255, 255, 255, 0.45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); }
[data-ink='light'] .gb-bubble { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.gb-sticker { position: absolute; right: -6px; top: -12px; transform: rotate(10deg); }
.gb-del { position: absolute; left: -8px; top: -8px; width: 24px; height: 24px; opacity: 0; background: rgba(255, 255, 255, 0.9); color: #0b2540; }
.gb-entry:hover .gb-del { opacity: 1; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 16px; background: rgba(255, 255, 255, 0.3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7); text-align: center; }
[data-ink='light'] .stat { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.stat-emoji { font-size: 1.3rem; text-shadow: none; }
.stat b { font-size: 1.2rem; }

.editor-drawer {
  position: fixed;
  z-index: 45;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(440px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 30px;
  --glass-a: calc(var(--glass-a-base, 0.34) + 0.3);
  animation: drawer-in 0.5s var(--spring);
}
@keyframes drawer-in { from { transform: translateX(110%); } }
.editor-tabs { align-self: flex-start; flex-wrap: wrap; }
.editor-panel { flex: 1; overflow-y: auto; min-height: 0; padding: 2px 4px 10px; }
body.editing .view { padding-right: min(460px, 40vw); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pick-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, 0.28); cursor: pointer; color: var(--ink); transition: transform 0.3s var(--spring); min-height: 72px; justify-content: center; }
[data-ink='light'] .pick-item { background: rgba(255, 255, 255, 0.07); }
.pick-item:hover { transform: scale(1.05); }
.pick-item.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.pick-item.locked { opacity: 0.55; }
.pick-name { text-align: center; line-height: 1.1; }
.pick-lock { position: absolute; top: 4px; right: 6px; }
.scene-thumb { width: 84px; height: 50px; border-radius: 10px; }
.effect-ico { font-size: 1.6rem; text-shadow: none; }
.pick-item .name { font-size: 0.95rem; }
.color-row { gap: 10px; }
.widget-list { display: flex; flex-direction: column; gap: 6px; }
.widget-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.25); }
[data-ink='light'] .widget-row { background: rgba(255, 255, 255, 0.07); }
.meter-edit { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.2); }
.locked-chip { opacity: 0.55; }
@media (max-width: 820px) {
  body.editing .view { padding-right: 4px; }
  .editor-drawer { top: auto; height: 70vh; left: 10px; right: 10px; bottom: 10px; width: auto; }
  .profile-hero { padding: 18px; }
  .hero-name { font-size: 1.7rem; }
}

/* Friends ------------------------------------------------------------------------ */
.person-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px 14px; transition: transform 0.35s var(--spring); }
.person-card:hover { transform: translateY(-3px); }
.person-actions { justify-content: center; margin-top: 4px; }
.discover-bar { align-items: center; }

/* Shop ------------------------------------------------------------------------------ */
.shop-hero { display: flex; align-items: center; gap: 20px; padding: 18px 24px; flex-wrap: wrap; border-radius: 30px; }
.balance { display: flex; align-items: center; gap: 12px; }
.balance-num { font-size: 2rem; font-weight: 900; line-height: 1; }
.earn-list { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.tabs-scroll { overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--gap); }
.shop-item { display: flex; flex-direction: column; overflow: hidden; transition: transform 0.4s var(--spring); }
.shop-item:hover { transform: translateY(-4px); }
.shop-preview { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.1) 70%); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.4); }
[data-ink='light'] .shop-preview { background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02) 70%); }
.shop-scene { width: 100%; height: 100%; display: block; }
.effect-prev { position: relative; width: 100%; height: 100%; background: linear-gradient(180deg, #2f7fd8, #7fcaff); }
.effect-prev.tall { height: 160px; border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, #040a24, #1b2a6b); }
.effect-prev canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.shop-tank { width: 100%; height: 100%; display: block; }
.big-name { font-size: 1.7rem; }
.mini-paper { width: 70%; height: 110px; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; font-family: 'Patrick Hand', var(--font); font-size: 1.05rem; line-height: 1.2; transform: rotate(-3deg); }
.mini-stickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mini-palette { display: grid; grid-template-columns: repeat(8, 18px); gap: 3px; }
.mini-palette span { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), inset 0 5px 5px -3px rgba(255, 255, 255, 0.6); }
.shop-info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-info p { margin: 0; flex: 1; }
.aurora-ribbon { position: absolute; top: 10px; left: -30px; transform: rotate(-35deg); padding: 3px 34px; font-size: 0.72rem; font-weight: 900; color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3); background: linear-gradient(90deg, #22d3a6, #3aa0ff, #9b6bff); display: flex; gap: 4px; align-items: center; }
.pack-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pack-card { border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 14px; color: var(--ink); font: inherit; transition: transform 0.4s var(--spring); }
.pack-card:hover { transform: translateY(-4px) scale(1.02); }
.pack-bubbles { display: flex; gap: 0; height: 50px; align-items: center; }
.pack-bubbles .bubble-coin + .bubble-coin { margin-left: -14px; }
.pack-price { font-size: 1.4rem; font-weight: 900; color: var(--accent); }

.demo-banner { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; font-size: 0.85rem; font-weight: 700; color: #6b4a00; text-shadow: none; background: linear-gradient(180deg, #fff6d0, #ffe9a8); box-shadow: inset 0 1px 0 #fff, 0 2px 8px -3px rgba(200, 140, 0, 0.5); }
.demo-banner code { background: rgba(0, 0, 0, 0.08); padding: 0 4px; border-radius: 4px; }
.checkout-summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.checkout-price { font-size: 1.3rem; font-weight: 900; text-align: right; }
.fake-card {
  aspect-ratio: 1.6;
  max-width: 340px;
  margin: 0 auto;
  width: 100%;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%), linear-gradient(125deg, #1e9bff, #00b3c7 45%, #8a5be0);
  box-shadow: 0 20px 40px -14px rgba(0, 40, 100, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: rotate(-3deg);
}
.fake-chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #fff2b0, #d9a700); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.fake-brand { letter-spacing: 0.15em; }
.fake-number { font-size: 1.3rem; letter-spacing: 0.12em; font-family: 'Courier New', monospace; font-weight: 700; }

/* Aurora --------------------------------------------------------------------------- */
.aurora-hero { position: relative; overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; border-radius: 34px; }
.aurora-scene { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.aurora-copy { position: relative; padding: 30px; display: flex; flex-direction: column; gap: 12px; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); max-width: 680px; }
.aurora-copy .chip { color: #0b2540; }
.aurora-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  background: linear-gradient(90deg, #7dffd8, #7ec8ff, #c8a8ff, #ffb3ec, #7dffd8);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: name-slide 6s linear infinite;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
  text-shadow: none;
}
.plan-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.plan-card { position: relative; overflow: hidden; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.plan-card.best { box-shadow: 0 0 0 2px rgba(155, 107, 255, 0.7), 0 12px 32px -8px rgba(120, 80, 255, 0.5); }
.plan-ribbon { position: absolute; top: 16px; right: -34px; transform: rotate(35deg); padding: 4px 40px; font-size: 0.75rem; font-weight: 900; color: #fff; background: linear-gradient(90deg, #9b6bff, #ff6fd8); }
.plan-price b { font-size: 2.2rem; }
.manage-card p { margin: 0 0 8px; }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 16px; }
.perk p { margin: 4px 0 0; }
.aurora-peek { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap); }
.aurora-peek .card { display: flex; flex-direction: column; gap: 12px; }
.aurora-thumb { width: 130px; height: 74px; border-radius: 12px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.4); }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { padding: 0; }
.faq-item summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; font-weight: 800; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item p { padding: 0 18px 14px; margin: 0; }

/* Settings ------------------------------------------------------------------------- */
.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.settings-nav { padding: 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; }
.settings-panel { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.settings-panel > .card { display: flex; flex-direction: column; gap: 12px; }
.setting-row { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.setting-row:last-child { border-bottom: 0; }
.setting-row.col-row { flex-direction: column; align-items: stretch; gap: 6px; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.preset-card { position: relative; border: 0; padding: 0; border-radius: 18px; overflow: hidden; cursor: pointer; background: none; box-shadow: 0 6px 16px -6px rgba(0, 30, 70, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.5); transition: transform 0.35s var(--spring); }
.preset-card:hover { transform: translateY(-3px) scale(1.02); }
.preset-card.on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent), 0 8px 20px -6px rgba(0, 30, 70, 0.5); }
.preset-card.locked { filter: saturate(0.5); }
.preset-card canvas { display: block; width: 100%; height: 86px; }
.preset-name { position: absolute; left: 8px; bottom: 8px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 0.82rem; color: #0b2540; text-shadow: none; background: rgba(255, 255, 255, 0.85); }
.preset-dot { position: absolute; right: 10px; bottom: 10px; width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.scene-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.scene-pick { border: 0; padding: 4px 4px 6px; border-radius: 14px; cursor: pointer; background: rgba(255, 255, 255, 0.25); display: flex; flex-direction: column; gap: 4px; align-items: center; color: var(--ink); transition: transform 0.3s var(--spring); }
.scene-pick canvas { width: 100%; height: 64px; border-radius: 10px; }
.scene-pick.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.scene-pick.locked { opacity: 0.6; }
.scene-pick:hover { transform: scale(1.04); }
.glass-lens {
  position: fixed;
  z-index: 44;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  --glass-a: 0.06;
  animation: lens-in 0.7s var(--spring);
}
.glass-lens.dragging { cursor: grabbing; }
@keyframes lens-in { from { transform: scale(0.3); } }
.lens-label { font-weight: 900; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; }
.danger-zone { box-shadow: 0 0 0 2px rgba(226, 64, 90, 0.35), 0 12px 32px -8px rgba(0, 25, 60, var(--shadow-a)); }
.shortcut-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; font-family: inherit; font-weight: 800; font-size: 0.82rem; background: linear-gradient(180deg, #fff, #dfe8f2); color: #0b2540; text-shadow: none; box-shadow: 0 2px 0 #aab8c8, inset 0 1px 0 #fff; }
@media (max-width: 820px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; overflow-x: auto; }
  .settings-nav .list-item { flex: none; }
  .glass-lens { width: 140px; height: 140px; }
}

/* Bubble Pop ------------------------------------------------------------------------ */
.game-modal { width: min(760px, 100%); }
.game-wrap { position: relative; height: min(460px, 60vh); border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5); }
.game-canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
.game-hud { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; align-items: center; gap: 10px; pointer-events: none; color: #fff; text-shadow: 0 1px 3px rgba(0, 40, 90, 0.7); font-weight: 900; }
.game-score { display: inline-flex; align-items: center; gap: 6px; font-size: 1.5rem; }
.game-combo { padding: 2px 10px; border-radius: 999px; background: linear-gradient(180deg, #ffe680, #ffb000); color: #7a4a00; text-shadow: none; animation: jelly 0.5s var(--ease); }
.game-time { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.game-bar { display: block; width: 120px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #7dffd8, #fff); box-shadow: 0 0 8px rgba(255, 255, 255, 0.8); transition: width 0.2s linear; }
.game-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 30, 70, 0.25); }
.game-card { padding: 24px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 380px; --glass-a: calc(var(--glass-a-base, 0.34) + 0.35); }
.game-rules { display: flex; gap: 14px; font-weight: 900; }
.game-rules > span { display: inline-flex; align-items: center; gap: 6px; }
.rule-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.rule-dot.blue { background: radial-gradient(circle at 35% 30%, #fff, #9be7ff 40%, #1e9bff); }
.rule-dot.gold { background: radial-gradient(circle at 35% 30%, #fff, #ffe066 40%, #f0a500); }
.rule-dot.urchin { background: radial-gradient(circle, #3a1f4d 55%, transparent 56%), repeating-conic-gradient(#2a0f3a 0 10deg, transparent 10deg 25deg); }
.game-final { display: inline-flex; align-items: center; gap: 8px; font-size: 3rem; font-weight: 900; color: var(--accent); }
