/* Soulbrew Tycoon (/play). Self-contained: this page does not load the
   storefront stylesheet stack, only the same brand values and fonts. */
@font-face { font-family: "Gambetta"; src: url("/assets/fonts/gambetta.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/assets/fonts/satoshi.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --espresso: #2b1a13; --mocha: #4a3226; --foam: #fffcf7; --milk: #f7efe5; --latte: #efe2d1; --caramel: #a85d25; --caramel-deep: #8f451a;
  --honey: #e7b98a; --ink-2: #6b574b; --ink-3: #968477; --line: rgba(43, 26, 19, .1); --line-2: rgba(43, 26, 19, .18);
  --sage: #5f8a52; --rose: #d9534f; --paw: #e07a5f;
  --display: "Gambetta", "Iowan Old Style", Georgia, serif;
  --sans: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  --shadow: 0 1px 2px rgba(43, 26, 19, .05), 0 14px 32px -16px rgba(43, 26, 19, .22);
  --top: 52px; --tabs: 60px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--milk); color: var(--espresso); font: 500 15px/1.4 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 2px; border-radius: 8px; }

.pl { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 46fr) minmax(0, 54fr); padding-top: env(safe-area-inset-top); }

/* ------------------------------------------------------------ top bar */
.pl-top { display: flex; align-items: center; gap: 6px; height: var(--top); padding: 0 max(10px, env(safe-area-inset-right)) 0 max(6px, env(safe-area-inset-left)); background: var(--foam); border-bottom: 1px solid var(--line); z-index: 5; }
.pl-back, .pl-icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; transition: background .2s, transform .15s var(--ease); }
.pl-back:hover, .pl-icon:hover { background: var(--milk); }
.pl-back:active, .pl-icon:active { transform: scale(.92); }
.pl-top svg, .pl-tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pl-brand { display: flex; align-items: center; gap: 8px; font: 500 19px/1 var(--display); letter-spacing: -.01em; margin-right: auto; min-width: 0; }
.pl-brand img { height: 26px; width: auto; }
.pl-wallet { display: flex; align-items: baseline; gap: 6px; padding: 7px 12px 7px 9px; background: var(--milk); border-radius: 999px; font-variant-numeric: tabular-nums; }
.pl-wallet b { font-weight: 700; font-size: 16px; }
.pl-wallet small { color: var(--ink-3); font-size: 11.5px; font-weight: 600; }
.pl-coin { display: inline-block; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9b8, #e8ad4f 55%, #b9772a); box-shadow: inset 0 0 0 1.5px rgba(143, 69, 26, .45); vertical-align: -2px; margin-right: 4px; flex: none; }
.pl-wallet .pl-coin { align-self: center; margin: 0; }
.pl-star { color: var(--caramel); margin-right: 3px; }
.pl-icon--gift i { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--paw); color: #fff; font: 700 10.5px/17px var(--sans); font-style: normal; text-align: center; }

/* ------------------------------------------------------------ stage */
.pl-stage { position: relative; overflow: hidden; min-height: 0; background: radial-gradient(120% 90% at 50% 38%, #fffaf2 0%, #f6ead9 55%, #ead7bd 100%); transition: background .8s; touch-action: none; user-select: none; -webkit-user-select: none; }
.pl[data-era="garden"] .pl-stage { background: radial-gradient(120% 90% at 50% 38%, #fbfdf3 0%, #e8f0dc 55%, #cfdcbc 100%); }
.pl[data-era="night"] .pl-stage { background: radial-gradient(120% 90% at 50% 38%, #4a4268 0%, #2b2742 55%, #17152a 100%); }
.pl[data-era="rooftop"] .pl-stage { background: linear-gradient(#bfe3f7 0%, #e9f3f7 45%, #f6ead9 100%); }
.pl-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px rgba(255, 170, 60, 0); transition: box-shadow .4s; }
.pl-stage.is-fever::after { box-shadow: inset 0 0 90px rgba(255, 160, 50, .55); animation: pl-fever 1s ease-in-out infinite alternate; }
@keyframes pl-fever { to { box-shadow: inset 0 0 130px rgba(255, 140, 40, .7); } }
.pl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.pl-canvas:active { cursor: grabbing; }
.pl-bubbles, .pl-fx { position: absolute; inset: 0; pointer-events: none; }

.pl-bub { position: absolute; left: -27px; top: -58px; width: 54px; height: 54px; border-radius: 50%; background: var(--foam); box-shadow: 0 6px 16px -6px rgba(43, 26, 19, .45), 0 0 0 1px var(--line); pointer-events: auto; will-change: transform; animation: pl-pop .28s var(--spring); cursor: pointer; }
.pl-bub::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--foam); transform: translateX(-50%) rotate(45deg); border-radius: 2px; z-index: -1; }
.pl-bub::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; } /* bigger tap target */
.pl-bub > img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; border-radius: 50%; pointer-events: none; background: var(--milk); }
.pl-bub svg { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); transform: rotate(-90deg); pointer-events: none; }
.pl-bub circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.pl-bub__track { stroke: var(--latte); }
.pl-bub__zone { stroke: transparent; stroke-linecap: butt !important; }
.pl-bub__ring { stroke: var(--sage); transition: stroke .2s; }
.pl-bub[data-state="hurry"] .pl-bub__ring { stroke: var(--rose); }
.pl-bub[data-state="hurry"] { animation: pl-shake .5s linear infinite; }
.pl-bub[data-state="brew"] .pl-bub__ring, .pl-bub[data-state="staff"] .pl-bub__ring { stroke: var(--espresso); }
.pl-bub[data-state="brew"] .pl-bub__zone, .pl-bub[data-state="sweet"] .pl-bub__zone { stroke: var(--honey); stroke-width: 7; }
.pl-bub[data-state="sweet"] .pl-bub__ring { stroke: var(--caramel); }
.pl-bub[data-state="sweet"] { box-shadow: 0 0 0 4px rgba(231, 185, 138, .7), 0 0 22px 4px rgba(231, 150, 60, .65); scale: 1.12; transition: scale .12s var(--spring); }
.pl-bub[data-state="staff"] { opacity: .7; pointer-events: none; scale: .86; }
.pl-bub__pet { inset: auto -8px -8px auto !important; width: 26px !important; height: 26px !important; border: 2px solid var(--foam); box-shadow: 0 2px 6px rgba(43, 26, 19, .3); }
.pl-bub__vip { position: absolute; top: -8px; left: -6px; width: 20px; height: 20px; border-radius: 50%; background: #ffcf5c; color: var(--espresso); font: 700 12px/20px var(--sans); font-style: normal; text-align: center; box-shadow: 0 2px 6px rgba(43, 26, 19, .3); }
@keyframes pl-pop { from { scale: 0; } }
@keyframes pl-shake { 25% { rotate: -5deg; } 75% { rotate: 5deg; } }

.pl-mark { position: absolute; left: -13px; top: -13px; width: 26px; height: 26px; border-radius: 50%; pointer-events: auto; will-change: transform; font: 700 12px/26px var(--sans); text-align: center; }
.pl-mark::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.pl-mark--pat { background: rgba(255, 252, 247, .92); color: var(--paw); box-shadow: 0 3px 10px -3px rgba(43, 26, 19, .5); animation: pl-beat 1.2s ease-in-out infinite; }
.pl-mark--gold, .pl-mark--zoom { left: -30px; top: -10px; width: 60px; height: 60px; border: 3px solid #ffcf5c; box-shadow: 0 0 18px rgba(255, 190, 60, .9); animation: pl-ping 0.9s ease-out infinite; }
.pl-mark--zoom { border-color: var(--paw); box-shadow: 0 0 18px rgba(224, 122, 95, .8); }
@keyframes pl-beat { 50% { scale: 1.18; } }
@keyframes pl-ping { from { scale: .7; opacity: 1; } to { scale: 1.25; opacity: .35; } }

.pl-float { position: absolute; translate: -50% -100%; font: 800 15px/1 var(--sans); color: var(--espresso); text-shadow: 0 1px 0 #fff, 0 0 8px rgba(255, 252, 247, .95); white-space: nowrap; animation: pl-rise 1s var(--ease) forwards; font-variant-numeric: tabular-nums; }
.pl-float.is-perfect { color: var(--caramel-deep); font-size: 18px; }
.pl-float.is-crit { color: #c2410c; font-size: 22px; }
.pl-float.is-staff { color: var(--ink-2); font-size: 13px; font-weight: 700; }
.pl-float.is-tip { color: var(--sage); font-size: 13px; }
.pl-float.is-paw { color: var(--paw); font-size: 13.5px; }
.pl-float.is-bad { color: var(--rose); font-size: 13px; }
@keyframes pl-rise { from { opacity: 0; transform: translateY(8px) scale(.7); } 18% { opacity: 1; transform: translateY(-6px) scale(1.12); } to { opacity: 0; transform: translateY(-58px) scale(1); } }
.pl-confetti { position: absolute; top: 40%; width: 8px; height: 12px; border-radius: 2px; animation: pl-confetti 1.3s var(--ease) forwards; }
@keyframes pl-confetti { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), 240px) rotate(var(--rot)); opacity: 0; } }

.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pl-chips span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 252, 247, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pl-chips--hud { position: absolute; top: 10px; left: 10px; right: 10px; pointer-events: none; }
.pl-chips .is-fever { background: linear-gradient(90deg, #ffb347, #ff7b54); color: #fff; box-shadow: none; }
.pl-chips .is-mood { background: var(--espresso); color: var(--foam); box-shadow: none; }
.pl-chips .is-wave { background: var(--paw); color: #fff; box-shadow: none; }
.pl-chips .is-boost { background: var(--honey); box-shadow: none; }
.pl-coach { position: absolute; top: 46px; left: 50%; translate: -50% 0; max-width: min(86%, 340px); padding: 10px 16px; border-radius: 16px; background: var(--espresso); color: var(--foam); font-size: 13.5px; font-weight: 600; text-align: center; box-shadow: var(--shadow); pointer-events: none; animation: pl-bob 1.6s ease-in-out infinite; }
@keyframes pl-bob { 50% { transform: translateY(-4px); } }
.pl-meters { position: absolute; left: 10px; bottom: 76px; display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.pl-combo { min-height: 18px; font: 800 14px/1.2 var(--sans); color: var(--espresso); text-shadow: 0 0 8px rgba(255, 252, 247, .95); transition: scale .15s var(--spring); transform-origin: left bottom; }
.pl-combo.is-hot { color: #c2410c; scale: 1.2; }
.pl-fever { width: 120px; height: 8px; border-radius: 4px; background: rgba(255, 252, 247, .85); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.pl-fever i { display: block; height: 100%; background: linear-gradient(90deg, var(--honey), #ff7b54); transform-origin: left; transform: scaleX(0); transition: transform .2s linear; }
.pl-goalbar { position: absolute; left: 10px; right: 10px; bottom: 28px; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(255, 252, 247, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), var(--shadow); font-size: 13px; }
.pl-goalbar__text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pl-goalbar b { color: var(--ink-2); font-variant-numeric: tabular-nums; padding-right: 8px; }
.pl-goalbar.is-ready { box-shadow: 0 0 0 2px var(--caramel), var(--shadow); }
.pl-toasts { position: absolute; top: 44px; right: 10px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none; max-width: 78%; }
.pl-toast { padding: 8px 13px; border-radius: 14px; background: var(--foam); box-shadow: 0 0 0 1px var(--line), var(--shadow); font-size: 12.5px; font-weight: 600; animation: pl-toast .3s var(--spring); transition: opacity .3s, transform .3s; }
.pl-toast.is-good { background: var(--espresso); color: var(--foam); }
.pl-toast.is-fever { background: linear-gradient(90deg, #ffb347, #ff7b54); color: #fff; }
.pl-toast.is-out { opacity: 0; transform: translateX(12px); }
@keyframes pl-toast { from { opacity: 0; transform: translateX(16px) scale(.9); } }
.pl-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; background: var(--milk); color: var(--ink-2); font-weight: 600; }
.pl-loading img { animation: pl-bob 1.4s ease-in-out infinite; }

/* ------------------------------------------------------------ panel */
.pl-panel { display: flex; flex-direction: column; min-height: 0; background: var(--foam); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; margin-top: -18px; z-index: 3; box-shadow: 0 -10px 30px -18px rgba(43, 26, 19, .3); }
.pl-panel__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 14px 20px; }
.pl-tabs { order: 2; display: grid; grid-template-columns: repeat(5, 1fr); padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--foam); }
.pl-tab { position: relative; display: grid; justify-items: center; gap: 2px; padding: 7px 0 5px; border-radius: 14px; color: var(--ink-3); font-size: 11px; font-weight: 700; transition: color .2s, transform .15s var(--ease); }
.pl-tab:active { transform: scale(.94); }
.pl-tab.is-on { color: var(--espresso); }
.pl-tab.is-on svg { stroke: var(--caramel); }
.pl-tab i { position: absolute; top: 5px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--paw); box-shadow: 0 0 0 2px var(--foam); }

.pl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 2px 8px; }
.pl-head h2 { font: 500 23px/1.1 var(--display); letter-spacing: -.015em; }
.pl-head small { font: 600 12.5px var(--sans); color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.pl-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--caramel); }
.pl-gap { padding: 14px 2px 6px; }
.pl-sub { color: var(--ink-2); font-size: 12.5px; }
.pl-fine { color: var(--ink-3); font-size: 11.5px; margin-top: 3px; }
.pl-note { padding: 14px; border-radius: 16px; background: var(--milk); color: var(--ink-2); font-size: 13px; }
.pl-seg { display: flex; padding: 3px; background: var(--milk); border-radius: 999px; }
.pl-seg button { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pl-seg .is-on { background: var(--foam); color: var(--espresso); box-shadow: 0 1px 3px rgba(43, 26, 19, .15); }

.pl-card, .pl-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.pl-card:last-child, .pl-list > .pl-row:last-child { border-bottom: 0; }
.pl-card > img, .pl-thumb { flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--milk); overflow: hidden; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-card > img { object-fit: cover; display: block; }
.pl-card--next { padding: 12px; margin-bottom: 4px; border: 1px dashed var(--line-2); border-radius: 20px; background: var(--milk); }
.pl-card--next > img { filter: grayscale(.5) opacity(.75); background: var(--foam); }
.pl-card.is-special .pl-thumb { box-shadow: 0 0 0 2px var(--honey); }
.pl-card__main, .pl-row__main { flex: 1; min-width: 0; }
.pl-card h3, .pl-row h3, .pl-dog h3 { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.pl-row h3 small { font-weight: 600; color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.pl-tag { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: var(--honey); vertical-align: 1px; white-space: nowrap; }
.pl-mastery i { font-style: normal; color: var(--latte); font-size: 12px; }
.pl-mastery i.on { color: var(--caramel); }
.pl-bar { display: block; height: 5px; margin-top: 6px; border-radius: 3px; background: var(--latte); overflow: hidden; }
.pl-bar i { display: block; height: 100%; border-radius: 3px; background: var(--caramel); transition: width .3s var(--ease); }
.pl-bar--paw i { background: var(--paw); }
.pl-done, .pl-count { flex: none; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 0 6px; }
.pl-row.is-unknown h3, .pl-dog.is-unknown h3 { color: var(--ink-3); }
.pl-row.is-done { opacity: .6; }

.pl-btn { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 92px; min-height: 44px; padding: 6px 14px; border-radius: 999px; background: var(--espresso); color: var(--foam); font-size: 12px; font-weight: 700; line-height: 1.15; text-decoration: none; transition: transform .15s var(--ease), background .2s, opacity .2s; }
.pl-btn b { font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-btn .pl-star { color: var(--honey); }
.pl-btn:hover { background: var(--mocha); }
.pl-btn:active { transform: scale(.94); }
.pl-btn.is-poor { background: var(--latte); color: var(--ink-3); }
.pl-btn--go { background: var(--caramel); }
.pl-btn--go:hover { background: var(--caramel-deep); }
.pl-btn--danger { background: var(--rose); }
.pl-btn--wide { display: flex; flex-direction: row; gap: 8px; width: 100%; min-height: 48px; font-size: 14px; margin-top: 10px; }
.pl-btn--wide:not(.pl-btn--go):not(.pl-btn--danger):not([data-cost]) { background: var(--milk); color: var(--espresso); }
.pl-btn--sm { min-width: 0; min-height: 30px; padding: 4px 14px; }
.pl-btn.is-shake { animation: pl-no .3s linear; }
@keyframes pl-no { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.pl-panel .pl-icon { width: 30px; height: 30px; color: var(--ink-3); font-size: 18px; }
.pl-panel .pl-icon.is-sure { width: auto; padding: 0 8px; font-size: 12px; font-weight: 700; color: var(--rose); border-radius: 999px; }

.pl-hero, .pl-meter, .pl-goal, .pl-week { padding: 16px; border-radius: 22px; background: var(--milk); }
.pl-hero h3, .pl-meter h3 { font: 500 20px/1.15 var(--display); margin-bottom: 6px; }
.pl-hero p { color: var(--ink-2); font-size: 13px; }
.pl-hero--stars, .pl-hero--streak { background: var(--espresso); color: var(--foam); }
.pl-hero--stars p, .pl-hero--streak p, .pl-hero--stars .pl-fine { color: rgba(255, 244, 232, .72); }
.pl-hero--stars .pl-bar { background: rgba(255, 244, 232, .18); }
.pl-meter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin-bottom: 6px; }
.pl-meter strong { font: 500 30px/1 var(--display); color: var(--paw); }
.pl-meter .pl-bar { grid-column: 1 / -1; }
.pl-goal { display: flex; align-items: center; gap: 12px; }
.pl-goal.is-ready { box-shadow: inset 0 0 0 2px var(--caramel); }
.pl-goal h3 { font-size: 15px; font-weight: 700; margin-top: 2px; }
.pl-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 2px; }
.pl-track span { padding: 8px; border-radius: 14px; background: var(--foam); text-align: center; }
.pl-track b { display: block; font-size: 15px; }
.pl-track small { color: var(--ink-3); font-size: 11px; }
.pl-track .is-done { opacity: .5; }
.pl-track .is-ready { box-shadow: inset 0 0 0 2px var(--caramel); }
.pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pl-dog { padding: 12px; border-radius: 18px; background: var(--milk); }
.pl-dog.is-home { background: var(--foam); box-shadow: inset 0 0 0 1.5px var(--honey); }
.pl-dog__coats { display: flex; gap: 5px; margin-bottom: 8px; }
.pl-dog__coats i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.pl-dog__coats i.is-unseen { background: transparent !important; border: 1px dashed var(--line-2); box-shadow: none; }
.pl-dog .pl-btn--wide { min-height: 40px; font-size: 12.5px; }

/* ------------------------------------------------------------ sheets & gate */
.pl-sheet, .pl-gate { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; justify-items: center; background: rgba(43, 26, 19, 0); transition: background .22s; }
.pl-sheet.is-open { background: rgba(43, 26, 19, .42); }
.pl-sheet__card, .pl-gate__card { width: min(100%, 440px); max-height: 88dvh; overflow-y: auto; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--foam); box-shadow: var(--shadow); text-align: center; transform: translateY(100%); transition: transform .28s var(--ease); }
.pl-sheet.is-open .pl-sheet__card { transform: none; }
.pl-sheet__card::before { content: ""; display: block; width: 38px; height: 4px; margin: -8px auto 14px; border-radius: 2px; background: var(--line-2); }
.pl-sheet h2, .pl-gate h1 { font: 500 28px/1.1 var(--display); letter-spacing: -.02em; margin: 4px 0 8px; }
.pl-sheet__img { width: 132px; height: 132px; object-fit: cover; border-radius: 999px 999px 24px 24px; background: var(--milk); margin-bottom: 10px; }
.pl-sheet__line { margin-top: 12px; font-size: 13.5px; font-weight: 600; }
.pl-sheet .pl-chips { justify-content: center; margin-top: 12px; }
.pl-sheet .pl-chips span { background: var(--milk); box-shadow: none; }
.pl-big { font: 500 44px/1 var(--display); margin: 6px 0 8px; }
.pl-big .pl-coin { width: 26px; height: 26px; vertical-align: 1px; margin-right: 8px; }
.pl-link { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 700; color: var(--caramel); text-decoration: none; }
.pl-link--danger { color: var(--rose); display: block; margin: 16px auto 0; }
.pl-switch { display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; border-bottom: 1px solid var(--line); font-weight: 600; cursor: pointer; }
.pl-switch input { position: absolute; opacity: 0; }
.pl-switch i { width: 44px; height: 26px; border-radius: 13px; background: var(--latte); position: relative; transition: background .2s; }
.pl-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--spring); }
.pl-switch input:checked + i { background: var(--caramel); }
.pl-switch input:checked + i::after { transform: translateX(18px); }
.pl-switch input:focus-visible + i { outline: 2px solid var(--caramel); outline-offset: 2px; }
.pl-how { text-align: left; padding-left: 20px; margin: 8px 0; color: var(--ink-2); font-size: 13.5px; display: grid; gap: 8px; }
.pl-how b { color: var(--espresso); }
.pl-eras { display: grid; gap: 8px; text-align: left; }
.pl-eras label { display: block; cursor: pointer; }
.pl-eras input { position: absolute; opacity: 0; }
.pl-eras span { display: block; padding: 10px 14px; border-radius: 16px; background: var(--milk); }
.pl-eras small { display: block; color: var(--ink-2); font-size: 12px; }
.pl-eras input:checked + span { box-shadow: inset 0 0 0 2px var(--caramel); background: var(--foam); }
.pl-gift { width: 84px; height: 76px; margin: 6px auto 10px; position: relative; border-radius: 14px; background: var(--caramel); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .12); animation: pl-bob 1.4s ease-in-out infinite; }
.pl-gift::before { content: ""; position: absolute; left: -6px; right: -6px; top: -8px; height: 22px; border-radius: 8px; background: var(--caramel-deep); transition: transform .35s var(--spring); }
.pl-gift span { position: absolute; left: 50%; top: -8px; bottom: 0; width: 14px; margin-left: -7px; background: var(--honey); }
.pl-gift.is-open::before { transform: translateY(-16px) rotate(-14deg); }
.pl-gate { align-items: center; background: var(--milk); z-index: 30; padding: 20px; }
.pl-gate__card { transform: none; border-radius: 28px; padding: 32px 24px; }
.pl-gate__card > img { height: 72px; width: auto; margin-bottom: 14px; }
.pl-gate__card p { color: var(--ink-2); }
.pl.is-gated .pl-top, .pl.is-gated .pl-stage, .pl.is-gated .pl-panel { visibility: hidden; }

/* ------------------------------------------------------------ desktop & landscape: café left, panel right */
@media (min-width: 900px), (orientation: landscape) and (min-width: 640px) {
  .pl { grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) clamp(300px, 34vw, 420px); }
  .pl-top { grid-column: 1 / -1; padding-inline: 14px; }
  .pl-panel { margin: 0; border-radius: 0; border-top: 0; border-left: 1px solid var(--line); box-shadow: none; }
  .pl-tabs { order: 0; border-top: 0; border-bottom: 1px solid var(--line); padding: 6px; }
  .pl-panel__body { padding: 4px 18px 28px; }
  .pl-sheet, .pl-gate { align-items: center; }
  .pl-sheet__card { border-radius: 26px; transform: translateY(24px) scale(.96); opacity: 0; transition: transform .25s var(--ease), opacity .2s; }
  .pl-sheet.is-open .pl-sheet__card { opacity: 1; }
  .pl-sheet__card::before { display: none; }
  .pl-chips--hud { top: 14px; left: 14px; }
  .pl-goalbar { left: 14px; right: auto; bottom: 14px; min-width: 320px; max-width: 460px; }
  .pl-meters { left: 14px; bottom: 66px; }
  .pl-toasts { top: 14px; right: 14px; }
  .pl-coach { top: 56px; }
}
@media (min-width: 900px) {
  .pl-bub { left: -31px; top: -70px; width: 62px; height: 62px; }
  .pl-brand { font-size: 21px; }
  .pl-float { font-size: 17px; }
  .pl-float.is-perfect { font-size: 21px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  :root { --top: 44px; }
  .pl-tab span { display: none; }
  .pl-tab { padding: 6px 0; }
}
@media (hover: none) { .pl-btn:hover { background: var(--espresso); } .pl-btn--go:hover { background: var(--caramel); } .pl-btn.is-poor:hover { background: var(--latte); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .pl-float { animation: none; opacity: 1; }
}

/* ------------------------------------------------------------ feelings, skills, rating */
.pl-bub__ask { position: absolute; inset: 6px; display: grid; place-items: center; border-radius: 50%; background: var(--espresso); color: var(--honey); font: 500 26px/1 var(--display); pointer-events: none; }
.pl-bub__feel { position: absolute; left: 50%; top: -22px; translate: -50% 0; padding: 3px 9px; border-radius: 999px; background: var(--honey); color: var(--espresso); font: 800 11px/1.2 var(--sans); font-style: normal; white-space: nowrap; box-shadow: 0 2px 6px rgba(43, 26, 19, .25); pointer-events: none; }
.pl-bub[data-state="ask"] .pl-bub__ring { stroke: var(--caramel); }
.pl-bub[data-state="ask"] { animation: pl-pop .28s var(--spring), pl-beat 1.4s ease-in-out .3s infinite; }
.pl-bub__extra { inset: auto auto -8px -8px !important; width: 26px !important; height: 26px !important; border: 2px solid var(--foam); box-shadow: 0 2px 6px rgba(43, 26, 19, .3); }
.pl-bub__two { background: var(--caramel) !important; color: #fff !important; }
.pl-chips .is-rating { background: var(--espresso); color: #ffd98a; box-shadow: none; font-variant-numeric: tabular-nums; }
.pl-pick { position: absolute; left: 50%; bottom: 84px; translate: -50% 0; width: min(94%, 430px); padding: 12px; border-radius: 22px; background: rgba(255, 252, 247, .97); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -14px rgba(43, 26, 19, .5); z-index: 4; animation: pl-pick .25s var(--spring); }
@keyframes pl-pick { from { opacity: 0; transform: translateY(14px) scale(.94); } }
.pl-pick p { text-align: center; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.pl-pick p b { color: var(--caramel-deep); font-weight: 800; }
.pl-pick div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pl-pick button { position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 16px; background: var(--milk); font-size: 11.5px; font-weight: 700; line-height: 1.2; transition: transform .15s var(--ease), background .2s; }
.pl-pick button:hover { background: var(--latte); }
.pl-pick button:active { transform: scale(.94); }
.pl-pick img { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; background: var(--foam); }
.pl-pick kbd { position: absolute; top: 5px; left: 7px; font: 700 10px var(--sans); color: var(--ink-3); display: none; }
.pl-skills { position: absolute; right: 10px; bottom: 80px; display: flex; flex-direction: column; gap: 8px; }
.pl-skill { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--foam); color: var(--espresso); box-shadow: 0 0 0 1px var(--line), 0 6px 14px -6px rgba(43, 26, 19, .4); display: grid; place-items: center; transition: transform .15s var(--spring), opacity .2s; }
.pl-skill svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; position: relative; }
.pl-skill::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(43, 26, 19, .3) calc(var(--cd, 0) * 360deg), transparent 0); }
.pl-skill.is-ready { background: var(--caramel); color: #fff; box-shadow: 0 0 0 3px rgba(231, 185, 138, .55), 0 6px 14px -6px rgba(43, 26, 19, .5); }
.pl-skill.is-ready:hover { transform: scale(1.08); }
.pl-skill:active { transform: scale(.9); }
.pl-skill.is-locked { opacity: .38; }
@media (min-width: 900px), (orientation: landscape) and (min-width: 640px) {
  .pl-skills { right: 14px; bottom: 14px; flex-direction: row; }
  .pl-skill { width: 52px; height: 52px; }
  .pl-pick { bottom: 76px; }
  .pl-pick kbd { display: block; }
}

@media (max-width: 899px) and (orientation: portrait) { .pl-skill { width: 42px; height: 42px; } .pl-skills { gap: 6px; } }
