/* Rainbow Pets — the table, on Micatro's look (micatro.css: the font, .btn, the palette). The swirling background is
   Micatro's own (canvas#bg), redrawn every frame, so the page's background is a flat colour (NEW_GAME_RULES.md 1). */
html, body { margin: 0; height: 100%; overflow: hidden; }
html body { background: #2b2340; color: #fff; font-family: m6x11, monospace; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
#app { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); box-sizing: border-box; gap: 6px; }
.loading { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 34px; color: #fff; z-index: 0; }
.hidden { display: none !important; }
.rp-panel { background: var(--panel, #3a4a4d); border-radius: 14px; box-shadow: 0 5px 0 var(--panel-dd, #1e2a2c), inset 0 0 0 3px rgba(255,255,255,.08); padding: 8px 10px; }
.btn { font-size: 22px; padding: 8px 14px 6px; }
.btn.small { font-size: 17px; padding: 5px 10px 4px; }
.btn[data-focus], .rp-nav[data-focus] { outline: 4px solid #fff; outline-offset: 2px; }
.muted { color: #b9c3c5; }
.gold { color: var(--money, #f5c04a); }
.rp-x { margin-left: auto; }

/* ---------------- the top row */
.rp-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-right: 110px; min-height: 40px; }
.rp-title { font-size: 30px; letter-spacing: .03em; text-shadow: 2px 3px 0 #e8403a, 4px 6px 0 rgba(0,0,0,.35); white-space: nowrap; }
.rp-title .r1 { color: #ff6b5e; } .rp-title .r2 { color: #ffb14a; } .rp-title .r3 { color: #ffe066; } .rp-title .r4 { color: #6fe08a; } .rp-title .r5 { color: #6fb2ff; } .rp-title .r6 { color: #c48cf0; }
.rp-wallet { font-size: 22px; background: var(--panel-dd, #1e2a2c); border-radius: 10px; padding: 4px 10px 2px; }
.rp-status { font-size: 20px; }

/* ---------------- screens (menu, team picker, path, online) */
.rp-screen { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-bottom: 20px; }
.rp-screen h2 { font-size: 34px; margin: 4px 0; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.rp-credit { font-size: 18px; color: #d8d0ef; text-align: center; max-width: 720px; }
.rp-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; width: min(760px, 100%); }
.rp-menu .btn { font-size: 26px; padding: 14px 12px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rp-menu .btn small { font-size: 16px; opacity: .85; }
.rp-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.rp-chooser .btn.on { --b: var(--red); --bd: var(--red-d); box-shadow: 0 4px 0 var(--bd), 0 0 0 3px #fff; }
.rp-opt { display: flex; flex-direction: column; gap: 2px; max-width: 300px; text-align: left; }
.rp-opt small { font-size: 15px; opacity: .85; }
.rp-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; width: min(1100px, 100%); }
.rp-pick { position: relative; }
/* Pet Powers (the full game) */
.rp-bolt { position: absolute; top: -6px; right: -6px; font-size: 16px; line-height: 1; background: #2a2530; border-radius: 50%; padding: 3px; z-index: 2; opacity: .75; }
.rp-bolt.on { opacity: 1; background: #f5d02f; box-shadow: 0 0 8px #f5d02f; }
.rp-powers { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; text-align: left; }
.rp-power { font-size: 15px; padding: 5px 7px; border-radius: 8px; background: rgba(255,255,255,.06); border: 2px solid transparent; }
.rp-power.on { border-color: #f5d02f; background: rgba(245,208,47,.12); }
.rp-banner-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; border: 2px solid rgba(0,0,0,.4); }
.rp-choices { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-height: 55vh; overflow-y: auto; width: 100%; }
.rp-choices .btn { font-size: 17px; }
.rp-pick .rp-order { position: absolute; top: -6px; left: -6px; background: #e8403a; color: #fff; border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; font-size: 18px; z-index: 2; box-shadow: 0 2px 0 rgba(0,0,0,.4); }
.rp-path { display: flex; flex-direction: column; gap: 8px; width: min(720px, 100%); }
.rp-stage { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 22px; padding: 10px 12px 8px; }
.rp-stage .rp-stage-n { background: rgba(0,0,0,.25); border-radius: 8px; padding: 2px 8px; }
.rp-stage small { display: block; font-size: 16px; opacity: .85; }
.rp-howto { max-width: 760px; font-size: 19px; line-height: 1.25; }
.rp-howto h3 { font-size: 24px; margin: 12px 0 4px; color: #ffe066; }
.rp-howto li { margin: 3px 0; }
.rp-replays { display: flex; flex-direction: column; gap: 6px; width: min(720px, 100%); }

/* ---------------- the table */
.rp-table { flex: 1; min-height: 0; display: grid; gap: 6px; grid-template-columns: 1fr minmax(200px, 260px); grid-template-rows: auto 1fr auto; grid-template-areas: "rivals side" "canvas side" "me me"; }
.rp-rivals { grid-area: rivals; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.rp-canvas-wrap { grid-area: canvas; display: flex; align-items: center; justify-content: center; min-height: 0; padding-bottom: 18px; container-type: size; }   /* (the Canvas fits the room left for it, never under the boards) */
.rp-side { grid-area: side; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.rp-me { grid-area: me; display: flex; flex-direction: column; gap: 6px; }
/* a phone held upright, or a narrow window: one column that scrolls (rivals, the Canvas, you, then the Pet's details) */
@media (orientation: portrait), (max-width: 760px) {
	.rp-table { display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; gap: 8px; padding-bottom: 8px; }
	.rp-table > * { flex: 0 0 auto; }
	.rp-canvas-wrap { container-type: normal; }
	.rp-canvas { width: min(94vw, 380px); }
	.rp-side { order: 4; }
	.rp-side .rp-feed { max-height: 140px; }
}

/* a board: a player's palette, extra pets, counts */
.rp-board { padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.rp-board.is-turn { box-shadow: 0 5px 0 var(--panel-dd), 0 0 0 3px #ffe066; }
.rp-board.is-out { opacity: .5; }
/* Tag-Team: your partner's board, and the team score line */
.rp-board.is-partner { background: #2f5a4a; }
.rp-tag { font-size: 14px; background: #3fb55a; color: #fff; border-radius: 6px; padding: 0 6px; }
.rp-teams { margin: 4px auto 0; max-width: 760px; }
.rp-board-head { display: flex; gap: 8px; align-items: center; font-size: 18px; }
.rp-board-head b { font-size: 20px; }
/* a Rival's (or partner's) board is as wide as its Palette: its heading wraps, so 3 of them fit in one row above the Canvas */
.rp-rivals .rp-board { min-width: 0; max-width: 100%; }
.rp-rivals .rp-board-head { flex-wrap: wrap; row-gap: 0; max-width: calc(3 * var(--cw, 74px) + 40px); }
.rp-counts { display: flex; gap: 8px; font-size: 16px; color: #d6dfe0; }
.rp-palette { display: flex; gap: 6px; align-items: flex-end; }
.rp-spotbox { position: relative; display: flex; flex-direction: column; align-items: center; }
.rp-under { font-size: 14px; color: #ffe066; position: absolute; bottom: -4px; right: -4px; background: #1e2a2c; border-radius: 8px; padding: 1px 5px; z-index: 3; }
.rp-open { width: var(--cw, 104px); height: calc(var(--cw, 104px) * 1.38); border: 3px dashed rgba(255,255,255,.35); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: rgba(255,255,255,.6); background: transparent; box-sizing: border-box; }
.rp-open.is-target { border-color: #ffe066; color: #ffe066; cursor: pointer; }
.rp-extras { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.rp-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.25); border-radius: 10px; padding: 2px 8px 2px 2px; font-size: 15px; color: #fff; border: 0; font-family: inherit; cursor: pointer; }
.rp-chip svg { width: 26px; height: 26px; }
.rp-chip.is-sel { box-shadow: 0 0 0 3px #ffe066; }
.rp-chip.wiped { opacity: .6; text-decoration: line-through; }
.rp-chip.is-target { box-shadow: 0 0 0 3px #6fe08a; }

/* a Pet card */
.rp-pet { --cw: 104px; width: var(--cw); height: calc(var(--cw) * 1.38); border-radius: 12px; background: #f4ecd8; color: #2a2530; position: relative; display: flex; flex-direction: column; align-items: center; box-shadow: 0 4px 0 rgba(0,0,0,.35); box-sizing: border-box; padding: 4px; border: 3px solid var(--hue, #999); cursor: pointer; font-family: inherit; }
.rp-pet.sm { --cw: 74px; padding: 3px; border-width: 2px; }
.rp-pet.xs { --cw: 58px; padding: 2px; border-width: 2px; }
.rp-pet.is-sel { box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 0 4px #ffe066; }
.rp-pet.is-target { box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 0 4px #6fe08a; }
.rp-pet.is-mine { background: #fff7e6; }
.rp-syms { display: flex; justify-content: space-between; width: 100%; }
.rp-sym { width: calc(var(--cw) * .32); height: calc(var(--cw) * .32); border-radius: 50%; border: 3px solid rgba(0,0,0,.45); position: relative; padding: 0; cursor: pointer; box-sizing: border-box; font-family: inherit; }
.rp-sym.is-target { box-shadow: 0 0 0 3px #6fe08a, 0 0 10px #6fe08a; }
.rp-sym.is-src { box-shadow: 0 0 0 3px #ffe066, 0 0 10px #ffe066; }
.rp-sym .n { position: absolute; bottom: -6px; right: -7px; background: #2a2530; color: #fff; border-radius: 8px; font-size: 13px; padding: 0 4px; line-height: 16px; }
.rp-pet .rp-art { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.rp-pet .rp-art svg { width: 86%; height: auto; max-height: 100%; }
.rp-pet .rp-name { font-size: calc(var(--cw) * .15); line-height: 1; text-align: center; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rp-pet .rp-by { font-size: calc(var(--cw) * .11); color: #6b6475; line-height: 1; }
.rp-pet .rp-tc { position: absolute; top: calc(var(--cw) * .38); left: 50%; transform: translateX(-50%); font-size: calc(var(--cw) * .11); background: var(--hue); color: #fff; border-radius: 6px; padding: 0 4px; text-shadow: 0 1px 0 rgba(0,0,0,.6); white-space: nowrap; }
.rp-pet.sm .rp-by, .rp-pet.xs .rp-by, .rp-pet.xs .rp-tc { display: none; }

/* the Canvas: 6 spots round a wheel, opposites across */
.rp-canvas { position: relative; width: min(100%, 440px, 52vh); width: min(100cqw, 100cqh, 440px); aspect-ratio: 1; }
.rp-wheel { position: absolute; inset: 16%; border-radius: 50%; background: conic-gradient(#e8403a 0 60deg, #f28c28 60deg 120deg, #f5d02f 120deg 180deg, #3fb55a 180deg 240deg, #2f7fe0 240deg 300deg, #8e4fc9 300deg 360deg); opacity: .35; filter: blur(2px); }
.rp-cspot { position: absolute; width: 24%; aspect-ratio: .77; transform: translate(-50%, -50%); border-radius: 14px; border: 4px solid var(--spot); background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.rp-cspot-lbl { position: absolute; bottom: -18px; font-size: 15px; color: var(--spot); text-shadow: 0 1px 0 #000; }
.rp-cspot.is-target { box-shadow: 0 0 0 4px #6fe08a; }
.rp-canvas-mid { position: absolute; inset: 38%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 15px; color: #fff; }

/* my hand */
.rp-hand { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-end; justify-content: center; min-height: 64px; }
.rp-card { width: 52px; height: 72px; border-radius: 9px; border: 3px solid #fff; background: var(--c); color: #fff; font-family: inherit; font-size: 14px; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 4px; box-shadow: 0 4px 0 rgba(0,0,0,.35); cursor: pointer; text-shadow: 0 1px 0 rgba(0,0,0,.6); position: relative; }
.rp-card.news { background: repeating-linear-gradient(0deg, #e9e3d5 0 6px, #cfc8b8 6px 8px); color: #2a2530; text-shadow: none; }
.rp-card.news::before { content: '📰'; position: absolute; top: 8px; font-size: 22px; }
.rp-card.is-sel { transform: translateY(-10px); box-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 0 4px #ffe066; }
.rp-card.back { background: repeating-linear-gradient(45deg, #e8403a 0 6px, #f28c28 6px 12px, #f5d02f 12px 18px, #3fb55a 18px 24px, #2f7fe0 24px 30px, #8e4fc9 30px 36px); width: 26px; height: 36px; border-width: 2px; }

/* the action bar */
.rp-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.rp-act { font-size: 18px; padding: 4px 10px 2px; border-radius: 10px; background: rgba(0,0,0,.25); }
.rp-act.used { opacity: .45; text-decoration: line-through; }
.rp-hint { font-size: 19px; text-align: center; color: #fff; min-height: 22px; }
.rp-info { font-size: 17px; line-height: 1.2; }
.rp-info h4 { margin: 0 0 4px; font-size: 22px; }
.rp-feed { font-size: 16px; line-height: 1.2; overflow-y: auto; flex: 1; min-height: 60px; }
.rp-feed div { padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.rp-feed div:first-child { color: #ffe066; }

/* the Newspaper question, toasts, the end */
.rp-modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rp-modal { max-width: 560px; width: 100%; text-align: center; font-size: 22px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.rp-modal h3 { font-size: 30px; margin: 0; }
.rp-toast { position: fixed; top: 16%; left: 50%; transform: translateX(-50%); background: var(--red, #fe5f55); color: #fff; border-radius: 14px; padding: 8px 18px 5px; font-size: 26px; z-index: 60; box-shadow: 0 6px 0 rgba(0,0,0,.3); pointer-events: none; text-align: center; max-width: 92vw; }
.rp-replay-bar { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; }
.rp-banner { text-align: center; font-size: 18px; background: rgba(0,0,0,.3); border-radius: 10px; padding: 3px 10px; }
@media (max-width: 760px) { .rp-pet { --cw: 84px; } .rp-pet.sm { --cw: 60px; } .rp-title { font-size: 24px; } .btn { font-size: 19px; } }
/* a phone on its side (short and wide): the Canvas fills the left at full height; everything else is one column on the
   right that scrolls (rivals, you, your hand and the buttons, then the Pet's details) */
@media (max-height: 520px) and (orientation: landscape) {
	.rp-pet { --cw: 66px; } .rp-pet.sm { --cw: 50px; } .rp-card { width: 42px; height: 58px; }
	.rp-table { grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; grid-template-areas: "canvas rivals" "canvas me" "canvas side"; overflow-y: auto; overflow-x: hidden; align-content: start; }
	.rp-canvas-wrap { position: sticky; top: 0; align-self: start; height: calc(100dvh - 84px); padding-bottom: 20px; container-type: normal; }
	.rp-canvas { width: auto; height: calc(100% - 4px); max-height: 330px; }
	.rp-rivals { justify-content: flex-start; }
	.rp-side .rp-feed { max-height: 120px; }
}

/* a desktop or tablet window up to 900px tall: the boards and the Canvas will not all fit one above the other, so the
   Canvas takes the left at full height and the rest is one column on the right that scrolls (as on a phone on its side) */
@media (orientation: landscape) and (min-width: 761px) and (min-height: 521px) and (max-height: 900px) {
	.rp-table { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); grid-template-rows: auto auto auto; grid-template-areas: "canvas rivals" "canvas me" "canvas side"; overflow-y: auto; overflow-x: hidden; align-content: start; }
	.rp-canvas-wrap { position: sticky; top: 0; align-self: start; height: calc(100dvh - 84px); padding-bottom: 20px; }
	.rp-canvas { width: min(100cqw, 100cqh, 560px); }
	.rp-rivals { justify-content: flex-start; }
	.rp-side { flex-direction: row; } .rp-side > * { flex: 1 1 0; min-width: 0; }
	.rp-side .rp-feed { max-height: 160px; overflow-y: auto; }
}

/* ---------------- polish (2026-11-28): who owns what, what a paint will make, where a Pet can go, and a little motion */
/* the menu: six Pets in the six Canvas colors */
.rp-hero { display: flex; gap: 12px; justify-content: center; margin-top: 4px; }
.rp-hero-pet { width: 70px; height: 70px; animation: rp-bob 1.6s ease-in-out infinite alternate; filter: drop-shadow(0 6px 0 rgba(0,0,0,.25)); }
.rp-hero-pet svg { width: 100%; height: 100%; }
/* the team picker: the count and the buttons stay in view while the Pets scroll */
.rp-pickbar { position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; background: rgba(30, 42, 44, .94); border-radius: 14px; padding: 6px 10px; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
/* each seat's color: its name on its board, its tag on its Pets on the Canvas */
.rp-seatname { color: var(--seat, #fff); }
.rp-owner { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--seat); color: #2a2530; font-size: max(11px, calc(var(--cw) * .14)); line-height: 1.25; border-radius: 7px; padding: 0 6px; white-space: nowrap; box-shadow: 0 2px 0 rgba(0,0,0,.4); z-index: 3; max-width: 112%; overflow: hidden; text-overflow: ellipsis; }
/* a Pet that can move to the Canvas now: an arrow in the color of its spot */
.rp-go { position: absolute; top: calc(var(--cw) * .5); right: -8px; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.4); z-index: 3; text-shadow: 0 1px 0 rgba(0,0,0,.5); animation: rp-nudge .8s ease-in-out infinite alternate; pointer-events: none; }
/* what each ringed symbol would make: the new true color, or a wipe-out */
.rp-prev { container-type: inline-size; position: absolute; top: calc(var(--cw) * .37); left: 1px; right: 1px; display: flex; justify-content: space-between; gap: 2px; z-index: 3; pointer-events: none; }
.rp-prev-p { font-size: max(10px, calc(var(--cw) * .115)); line-height: 1.3; color: #fff; border-radius: 6px; padding: 0 4px; text-shadow: 0 1px 0 rgba(0,0,0,.65); white-space: nowrap; max-width: 52%; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.rp-prev-p i { font-style: normal; display: none; }
@container (max-width: 92px) { .rp-prev-p .t { display: none; } .rp-prev-p i { display: inline; } .rp-prev-p { min-width: 14px; text-align: center; } }
.rp-prev-p.good { box-shadow: 0 0 0 2px #6fe08a, 0 0 6px #6fe08a; }
.rp-prev-p.wipe { background: #2a2530; color: #ff8a80; box-shadow: 0 0 0 2px #ff6b5e; animation: rp-shake .6s infinite; }
.rp-prev-p:not(.good):not(.wipe) { opacity: .85; font-size: max(9px, calc(var(--cw) * .1)); }
.rp-sym.is-target { animation: rp-tpulse .9s ease-in-out infinite alternate; }
/* the Canvas: cards sized to their spot, the spot's color as a tab, empty spots tinted, where a picked Pet would go */
.rp-canvas { container-type: inline-size; }
.rp-cspot { aspect-ratio: .725; background: color-mix(in srgb, var(--spot) 18%, rgba(0,0,0,.28)); }
.rp-cspot .rp-pet { --cw: calc(24cqw - 8px); width: var(--cw); height: calc(var(--cw) * 1.38); border-radius: 10px; }
.rp-cspot-lbl { top: -11px; bottom: auto; left: 50%; transform: translateX(-50%); background: var(--spot); color: #fff; border-radius: 8px; padding: 0 7px; font-size: 13px; line-height: 1.4; z-index: 4; text-shadow: 0 1px 0 rgba(0,0,0,.55); box-shadow: 0 2px 0 rgba(0,0,0,.3); white-space: nowrap; }
.rp-cspot .rp-cspot-lbl { display: none; }   /* (an empty spot names its color inside; an occupied one's border says it, its Pet's tag says whose) */
.rp-cspot-empty { color: var(--spot); opacity: .85; font-size: max(13px, 3.6cqw); text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.rp-cspot.is-dest { animation: rp-glow .8s ease-in-out infinite alternate; }
.rp-cspot.is-home { box-shadow: 0 0 0 3px rgba(255,224,102,.6); }
.rp-cspot-go { position: absolute; bottom: 8%; z-index: 5; white-space: nowrap; }
.rp-wheel { opacity: .5; filter: blur(1px); }
.rp-canvas-mid { flex-direction: column; gap: 4px; }
.rp-canvas-mid small { font-size: 13px; opacity: .8; }
.rp-turnpill { background: var(--seat); color: #2a2530; border-radius: 12px; padding: 4px 10px 2px; font-size: max(15px, 3.4cqw); box-shadow: 0 3px 0 rgba(0,0,0,.35); white-space: nowrap; }
.rp-turnpill.mine { animation: rp-pulse 1.2s ease-in-out infinite; }
/* the turn's 3 actions: done is a green check */
.rp-act.used { opacity: 1; text-decoration: none; background: #2f7a4a; }
.rp-act.used b { color: #b7ffcb; }
.rp-act.idle { opacity: .5; }
.rp-hint { font-size: 20px; color: #ffe066; text-shadow: 0 2px 0 rgba(0,0,0,.45); }
/* cards and Pets: a little shine and lift */
.rp-card { background: linear-gradient(160deg, rgba(255,255,255,.38), rgba(255,255,255,0) 46%), var(--c); transition: transform .12s ease; }
.rp-card:hover { transform: translateY(-4px); }
.rp-card.is-sel:hover { transform: translateY(-10px); }
.rp-pet { transition: transform .12s ease, box-shadow .12s ease; }
.rp-pet:hover { transform: translateY(-2px); }
/* the color guide (the side panel when no Pet is picked) */
.rp-guide { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 12px; font-size: 17px; justify-content: start; margin-top: 4px; }
.rp-mix { display: inline-flex; align-items: center; gap: 2px; }
.rp-dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,0,0,.45); vertical-align: -3px; box-sizing: border-box; }
.rp-guide-note, .rp-guide-opp { font-size: 13px; color: #d6dfe0; margin-top: 6px; line-height: 1.35; }
.rp-guide-opp span { display: inline-flex; gap: 1px; margin-right: 4px; }
/* what just happened */
.rp-pet.fx-paint, .rp-pet.fx-splat { animation: rp-splat .7s ease-out; }
.rp-pet.fx-paint::after, .rp-pet.fx-splat::after { content: ''; position: absolute; inset: -6px; border-radius: 16px; border: 6px solid var(--fxc, #fff); animation: rp-ring .7s ease-out forwards; pointer-events: none; }
.rp-pet.fx-move { animation: rp-drop .5s cubic-bezier(.2, 1.4, .5, 1); }
.rp-pet.fx-power, .rp-pet.fx-transform, .rp-pet.fx-heal { animation: rp-zing .9s ease-out; }
.rp-pet.fx-zap { animation: rp-shake .45s; }
.rp-card.fx-draw { animation: rp-draw .45s ease-out; }
.rp-bigbanner { position: fixed; left: 50%; top: 42%; font-size: 54px; color: #fff; background: linear-gradient(90deg, #e8403a, #f28c28, #f5d02f, #3fb55a, #2f7fe0, #8e4fc9); padding: 10px 34px 6px; border-radius: 18px; z-index: 70; pointer-events: none; text-shadow: 0 3px 0 rgba(0,0,0,.5); box-shadow: 0 8px 0 rgba(0,0,0,.3); white-space: nowrap; animation: rp-banner 1.4s ease forwards; }
@keyframes rp-banner { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } 25% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { transform: translate(-50%, -70%) scale(1); opacity: 0; } }
@keyframes rp-ring { from { opacity: .9; transform: scale(.85); } to { opacity: 0; transform: scale(1.25); } }
@keyframes rp-splat { 0% { transform: scale(1); } 30% { transform: scale(1.12) rotate(-3deg); } 60% { transform: scale(.96) rotate(2deg); } 100% { transform: none; } }
@keyframes rp-drop { from { transform: translateY(-18px) scale(.8); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes rp-zing { 0% { filter: brightness(2) drop-shadow(0 0 12px #ffe066); transform: scale(1.1); } 100% { filter: none; transform: none; } }
@keyframes rp-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@keyframes rp-draw { from { transform: translateY(40px) rotate(8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes rp-glow { from { box-shadow: 0 0 0 4px #6fe08a, 0 0 6px #6fe08a; } to { box-shadow: 0 0 0 4px #6fe08a, 0 0 26px #6fe08a; } }
@keyframes rp-tpulse { from { box-shadow: 0 0 0 3px #6fe08a, 0 0 4px #6fe08a; } to { box-shadow: 0 0 0 4px #6fe08a, 0 0 14px #6fe08a; } }
@keyframes rp-nudge { from { transform: translateX(0); } to { transform: translateX(3px); } }
@keyframes rp-bob { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .rp-hero-pet, .rp-go, .rp-turnpill, .rp-cspot, .rp-sym, .rp-pet, .rp-card, .rp-prev-p { animation: none !important; } .rp-pet::after { display: none; } }
/* a phone held upright: your board, hand and buttons stay at the bottom of the screen while the rest scrolls above */
@media (orientation: portrait), (max-width: 760px) {
	.rp-me { position: sticky; bottom: 0; z-index: 6; background: rgba(34, 30, 54, .95); border-radius: 14px 14px 0 0; padding: 6px 4px 4px; box-shadow: 0 -6px 14px rgba(0,0,0,.35); }
	.rp-me .rp-pet { --cw: 66px; }
	.rp-me .rp-card { width: 42px; height: 58px; font-size: 12px; }
	.rp-me .rp-hand { min-height: 0; }
	.rp-me .rp-act { font-size: 14px; padding: 3px 6px 1px; }
	.rp-me .rp-bar .btn { font-size: 16px; padding: 5px 10px 3px; }
	.rp-me .rp-board-head { font-size: 15px; } .rp-me .rp-counts { font-size: 14px; }
	.rp-me .rp-extras { font-size: 13px; }
	.rp-me .rp-hint { font-size: 15px; min-height: 0; }
	.rp-canvas { width: min(90vw, 350px); }
	.rp-hero-pet { width: 46px; height: 46px; }
	.rp-bigbanner { font-size: 38px; }
}
