:root {
  --paper: #FBF7F0;
  --paper-2: #F3ECE0;
  --ink: #2E3446;
  --ink-2: #6B7183;
  --line: rgba(46, 52, 70, 0.12);
  --card: #FFFFFF;
  --accent: #FF5FA2;
  --accent-2: #8E5CF7;
  --gold: #FFC83D;
  --good: #2BB673;
  --radius: 18px;
  font-family: Nunito, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body {
  background:
    radial-gradient(1200px 600px at 50% -10%, #FFFFFF 0%, transparent 60%),
    radial-gradient(600px 400px at 10% 110%, rgba(255, 95, 162, 0.10), transparent 70%),
    radial-gradient(600px 400px at 90% 110%, rgba(94, 200, 248, 0.12), transparent 70%),
    var(--paper);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
.ic { width: 22px; height: 22px; flex: none; }

#app {
  position: relative;
  height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.hud {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 4px;
}
.title { flex: 1; min-width: 0; }
#lvl { font-weight: 900; font-size: 20px; letter-spacing: -0.01em; }
.hard { display: inline-block; vertical-align: 3px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #F0443A; color: #fff; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
#pic { font-weight: 700; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border-radius: 999px; padding: 7px 14px 7px 9px;
  box-shadow: 0 2px 0 var(--line), 0 6px 16px rgba(46, 52, 70, 0.08);
  font-weight: 800;
}
.pill .ic { color: #E3A008; }
.iconbtn {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--card); box-shadow: 0 2px 0 var(--line), 0 6px 16px rgba(46, 52, 70, 0.08);
}

.tip {
  margin: 4px 16px 0; padding: 0 14px; border-radius: 14px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; line-height: 1.35;
  max-height: 0; opacity: 0; overflow: hidden; transition: all 0.35s ease;
}
.tip.show { max-height: 80px; opacity: 1; padding: 10px 14px; }

#stage { position: relative; flex: 1; min-height: 0; }
#cv { position: absolute; inset: 0; display: block; touch-action: none; }

.hand {
  position: absolute; width: 46px; height: 46px; margin: 6px 0 0 4px; pointer-events: none; opacity: 0;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M18 26V10a3.5 3.5 0 0 1 7 0v11l9.6 2.2a4 4 0 0 1 3 4.6L36 38a6 6 0 0 1-6 5H22a6 6 0 0 1-4.7-2.3L10.6 32a3.4 3.4 0 0 1 5-4.6z' fill='%23fff' stroke='%232E3446' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}
.hand.show { opacity: 1; animation: tapme 1.2s ease-in-out infinite; }
@keyframes tapme { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-4px, -6px) scale(0.92); } }

.tools {
  display: flex; gap: 10px; justify-content: center; padding: 6px 16px 14px;
}
.tool {
  position: relative; flex: 1; max-width: 140px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; border-radius: 16px; background: var(--card); font-weight: 800; font-size: 15px;
  box-shadow: 0 3px 0 var(--line), 0 8px 18px rgba(46, 52, 70, 0.08);
  transition: transform 0.08s ease;
}
.tool:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.tool .count {
  position: absolute; top: -7px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; display: grid; place-items: center;
}
.tool.priced .count { background: #E3A008; }

.sheet {
  position: absolute; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(30, 33, 45, 0.0); pointer-events: none; transition: background 0.25s ease;
}
.sheet.open { background: rgba(30, 33, 45, 0.45); pointer-events: auto; }
.sheet .card {
  position: relative; width: 100%; max-height: 88%; overflow: auto;
  background: var(--paper); border-radius: 26px 26px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
}
.sheet.open .card { transform: translateY(0); }
.x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); }
h2 { margin: 0 0 6px; font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.sub { margin: 0 0 16px; color: var(--ink-2); font-weight: 700; }
.small { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.small a { color: var(--ink); }
.note { background: #FFF2D6; border-radius: 12px; padding: 10px 12px; font-weight: 800; margin: 0 0 12px; }
.credit { margin-top: 18px; font-size: 12px; color: var(--ink-2); font-weight: 700; text-align: center; }

.btn {
  width: 100%; height: 56px; border-radius: 18px; margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 900; font-size: 18px;
}
.btn.primary { background: linear-gradient(180deg, #FF74B0, #F04F93); color: #fff; box-shadow: 0 4px 0 #C93777, 0 12px 24px rgba(240, 79, 147, 0.35); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #C93777; }
.btn.primary[disabled] { filter: grayscale(0.8); opacity: 0.6; }
.btn.ghost { background: var(--card); box-shadow: 0 3px 0 var(--line); font-size: 16px; }
.btn .price { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, 0.25); padding: 4px 10px; border-radius: 999px; font-size: 15px; }
.btn.offer {
  height: auto; padding: 12px 16px; flex-direction: column; gap: 2px; text-align: center;
  background: linear-gradient(135deg, #8E5CF7, #5B8CFF); color: #fff; box-shadow: 0 4px 0 #5D3CC0;
}
.btn.offer span { font-size: 13px; font-weight: 700; opacity: 0.9; }
.btn.offer .price { background: #fff; color: var(--ink); opacity: 1; margin-top: 6px; }

.result { text-align: center; display: flex; flex-direction: column; align-items: center; }
.result h2 { justify-content: center; margin-top: 12px; }
.result .sub { margin-bottom: 6px; }
.thumb { image-rendering: pixelated; border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(46, 52, 70, 0.12); padding: 6px; }
.thumb.big { padding: 10px; }
.stars { display: flex; gap: 6px; margin: 10px 0 4px; }
.st .ic { width: 40px; height: 40px; color: #D9D3C7; fill: #E9E3D7; }
.st.on .ic { color: #E3A008; fill: var(--gold); animation: starpop 0.5s ease backwards; }
.st.on:nth-child(2) .ic { animation-delay: 0.15s; }
.st.on:nth-child(3) .ic { animation-delay: 0.3s; }
@keyframes starpop { from { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.25); } to { transform: scale(1); } }
.reward { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 20px; margin: 6px 0 8px; }
.reward .ic { color: #E3A008; }

.menu .row {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; margin-bottom: 10px;
  background: var(--card); border-radius: 16px; box-shadow: 0 3px 0 var(--line); font-weight: 900; font-size: 17px; position: relative;
}
.menu .row small { display: block; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.menu .row span { flex: 1; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.streak { display: inline-flex; align-items: center; gap: 6px; background: #FFE9D6; color: #B4520A; padding: 8px 14px; border-radius: 999px; font-weight: 800; margin-bottom: 8px; }

h3 { font-size: 15px; font-weight: 900; margin: 14px 0 10px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 12px; }
.album figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.album figcaption { font-size: 12px; font-weight: 800; text-align: center; }
.album .locked figcaption { color: var(--ink-2); }
.thumb.q { width: 64px; height: 64px; display: grid; place-items: center; font-weight: 900; color: #CFC7B8; font-size: 26px; background: var(--paper-2); box-shadow: none; }

.shop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.item {
  position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 14px;
  background: var(--card); border-radius: 16px; box-shadow: 0 3px 0 var(--line);
}
.item[disabled] { opacity: 0.75; cursor: default; }
.item b { font-weight: 900; }
.item span { font-size: 13px; color: var(--ink-2); font-weight: 700; flex: 1; }
.item strong { font-size: 18px; }
.item em { position: absolute; top: -8px; right: 10px; font-style: normal; font-size: 11px; font-weight: 900; background: var(--accent-2); color: #fff; padding: 2px 8px; border-radius: 999px; }

.tog { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 900; }
.tog span { flex: 1; }
.tog small { display: block; font-weight: 700; color: var(--ink-2); font-size: 13px; }
.tog input { display: none; }
.tog i { width: 48px; height: 28px; border-radius: 999px; background: #D9D3C7; position: relative; transition: background 0.2s; }
.tog i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.tog input:checked + i { background: var(--good); }
.tog input:checked + i::after { transform: translateX(20px); }

.toast {
  position: absolute; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; z-index: 20;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 14px; font-weight: 800; font-size: 14px;
  transition: all 0.25s ease; pointer-events: none; max-width: 90%; text-align: center; white-space: pre-line;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* ---- Art pass: ChatGPT-made art and the splash ---- */
body {
  background:
    linear-gradient(rgba(251, 247, 240, 0.35), rgba(251, 247, 240, 0.35)),
    url("../assets/img/bg.webp") center / cover no-repeat fixed,
    var(--paper);
}
.brand { height: 46px; width: auto; flex: none; filter: drop-shadow(0 3px 4px rgba(46, 52, 70, 0.18)); }
.brand[src^="data:"] { display: none; }
.title { padding-left: 2px; }
#lvl { font-size: 18px; }
.ic3d { width: 30px; height: 30px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 2px rgba(46, 52, 70, 0.25)); }
.pill .ic3d { width: 26px; height: 26px; margin: -4px 0; }
.tool .ic3d { width: 32px; height: 32px; margin: -6px 0; }
.menu .row .ic3d { width: 34px; height: 34px; }
.reward .ic3d { width: 30px; height: 30px; }
.st img { width: 48px; height: 48px; filter: grayscale(1) opacity(0.35); }
.st.on img { filter: drop-shadow(0 3px 4px rgba(227, 160, 8, 0.4)); animation: starpop 0.5s ease backwards; }
.st.on:nth-child(2) img { animation-delay: 0.16s; }
.st.on:nth-child(3) img { animation-delay: 0.32s; }


/* ---- Premium pass: loading scene, sheets and menus ---- */
:root { --scene: #1F2333; --gold: #FFC83D; --ink-soft: #3B4256; }

/* Loading scene (studio-mark.md 2.1) */
.splash {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(120% 80% at 50% 35%, #2E3550 0%, var(--scene) 60%, #171A27 100%);
  transition: opacity 0.5s ease, visibility 0.5s; overflow: hidden;
}
.splash.gone { opacity: 0; visibility: hidden; }
.splash-paint i { position: absolute; border-radius: 50%; filter: blur(42px); opacity: 0.45; }
.splash-paint i:nth-child(1) { width: 260px; height: 260px; left: -60px; top: 8%; background: #FF5FA2; }
.splash-paint i:nth-child(2) { width: 220px; height: 220px; right: -50px; top: 18%; background: #5EC8F8; }
.splash-paint i:nth-child(3) { width: 200px; height: 200px; left: 10%; bottom: 22%; background: #FFD23F; opacity: 0.3; }
.splash-paint i:nth-child(4) { width: 240px; height: 240px; right: 4%; bottom: 30%; background: #8E5CF7; opacity: 0.35; }
.splash-paint i:nth-child(5) { width: 180px; height: 180px; left: 40%; top: -60px; background: #2BB673; opacity: 0.3; }
.splash-logo { position: relative; width: min(80vw, 400px); margin-top: -12vh; animation: logoin 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35)); }
.splash-pot { position: relative; width: 92px; animation: hop 0.9s ease-in-out infinite; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.35)); }
.splash-bar { position: relative; width: 168px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, #FF5FA2, #FFD23F, #2BB673); animation: load 1.1s ease-in-out infinite; }
.pp-fade { position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, transparent, rgba(31, 35, 51, 0.69)); pointer-events: none; }
.pp-studio {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(3.5vh + env(safe-area-inset-bottom, 0px));
  width: clamp(140px, 34vmin, 280px); height: auto; opacity: 0.92;
  animation: pp-in 0.25s ease-out both;
}
@keyframes pp-in { from { opacity: 0; } }

/* Room for the Powell Play button in the top-left corner (56 px clear, powellplay-bar.md W1) */
.hud { padding-left: 64px; }
html.pp-host .hud, html.portal .hud { padding-left: 16px; }

/* Sheets */
.sheet .card { background: linear-gradient(180deg, #FFFDF8 0%, var(--paper) 120px); padding-top: 14px; }
.grab { display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(46, 52, 70, 0.16); margin: 0 auto 12px; }
.x { top: 18px; }
.sh-head { display: flex; align-items: center; gap: 14px; margin: 2px 44px 14px 0; }
.sh-head h2 { margin: 0; font-size: 24px; }
.sh-head p { margin: 2px 0 0; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.tile {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14), 0 4px 10px rgba(46, 52, 70, 0.14);
}
.tile img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2)); }
.tile .ic { width: 24px; height: 24px; }
.t-daily { background: linear-gradient(160deg, #FF8AC0, #F0458F); }
.t-album { background: linear-gradient(160deg, #A98BFF, #7A4FF0); }
.t-shop { background: linear-gradient(160deg, #FFE08A, #F7B21E); }
.t-settings { background: linear-gradient(160deg, #4A5372, #2E3446); }
.t-hint { background: linear-gradient(160deg, #FFF3B0, #FFD23F); }
.t-slot { background: linear-gradient(160deg, #8FD8FF, #3E9BE8); }
.t-stars { background: linear-gradient(160deg, #FFE08A, #F7B21E); }
h3 { margin: 18px 2px 8px; font-size: 12px; letter-spacing: 0.12em; }
.center { text-align: center; }

/* Menu */
.menu-top { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 0 14px; }
.menu-logo { width: 210px; height: auto; filter: drop-shadow(0 6px 10px rgba(46, 52, 70, 0.18)); }
.menu-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.menu-stats div { background: var(--card); border-radius: 16px; padding: 10px 6px; text-align: center; box-shadow: 0 2px 0 var(--line); }
.menu-stats b { display: block; font-size: 22px; font-weight: 900; }
.menu-stats span { font-size: 12px; font-weight: 800; color: var(--ink-2); letter-spacing: 0.04em; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; position: relative;
  background: var(--card); border-radius: 18px; box-shadow: 0 3px 0 var(--line), 0 8px 18px rgba(46, 52, 70, 0.05);
  transition: transform 0.08s ease;
}
.row:active, .helper:active, .item:active:not([disabled]) { transform: translateY(2px); }
.row-t { flex: 1; font-weight: 900; font-size: 17px; }
.row-t small { display: block; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.chev { color: rgba(46, 52, 70, 0.35); display: grid; }
.chev .ic { width: 20px; height: 20px; }
.row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 95, 162, 0.18); }

/* Daily */
.card-in { background: var(--card); border-radius: 20px; padding: 16px; box-shadow: 0 3px 0 var(--line); }
.daily-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.streak-big { display: flex; align-items: baseline; gap: 6px; color: #D9620A; }
.streak-big .ic { width: 26px; height: 26px; align-self: center; }
.streak-big b { font-size: 34px; font-weight: 900; line-height: 1; }
.streak-big span { font-weight: 800; font-size: 13px; color: var(--ink-2); }
.week { display: flex; gap: 6px; }
.week i { width: 18px; height: 18px; border-radius: 6px; background: rgba(46, 52, 70, 0.08); }
.week i.on { background: linear-gradient(160deg, #FF8AC0, #F0458F); }
.week i.today { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Album */
.progress { height: 10px; border-radius: 5px; background: rgba(46, 52, 70, 0.08); overflow: hidden; margin-bottom: 4px; }
.progress i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #FF5FA2, #FFD23F, #2BB673); }
.album { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; }
.mat { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 14px; background: var(--card); box-shadow: 0 3px 0 var(--line), 0 8px 16px rgba(46, 52, 70, 0.08); }
.mat .thumb { box-shadow: none; padding: 0; background: none; border-radius: 4px; }
.mat.q { background: rgba(46, 52, 70, 0.05); box-shadow: inset 0 0 0 2px rgba(46, 52, 70, 0.06); color: rgba(46, 52, 70, 0.3); }

/* Shop */
.helpers { display: flex; flex-direction: column; gap: 10px; }
.helper { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 14px; background: var(--card); border-radius: 18px; box-shadow: 0 3px 0 var(--line); }
.price { display: inline-flex; align-items: center; gap: 4px; font-weight: 900; background: #FFF4D6; color: #9A5B00; padding: 6px 10px; border-radius: 999px; }
.price img { width: 18px; height: 18px; }
.shop { grid-template-columns: 1fr 1fr; gap: 12px; }
.item { align-items: center; text-align: center; padding: 16px 12px 14px; border-radius: 20px; box-shadow: 0 3px 0 var(--line), 0 10px 20px rgba(46, 52, 70, 0.06); }
.item.gold { background: linear-gradient(170deg, #FFF8E2, #FFFFFF 60%); box-shadow: 0 3px 0 #F2D27A, 0 10px 20px rgba(247, 178, 30, 0.18); }
.item strong { margin-top: 6px; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 16px; }
.item[disabled] strong { background: rgba(46, 52, 70, 0.25); }
.item em { top: -9px; left: 50%; right: auto; transform: translateX(-50%); white-space: nowrap; }
.coins { display: flex; justify-content: center; height: 44px; margin-bottom: 6px; }
.coins img, .coins .ic { width: 40px; height: 40px; margin: 0 -9px; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.18)); }
.coins.c2 img:nth-child(2), .coins.c3 img:nth-child(2) { transform: translateY(-6px); }

/* Settings */
.group { background: var(--card); border-radius: 18px; padding: 2px 14px; box-shadow: 0 3px 0 var(--line); }
.group .tog:last-child { border-bottom: 0; }
.group.about { padding: 12px 14px; }
.group.about p { margin: 0 0 10px; font-weight: 700; color: var(--ink-2); font-size: 14px; }
.group.about code { font: 700 12px ui-monospace, Consolas, monospace; background: var(--paper); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { font-weight: 800; font-size: 14px; color: var(--ink); text-decoration: none; background: var(--paper); padding: 8px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.pp-settings-studio { text-align: center; padding: 22px 0 4px; }
.pp-settings-studio img { display: block; width: 120px; height: auto; margin: 0 auto 8px; opacity: 0.7; transition: opacity 0.15s; }
.pp-settings-studio:hover img, .pp-settings-studio:focus-within img { opacity: 1; }
.pp-settings-studio p { margin: 2px 0; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.pp-settings-studio a { color: var(--ink-2); }
.pp-settings-studio .ver { font-size: 12px; opacity: 0.8; }
html.portal .pp-settings-studio img, html.portal .pp-settings-studio a, html.portal .links a[href^="support"] { display: none; }

/* Results */
.result .thumb.big { padding: 14px; border-radius: 18px; box-shadow: 0 4px 0 var(--line), 0 16px 30px rgba(46, 52, 70, 0.14); }
.result.lose h2 { font-size: 26px; }
.btn { border-radius: 18px; }
.btn.ghost { box-shadow: 0 3px 0 var(--line), 0 8px 16px rgba(46, 52, 70, 0.05); }

@media (prefers-reduced-motion: reduce) { .splash-pot { animation: none; } }
@keyframes logoin { from { transform: scale(0.6) translateY(20px); opacity: 0; } }
@keyframes hop { 0%, 100% { transform: translateY(0) scaleY(1); } 45% { transform: translateY(-16px) scaleY(1.04); } 55% { transform: translateY(-16px); } 90% { transform: translateY(0) scaleY(0.92); } }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
/* Header with the Powell Play button in the corner: keep everything on one line */
.hud { gap: 8px; }
.brand { height: 38px; }
#lvl { font-size: 17px; white-space: nowrap; }
#lvl .hard { vertical-align: 2px; }
.pill { padding: 6px 12px 6px 8px; }
@media (max-width: 360px) { .brand { display: none; } }
/* Inside the Powell Play app the app is the studio: no mark on the game's screens (B3a) */
html.pp-host .pp-settings-studio img { display: none; }

/* ---- Powell Play ID (powellplay-ui.md: Coal, Card, Line, Bone, Dim, Lime, Danger) ---- */
.pp-card { background: #151515; border: 1px solid rgba(246, 243, 235, 0.09); border-radius: 20px; padding: 16px; color: #F6F3EB; }
.pp-card h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.2em; color: #A9A59C; font-weight: 800; }
.pp-note { margin: 0 0 12px; font-size: 13px; color: #A9A59C; font-weight: 700; }
.pp-signin { display: block; width: 100%; max-width: 320px; min-width: 240px; height: 52px; padding: 0; border-radius: 14px; background: none; transition: transform 0.08s, filter 0.08s; }
.pp-signin img { display: block; width: 100%; height: 52px; object-fit: contain; }
.pp-signin:active { transform: scale(0.97); filter: brightness(1.08); }
.pp-link { background: none; color: #A9A59C; font-weight: 800; font-size: 13px; padding: 10px 0 0; text-decoration: underline; text-underline-offset: 3px; }
.pp-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pp-row b { display: block; font-size: 15px; font-weight: 700; color: #F6F3EB; }
.pp-row small { color: #A9A59C; font-size: 13px; }
.pp-av { position: relative; flex: none; border-radius: 22%; background: #2a2a2a; display: grid; place-items: center; overflow: visible; }
.pp-av > img:first-child { width: 100%; height: 100%; border-radius: 22%; object-fit: cover; }
.pp-av > b { color: #A9A59C; font-size: 18px; }
.pp-av .pp-frame { position: absolute; width: 114%; height: 114%; left: -7%; top: -7%; pointer-events: none; }
.pp-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 0; border-top: 1px solid rgba(246, 243, 235, 0.09); background: none; color: #F6F3EB; font-weight: 700; font-size: 15px; text-align: left; text-decoration: none; }
.pp-line small { display: block; color: #A9A59C; font-size: 13px; }
.pp-line .pp-link { padding: 0; }
.pp-line.danger, .pp-line.danger span { color: #FF6B7A; }
.pp-line .ic { width: 18px; height: 18px; color: #A9A59C; }
.group.about .pp-line { border-top: 1px solid var(--line); color: var(--ink); }
.group.about .pp-line small { color: var(--ink-2); }
.group.about .pp-link { color: var(--ink); }
.pp-save { margin-top: 14px; width: 100%; background: #151515; border-radius: 18px; padding: 14px; color: #F6F3EB; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pp-save span { color: #A9A59C; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.code-box { background: var(--card); border-radius: 16px; padding: 18px; text-align: center; box-shadow: 0 3px 0 var(--line); }
.code-box code { font: 800 24px ui-monospace, Consolas, monospace; letter-spacing: 0.12em; }
.field { width: 100%; font: 800 18px Nunito, system-ui, sans-serif; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; text-align: center; letter-spacing: 0.06em; }
.pp-list { margin: 0 0 8px; padding-left: 20px; font-weight: 700; color: var(--ink-2); line-height: 1.5; }
.pp-list li { margin: 6px 0; }
.pp-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
@media (max-width: 360px) { .pp-choices { grid-template-columns: 1fr; } }
.pp-choice { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.pp-choice b { font-size: 17px; }
.pp-choice span { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.pp-choice small { margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--ink); }
.btn.pp-lime { background: #C7F000; color: #0B0B0B; box-shadow: 0 3px 0 #8FAD00; }
.btn.danger { background: #FF6B7A; color: #fff; box-shadow: 0 3px 0 #C9404F; }
.center-link { display: block; margin: 10px auto 0; color: var(--ink-2); }

/* Portal builds (CrazyGames, Poki): no studio mark and no Support links (studio-mark.md section 7) */
html.portal .pp-home-studio, html.portal .pp-settings-studio, html.portal a[href="/support"], html.portal a[href^="support"], html.portal .pp-studio { display: none; }
