/* Pocket Enhanced — the battle table, on Micatro's look (palette, buttons, modals: ../micatro/css/micatro.css).
   #stage is a fixed design canvas (1600x900 landscape / 820x1500 portrait) scaled to the visible window (js/main.js). */
#stage.pe { font-size: 20px; width: 1600px; height: 900px; }
#stage.pe.portrait { width: 820px; height: 1500px; }
.pe * { box-sizing: border-box; }
.pe button { font-family: inherit; }

/* card types and combat types share one palette */
.pe { --t-Grass: #5fbd58; --t-Fire: #ff7d4a; --t-Water: #4fa3ea; --t-Lightning: #f2c531; --t-Electric: #f2c531; --t-Psychic: #c56ad0; --t-Fighting: #cf6a3a; --t-Darkness: #4b5b66; --t-Dark: #4b5b66;
	--t-Metal: #8fa3ad; --t-Steel: #8fa3ad; --t-Dragon: #7a66d6; --t-Colorless: #b9bdb0; --t-Normal: #b9bdb0; --t-Ice: #7fd3e0; --t-Poison: #a35fc0; --t-Ground: #c9a25a; --t-Flying: #9fb4f0;
	--t-Bug: #9cb832; --t-Rock: #b0a070; --t-Ghost: #6e63b5; --t-Fairy: #f3a0c8; }
.pe .ty { display: inline-block; padding: 1px 7px 2px; border-radius: 8px; font-size: 15px; color: #10181a; background: var(--c, #b9bdb0); text-shadow: none; white-space: nowrap; }
/* an Energy symbol, as the card game draws one: a glossy ball in the type's colour with a light rim, and the sign on it in
   BLACK (checked against the real cards, 2026-11-17: the signs had been white, and several balls the wrong colour).
   The balls have colours of their own (--e-*): a card's body keeps the softer --t-* colours. */
.pe { --e-Grass: #3fa535; --e-Fire: #e23a26; --e-Water: #2ea3e6; --e-Lightning: #f8cf1c; --e-Psychic: #a65fb5; --e-Fighting: #d5691f; --e-Darkness: #2f7186; --e-Metal: #c6c8c2; --e-Dragon: #b89b1c; --e-Colorless: #eeeeea; }
.pe .en { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; vertical-align: middle; margin: 0 1px; flex: none;
	background: radial-gradient(circle at 34% 26%, color-mix(in srgb, var(--c, #eeeeea) 40%, #fff) 0, var(--c, #eeeeea) 55%, color-mix(in srgb, var(--c, #eeeeea) 74%, #000) 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 0 0 2px rgba(0,0,0,.4); }
.pe .en svg { width: 74%; height: 74%; fill: #131313; filter: drop-shadow(0 .5px 0 rgba(255,255,255,.3)); position: relative; }
.pe .en[title="Water"] svg { transform: rotate(38deg); }   /* (the card game's drop leans) */
.pe .en svg .lf { fill: color-mix(in srgb, var(--c, #eeeeea) 28%, #fff); }
.pe .en svg .dk { fill: none; stroke: #131313; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pe .en svg .lt { fill: none; stroke: color-mix(in srgb, var(--c, #eeeeea) 55%, #fff); stroke-width: 1.5; stroke-linecap: round; }
.pe .en.big { width: 30px; height: 30px; }

/* ---------------------------------------------------------------- the table: a playmat (their half above, mine below), the hand under it */
.pe-mat { position: absolute; left: 10px; top: 6px; width: 1050px; height: 600px; border-radius: 28px; overflow: hidden; box-shadow: 0 6px 0 rgba(0,0,0,.3), inset 0 0 0 5px rgba(255,255,255,.6);
	background: linear-gradient(180deg, #ee8273 0%, #f7b9ab 44%, #fff 48.2%, #fff 49.8%, #b3cdf4 54%, #6c9ce6 100%); }
.pe-mat::before { content: ''; position: absolute; left: 50%; top: 49%; width: 330px; height: 330px; transform: translate(-50%, -50%); border-radius: 50%;
	background: radial-gradient(circle, rgba(255,255,255,.96) 0 34%, rgba(255,255,255,.4) 35% 58%, rgba(255,255,255,.92) 59% 64%, transparent 65%); }
.pe-mat::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.28), transparent 55%), radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.22), transparent 55%); }
.pe-opps { position: absolute; left: 10px; top: 6px; width: 1050px; height: 304px; display: flex; gap: 8px; padding: 8px 10px 0; }
.pe-side { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 6px; }
.pe-side .pe-rows { margin-top: auto; }
.pe-side.out { opacity: .45; }
.pe-head { display: flex; align-items: center; gap: 10px; font-size: 20px; min-height: 30px; padding: 2px 12px 0; white-space: nowrap; overflow: hidden; flex: none; background: rgba(31,42,44,.84); border-radius: 15px; color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.turn > .pe-head { box-shadow: 0 0 0 3px var(--orange), 0 0 14px var(--orange); }
.pe-head .nm { overflow: hidden; text-overflow: ellipsis; }
.pe-head .pts { display: inline-flex; gap: 4px; }
.pe-head .pt { width: 16px; height: 16px; border-radius: 50%; background: #1f2a2c; box-shadow: inset 0 0 0 2px #5f7377; }
.pe-head .pt.on { background: var(--money); box-shadow: 0 0 8px var(--money); }
.pe-head .cnt { margin-left: auto; font-size: 16px; color: #d5e0e2; display: flex; gap: 10px; align-items: center; }
.pe .cb { display: inline-block; width: 13px; height: 18px; border-radius: 3px; vertical-align: -3px; background: radial-gradient(circle, #fff 0 22%, transparent 24%), linear-gradient(160deg, #4f86ea, #213f8f); box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 1px rgba(0,0,0,.4); }
.pe-head .backs { display: inline-flex; } .pe-head .backs .cb + .cb { margin-left: -6px; }
.pe-disc { font-family: inherit; font-size: 14px; padding: 2px 8px; border: 0; border-radius: 8px; background: #435357; color: #fff; cursor: pointer; }
.pe-disc:disabled { opacity: .4; cursor: default; }
.pe-big { min-width: 26px; font-size: 18px; line-height: 1; padding: 1px 8px 3px; background: var(--orange); color: #1f2a2c; }
.pe-side.aside .pe-head .pts, .pe-side.aside .pe-head .cnt > span, .pe-side.aside .pe-head .pe-disc:not(.pe-big) { display: none; }
.pe-rows { display: flex; gap: 18px; align-items: center; justify-content: center; }
.pe-rows.stack { flex-direction: column; gap: 7px; } .pe-rows.stack.flip { flex-direction: column-reverse; }
.pe-rows.grid .pe-row.ben { display: grid; grid-template-columns: auto auto; gap: 7px; } .pe-rows.grid.flip { flex-direction: row-reverse; }
.pe-row { display: flex; gap: 7px; align-items: flex-end; justify-content: center; }

.pe-me { position: absolute; left: 10px; top: 314px; width: 1050px; height: 330px; padding: 6px 10px 6px; display: flex; flex-direction: column; gap: 6px; }
.pe-me .pe-rows { padding-right: 108px; }
.pe-me .pe-head { margin-top: auto; }
.pe-zone { position: absolute; right: 12px; top: 34px; width: 98px; text-align: center; font-size: 17px; color: #fff; background: rgba(31,42,44,.84); border-radius: 16px; padding: 6px 8px 4px; box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.pe-zone .slot { display: block; width: 100%; margin: 4px 0 6px; padding: 8px 0; border: 0; border-radius: 12px; background: #1f2a2c; color: #fff; cursor: pointer; font-family: inherit; font-size: inherit; }
.pe-zone .slot:disabled { cursor: default; opacity: .75; }
.pe-zone .slot.ready { box-shadow: 0 0 0 3px var(--green), 0 0 12px var(--green); }

/* ---- a card face (in the hand, in play, and large when read). Everything is in em: the card is 10em x 14em, so one font size sizes it. */
/* ---- a card face, drawn as Pocket's cards are. A card is 10em x 14em and everything on it is sized in em.
   The font is Cabin (fonts/, SIL Open Font License): a Gill Sans-like face, as the card game's is, with a width axis
   that long names are narrowed on. */
@font-face { font-family: 'Cabin'; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url(../fonts/cabin.woff2) format('woff2'); }
@font-face { font-family: 'Cabin'; font-style: italic; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url(../fonts/cabin-italic.woff2) format('woff2'); }
.pe .pf { position: relative; flex: none; width: 10em; height: 14em; border: 0; border-radius: .5em; padding: .26em; text-align: left; line-height: 1.1; color: #17191c; cursor: pointer;
	font-family: 'Cabin', 'Gill Sans', 'Gill Sans MT', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif; font-weight: 700; letter-spacing: -.012em;
	/* Pocket's border: brushed silver, on every card */
	background: linear-gradient(135deg, #f4f5f7 0, #c9ccd3 18%, #eceef1 34%, #b7bbc4 52%, #e9ebee 70%, #a9aeb8 86%, #dfe1e6 100%); box-shadow: 0 .2em .32em rgba(0,0,0,.45), inset 0 0 0 .03em rgba(255,255,255,.7); }
/* a Pokémon ex: the same silver, with a rainbow in it (the gold of an ex is its name mark, as in Pocket) */
.pe .pf.ex { background: linear-gradient(125deg, #f6f7f9 0, #cfd3da 14%, #f3d9f0 26%, #cfe6f7 38%, #f7f3cf 50%, #cfd3da 62%, #f1f2f5 76%, #b9bec8 100%); }
.pf .f { position: relative; width: 100%; height: 100%; border-radius: .28em; overflow: hidden; display: flex; flex-direction: column; padding: .16em .32em .16em; box-shadow: inset 0 0 0 .035em rgba(0,0,0,.28);
	/* the body: the type's colour with Pocket's soft diagonal sheen, lighter where the text sits */
	background: linear-gradient(115deg, transparent 0 22%, rgba(255,255,255,.2) 22% 31%, transparent 31% 55%, rgba(255,255,255,.13) 55% 60%, transparent 60%),
		linear-gradient(180deg, color-mix(in srgb, var(--c, #b9bdb0) 88%, #fff) 0, color-mix(in srgb, var(--c, #b9bdb0) 70%, #fff) 46%, color-mix(in srgb, var(--c, #b9bdb0) 34%, #fff) 62%, color-mix(in srgb, var(--c, #b9bdb0) 30%, #fff) 100%); }
/* the top line: stage tab, the Pokémon it evolves from, name, HP, Energy symbol */
.pf .hd { display: flex; align-items: center; gap: .16em; height: 1.36em; flex: none; white-space: nowrap; position: relative; z-index: 1; }
.pf .tag { flex: none; font-size: .3em; font-style: italic; text-transform: uppercase; letter-spacing: .03em; padding: .3em .8em .28em .6em; margin-left: -.25em; color: #1c1e22; background: linear-gradient(180deg, #fdfdfe, #c4c8cf); clip-path: polygon(0 0, 100% 0, calc(100% - .55em) 100%, 0 100%); border-radius: 0; }
.pf .evo { flex: none; width: .9em; height: .9em; border-radius: 50%; overflow: hidden; margin: 0 .02em 0 -.14em; background: radial-gradient(circle at 40% 30%, #fff, #dfe3e8); box-shadow: 0 0 0 .05em #9aa0aa, 0 0 0 .1em rgba(255,255,255,.8); display: flex; align-items: center; justify-content: center; }
.pf .evo img { width: 118%; height: 118%; object-fit: contain; image-rendering: pixelated; }
.pf .nw { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.pf .n { font-size: .74em; font-weight: 700; line-height: 1; white-space: nowrap; transform-origin: 0 50%; align-self: flex-start; max-width: none; }
.pf .from { font-size: .27em; font-weight: 600; font-style: italic; opacity: .8; margin-top: .12em; }
.pf .exm { font-style: italic; font-weight: 700; margin: 0 .1em 0 .2em; letter-spacing: -.04em; font-size: 1.1em; color: #d99a06; text-shadow: 0 .035em 0 #5a3c00, .03em 0 0 #5a3c00, -.02em 0 0 #5a3c00, 0 -.02em 0 #fff2b0; }
.pf .h { flex: none; font-size: .94em; line-height: 1; letter-spacing: -.03em; } .pf .h small { font-size: .36em; margin-right: .14em; letter-spacing: 0; }
.pf .en { width: .8em; height: .8em; margin: 0 .03em; box-shadow: 0 0 0 .035em rgba(255,255,255,.92), 0 0 0 .075em rgba(0,0,0,.42), 0 .05em .06em rgba(0,0,0,.3); }
/* the art window: a thin metal bevel */
.pf .art { position: relative; flex: 1 1 0; min-height: 2em; margin: .04em 0 0; border-radius: .06em; display: flex; align-items: center; justify-content: center; overflow: hidden;
	box-shadow: 0 0 0 .05em #f6f7f9, 0 0 0 .1em #8d939d, 0 0 0 .14em rgba(255,255,255,.75), 0 .12em .12em .1em rgba(0,0,0,.28);
	background: radial-gradient(ellipse at 50% 108%, rgba(0,0,0,.18), transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--c, #b9bdb0) 22%, #fff), color-mix(in srgb, var(--c, #b9bdb0) 70%, #fff)); }
.pf .art img { height: 90%; max-width: 96%; object-fit: contain; image-rendering: pixelated; }
.pf .art img.icon, .pf .full img.icon { height: 76%; }
.pf .person { align-self: flex-end; flex: none; width: 3.4em; height: 6.8em; background-size: 900% 100%; background-position: 0 0; background-repeat: no-repeat; image-rendering: pixelated; }
.pf .ph { font-size: 2.6em; opacity: .6; }
.pf .drawn { height: 80%; aspect-ratio: 1; position: relative; z-index: 1; filter: drop-shadow(0 .12em .1em rgba(0,0,0,.3)); } .pf .drawn svg { width: 100%; height: 100%; display: block; }
.pf .drawn.fig { align-self: flex-end; flex: none; width: 3.4em; height: 6.8em; aspect-ratio: auto; }
.pf .drawn.scene { position: absolute; inset: 0; height: auto; aspect-ratio: auto; filter: none; z-index: 0; }
/* the strip under the art: number, species, height, weight (Pocket's line) */
.pf .strip { flex: none; align-self: center; display: flex; align-items: center; justify-content: center; gap: .9em; margin: .2em 0 .06em; padding: .18em 1.5em .16em; min-width: 62%; font-size: .29em; font-style: italic; font-weight: 600; letter-spacing: .02em; color: #23262b; white-space: nowrap;
	background: linear-gradient(180deg, #fafbfc, #c9cdd4 55%, #e3e6ea); clip-path: polygon(.7em 0, calc(100% - .7em) 0, 100% 100%, 0 100%); }
/* a Combat Type: a small tab in the type's colour (an attack's under its name, the Pokémon's own in the bottom line) */
.pe .pf .ty { display: inline-block; font-style: normal; font-weight: 700; font-size: .3em; letter-spacing: .05em; text-transform: uppercase; color: #fff; padding: .14em .62em .16em; border-radius: .3em; line-height: 1.1; white-space: nowrap;
	background: linear-gradient(180deg, color-mix(in srgb, var(--c, #b9bdb0) 82%, #fff), color-mix(in srgb, var(--c, #b9bdb0) 86%, #000)); text-shadow: 0 .06em 0 rgba(0,0,0,.5), 0 0 .14em rgba(0,0,0,.4); box-shadow: 0 0 0 .07em rgba(0,0,0,.35); }
/* the Ability and the attacks */
.pf .atks { flex: none; padding-top: .04em; position: relative; z-index: 1; }
.pf .atk { display: flex; align-items: center; gap: .22em; font-size: .72em; padding: .22em 0 .1em; white-space: nowrap; border-top: .05em solid rgba(0,0,0,.16); }
.pf .atks > .atk:first-child { border-top: 0; }
.pf .atk .co { display: inline-flex; flex: none; min-width: 2em; }
.pf .atk .anw { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf .atk .an { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pf .atk .tyl { display: flex; margin-top: .08em; } .pe .pf .atk .tyl .ty { font-size: .42em; }
.pf .atk .d { flex: none; font-size: 1.32em; min-width: 1.4em; text-align: right; line-height: 1; letter-spacing: -.03em; }
.pf .atk.ab { gap: .3em; } .pf .atk.ab .an { flex: 1; color: #8f1a14; }
.pf .atk .abt { flex: none; font-size: .62em; font-style: italic; color: #fff; padding: .16em .8em .16em .6em; background: linear-gradient(180deg, #e2574c, #a8201a); clip-path: polygon(0 0, 100% 0, calc(100% - .5em) 100%, 0 100%); text-shadow: 0 .05em 0 rgba(0,0,0,.4); border-radius: 0; }
.pf .fx { font-size: .47em; font-weight: 600; line-height: 1.2; padding: 0 .1em .26em; white-space: normal; overflow-wrap: break-word; color: #1e2125; } .pf .fx .en { width: 1.02em; height: 1.02em; vertical-align: -.22em; }
/* a card whose text does not fit is set tighter, step by step (fitFaces) */
.pf .f[data-tight] .art { min-height: 1.5em; } .pf .f[data-tight] .fx { font-size: .43em; line-height: 1.12; padding-bottom: .18em; } .pf .f[data-tight] .atk { padding: .14em 0 .06em; } .pf .f[data-tight] .strip { margin: .12em 0 0; }
.pf .f[data-tight="2"] .fx, .pf .f[data-tight="3"] .fx, .pf .f[data-tight="4"] .fx { font-size: .39em; } .pf .f[data-tight="2"] .atk, .pf .f[data-tight="3"] .atk, .pf .f[data-tight="4"] .atk { font-size: .64em; } .pf .f[data-tight="2"] .exr, .pf .f[data-tight="3"] .exr, .pf .f[data-tight="4"] .exr { display: none; }
.pf .f[data-tight="3"] .fx, .pf .f[data-tight="4"] .fx { font-size: .36em; line-height: 1.06; } .pf .f[data-tight="3"] .art, .pf .f[data-tight="4"] .art { min-height: .9em; } .pf .f[data-tight="3"] .strip, .pf .f[data-tight="4"] .strip { display: none; }
.pf .f[data-tight="4"] .fx { font-size: .33em; } .pf .f[data-tight="4"] .art { min-height: 0; flex: 0 0 0; margin: 0; box-shadow: none; }
/* the bottom line: where Pocket prints Weakness, the Pokémon's Combat Types; then the Retreat Cost */
.pf .ft { margin-top: auto; flex: none; display: flex; justify-content: space-between; align-items: center; gap: .3em; min-height: .8em; border-top: .05em solid rgba(0,0,0,.2); padding-top: .1em; white-space: nowrap; position: relative; z-index: 1; }
.pf .ft small { font-size: .34em; font-weight: 600; margin-right: .5em; }
.pf .ft .ct, .pf .ft .rt { display: inline-flex; align-items: center; gap: .14em; } .pf .ft .ct { overflow: hidden; }
.pf .ft .en { width: .5em; height: .5em; } .pe .pf .ft .ty { font-size: .34em; } .pf .ft .none { font-size: .34em; opacity: .65; }
/* Pocket's rule box for a Pokémon ex */
.pf .exr { flex: none; margin-top: .1em; font-size: .3em; font-weight: 600; line-height: 1.15; padding: .3em 1.2em .3em 1.5em; background: linear-gradient(180deg, #fafbfc, #cfd3da); clip-path: polygon(.7em 0, 100% 0, calc(100% - .7em) 100%, 0 100%); white-space: normal; position: relative; z-index: 1; }
.pf .exr b { font-style: italic; margin-right: .5em; } .pf .exr .exm { font-size: 1em; margin: 0 .1em; text-shadow: none; color: #8a5a00; }
/* the rarity and the card's number */
.pf .no { flex: none; display: flex; justify-content: space-between; align-items: center; font-size: .27em; font-weight: 600; color: #2b2f34; padding-top: .3em; letter-spacing: .03em; position: relative; z-index: 1; } .pf .no .rr { letter-spacing: .1em; }
/* ---- Trainer cards: Pocket's silver card, a slanted TRAINER tab, the kind at the right, the reminder under the text */
.pf .f.tr { background: linear-gradient(115deg, transparent 0 22%, rgba(255,255,255,.35) 22% 31%, transparent 31% 55%, rgba(255,255,255,.22) 55% 60%, transparent 60%), linear-gradient(180deg, #e3e6ea, #c9ced6 50%, #dfe2e7); }
.pf .tr .hd { height: 1em; justify-content: space-between; }
.pf .trn { font-size: .4em; font-style: italic; letter-spacing: .06em; color: #fff; padding: .26em 1em .24em .7em; margin-left: -.25em; background: linear-gradient(180deg, #7d8591, #454b55); clip-path: polygon(0 0, 100% 0, calc(100% - .55em) 100%, 0 100%); }
.pf .tr .tag { font-size: .4em; font-style: normal; text-transform: none; letter-spacing: 0; margin: 0; color: #fff; padding: .2em .8em .22em; border-radius: 1em; clip-path: none; background: linear-gradient(180deg, #4f9be8, #2566b8); box-shadow: 0 0 0 .07em rgba(0,0,0,.25); text-shadow: 0 .05em 0 rgba(0,0,0,.35); }
.pf .tr.supporter .tag { background: linear-gradient(180deg, #f39a3d, #d1620f); } .pf .tr.tool .tag { background: linear-gradient(180deg, #9a7ce0, #5f3fb0); } .pf .tr.stadium .tag { background: linear-gradient(180deg, #58b56d, #2a7a40); }
.pf .tr .n { flex: none; font-size: .9em; margin: .12em 0 .14em; align-self: stretch; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; }
.pf .tr .art { flex: none; height: 5.3em; background: linear-gradient(180deg, #f6f7f8, #d3d7dc); }
.pf .tr .tx { flex: 1; min-height: 0; margin-top: .3em; padding: .3em .4em; font-size: .56em; font-weight: 600; line-height: 1.2; background: rgba(255,255,255,.78); border-radius: .2em; box-shadow: inset 0 0 0 .05em rgba(0,0,0,.12); overflow: hidden; color: #1c2225; position: relative; z-index: 1; }
.pf .tr .tx .en { width: .98em; height: .98em; vertical-align: -.2em; }
.pf .tr .rule { flex: none; font-size: .28em; font-weight: 600; font-style: italic; opacity: .85; padding: .5em .2em 0; line-height: 1.15; }
/* ---- a card shown small (a list, a pack, the collection): the fine print is left to the hover panel and the inspect view */
.pe .pe-card.small .exr, .pe .pe-card.small .no, .pe .pe-card.small .from, .pe .pe-card.small .rule { display: none; }
.pe .pe-card.small .strip { font-size: .26em; gap: .6em; padding-left: 1.2em; padding-right: 1.2em; }
.pe .pe-card.small .ty { font-size: .36em; } .pe .pe-card.small .atk .tyl .ty { font-size: .46em; } .pe .pe-card.small .ft small { font-size: .38em; }
/* ---- printings that are not the standard card (data/looks.js). The art of the full-art kinds fills the card and the
   rules text is left to the hover panel: name, HP, attacks and their damage stay, in white with a dark edge. */
.pf .full { position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pf .full img:not(.own):not(.icon) { height: 70%; max-width: 128%; object-fit: contain; image-rendering: pixelated; position: relative; z-index: 1; margin-top: -8%; filter: drop-shadow(0 .16em .14em rgba(0,0,0,.45)); }
.pf .full img.own { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.pf .full .person, .pf .full .drawn.fig { align-self: center; width: 5.4em; height: 10.8em; margin-top: -1.2em; position: relative; z-index: 1; filter: drop-shadow(0 .16em .14em rgba(0,0,0,.45)); }
.pf .full .drawn { height: 56%; margin-top: -10%; }
.pf .full::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
.pf .full::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(8,12,18,.62) 55%, rgba(8,12,18,.82)); }
.pf .gap { flex: 1 1 0; min-height: 0; }
.pf .f.bleed { color: #fff; text-shadow: 0 .05em .04em rgba(0,0,0,.9), 0 0 .16em rgba(0,0,0,.75), .04em 0 0 rgba(0,0,0,.6), -.04em 0 0 rgba(0,0,0,.6); background: #20262c; }
.pf .f.bleed .hd::before { content: ''; position: absolute; left: -.4em; right: -.4em; top: -.2em; height: 2.4em; z-index: -1; background: linear-gradient(180deg, rgba(8,12,18,.6), transparent); }
.pf .f.bleed .tag, .pf .f.bleed .trn { text-shadow: none; } .pf .f.bleed .from { opacity: .95; }
.pf .f.bleed .atk { border-top-color: rgba(255,255,255,.3); } .pf .f.bleed .atk.ab .an { color: #ffd0cb; }
.pf .f.bleed .ft { border-top-color: rgba(255,255,255,.35); } .pf .f.bleed .no { color: #fff; }
.pf .f.bleed.tr .tx { flex: none; font-size: .5em; background: rgba(8,12,18,.62); color: #fff; box-shadow: inset 0 0 0 .05em rgba(255,255,255,.25); text-shadow: none; }
/* ★ an illustration: the scene of the art window, over the whole card */
.pf .lk-art .full { }
/* ★★ full art: the Pokémon large over its type's colour, patterned; a textured silver edge */
.pf .lk-full .full { background: repeating-linear-gradient(60deg, rgba(255,255,255,.16) 0 .12em, transparent .12em .9em), repeating-linear-gradient(-60deg, rgba(255,255,255,.12) 0 .12em, transparent .12em .9em), radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--c, #b9bdb0) 55%, #fff), var(--c, #b9bdb0) 55%, color-mix(in srgb, var(--c, #b9bdb0) 62%, #000)) !important; }
.pf .lk-full .full::before { display: none; }
.pf .lk-full .full img:not(.own):not(.icon), .pf .lk-rainbow .full img:not(.own):not(.icon), .pf .lk-gold .full img:not(.own):not(.icon), .pf .lk-shinyfull .full img:not(.own):not(.icon) { height: 84%; margin-top: -14%; }
.pe .pf.look-full, .pe .pf.look-shinyfull { background: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 .06em, transparent .06em .2em), linear-gradient(135deg, #f4f5f7, #b7bbc4 50%, #e9ebee); }
/* ★★ rainbow: the same card in a rainbow, the Pokémon washed in it */
.pf .lk-rainbow .full { background: repeating-linear-gradient(60deg, rgba(255,255,255,.28) 0 .1em, transparent .1em .8em), repeating-linear-gradient(-60deg, rgba(255,255,255,.22) 0 .1em, transparent .1em .8em), linear-gradient(135deg, #ff9ecb, #ffd08a 20%, #fff59a 36%, #a8f0b0 52%, #9adcff 68%, #c3a8ff 84%, #ff9ecb) !important; }
.pf .lk-rainbow .full::before { z-index: 2; mix-blend-mode: color; opacity: .7; background: linear-gradient(135deg, #ff5fa8, #ffae3d 20%, #ffe94a 36%, #5fe07a 52%, #4fb8ff 68%, #9a6bff 84%, #ff5fa8); }
.pf .lk-rainbow .full img:not(.own):not(.icon) { filter: saturate(.55) brightness(1.12) drop-shadow(0 0 .05em #fff) drop-shadow(0 0 .12em rgba(255,255,255,.9)); }
.pe .pf.look-rainbow { background: linear-gradient(135deg, #ff9ecb, #ffd08a 18%, #fff59a 34%, #a8f0b0 50%, #9adcff 66%, #c3a8ff 82%, #ff9ecb); }
/* ★★★ immersive: the scene, with the Pokémon standing out past the frame */
.pe .pf.look-immersive { background: linear-gradient(135deg, #2b3038, #6d7480 30%, #e9ebee 50%, #6d7480 70%, #2b3038); }
.pf .lk-immersive { overflow: visible !important; }
.pf .lk-immersive .full { overflow: visible; border-radius: .28em; background-size: 135% 135% !important; background-position: 50% 40% !important; animation: pe-drift 14s ease-in-out infinite alternate; }
.pf .lk-immersive .full img:not(.own):not(.icon) { height: 92%; max-width: 124%; margin-top: -14%; filter: drop-shadow(0 .3em .22em rgba(0,0,0,.6)); animation: pe-float 5s ease-in-out infinite alternate; }
.pf .lk-immersive .full::after { border-radius: 0 0 .28em .28em; }
@keyframes pe-drift { from { background-position: 30% 30%; } to { background-position: 70% 55%; } }
@keyframes pe-float { from { transform: translateY(.1em) scale(1); } to { transform: translateY(-.14em) scale(1.03); } }
/* crown: gold, all of it, embossed */
.pe .pf.look-gold { background: linear-gradient(135deg, #fff6c2, #d9a521 22%, #fff1a8 40%, #b47d0a 58%, #ffe58a 76%, #9a6a05); box-shadow: 0 .2em .32em rgba(0,0,0,.45), 0 0 .5em rgba(255,205,70,.6); }
.pf .lk-gold .full { background: repeating-linear-gradient(60deg, rgba(255,250,205,.5) 0 .05em, transparent .05em .42em), repeating-linear-gradient(-60deg, rgba(120,80,0,.28) 0 .05em, transparent .05em .42em), radial-gradient(circle at 50% 38%, #fff3b0, #e8b93a 48%, #a8760c 100%) !important; }
.pf .lk-gold .full::before { display: none; }
.pf .lk-gold .full img:not(.own):not(.icon) { filter: grayscale(1) sepia(1) saturate(3.2) hue-rotate(-14deg) brightness(1.02) contrast(1.15) drop-shadow(0 .05em 0 #fff6c2) drop-shadow(0 .14em .1em rgba(90,55,0,.7)); }
.pf .lk-gold .full .person, .pf .lk-gold .full .drawn { filter: grayscale(1) sepia(1) saturate(3.2) hue-rotate(-14deg) contrast(1.15) drop-shadow(0 .14em .1em rgba(90,55,0,.7)); }
.pf .lk-gold .full::after { background: linear-gradient(180deg, transparent, rgba(92,58,0,.55) 55%, rgba(70,42,0,.8)); }
.pf .f.lk-gold { color: #fff8d6; text-shadow: 0 .05em .04em rgba(70,40,0,.95), 0 0 .16em rgba(70,40,0,.8), .04em 0 0 rgba(70,40,0,.7), -.04em 0 0 rgba(70,40,0,.7); }
.pf .lk-gold .ty, .pf .lk-gold .tag, .pf .lk-gold .trn, .pf .lk-gold .abt { filter: grayscale(1) sepia(1) saturate(2.4) hue-rotate(-14deg); }
.pf .lk-gold .en { filter: grayscale(1) sepia(1) saturate(2.6) hue-rotate(-14deg) brightness(1.05); }
/* shiny: the Pokémon in its other colours (the site's shiny: a turn of the hue, as the overworld draws one), with sparkles */
.pf .lk-shiny .art img:not(.own):not(.icon), .pf .lk-shinyfull .full img:not(.own):not(.icon) { filter: hue-rotate(150deg) saturate(1.3) drop-shadow(0 .12em .1em rgba(0,0,0,.35)); }
.pf .lk-shiny .art::after, .pf .lk-shinyfull .full::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background:
	radial-gradient(circle at 18% 22%, #fff 0 1.4%, rgba(255,255,255,.5) 1.5% 3.4%, transparent 3.6%), radial-gradient(circle at 78% 16%, #fff 0 1.1%, rgba(255,255,255,.5) 1.2% 2.8%, transparent 3%),
	radial-gradient(circle at 86% 58%, #fff 0 1.5%, rgba(255,255,255,.5) 1.6% 3.6%, transparent 3.8%), radial-gradient(circle at 12% 70%, #fff 0 1%, rgba(255,255,255,.5) 1.1% 2.6%, transparent 2.8%),
	radial-gradient(circle at 52% 10%, #fff 0 .9%, rgba(255,255,255,.5) 1% 2.2%, transparent 2.4%), radial-gradient(circle at 36% 86%, #fff 0 1.2%, rgba(255,255,255,.5) 1.3% 3%, transparent 3.2%);
	animation: pe-twinkle 2.6s ease-in-out infinite alternate; }
.pf .lk-shinyfull .full { background: repeating-linear-gradient(60deg, rgba(255,255,255,.2) 0 .1em, transparent .1em .8em), repeating-linear-gradient(-60deg, rgba(255,255,255,.14) 0 .1em, transparent .1em .8em), radial-gradient(circle at 50% 42%, #fff, color-mix(in srgb, var(--c, #b9bdb0) 60%, #fff) 50%, color-mix(in srgb, var(--c, #b9bdb0) 70%, #223) 100%) !important; }
@keyframes pe-twinkle { from { opacity: .45; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pf .lk-immersive .full, .pf .lk-immersive .full img, .pf .lk-shiny .art::after, .pf .lk-shinyfull .full::before { animation: none !important; } }
/* ---- taken from a real Pocket card: the stage in a rounded silver pill; the strip the width of the art and joined to
   it; the bottom line as two silver pills (Pocket: "weakness" and "retreat"; here "type" and "retreat") */
.pf .f.pk .hd .tag { clip-path: none; border-radius: .9em; padding: .32em .8em .3em; margin-left: -.1em; box-shadow: 0 0 0 .08em rgba(0,0,0,.22), inset 0 .1em 0 rgba(255,255,255,.9); }
.pf .strip { align-self: stretch; margin: .1em -.02em .06em; min-width: 0; clip-path: polygon(0 0, 100% 0, calc(100% - .5em) 100%, .5em 100%); box-shadow: none; }
.pf .f.pk .ft { border-top: 0; gap: .26em; padding-top: .12em; }
.pf .f.pk .ft .ct, .pf .f.pk .ft .rt { flex: 1 1 0; min-width: 0; justify-content: center; min-height: .78em; padding: .06em .4em; border-radius: .5em; background: linear-gradient(180deg, #fbfcfd, #cdd1d8 60%, #e6e8ec); box-shadow: 0 0 0 .04em rgba(0,0,0,.25), inset 0 .05em 0 #fff; color: #17191c; text-shadow: none; }
.pf .f.pk .ft .rt { flex: 0 0 auto; padding: .06em .45em; } .pf .f.pk .ft .rt .en { width: .44em; height: .44em; } .pf .f.pk .ft .ct { justify-content: flex-start; padding-left: .5em; } .pe .pf .f.pk .ft .ty { font-size: .28em; padding-left: .5em; padding-right: .5em; } .pf .f.pk .ft small { font-size: .3em; margin-right: .3em; } .pf .f.pk .ft .ct { gap: .1em; }
.pf .f.pk.ftx .ft small { display: none; } .pf .f.pk.ftx .ft .ct { padding-left: .25em; } .pe .pf .f.pk.ftx .ft .ty { padding-left: .34em; padding-right: .34em; letter-spacing: 0; }
/* ---- the deck builder: which printing of a card the deck holds */
.pe .rowb.prb { margin: -4px 0 6px 22px; width: calc(100% - 22px); font-size: .82em; opacity: .95; }
.pe .pe-printpick { justify-content: center; max-width: 1100px; } .pe .pe-printpick .pe-card { margin: 6px; }
.pe .pe-printpick .pe-card.chosen { outline: 5px solid var(--green, #4bc292); outline-offset: 4px; }
/* ---- opening a pack (main.js openOne): the sealed pack beside a glowing ring; the drop opens it; cards dealt face down */
.pe-open { min-width: 1180px; } .pe.landscape .pe-open .pe-card.small.pe-pull { font-size: 20px; }   /* (a pack's cards are dealt larger than a list's) */
.pe.landscape .pe-open .pe-pulls { gap: 18px; flex-wrap: nowrap; } .pe.portrait .pe-open { min-width: 0; width: 720px; }
.pe-openmat { position: relative; height: 430px; display: flex; align-items: center; justify-content: center; gap: 150px; }
.pe.portrait .pe-openmat { height: 760px; flex-direction: column; gap: 70px; }
.pe-openmat.dealt { height: auto; min-height: 300px; display: block; }
.pe-ring { width: 250px; height: 250px; border-radius: 50%; flex: none; border: 6px dashed rgba(255,255,255,.55); box-shadow: 0 0 0 10px rgba(255,255,255,.06), inset 0 0 50px rgba(120,200,255,.25), 0 0 40px rgba(120,200,255,.25); animation: pe-ringpulse 1.8s ease-in-out infinite; }
.pe-ring.armed, .pe-ring.lit { border-style: solid; border-color: var(--money, #ffd43b); box-shadow: 0 0 0 12px rgba(255,212,59,.18), inset 0 0 70px rgba(255,212,59,.55), 0 0 70px rgba(255,212,59,.7); animation: none; transform: scale(1.08); transition: transform .12s; }
@keyframes pe-ringpulse { 50% { transform: scale(1.05); opacity: .8; } }
.pe .pe-sealed { flex: none; z-index: 3; cursor: grab; box-shadow: 0 14px 22px rgba(0,0,0,.45); }
.pe .pe-sealed:not(:disabled):hover { transform: none; }
.pe .pe-sealed.held { cursor: grabbing; box-shadow: 0 26px 34px rgba(0,0,0,.5); }
.pe .pe-sealed.armed { box-shadow: 0 0 0 6px var(--money, #ffd43b), 0 0 60px var(--money, #ffd43b), 0 26px 34px rgba(0,0,0,.5); }
.pe .pe-sealed.back { transition: transform .28s cubic-bezier(.3,1.5,.5,1); }
.pe .pe-sealed.tear { animation: pe-tear .56s ease-in forwards; pointer-events: none; }
@keyframes pe-tear { 0% { filter: brightness(1); } 45% { filter: brightness(1.9) saturate(1.3); scale: 1.12 1.12; } 70% { filter: brightness(4); scale: 1.3 .9; opacity: 1; } 100% { filter: brightness(8); scale: 1.9 .2; opacity: 0; } }
.pe-pull.deal { animation: pe-deal .42s cubic-bezier(.2,1.3,.4,1) backwards; }
@keyframes pe-deal { from { transform: translateY(60px) scale(.2) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
.pe .pe-pull.up.deal { animation: pe-flip .35s; }
.pe .pe-pull.down { transition: box-shadow .12s, transform .12s; }
.pe .pe-pull.down:hover, .pe .pe-pull.down:focus-visible { box-shadow: inset 0 0 0 .3em #fff, 0 0 0 .2em var(--rc, #cfd6dc), 0 0 1.6em var(--rc, #cfd6dc); transform: translateY(-.3em); }   /* (a face-down card glows in the colour of its rarity) */
.pe-openfx { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 5; }
.pe-shock { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 8px solid var(--rc, #ffd75e); box-shadow: 0 0 30px var(--rc, #ffd75e), inset 0 0 20px var(--rc, #ffd75e); animation: pe-shock .75s ease-out forwards; }
@keyframes pe-shock { from { transform: scale(.4); opacity: 1; } to { transform: scale(7); opacity: 0; border-width: 1px; } }
.pe-spark { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--rc, #ffd75e); box-shadow: 0 0 12px var(--rc, #ffd75e); animation: pe-spark .7s ease-out forwards; }
@keyframes pe-spark { from { transform: none; opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pe-ring, .pe-pull.deal, .pe .pe-sealed.tear { animation-duration: .01s !important; } .pe-shock, .pe-spark { display: none; } }
/* ---- the sheen (js/sheen.js): the site's own card shaders run over a grey card, laid over this one */
.pf .sheen { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; border-radius: inherit; image-rendering: auto; mix-blend-mode: hard-light; opacity: .9; filter: contrast(1.9) saturate(1.7); }
.pf .full > .sheen { z-index: 1; opacity: .6; }                     /* a full-art card: over its art too, lightly */
.pf .sheen.sh-poly { mix-blend-mode: soft-light; opacity: .95; filter: saturate(1.5) contrast(1.2); }
.pf .sheen.sh-gold { filter: grayscale(1) sepia(1) saturate(3) hue-rotate(-12deg) contrast(1.8); opacity: .7; }
.pe .pf.sheen-live::after { animation: none !important; opacity: 0 !important; }   /* (the still sheen steps aside while the shader draws) */
.pe .pe-insp .big.sheen-live { transform: var(--tilt, none); transition: transform .12s ease-out; }
/* ---- a reverse holo (a Deluxe Pack's foil printing): bands of light across the card's body. The art, the strip and
   the pills are opaque and sit over it, so they do not shine: that is what makes it a REVERSE holo. */
.pf .rv { position: absolute; inset: 0; z-index: 0; pointer-events: none;
	/* (2026-11-18, owner: "the reverse holos dont look any different than the regular card". The bands were faint and
	   mostly hidden: now a foil texture over the whole body, strong rainbow bands that move with the pointer, and a
	   silver frame round the art window. The art itself still does not shine: that is the REVERSE.) */
	background:
		radial-gradient(circle, rgba(255,255,255,.95) 0 .03em, transparent .05em) 0 0 / .42em .42em,
		radial-gradient(circle, rgba(255,255,255,.7) 0 .025em, transparent .045em) .21em .17em / .55em .55em,
		repeating-linear-gradient(62deg, rgba(255,255,255,.4) 0 .045em, transparent .045em .2em),
		linear-gradient(118deg, transparent 0 4%, rgba(255,255,255,.95) 10%, transparent 18% 26%, rgba(255,255,255,.85) 33%, rgba(255,255,255,.3) 40%, rgba(255,255,255,.95) 47%, transparent 55% 64%, rgba(255,255,255,.9) 72%, transparent 82%) var(--sx, 34%) var(--sy, 40%) / 140% 140%,
		linear-gradient(118deg, rgba(255,50,140,.62), rgba(255,190,30,.62) 20%, rgba(30,205,120,.62) 40%, rgba(40,130,255,.62) 60%, rgba(160,70,255,.62) 80%, rgba(255,50,140,.62)) var(--sx, 34%) var(--sy, 40%) / 140% 140%;
	opacity: .92; }
.pf .lk-foil .art { box-shadow: 0 0 0 .09em #fff, 0 0 0 .16em #b7bcc6, 0 0 .5em .12em rgba(255,255,255,.75); }
@media (prefers-reduced-motion: no-preference) { .pe:not(.calm) .pf .rv { animation: pe-rvdrift 6s ease-in-out infinite alternate; } }
@keyframes pe-rvdrift { from { background-position: 0 0, .21em .17em, 0 0, 15% 25%, 15% 25%; } to { background-position: 0 0, .21em .17em, 0 0, 85% 75%, 85% 75%; } }
.pe .pf.sheen-live .rv { animation: none; }   /* (under the pointer, the pointer moves the bands) */
.pf .lk-foil .art, .pf .lk-foil .strip { position: relative; z-index: 1; }
.pf .f.pk.lk-foil { background: linear-gradient(180deg, color-mix(in srgb, var(--c, #b9bdb0) 92%, #fff) 0, color-mix(in srgb, var(--c, #b9bdb0) 80%, #fff) 50%, color-mix(in srgb, var(--c, #b9bdb0) 66%, #fff) 100%); }
.pe .pf.look-foil { background: linear-gradient(118deg, #f4f5f7 0, #c9ccd3 16%, #ffffff 26%, #b7bbc4 44%, #f2f3f6 56%, #ffffff 64%, #a9aeb8 84%, #dfe1e6 100%); }
/* ---- Anomaly: the three Mews of First Partners. Full art, the whole card in one saturated colour, shining. */
.pf .lk-anomaly { --an: #e8203a; } .pf .lk-anomaly.an-green { --an: #18b84a; } .pf .lk-anomaly.an-blue { --an: #2468f2; }
.pf .lk-anomaly .full { background: repeating-radial-gradient(circle at 50% 40%, rgba(255,255,255,.2) 0 .08em, transparent .08em .7em), radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--an) 45%, #fff), var(--an) 52%, color-mix(in srgb, var(--an) 55%, #000) 100%) !important; }
.pf .lk-anomaly .full::before { z-index: 2; background: var(--an); mix-blend-mode: color; opacity: .85; }
.pf .lk-anomaly .full img:not(.own):not(.icon) { height: 84%; margin-top: -14%; filter: saturate(1.2) contrast(1.15) drop-shadow(0 0 .06em #fff) drop-shadow(0 0 .2em color-mix(in srgb, var(--an) 60%, #fff)); }
.pf .lk-anomaly .ty, .pf .lk-anomaly .en { filter: grayscale(1) brightness(1.15); }
.pe .pf.look-anomaly { background: linear-gradient(135deg, #fff, #e8203a 30%, #fff 50%, #e8203a 72%, #fff); box-shadow: 0 .2em .32em rgba(0,0,0,.45), 0 0 .55em rgba(232,32,58,.7); }
.pe .pf.look-anomaly:has(.an-green) { background: linear-gradient(135deg, #fff, #18b84a 30%, #fff 50%, #18b84a 72%, #fff); box-shadow: 0 .2em .32em rgba(0,0,0,.45), 0 0 .55em rgba(24,184,74,.7); }
.pe .pf.look-anomaly:has(.an-blue) { background: linear-gradient(135deg, #fff, #2468f2 30%, #fff 50%, #2468f2 72%, #fff); box-shadow: 0 .2em .32em rgba(0,0,0,.45), 0 0 .55em rgba(36,104,242,.7); }
/* ---- a Pokémon printed with two types (Dual Fusion): the card is split on a slant between the two colours, with a
   white seam; its art window is split the same way between the two types' scenes; and it carries both symbols. */
.pf .f.pk.dual::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%);
	background: linear-gradient(115deg, transparent 0 22%, rgba(255,255,255,.2) 22% 31%, transparent 31% 55%, rgba(255,255,255,.13) 55% 60%, transparent 60%),
		linear-gradient(180deg, color-mix(in srgb, var(--c2) 88%, #fff) 0, color-mix(in srgb, var(--c2) 70%, #fff) 46%, color-mix(in srgb, var(--c2) 34%, #fff) 62%, color-mix(in srgb, var(--c2) 30%, #fff) 100%); }
.pf .f.pk.dual:not(.bleed)::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: rgba(255,255,255,.9); clip-path: polygon(59.2% 0, 60.8% 0, 40.8% 100%, 39.2% 100%); }
.pf .f.pk.dual .art, .pf .f.pk.dual .strip { position: relative; z-index: 1; }
.pf .half { position: absolute; inset: 0; z-index: 0; clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%); box-shadow: none; }
.pf .half::after { content: ''; position: absolute; inset: 0; background: #fff; clip-path: polygon(59% 0, 61% 0, 41% 100%, 39% 100%); }
.pf .f.pk.dual .hd > .en + .en { margin-left: -.22em; }
.pf .lk-full .half, .pf .lk-shinyfull .half { background: repeating-linear-gradient(60deg, rgba(255,255,255,.16) 0 .12em, transparent .12em .9em), repeating-linear-gradient(-60deg, rgba(255,255,255,.12) 0 .12em, transparent .12em .9em), radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--c2) 55%, #fff), var(--c2) 55%, color-mix(in srgb, var(--c2) 62%, #000)) !important; }
.pf .lk-full .half::before, .pf .lk-rainbow .half, .pf .lk-gold .half { display: none; }
/* ---- the scene of an illustration and an immersive card (js/scene8.js): two layers of hard pixels, with the lines of a
   picture tube over them. On an immersive card the layers move against each other with the pointer, and the Pokémon
   stands past the frame. */
.pf .full.sc8 { background: #10141c !important; animation: none !important; }
.pf .s8 { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; z-index: 0; }
.pf .s8.fg { z-index: 1; filter: drop-shadow(0 .1em .08em rgba(0,0,0,.4)); }
.pf .full.sc8::before { z-index: 2; background: repeating-linear-gradient(0deg, rgba(0,0,0,.1) 0 .04em, transparent .04em .08em); }
.pf .full.sc8::after { height: 40%; background: linear-gradient(180deg, transparent, rgba(8,12,18,.5) 55%, rgba(8,12,18,.72)); }
.pf .lk-immersive .full.sc8 { overflow: visible; }
.pf .lk-immersive .s8.bg { border-radius: .28em; transform: scale(1.06) translate(calc((var(--sx, 50%) - 50%) * -.07), calc((var(--sy, 50%) - 50%) * -.05)); clip-path: inset(2.8% round .28em); }
.pf .lk-immersive .s8.fg { inset: -7% -9% -3%; width: 118%; height: 110%; transform: translate(calc((var(--sx, 50%) - 50%) * .09), calc((var(--sy, 50%) - 50%) * .06)); filter: drop-shadow(0 .22em .16em rgba(0,0,0,.55)); }
/* the hover panel: the card under the mouse at a size that reads, with all of its text */
.pe .pe-tip { position: absolute; z-index: 60; pointer-events: none; padding: 10px; border-radius: 16px; background: rgba(16,22,26,.92); box-shadow: 0 8px 26px rgba(0,0,0,.55), 0 0 0 2px rgba(255,255,255,.18); animation: pe-tipin .12s ease-out; }
.pe .pe-tip .pf { font-size: 27px; cursor: default; display: block; }
.pe .pe-tip .lk-name { margin-top: 7px; text-align: center; font-size: 17px; color: var(--money, #f3c94a); }
@keyframes pe-tipin { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* a Pokémon in play (also an empty slot) */
.pe-poke { position: relative; flex: none; overflow: visible; }
.pe-poke.empty { width: 10em; height: 14em; border: 0; border-radius: .55em; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 .16em rgba(255,255,255,.7); cursor: default; }
.pe-poke.empty.can { cursor: pointer; }
.pe-poke .slot { position: absolute; left: -.4em; top: -.4em; width: 1.5em; height: 1.5em; border-radius: 50%; background: #1f2a2c; color: #fff; font-size: .85em; display: flex; align-items: center; justify-content: center; z-index: 4; box-shadow: 0 0 0 .1em #fff; }
.pe-poke.empty .slot { left: 50%; top: 50%; transform: translate(-50%, -50%); background: none; box-shadow: none; color: rgba(255,255,255,.85); font-size: 2.6em; font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 800; }
.pe-poke .hp { height: .44em; background: #2a3236; border-radius: .3em; margin: 0 0 .1em; overflow: hidden; flex: none; box-shadow: 0 0 0 .05em rgba(255,255,255,.7); }
.pe-poke .hp i { display: block; height: 100%; background: #35c26b; }
.pe-poke .hp.mid i { background: var(--orange); } .pe-poke .hp.low i { background: var(--red); }
.pe-poke .ens { position: absolute; left: -.3em; bottom: -.4em; display: flex; z-index: 4; pointer-events: none; }
.pe-poke .ens .en { width: 1.6em; height: 1.6em; margin: 0; box-shadow: 0 0 0 .09em #fff, 0 .1em .15em rgba(0,0,0,.5); } .pe-poke .ens .en + .en { margin-left: -.55em; }
.pe-poke .st { position: absolute; right: .55em; top: 2.5em; display: flex; flex-direction: column; gap: .15em; z-index: 3; align-items: flex-end; }
.pe-poke .st b { font-size: .7em; padding: .05em .4em .1em; border-radius: .5em; background: #8e5fb3; color: #fff; } .pe-poke .st b.asleep { background: #4f6f9a; } .pe-poke .st b.paralyzed { background: #b99a1e; } .pe-poke .st b.fx { background: #5f7377; } .pe-poke .st b.burned { background: #d4552a; } .pe-poke .st b.confused { background: #c0528f; }
.pe-poke .tl { position: absolute; right: -.3em; bottom: -.35em; z-index: 4; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .6em; padding: .15em .55em; border-radius: .7em; background: #6b4fb3; color: #fff; box-shadow: 0 0 0 .1em #fff; pointer-events: none; font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 700; }
.pe-poke.tiny .atks, .pe-poke.tiny .ft, .pe-poke.tiny .tag, .pe-poke.tiny .evo, .pe-poke.tiny .from, .pe-poke.tiny .strip, .pe-poke.tiny .exr, .pe-poke.tiny .no { display: none; }
.pe-poke.tiny .art { flex: 1; height: auto; min-height: 0; margin-bottom: .05em; } .pe-poke.tiny .hd { height: 1.75em; } .pe-poke.tiny .n { font-size: 1.05em; } .pe-poke.tiny .h { font-size: 1.3em; } .pe-poke.tiny .hp { height: .62em; margin-bottom: .18em; }
.pe-poke.tiny .hd > .en { display: none; } .pe-poke.tiny .st { top: 3.2em; } .pe-poke.tiny .st b { font-size: 1em; }
.pe-poke.legal { box-shadow: 0 0 0 .3em var(--green), 0 0 1.3em var(--green); animation: pe-pulse 1s infinite; }
.pe-poke.queued::after { content: attr(data-q); position: absolute; left: 0; right: 0; top: 40%; font-size: .9em; text-align: center; background: rgba(253,162,0,.95); color: #1f2a2c; padding: .12em 0; z-index: 3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-poke.hit { animation: pe-hit .45s; }
.pe-poke .dn { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-size: 2.2em; font-weight: 900; color: #ffd24a; text-shadow: 0 .06em 0 #000, 0 0 .2em #000; animation: pe-rise .9s forwards; pointer-events: none; z-index: 5; }
@keyframes pe-pulse { 50% { filter: brightness(1.2); } }
@keyframes pe-hit { 20% { transform: translateX(-6px); filter: brightness(2); } 60% { transform: translateX(5px); } }
@keyframes pe-rise { to { transform: translateY(-34px); opacity: 0; } }
/* what just happened, shown once on the mat: an attack going out, a Knock Out, an evolution, Energy arriving, whose turn it is */
.pe-poke.lunge-up { animation: pe-lunge-up .42s ease-out; z-index: 6; } .pe-poke.lunge-down { animation: pe-lunge-down .42s ease-out; z-index: 6; }
@keyframes pe-lunge-up { 35% { transform: translateY(-1.5em) scale(1.07); } } @keyframes pe-lunge-down { 35% { transform: translateY(1.5em) scale(1.07); } }
.pe-poke.evo { animation: pe-evo .8s ease-out; } @keyframes pe-evo { 0% { filter: brightness(3) saturate(0); transform: scale(.9); } 45% { filter: brightness(2.2); transform: scale(1.08); box-shadow: 0 0 0 .3em #fff, 0 0 1.6em .5em rgba(255,255,255,.9); } }
.pe-poke.gain { animation: pe-gain .6s ease-out; } @keyframes pe-gain { 30% { box-shadow: 0 0 0 .22em var(--c, #ffd43b), 0 0 1.2em .3em var(--c, #ffd43b); } }
.pe-poke.hit.lunge-up, .pe-poke.hit.lunge-down { animation: pe-hit .45s; }
.pe-kofx { position: absolute; inset: 0; z-index: 7; pointer-events: none; display: flex; align-items: center; justify-content: center; animation: pe-ko 1s ease-out forwards; }
.pe-kofx i { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0 22%, #ffd43b 23% 44%, rgba(255,120,60,.85) 45% 62%, transparent 63%); }
.pe-kofx b { position: relative; font-size: 2.4em; font-weight: 900; color: #fff; -webkit-text-stroke: .08em #c0392b; text-shadow: 0 .08em 0 #7a1f14; transform: rotate(-8deg); }
@keyframes pe-ko { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.15); opacity: 1; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.pe-turnfx { position: absolute; left: 535px; top: 42%; transform: translate(-50%, -50%); padding: 10px 70px 13px; font-size: 44px; white-space: nowrap; color: #fff; border-radius: 60px; background: linear-gradient(180deg, #8f9bb8, #5d6a8c); box-shadow: 0 8px 22px rgba(30,50,110,.45), inset 0 0 0 3px rgba(255,255,255,.65); animation: pe-turnfx 1.5s ease-in-out forwards; pointer-events: none; }
.pe-coach { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #fff7d6; color: #4a3b12; font: 600 17px/1.3 'Segoe UI', system-ui, sans-serif; box-shadow: inset 0 0 0 2px #f2c230; } .pe-coach b { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: 8px; background: #f2c230; color: #3a2c05; font-size: .8em; text-transform: uppercase; letter-spacing: .04em; }
/* the trade window */
.pe-trade { width: min(1100px, 92vw); } .pe-tstatus { font-size: 22px; color: var(--money, #ffd43b); }
.pe-tcols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 12px; } .pe-tcol { padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.07); text-align: left; font-size: 18px; line-height: 1.35; min-height: 96px; } .pe-tcol.ok { box-shadow: inset 0 0 0 2px #7CFC7C; } .pe-tcol h4 { margin: 0 0 4px; font-size: 20px; color: #fff; }
.pe-tpick { max-height: 300px; overflow-y: auto; margin: 0 0 12px; padding: 6px; border-radius: 12px; background: rgba(0,0,0,.2); } .pe-trow { display: grid; grid-template-columns: 1fr auto auto auto auto; align-items: center; gap: 10px; padding: 3px 8px; border-radius: 8px; text-align: left; font-size: 18px; } .pe-trow.on { background: rgba(124,252,124,.14); } .pe-trow .btn { min-width: 44px; padding: 2px 10px; } .pe-trow b { min-width: 1.6em; text-align: center; }
.pe.portrait .pe-tcols { grid-template-columns: 1fr; }
.pe-inbox { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 0 12px; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.08); font-size: 20px; line-height: 1.25; text-align: left; } .pe-inbox .btn { flex: none; }
.pe-livetasks { margin: 0 0 8px; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.22); font-size: 15px; line-height: 1.3; text-align: left; } .pe-livetasks .pe-task { opacity: .85; } .pe-livetasks .pe-task.done { color: #8ff0a4; opacity: 1; } .pe-livetasks .pe-task.had { color: #cfd6de; }
.pe-say { position: absolute; left: 535px; top: 120px; transform: translateX(-50%); padding: 8px 26px 10px; border-radius: 30px; background: rgba(255,255,255,.97); color: #36406a; font: 600 26px 'Segoe UI', system-ui, sans-serif; white-space: nowrap; box-shadow: 0 6px 18px rgba(50,70,140,.35); animation: pe-say 4.2s ease-in-out forwards; pointer-events: none; z-index: 30; }
.pe-say b { color: #df7426; margin-right: 8px; } .pe-say.mine { top: 470px; } .pe-say.mine b { color: #2e8cf0; } .pe-say + .pe-say { margin-top: 56px; }
.pe.portrait .pe-say { left: 410px; top: 200px; font-size: 24px; } .pe.portrait .pe-say.mine { top: 1000px; }
@keyframes pe-say { 0% { opacity: 0; transform: translate(-50%, 12px) scale(.9); } 8% { opacity: 1; transform: translate(-50%, 0) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }
.pe-saylist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* (beside the commands the tasks are a small list, not the end-of-match rows) */
.pe .pe-livetasks .pe-task { font: 600 14px/1.25 'Segoe UI', system-ui, sans-serif; padding: 1px 0; border-radius: 0; background: none; } .pe .pe-livetasks .pe-task.done { background: none; color: #8ff0a4; }
.pe-cmd .pe-livetasks ~ .hint { display: none; }
.pe-cmd .pe-coach ~ .hint { display: none; }   /* (the guide says it instead) */
.pe-wonder { margin: 0 0 14px; padding: 8px 10px 12px; border-radius: 14px; background: rgba(255,255,255,.07); text-align: center; } .pe-wonder .pe-pulls { margin: 4px 0 8px; }
.pe-pull.got { box-shadow: 0 0 0 .22em var(--money, #ffd43b), 0 0 1.2em var(--money, #ffd43b); z-index: 2; } .pe-pull.missed { opacity: .5; filter: saturate(.6); }
.pe-cmd h3 .pe-turnno { float: right; font-size: .7em; opacity: .85; }
.pe-turnfx.mine { background: linear-gradient(180deg, #57c3ff, #2e8cf0); }
.pe.portrait .pe-turnfx { left: 410px; font-size: 40px; padding: 8px 46px 11px; top: 38%; }
@keyframes pe-turnfx { 0% { opacity: 0; transform: translate(-120%, -50%); } 18% { opacity: 1; transform: translate(-50%, -50%); } 78% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(20%, -50%); } }
@media (prefers-reduced-motion: reduce) { .pe-poke.lunge-up, .pe-poke.lunge-down, .pe-poke.evo, .pe-poke.gain, .pe-kofx, .pe-turnfx { animation: none; } .pe-kofx, .pe-turnfx { display: none; } }

/* the hand */
.pe-logbtn { display: none; } .pe.portrait .pe-cmd .pe-logbtn { display: inline-block; }
.pe .pe-logfull { position: static; width: auto; height: auto; max-height: 1000px; min-width: 700px; display: block; }
.pe-hand { position: absolute; left: 10px; top: 648px; width: 1050px; height: 248px; padding: 3px 12px; background: rgba(31,42,44,.45); border-radius: 18px; display: flex; gap: 8px; align-items: center; justify-content: safe center; overflow-x: auto; overflow-y: hidden; }
.pe .pe-card { font-size: 21px; } .pe.landscape .pe-hand .pe-card { font-size: 16.4px; }   /* (the hand is a little smaller on a wide screen: the Bench has a row of its own behind the Active Pokémon) */
.pe-card:disabled { cursor: default; }
.pe-card:hover, .pe-card:focus-visible { z-index: 2; }
.pe-card.playable { box-shadow: 0 0 0 .2em var(--green), 0 0 .8em var(--green); }
.pe-card .have { position: absolute; right: .35em; bottom: .35em; z-index: 2; background: var(--orange); color: #1f2a2c; border-radius: .7em; padding: .1em .5em; font-size: .8em; box-shadow: 0 0 0 .1em #fff; }
.pe .pe-card.small { font-size: 15px; } .pe.portrait .pe-card { font-size: 23px; } .pe.portrait .pe-card.small { font-size: 17.5px; }

/* the command panel and the log */
.pe-cmd { position: absolute; left: 1070px; top: 632px; width: 520px; height: 262px; background: rgba(42,55,57,.9); border-radius: 18px; padding: 10px 14px; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.pe-cmd h3 { margin: 0 0 6px; font-size: 22px; font-weight: normal; color: var(--orange); }
.pe-cmd .q { font-size: 19px; background: #1f2a2c; border-radius: 10px; padding: 7px 10px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 34px; }
.pe-cmd .q b { color: var(--money); } .pe-cmd .q.pass { color: #9fb0b3; }
.pe-cmd .bar { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.pe-cmd .btn { font-size: 26px; }
.pe-cmd .btn.exec { flex: 1; font-size: 34px; min-height: 64px; }
.pe-cmd .hint { font-size: 16px; color: #b9c9cc; margin-top: 6px; min-height: 36px; }
.pe-log { position: absolute; left: 1070px; top: 6px; width: 520px; height: 616px; background: rgba(20,28,30,.86); border-radius: 18px; padding: 8px 64px 8px 12px; overflow-y: auto; font-size: 16px; line-height: 1.25; user-select: text; -webkit-user-select: text; }
.pe-log div { margin-bottom: 3px; color: #d5dfe1; }
.pe-log .turn { color: var(--orange); margin-top: 6px; } .pe-log .ko, .pe-log .win { color: var(--money); } .pe-log .fail { color: var(--red); } .pe-log .damage { color: #fff; } .pe-log .coin { color: #9fb0b3; }
.pe-prompt { position: absolute; left: 535px; top: 300px; transform: translate(-50%, -100%); background: var(--orange); color: #1f2a2c; padding: 8px 18px; border-radius: 14px; font-size: 22px; z-index: 30; box-shadow: 0 4px 0 rgba(0,0,0,.35); white-space: nowrap; display: flex; gap: 12px; align-items: center; }
.pe-prompt .btn { font-size: 18px; padding: 4px 12px; margin: 0; box-shadow: 0 3px 0 var(--bd); }

/* portrait: the mat fills the top (their half, then mine), then the hand, the commands and a short log */
.pe.portrait .pe-mat { left: 6px; top: 6px; width: 808px; height: 962px; }
.pe.portrait .pe-opps { left: 6px; top: 6px; width: 808px; height: 469px; gap: 6px; padding: 8px 8px 0; }
.pe.portrait .pe-side .pe-head { padding-right: 12px; }
.pe.portrait .pe-opps .pe-side:last-child .pe-head { margin-right: 56px; }   /* (the site's gear sits on that corner) */
.pe.portrait .pe-head { font-size: 18px; gap: 6px; flex-wrap: wrap; row-gap: 0; } .pe.portrait .pe-head .cnt { font-size: 14px; gap: 6px; }
.pe.portrait .pe-opps .pe-side:not(:only-child) .pe-head .who { display: none; }
.pe.portrait .pe-me { left: 6px; top: 479px; width: 808px; height: 489px; padding: 8px 8px 6px; gap: 5px; }
.pe.portrait .pe-me .pe-rows { padding-right: 0; }
/* (the Energy Zone is a bar under my Pokémon, so the cards have the whole width) */
.pe.portrait .pe-me .pe-rows { order: 0; } .pe.portrait .pe-me .pe-zone { order: 1; } .pe.portrait .pe-me .pe-head { order: 2; margin-top: 0; }
.pe.portrait .pe-zone { position: static; width: auto; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; border-radius: 14px; white-space: nowrap; }
.pe.portrait .pe-zone .slot { width: auto; margin: 0; padding: 2px 16px; display: flex; align-items: center; gap: 8px; border-radius: 10px; } .pe.portrait .pe-zone .en.big { width: 22px; height: 22px; }
/* (the hand has the room the title line and the log had: the log opens from the Log button) */
.pe.portrait .pe-hand { left: 6px; top: 974px; width: 808px; height: 342px; padding: 8px 12px; }
.pe.portrait .pe-cmd { left: 6px; top: 1322px; width: 808px; height: 172px; padding: 8px 12px; }
.pe.portrait .pe-cmd h3 { display: none; }
.pe.portrait .pe-cmd h3 { margin-bottom: 4px; } .pe.portrait .pe-cmd .q { padding: 5px 10px; min-height: 30px; margin-bottom: 5px; } .pe.portrait .pe-cmd .btn.exec { min-height: 54px; } .pe.portrait .pe-cmd .bar { margin-top: 6px; }
.pe.portrait .pe-cmd .hint { min-height: 0; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* (the log is one line here, its newest; the mat has the room instead) */
.pe.portrait .pe-table > .pe-log { display: none; }
.pe.portrait .pe-prompt { left: 50%; top: 491px; font-size: 19px; max-width: 800px; white-space: normal; text-align: center; }

/* ---------------------------------------------------------------- modals (on Micatro's .modal-layer / .modal-box) */
.pe .modal:not(:last-child) { visibility: hidden; }   /* one menu at a time: the one underneath does not show through */
.pe .modal-box { min-width: 420px; max-width: 96%; font-size: 20px; }
.pe .modal-title { font-size: 36px; margin-bottom: 10px; }
.pe .modal-box .btn { font-size: 22px; }
.pe .pe-list { display: flex; flex-direction: column; gap: 6px; max-height: 620px; overflow-y: auto; padding: 4px; }
.pe .pe-grid { display: flex; flex-wrap: wrap; gap: 8px; max-height: 620px; overflow-y: auto; padding: 4px; justify-content: center; }
.pe .pe-opt { display: flex; align-items: center; gap: 8px; text-align: left; font-size: 20px; padding: 9px 14px; border: 0; border-radius: 12px; background: #2a3739; color: #fff; cursor: pointer; box-shadow: 0 4px 0 #1f2a2c; }
.pe .pe-opt:disabled { opacity: .5; cursor: default; }
.pe .pe-opt .why { margin-left: auto; font-size: 15px; color: #f0b9b4; text-align: right; }
.pe .pe-opt .d { margin-left: auto; font-size: 22px; color: var(--money); }
.pe .pe-seg { display: flex; gap: 8px; justify-content: center; margin: 8px 0; flex-wrap: wrap; }
.pe .pe-seg .btn.on { --b: var(--orange); --bd: var(--orange-d); }
.pe .pe-note { font-size: 17px; color: #cfd9db; text-align: center; margin: 6px 0; line-height: 1.25; }

/* the inspected card */
/* (large enough to read on a phone: the card is 400 wide on a stage a phone shows at about half size) */
.pe-insp { display: flex; gap: 18px; align-items: flex-start; max-width: 1100px; }
.pe .pe-insp .big { font-size: 40px; cursor: default; }
.pe-insp .side { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 10px; }
.pe-insp .info { font-size: 19px; line-height: 1.25; }
.pe-insp .info h4 { margin: 8px 0 3px; font-weight: normal; font-size: 22px; color: var(--orange); }
.pe-insp .info .row { margin-bottom: 4px; }
.pe-insp .info .orig { color: #b9c9cc; font-size: 16px; border-left: 3px solid #5f7377; padding-left: 8px; margin-top: 3px; }
.pe-insp .info .lbl { color: #9fb0b3; }
.pe.portrait .pe-insp { flex-direction: column; align-items: center; } .pe.portrait .pe-insp .side { align-self: stretch; min-width: 0; }

/* the deck builder */
.pe-db { display: flex; gap: 12px; width: 1480px; max-width: 100%; height: 760px; }
.pe-db .pool { flex: 1; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; padding: 4px; }
.pe-db .mine { width: 380px; flex: none; display: flex; flex-direction: column; gap: 6px; }
.pe-db .mine .rows { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.pe-db .rowb { display: flex; align-items: center; gap: 6px; font-size: 18px; padding: 5px 10px; border: 0; border-radius: 10px; background: #2a3739; color: #fff; cursor: pointer; text-align: left; }
.pe-db .rowb .x { margin-left: auto; color: var(--money); }
.pe.portrait .pe-db { flex-direction: column; width: 780px; height: 1320px; } .pe.portrait .pe-db .mine { width: auto; height: 420px; }

.pe-replaybar { display: flex; gap: 8px; align-items: center; font-size: 20px; flex-wrap: wrap; margin-top: 8px; }
.pe-replaybar .btn { font-size: 20px; margin: 0; padding: 6px 12px; }
.pe-replaybar input[type=range] { flex: 1; min-width: 160px; }
.pe-wait { left: 50% !important; top: 300px !important; transform: translateX(-50%); height: auto !important; width: 520px !important; max-width: 96%; }
.pe-watch { color: var(--money); white-space: nowrap; }
.pe.portrait .pe-banner { left: 50%; top: 434px; max-width: 800px; white-space: normal; text-align: center; }
.pe-banner { position: absolute; left: 535px; top: 250px; transform: translateX(-50%); z-index: 35; background: rgba(20,28,30,.92); border-radius: 12px; padding: 5px 16px; font-size: 19px; white-space: nowrap; }

/* ---------------------------------------------------------------- packs and the collection */
.pe-packs { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.pe-guard { color: var(--money); }
.pe-pack { position: relative; width: 200px; height: 310px; border: 0; border-radius: 10px; cursor: pointer; font-family: inherit; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 26px 8px 18px; overflow: hidden;
	background: linear-gradient(115deg, rgba(255,255,255,.55) 0 8%, transparent 22% 46%, rgba(255,255,255,.4) 56%, transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 55%, #000));
	box-shadow: 0 7px 0 rgba(0,0,0,.4), inset 0 0 0 3px rgba(255,255,255,.5); text-shadow: 0 2px 0 rgba(0,0,0,.45); }
.pe-pack::before, .pe-pack::after { content: ''; position: absolute; left: 0; right: 0; height: 14px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 4px, rgba(0,0,0,.18) 4px 8px); }
.pe-pack::before { top: 0; } .pe-pack::after { bottom: 0; }
.pe-pack img { height: 150px; image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(0,0,0,.3)); }
.pe-pack .set { font-size: 18px; letter-spacing: 1px; } .pe-pack .nm { font-size: 30px; } .pe-pack .n5 { font-size: 15px; opacity: .9; }
.pe-pack:disabled { filter: grayscale(.8); opacity: .55; cursor: default; }
.pe-pack:not(:disabled):hover { transform: translateY(-4px); }
.pe.portrait .pe-pack { width: 220px; height: 330px; }
.pe-pulls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 10px 0 6px; padding: 8px; }
.pe .pe-pull.down { background: radial-gradient(circle, #fff 0 9%, #213f8f 10% 13%, #fff 14% 21%, transparent 22%), linear-gradient(160deg, #4f86ea, #213f8f); box-shadow: inset 0 0 0 .3em #fff, 0 .22em .3em rgba(0,0,0,.4); }
.pe-pull.down > * { visibility: hidden; }
.pe-pull.up { animation: pe-flip .35s; }
.pe-pull.up.r1S, .pe-pull.up.r2S, .pe-pull.up.r3S, .pe-pull.up.rCR { box-shadow: 0 0 0 .22em var(--money), 0 0 1.4em var(--money); }
.pe-pull.up.r4D { box-shadow: 0 0 0 .18em #fff, 0 0 1em #fff; }
@keyframes pe-flip { from { transform: rotateY(90deg) scale(1.08); } to { transform: none; } }
.pe-card .rar { position: absolute; left: .35em; bottom: .35em; z-index: 2; background: rgba(20,28,30,.85); color: var(--money); border-radius: .7em; padding: .1em .5em; font-size: .62em; letter-spacing: .05em; }
.pe-card .rar.r1D, .pe-card .rar.r2D, .pe-card .rar.r3D, .pe-card .rar.r4D { color: #dfe8ea; }
.pe-card .rar.r1F, .pe-card .rar.r2F, .pe-card .rar.r3F { color: #bfe9ff; text-shadow: 0 0 4px #7fd4ff; }   /* a foil version (Deluxe Packs) */
.pe-card .new { position: absolute; right: -.2em; top: -.2em; z-index: 2; background: var(--red); color: #fff; border-radius: .7em; padding: .12em .5em; font-size: .72em; box-shadow: 0 0 0 .1em #fff; }
.pe-card .own { position: absolute; left: .35em; bottom: .35em; z-index: 2; background: rgba(20,28,30,.85); color: #fff; border-radius: .7em; padding: .1em .5em; font-size: .6em; }
/* (a flat cover, not a filter: a couple of hundred filtered cards make a slow machine crawl) */
.pe-card.lack::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(52,62,66,.66); pointer-events: none; } .pe-card.lack .own { color: #f0b9b4; }
.pe-sync { font-size: 15px; color: #9fb0b3; } .pe-sync[data-sync=saved] { color: var(--green); } .pe-sync[data-sync=offline] { color: var(--orange); }
.pe .pe-col { width: 1480px; max-width: 100%; } .pe.portrait .pe-col { max-height: 900px; }

/* ---------------------------------------------------------------- the art window: a scene painted for the card's type, the sprite large on it */
.pf .art img:not(.own):not(.icon) { height: 96%; max-width: 100%; filter: drop-shadow(0 .12em .1em rgba(0,0,0,.35)); position: relative; z-index: 1; }
.pf .art img.own { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; image-rendering: auto; z-index: 2; filter: none; }
.pf .art .tag { z-index: 3; }
.pf .art::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
.pf .art.bg-Grass, .pf .full.bg-Grass, .pf .half.bg-Grass { background: radial-gradient(ellipse 46% 11% at 50% 90%, rgba(0,0,0,.25), transparent), radial-gradient(ellipse 70% 38% at 18% 100%, #4c9a45 0 99%, transparent), radial-gradient(ellipse 80% 44% at 85% 104%, #63b455 0 99%, transparent), linear-gradient(180deg, #bfeaf7, #e9f9d6 62%, #8fd06f 63%); }
.pf .art.bg-Grass::before, .pf .full.bg-Grass::before, .pf .half.bg-Grass::before { background: radial-gradient(circle at 20% 22%, rgba(255,255,255,.9) 0 6%, transparent 7%), radial-gradient(circle at 30% 25%, rgba(255,255,255,.8) 0 8%, transparent 9%), radial-gradient(circle at 76% 16%, rgba(255,255,255,.85) 0 7%, transparent 8%); }
.pf .art.bg-Fire, .pf .full.bg-Fire, .pf .half.bg-Fire { background: radial-gradient(ellipse 46% 11% at 50% 90%, rgba(0,0,0,.3), transparent), radial-gradient(ellipse 60% 50% at 50% 108%, #ffd76a, transparent 70%), linear-gradient(180deg, #7a2416, #d9512a 45%, #ff9a4d 78%, #7b3b22 79%); }
.pf .art.bg-Fire::before, .pf .full.bg-Fire::before, .pf .half.bg-Fire::before { background: radial-gradient(circle at 14% 30%, #ffd76a 0 2.5%, transparent 3%), radial-gradient(circle at 82% 22%, #ffe9a8 0 2%, transparent 2.6%), radial-gradient(circle at 68% 48%, #ffb347 0 2.2%, transparent 2.8%), radial-gradient(circle at 30% 12%, #ffcf7a 0 1.8%, transparent 2.4%); }
.pf .art.bg-Water, .pf .full.bg-Water, .pf .half.bg-Water { background: radial-gradient(ellipse 46% 11% at 50% 90%, rgba(0,0,0,.25), transparent), repeating-radial-gradient(ellipse 120% 26% at 50% 118%, #2f7fd0 0 7%, #4a9ae3 7% 14%), linear-gradient(180deg, #bfe6ff, #7fc4f4); background-size: auto, 100% 46%, auto; background-position: 0 0, 0 100%, 0 0; background-repeat: no-repeat; }
.pf .art.bg-Water::before, .pf .full.bg-Water::before, .pf .half.bg-Water::before { background: radial-gradient(circle at 22% 24%, rgba(255,255,255,.75) 0 4%, transparent 5%), radial-gradient(circle at 80% 34%, rgba(255,255,255,.6) 0 3%, transparent 4%), radial-gradient(circle at 64% 14%, rgba(255,255,255,.7) 0 2.5%, transparent 3.5%); }
.pf .art.bg-Lightning, .pf .full.bg-Lightning, .pf .half.bg-Lightning { background: radial-gradient(ellipse 46% 11% at 50% 90%, rgba(0,0,0,.28), transparent), linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.75) 30% 32%, transparent 32% 58%, rgba(255,255,255,.6) 58% 59.5%, transparent 59.5%), linear-gradient(180deg, #f6c21c, #ffe680 55%, #f9d54a 80%, #a9861a 81%); }
.pf .art.bg-Psychic, .pf .full.bg-Psychic, .pf .half.bg-Psychic { background: radial-gradient(ellipse 46% 11% at 50% 90%, rgba(0,0,0,.3), transparent), repeating-radial-gradient(circle at 50% 42%, rgba(255,255,255,.22) 0 5%, transparent 5% 12%), radial-gradient(circle at 50% 42%, #f3c4f7, #b25fc6 60%, #5b2b78); }
.pf .art.bg-Fighting, .pf .full.bg-Fighting, .pf .half.bg-Fighting { background: radial-gradient(ellipse 46% 11% at 50% 90%, rgba(0,0,0,.3), transparent), linear-gradient(160deg, transparent 0 62%, #8c4a26 62% 100%), linear-gradient(200deg, transparent 0 68%, #a65a2e 68% 100%), linear-gradient(180deg, #f6d7a8, #e8a86a 60%, #b96a37 61%); }
.pf .art.bg-Darkness, .pf .full.bg-Darkness, .pf .half.bg-Darkness { background: radial-gradient(ellipse 46% 11% at 50% 90%, rgba(0,0,0,.45), transparent), radial-gradient(circle at 78% 20%, #f4f1d0 0 7%, rgba(244,241,208,.25) 8% 13%, transparent 14%), linear-gradient(180deg, #131a2c, #2f3d55 70%, #1b2331 71%); }
.pf .art.bg-Darkness::before, .pf .full.bg-Darkness::before, .pf .half.bg-Darkness::before { background: radial-gradient(circle at 16% 18%, #fff 0 1.2%, transparent 1.8%), radial-gradient(circle at 36% 34%, #fff 0 1%, transparent 1.6%), radial-gradient(circle at 54% 12%, #fff 0 1.1%, transparent 1.7%), radial-gradient(circle at 90% 44%, #fff 0 1%, transparent 1.6%); }
.pf .art.bg-Metal, .pf .full.bg-Metal, .pf .half.bg-Metal { background: radial-gradient(ellipse 46% 11% at 50% 90%, rgba(0,0,0,.3), transparent), repeating-linear-gradient(100deg, rgba(255,255,255,.28) 0 3%, transparent 3% 9%), linear-gradient(180deg, #dfe6ea, #9fb0ba 60%, #6d7f8a 61%, #8c9da7); }
.pf .art.bg-Dragon, .pf .full.bg-Dragon, .pf .half.bg-Dragon { background: radial-gradient(ellipse 46% 11% at 50% 90%, rgba(0,0,0,.3), transparent), linear-gradient(135deg, transparent 0 40%, rgba(255,214,102,.5) 40% 44%, transparent 44% 70%, rgba(255,214,102,.35) 70% 73%, transparent 73%), linear-gradient(180deg, #3b2f7a, #7a66d6 55%, #c9a84a 100%); }
.pf .art.bg-Colorless, .pf .full.bg-Colorless, .pf .half.bg-Colorless { background: radial-gradient(ellipse 46% 11% at 50% 90%, rgba(0,0,0,.22), transparent), radial-gradient(ellipse 30% 14% at 24% 26%, rgba(255,255,255,.95), transparent 100%), radial-gradient(ellipse 36% 16% at 74% 18%, rgba(255,255,255,.9), transparent 100%), linear-gradient(180deg, #cfe3f1, #f3f1e6 66%, #c9c4ae 67%); }
/* ex cards and rare printings shimmer (a moving sheen; still in a long list of cards, and for anyone who asks for less motion) */
/* (not on a card whose ::after is already its queued-attack banner or its not-owned cover) */
.pf.ex:not(.queued):not(.lack)::after, .pf.holo:not(.queued):not(.lack)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; mix-blend-mode: screen; opacity: .55;
	background: linear-gradient(115deg, transparent 20%, rgba(255,120,200,.55) 32%, rgba(120,220,255,.6) 42%, rgba(255,245,160,.6) 52%, transparent 64%); background-size: 260% 100%; animation: pe-holo 4.5s linear infinite; }
@keyframes pe-holo { from { background-position: 120% 0; } to { background-position: -60% 0; } }
.pe .pe-db .pf:not(.lack)::after, .pe .pe-grid .pf:not(.lack)::after, .pe .pe-poke.tiny:not(.queued)::after { animation: none; background-position: 30% 0; }
.pe .pe-pull.down::after { display: none; }
@media (prefers-reduced-motion: reduce) { .pe .pf.ex:not(.queued):not(.lack)::after, .pe .pf.holo:not(.queued):not(.lack)::after { animation: none; background-position: 30% 0; } }

/* ---------------------------------------------------------------- setup: Pokémon placed on the mat; the drag */
.pe-fx { position: absolute; inset: 0; z-index: 50; pointer-events: none; }
.pe-poke.staged { animation: pe-place .22s ease-out; box-shadow: 0 0 0 .2em var(--green), 0 0 .8em var(--green); cursor: grab; }
@keyframes pe-place { from { transform: translateY(2.2em) scale(.86); opacity: .3; } to { transform: none; opacity: 1; } }
.pe-ghost { position: absolute; pointer-events: none; opacity: .92; filter: drop-shadow(0 12px 14px rgba(0,0,0,.5)); transform: rotate(-3deg) scale(1.04); z-index: 2; }
.pe-ghost > * { margin: 0 !important; animation: none !important; }
.pe.dragging .pe-me .pe-poke.empty { background: rgba(120,220,150,.32); box-shadow: inset 0 0 0 .2em var(--green), 0 0 .9em var(--green); }
.pe.dragging { cursor: grabbing; user-select: none; }
/* dragging a card from the hand, or one of my Pokémon, in my turn: where it may go is outlined, where it is lights up */
.pe.dragging-card { cursor: grabbing; user-select: none; }
.pe.dragging-card .pe-poke.can-drop { box-shadow: 0 0 0 .14em rgba(120,220,150,.8), 0 0 .7em rgba(120,220,150,.7); }
.pe.dragging-card .pe-opps .pe-poke.can-drop { box-shadow: 0 0 0 .14em rgba(255,120,110,.85), 0 0 .7em rgba(255,120,110,.7); }
.pe.dragging-card .pe-poke.can-drop.drop { box-shadow: 0 0 0 .26em var(--green), 0 0 1.4em var(--green); transform: scale(1.04); z-index: 6; }
.pe.dragging-card .pe-opps .pe-poke.can-drop.drop { box-shadow: 0 0 0 .26em var(--red), 0 0 1.4em var(--red); }
.pe.dragging-card.drop-mat .pe-mat { box-shadow: inset 0 0 0 6px rgba(120,220,150,.7), inset 0 0 40px rgba(120,220,150,.35); }
.pe-ghost { z-index: 60; }
/* dragging this turn's Energy from the Energy Zone onto a Pokémon */
.pe-zone .slot.grab { cursor: grab; }
.pe-ghost.energy { width: 68px; height: 68px; transform: none; opacity: 1; z-index: 60; filter: drop-shadow(0 10px 12px rgba(0,0,0,.45)); } .pe-ghost.energy .en { width: 68px; height: 68px; }
.pe.dragging-energy { cursor: grabbing; user-select: none; } .pe.dragging-energy .pe-zone .slot .en { opacity: .3; }
.pe.dragging-energy .pe-me .pe-poke.pf:not(.fossil) { box-shadow: 0 0 0 .14em rgba(120,220,150,.75), 0 0 .7em rgba(120,220,150,.7); }
.pe.dragging-energy .pe-me .pe-poke.pf.drop { box-shadow: 0 0 0 .26em var(--green), 0 0 1.4em var(--green); transform: scale(1.04); z-index: 6; }
/* ---------------------------------------------------------------- the coin */
.pe-fx.coin { pointer-events: auto; background: radial-gradient(ellipse at 50% 45%, rgba(10,16,18,.72), rgba(10,16,18,.38) 60%, rgba(10,16,18,.12)); }
.pe-coinwrap { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 16px; perspective: 900px; }
.pe-coinwrap .cap { font-size: 26px; color: #fff; text-shadow: 0 2px 6px #000; text-align: center; max-width: 760px; background: rgba(20,28,30,.8); border-radius: 12px; padding: 4px 16px; }
.pe-coin { width: 190px; height: 190px; position: relative; transform-style: preserve-3d; animation: pe-toss-h .85s cubic-bezier(.3,.1,.3,1) forwards; }
.pe-coin.tails { animation-name: pe-toss-t; }
.pe-coin i { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 96px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset 0 0 0 10px rgba(255,255,255,.35), inset 0 -14px 24px rgba(0,0,0,.28), 0 10px 22px rgba(0,0,0,.5); }
.pe-coin .h { background: radial-gradient(circle at 35% 30%, #fff3b0, #f2c230 55%, #b98510); color: #7a5200; }
.pe-coin .t { background: radial-gradient(circle at 35% 30%, #f4f7f8, #aab6ba 55%, #66757a); color: #3d4a4e; transform: rotateX(180deg); }
@keyframes pe-toss-h { 0% { transform: translateY(120px) rotateX(0) scale(.7); } 50% { transform: translateY(-150px) rotateX(900deg) scale(1.15); } 100% { transform: translateY(0) rotateX(1800deg) scale(1); } }
@keyframes pe-toss-t { 0% { transform: translateY(120px) rotateX(0) scale(.7); } 50% { transform: translateY(-150px) rotateX(990deg) scale(1.15); } 100% { transform: translateY(0) rotateX(1980deg) scale(1); } }
.pe-coinwrap .res { font-size: 46px; font-weight: 800; letter-spacing: .08em; opacity: 0; animation: pe-res .25s .85s forwards; text-shadow: 0 3px 8px #000; }
.pe-coinwrap .res.heads { color: #ffd54a; } .pe-coinwrap .res.tails { color: #cfd8dc; }
@keyframes pe-res { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.pe-coinwrap.quick .pe-coin { animation-duration: .4s; } .pe-coinwrap.quick .res { animation-delay: .4s; animation-duration: .12s; }
.pe.portrait .pe-coinwrap { top: 36%; } .pe.portrait .pe-coinwrap .cap { max-width: 700px; }

/* ---------------------------------------------------------------- the Stadium in play (one for the whole table) */
.pe-stadium { position: absolute; left: 40px; top: 420px; z-index: 6; display: flex; flex-direction: row; align-items: center; gap: 8px; padding: 1px 14px; white-space: nowrap; border: 0; border-radius: 12px; background: linear-gradient(180deg, #e2f5e4, #9fd3a6); color: #153a20; box-shadow: 0 0 0 3px #2f7d44, 0 6px 12px rgba(0,0,0,.4); cursor: pointer; font-family: inherit; max-width: 420px; }
.pe-stadium .tag { font-size: 12px; background: #2f7d44; color: #fff; border-radius: 8px; padding: 0 8px; letter-spacing: .05em; }
.pe-stadium b { font-size: 19px; line-height: 1.1; } .pe-stadium .by { font-size: 12px; opacity: .75; }
.pe.portrait .pe-stadium { left: 24px; top: 893px; padding: 0 12px; max-width: 250px; } .pe.portrait .pe-stadium b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; } .pe.portrait .pe-stadium .by { display: none; }   /* (beside the Energy Zone bar: the one clear strip on a phone) */
.pe-stadium.ready { animation: pe-pulse 1.4s infinite; box-shadow: 0 0 0 3px var(--green), 0 0 14px var(--green); }
/* a spot Meowscarada marked: damage lands there at the end of its owner's next turn, whoever stands in it */
.pe-poke.spot { outline: .22em dashed #e0559a; outline-offset: .12em; }
/* an Energy that can be picked up (Energy Blender) */
.pe-chip { background: none; border: 1px solid var(--line, #4a5560); border-radius: 999px; padding: 4px 8px; margin: 2px; min-width: 40px; min-height: 40px; cursor: pointer; }
.pe-chip:hover, .pe-chip:focus-visible { border-color: #bfe9ff; outline: none; }
/* solo battles and deck missions */
.pe .pe-tasks { display: flex; flex-direction: column; gap: 6px; max-width: 860px; margin: 10px auto; text-align: left; }
.pe .pe-task { font-size: 19px; padding: 7px 12px; border-radius: 10px; background: #2a3739; color: #dfe7e8; }
.pe .pe-task.done { background: #24402f; color: #fff; }
.pe .pe-mission { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; text-align: left; font-size: 19px; padding: 8px 14px; border-radius: 12px; background: #2a3739; color: #fff; }
.pe .pe-mission.done { background: #24402f; }
.pe .pe-mission .why { margin-left: auto; font-size: 16px; color: #cfd8d9; text-align: right; }
.pe .pe-search { font: inherit; font-size: 20px; padding: 8px 12px; border-radius: 12px; border: 0; background: #f4f7f7; color: #1f2a2c; min-width: 0; width: 260px; max-width: 100%; }

/* ================================================================ the mat, in Pocket's manner: a pale mat with a ring and a
   band across the middle, each slot an outline, the hand held as a fan, the Energy Zone an orb. (This game's own drawing:
   no artwork of Pocket's is used.) */
.pe-mat { background: linear-gradient(180deg, #d9def7 0%, #e7eafb 30%, #eef0fd 46%, #f7f8ff 48.4%, #f7f8ff 50.4%, #e9edfc 53%, #dfe6fb 78%, #cfdcf9 100%);
	box-shadow: 0 6px 0 rgba(40,60,120,.35), inset 0 0 0 5px rgba(255,255,255,.9), inset 0 14px 0 -4px #f08a6a, inset 0 -14px 0 -4px #4f9bea; }
.pe-mat::before { width: 360px; height: 360px; top: 49.4%; background: radial-gradient(circle, rgba(226,232,252,.9) 0 44%, rgba(255,255,255,.98) 45% 66%, transparent 67%); }
.pe-mat::after { background: radial-gradient(ellipse 60% 22% at 50% 0%, rgba(240,138,106,.22), transparent 70%), radial-gradient(ellipse 60% 22% at 50% 100%, rgba(79,155,234,.26), transparent 70%); }
.pe.portrait .pe-mat::before { width: 430px; height: 430px; }
/* an empty slot: an outline, as on the mat */
.pe-poke.empty { background: rgba(255,255,255,.34); box-shadow: inset 0 0 0 .14em rgba(255,255,255,.98), 0 0 0 1px rgba(120,135,200,.22); border-radius: .7em; }
.pe-poke.empty .slot { color: rgba(140,152,205,.75); }
.pe-poke.empty.can { background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 .16em #6cc0ff, 0 0 .9em rgba(108,192,255,.8); }
/* the name lines: pale pills */
.pe-head { background: rgba(255,255,255,.88); color: #36406a; box-shadow: 0 3px 0 rgba(90,105,170,.28); }
.pe-head .cnt { color: #5a658f; } .pe-head .who, .pe-head .muted { color: #8791b6; }
.pe-head .pt { background: #e2e6f6; box-shadow: inset 0 0 0 2px #aab4da; }
.pe-head .pt.on { background: var(--money); box-shadow: 0 0 8px var(--money), inset 0 0 0 2px #fff; }
.turn > .pe-head { box-shadow: 0 0 0 3px #4fa8ff, 0 0 14px rgba(79,168,255,.9); }
.pe-head .pe-disc { background: #e6eaf8; color: #36406a; } .pe-head .pe-disc:disabled { opacity: .55; }
.pe .cb { background: radial-gradient(circle, #fff 0 20%, #ffd75a 22% 34%, transparent 36%), linear-gradient(160deg, #6aa5f5, #2a4fa8); }
/* the hand: no tray, a blue rim under a fan of cards */
.pe-hand { background: linear-gradient(180deg, transparent 0 58%, rgba(79,155,234,.55) 100%); border-radius: 18px 18px 60px 60px; align-items: flex-start; padding-top: 10px; }
.pe-hand .pe-card { transform-origin: 50% 120%; transition: translate .12s, rotate .12s; box-shadow: 0 6px 14px rgba(30,50,110,.35); }
.pe-hand .pe-card:hover, .pe-hand .pe-card:focus-visible { rotate: 0deg !important; translate: 0 -8px !important; }
.pe-hand .pe-card.playable { box-shadow: 0 0 0 .2em #5fd0ff, 0 0 1em #5fd0ff, 0 6px 14px rgba(30,50,110,.35); }
/* the Energy Zone: an orb (a wide screen always; a phone in singles, where the Bench leaves the corner free) */
.pe.landscape .pe-zone, .pe.portrait .pe-me.singles .pe-zone { position: absolute; display: block; width: 104px; height: auto; right: 10px; top: auto; bottom: 50px; padding: 0; background: none; box-shadow: none; font-size: 0; color: #5a658f; text-align: center; }
.pe.landscape .pe-zone { top: 30px; bottom: auto; right: 8px; }
.pe.landscape .pe-zone .slot, .pe.portrait .pe-me.singles .pe-zone .slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 92px; height: 92px; margin: 0 auto 4px; padding: 0; border-radius: 50%; font-size: 14px; color: #36406a;
	background: radial-gradient(circle at 34% 28%, #fff 0 18%, #eef1ff 46%, #c9d3f6 100%); box-shadow: 0 5px 12px rgba(60,80,150,.4), inset 0 0 0 3px #fff, inset 0 -6px 10px rgba(120,140,210,.35); }
.pe.landscape .pe-zone .slot.ready, .pe.portrait .pe-me.singles .pe-zone .slot.ready { box-shadow: 0 0 0 4px #5fd0ff, 0 0 18px #5fd0ff, inset 0 0 0 3px #fff; animation: pe-pulse 1s infinite; }
.pe.landscape .pe-zone .slot .en.big, .pe.portrait .pe-me.singles .pe-zone .slot .en.big { width: 40px; height: 40px; }
.pe.landscape .pe-zone .slot .muted, .pe.portrait .pe-me.singles .pe-zone .slot .muted { color: #8791b6; }
.pe.landscape .pe-zone > .muted, .pe.portrait .pe-me.singles .pe-zone > .muted { font-size: 15px; display: inline-block; background: rgba(255,255,255,.85); border-radius: 10px; padding: 0 8px; min-height: 0; color: #5a658f; }
.pe.landscape .pe-zone > .muted:empty, .pe.portrait .pe-me.singles .pe-zone > .muted:empty { display: none; }
.pe.portrait .pe-me.singles .pe-zone { display: flex; flex-direction: column-reverse; align-items: center; gap: 4px; } .pe.portrait .pe-me.singles .pe-zone .slot { margin: 0; }
.pe.portrait .pe-zone { background: rgba(255,255,255,.88); color: #36406a; box-shadow: 0 3px 0 rgba(90,105,170,.28); }
.pe.portrait .pe-zone .slot { background: #e6eaf8; color: #36406a; }
.pe.portrait .pe-zone .muted { color: #8791b6; }
/* singles: a deck stands beside each Active Pokémon */
.pe-pile { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #5a658f; font-size: 17px; pointer-events: none; }
.pe-pile .cb { width: 62px; height: 86px; border-radius: 8px; box-shadow: inset 0 0 0 3px #fff, 3px 3px 0 #b9c3ea, 6px 6px 0 #a3afdd, 0 0 0 1px rgba(60,80,150,.35); }
.pe-pile b { background: rgba(255,255,255,.88); border-radius: 9px; padding: 0 8px; font-weight: normal; }
.pe.portrait .pe-opps .pe-pile { left: 40px; bottom: 60px; } .pe.portrait .pe-me .pe-pile { right: 40px; top: 70px; }
.pe.landscape .pe-pile { display: none; }
/* what the table is waiting for: a pale speech bubble at the top of the mat, and who goes first across its middle */
.pe-bubble { position: absolute; left: 535px; top: 44px; transform: translateX(-50%); z-index: 20; max-width: 900px; padding: 12px 34px; border-radius: 40px; background: rgba(255,255,255,.96); color: #36406a; font-size: 26px; white-space: nowrap; box-shadow: 0 6px 18px rgba(50,70,140,.3); font-family: 'Segoe UI', system-ui, sans-serif; pointer-events: none; }
.pe-first { position: absolute; left: 205px; top: 350px; transform: translate(-50%, -50%); z-index: 20; padding: 4px 28px 6px; border-radius: 30px; background: linear-gradient(180deg, #57c3ff, #2e8cf0); color: #fff; font-size: 24px; white-space: nowrap; box-shadow: 0 4px 10px rgba(40,90,180,.4), inset 0 0 0 2px rgba(255,255,255,.7); pointer-events: none; }
/* on a wide screen the bubble sits on the player's own name bar (its middle is empty), so it covers no card of either player */
.pe:not(.portrait) .pe-bubble { top: 553px; left: 515px; padding: 3px 26px 5px; font-size: 21px; box-shadow: 0 3px 10px rgba(50,70,140,.3), inset 0 0 0 2px rgba(120,150,230,.35); }
.pe:not(.portrait) .pe-mat.singles ~ .pe-bubble { top: 558px; }
/* on a phone it sits over the player's own empty Active slot (it goes when a Pokémon is put there) */
.pe.portrait .pe-bubble { left: 262px; top: 548px; font-size: 25px; max-width: 420px; white-space: normal; text-align: center; padding: 10px 26px; }
.pe.portrait .pe-mat.singles ~ .pe-bubble { left: 410px; top: 522px; padding: 6px 26px; }
/* (singles on a wide screen: in the band between the two Benches, clear of both rows) */
.pe:not(.portrait) .pe-mat.singles ~ .pe-first { left: 205px; top: 350px; font-size: 21px; padding: 2px 24px 4px; }
.pe.portrait .pe-first { left: 410px; top: 478px; }
/* (singles on a phone: the two Active cards meet in the middle, so it sits beside the opponent's, above the player's own deck) */
.pe.portrait .pe-mat.singles ~ .pe-first { left: 652px; top: 400px; font-size: 21px; padding: 4px 18px 6px; }
.pe-prompt { background: rgba(255,255,255,.97); color: #36406a; border-radius: 30px; padding: 8px 24px; box-shadow: 0 0 0 3px #5fd0ff, 0 6px 16px rgba(50,70,140,.35); }
/* the commands and the log: the mat's blues */
.pe-cmd { background: linear-gradient(180deg, rgba(47,86,160,.94), rgba(31,58,120,.96)); box-shadow: 0 6px 0 rgba(20,40,90,.4), inset 0 0 0 2px rgba(255,255,255,.22); }
.pe-cmd h3 { color: #ffe27a; } .pe-cmd .q { background: rgba(14,30,72,.6); } .pe-cmd .hint { color: #cfdcff; }
.pe-log { background: rgba(24,44,96,.9); box-shadow: inset 0 0 0 2px rgba(255,255,255,.16); }

/* ---- the end of a match: the card that did the most, the numbers, today's missions ---- */
.pe .pe-endrow { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; margin: 4px 0 12px; }
.pe .pe-mvp { display: flex; gap: 12px; align-items: center; }
.pe .pe-mvp .pe-card { flex: none; }
.pe .pe-mvptext { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.pe .pe-mvptext b { font-size: 26px; color: #ffd25f; line-height: 1.1; }
.pe .pe-mvptext span { font-size: 17px; }
.pe .pe-stats { display: grid; grid-template-columns: repeat(5, minmax(74px, 1fr)); gap: 8px; }
.pe .pe-stat { background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px 6px; text-align: center; display: flex; flex-direction: column; }
.pe .pe-stat b { font-size: 26px; line-height: 1.1; }
.pe .pe-stat span { font-size: 14px; opacity: .8; }
.pe .pe-endmis { max-width: 760px; margin: 0 auto 12px; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.pe .pe-mis { display: grid; grid-template-columns: 1fr 150px 96px; gap: 10px; align-items: center; font-size: 17px; }
.pe .pe-mis i { height: 9px; border-radius: 5px; background: rgba(255,255,255,.15); overflow: hidden; display: block; }
.pe .pe-mis u { display: block; height: 100%; background: #5fd0ff; border-radius: 5px; }
.pe .pe-mis.done u { background: #7CFC7C; } .pe .pe-mis.done span { color: #9be89b; }
.pe .pe-mis b { text-align: right; font-weight: normal; } .pe .pe-mis em { color: #ffd25f; font-style: normal; }
.pe .pe-mis.up span { font-weight: bold; }
.pe.portrait .pe-stats { grid-template-columns: repeat(3, 1fr); } .pe.portrait .pe-mis { grid-template-columns: 1fr 90px 84px; }

/* ---- the ranked ladder on Play online ---- */
.pe .pe-rank { max-width: 900px; margin: 6px auto; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; }
.pe .pe-board { margin: 0 auto; border-collapse: collapse; font-size: 19px; min-width: min(560px, 80vw); }
.pe .pe-board th, .pe .pe-board td { padding: 4px 12px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.12); }
.pe .pe-board tr.me td { color: #ffd25f; font-weight: bold; }
/* ---- an attack's type where it lands (main.js HIT_FX): seven shapes, each in its type's colour (--hc) ---- */
.pe-hitfx { position: absolute; inset: -6%; z-index: 7; pointer-events: none; overflow: visible; animation: pe-hitfade .9s ease-out forwards; }
.pe-hitfx i { position: absolute; left: 50%; top: 45%; display: block; }
@keyframes pe-hitfade { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
/* burst: a ball of fire that blooms (Fire, Dragon) */
.pe-hitfx.burst i { width: 70%; aspect-ratio: 1; margin: -35% 0 0 -35%; border-radius: 50%; background: radial-gradient(circle, #fff 0 15%, var(--hc) 35%, transparent 68%); animation: pe-bloom .7s ease-out both; }
.pe-hitfx.burst i:nth-child(2) { animation-delay: .08s; transform: translate(-25%, 15%); } .pe-hitfx.burst i:nth-child(3) { animation-delay: .16s; transform: translate(25%, -10%); }
@keyframes pe-bloom { from { scale: .1; opacity: 1; } to { scale: 1.5; opacity: 0; } }
/* splash: rings spreading out (Water, Ice) */
.pe-hitfx.splash i { width: 60%; aspect-ratio: 1; margin: -30% 0 0 -30%; border-radius: 50%; border: .3em solid var(--hc); animation: pe-ring .8s ease-out both; }
.pe-hitfx.splash i:nth-child(2) { animation-delay: .12s; } .pe-hitfx.splash i:nth-child(3) { animation-delay: .24s; }
@keyframes pe-ring { from { scale: .2; opacity: 1; } to { scale: 1.6; opacity: 0; } }
/* bolt: a jagged flash (Electric) */
.pe-hitfx.bolt i { width: 22%; height: 90%; margin: -45% 0 0 -11%; background: var(--hc); clip-path: polygon(55% 0, 15% 52%, 45% 52%, 25% 100%, 85% 40%, 55% 40%, 80% 0); filter: drop-shadow(0 0 .4em var(--hc)); animation: pe-flash .5s steps(2) 2 both; }
.pe-hitfx.bolt i:nth-child(2) { transform: translateX(-90%) scale(.7); animation-delay: .1s; } .pe-hitfx.bolt i:nth-child(3) { transform: translateX(90%) scale(.7); animation-delay: .2s; }
@keyframes pe-flash { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: .2; } }
/* leaves: shapes that whirl past (Grass, Bug, Poison) */
.pe-hitfx.leaves i { width: 18%; aspect-ratio: 1; margin: -9% 0 0 -9%; background: var(--hc); border-radius: 0 70% 0 70%; animation: pe-whirl .8s ease-out both; }
.pe-hitfx.leaves i:nth-child(2) { --dx: -1.6em; --dy: 1em; animation-delay: .06s; } .pe-hitfx.leaves i:nth-child(3) { --dx: 1.4em; --dy: 1.4em; animation-delay: .12s; }
@keyframes pe-whirl { from { transform: translate(calc(var(--dx, 1.6em) * -2), calc(var(--dy, -1.2em) * -2)) rotate(0); opacity: 0; } 40% { opacity: 1; } to { transform: translate(var(--dx, 1.6em), var(--dy, -1.2em)) rotate(540deg); opacity: 0; } }
/* rings: waves that pulse inward (Psychic, Ghost, Fairy) */
.pe-hitfx.rings i { width: 90%; aspect-ratio: 1; margin: -45% 0 0 -45%; border-radius: 50%; border: .25em dashed var(--hc); animation: pe-pulsein .8s ease-in both; }
.pe-hitfx.rings i:nth-child(2) { animation-delay: .12s; } .pe-hitfx.rings i:nth-child(3) { animation-delay: .24s; }
@keyframes pe-pulsein { from { scale: 1.4; opacity: 0; rotate: 0deg; } 40% { opacity: 1; } to { scale: .1; opacity: 0; rotate: 90deg; } }
/* impact: a star that lands (Fighting, Rock, Ground, Normal, Steel) */
.pe-hitfx.impact i { width: 62%; aspect-ratio: 1; margin: -31% 0 0 -31%; background: var(--hc); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); animation: pe-stamp .55s cubic-bezier(.2, 1.6, .4, 1) both; }
.pe-hitfx.impact i:nth-child(2), .pe-hitfx.impact i:nth-child(3) { display: none; }
@keyframes pe-stamp { from { scale: 2; opacity: 0; } 60% { opacity: 1; } to { scale: 1; opacity: 0; } }
/* slash: strokes across (Dark, Flying) */
.pe-hitfx.slash i { width: 110%; height: .35em; margin: 0 0 0 -55%; background: linear-gradient(90deg, transparent, var(--hc) 30%, #fff 50%, var(--hc) 70%, transparent); border-radius: .2em; rotate: -35deg; animation: pe-cut .45s ease-out both; }
.pe-hitfx.slash i:nth-child(2) { rotate: 35deg; animation-delay: .1s; } .pe-hitfx.slash i:nth-child(3) { rotate: -10deg; top: 60%; animation-delay: .2s; }
@keyframes pe-cut { from { clip-path: inset(0 100% 0 0); opacity: 1; } 70% { clip-path: inset(0 0 0 0); opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pe-hitfx { display: none; } }
/* ---- the trade window, as the site's others: a line between the offers, LOCKED IN, the countdown, the cable scene ---- */
.pe-trade .pe-tcols { position: relative; column-gap: 34px; }
.pe-trade .pe-tcols::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 2px; background: linear-gradient(180deg, transparent, #ffd25f 15%, #ffd25f 85%, transparent); }
.pe-trade .pe-tcol.ok { box-shadow: 0 0 0 3px #7CFC7C inset; background: rgba(124,252,124,.08); }
.pe-trade .pe-lk { font-size: 13px; color: #7CFC7C; letter-spacing: .06em; margin-left: 8px; vertical-align: middle; }
/* what each offered thing and each side is worth in stars (site/values.js, via the server) */
.pe-trade .pe-tval { color: #ffd75a; font-size: 15px; margin-left: 6px; white-space: nowrap; } .pe-trade .pe-ttot { float: right; color: #ffd75a; font-size: 17px; white-space: nowrap; }
.pe-trade .pe-tcount { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(10,8,18,.9); box-shadow: 0 0 0 4px #ffd25f; z-index: 2; }
.pe-trade .pe-tcount b { font-size: 44px; color: #ffd25f; animation: pe-tick 1s ease-out infinite; } @keyframes pe-tick { from { transform: scale(1.4); } to { transform: none; } }
.pe-trade .pe-tscene { text-align: center; } .pe-trade .pe-tscene h4, .pe-trade .pe-tdone > h4 { font-size: 30px; margin: 6px 0 4px; } .pe-trade .pe-tdone > h4 { color: #7CFC7C; }
.pe-cable { display: flex; align-items: center; justify-content: center; padding: 22px 0 14px; }
.pe-cable .u { flex: none; width: 112px; height: 144px; border-radius: 12px 12px 26px 12px; background: linear-gradient(160deg, #cfd3da, #8f96a3); padding: 12px; position: relative; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5), 0 6px 14px rgba(0,0,0,.5); }
.pe-cable .u .s { height: 58px; border-radius: 6px; background: #9bbc0f; color: #0f380f; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 4px #5b6470; }
.pe-cable .u i { position: absolute; left: 16px; bottom: 22px; width: 26px; height: 26px; background: linear-gradient(#3a3f48, #3a3f48) center/26px 8px no-repeat, linear-gradient(#3a3f48, #3a3f48) center/8px 26px no-repeat; }
.pe-cable .w { position: relative; flex: 1 1 0; max-width: 380px; height: 10px; background: linear-gradient(180deg, #5b6470, #262b33); border-radius: 5px; }
.pe-cable .w span { position: absolute; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #1b2038; }
.pe-cable .w .o { background: radial-gradient(circle at 35% 30%, #fff, #ffd25f 55%, #e09a2f); animation: pe-out 2.1s ease-in-out infinite; } .pe-cable .w .n { background: radial-gradient(circle at 35% 30%, #fff, #8fd0ff 55%, #2f8be0); animation: pe-in 2.1s ease-in-out infinite; }
@keyframes pe-out { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 50% { transform: translateY(-16px) scale(1.2); } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes pe-in { 0% { left: 100%; opacity: 0; } 12% { opacity: 1; } 50% { transform: translateY(16px) scale(1.2); } 88% { opacity: 1; } 100% { left: 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pe-cable .w span, .pe-trade .pe-tcount b { animation: none; } }
.pe.portrait .pe-trade .pe-tcols::before { display: none; }
/* ---- Set rewards (main.js setRewardsMenu) ---- */
.pe .pe-due { color: #ffd25f; font-size: .8em; margin-left: 6px; }
.pe .pe-setrow { position: relative; padding-bottom: 12px; }
.pe .pe-setrow .pe-bar { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.pe .pe-setrow .pe-bar i { display: block; height: 100%; background: #7CFC7C; }
.pe .pe-ms { white-space: nowrap; margin-left: 4px; color: rgba(255,255,255,.55); } .pe .pe-ms.paid { color: #7CFC7C; } .pe .pe-ms.due { color: #ffd25f; font-weight: bold; }
.pe .pe-advice { color: #ffd25f; text-align: left; font-size: 16px; line-height: 1.35; }
/* ---- Options (main.js settingsMenu): larger text, and motion reduced by choice as well as by the device's setting ---- */
.pe.text-l .modal-box, .pe.text-l .pe-banner, .pe.text-l .pe-say, .pe.text-l .pe-tip, .pe.text-l .pe-conn { zoom: 1.18; }
.pe.text-xl .modal-box, .pe.text-xl .pe-banner, .pe.text-xl .pe-say, .pe.text-xl .pe-tip, .pe.text-xl .pe-conn { zoom: 1.36; }
.pe.text-l .modal-box, .pe.text-xl .modal-box { max-height: 92%; overflow-y: auto; }
.pe.calm *, .pe.calm *::before, .pe.calm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
.pe.calm .pe-hitfx { display: none; }
/* ---- online: the connection is lost (main.js connState) ---- */
.pe-conn { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 60; padding: 8px 18px; border-radius: 10px; background: #8a2b24; color: #fff; font-size: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.5); pointer-events: none; }
.pe-conn[hidden] { display: none; }
/* ---- emblems (main.js emblemsMenu) ---- */
.pe .pe-emb { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c8, #ffd25f 55%, #b9821c); color: #3a2400; font-size: .9em; vertical-align: middle; box-shadow: 0 0 0 2px rgba(0,0,0,.35); }
.pe .pe-embrow:not(.got) .pe-emb { background: #555b66; color: #aab; filter: grayscale(1); }
.pe .pe-embrow:not(.got) { opacity: .7; }
.pe .pe-embrow.on { box-shadow: 0 0 0 3px #ffd25f inset; }
.pe .pe-emblem-new { color: #ffd25f; }
/* ---- tournaments (main.js tourScreen) ---- */
.pe .pe-bracket { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.pe .pe-round { display: flex; flex-direction: column; gap: 10px; min-width: 190px; }
.pe .pe-pair { background: rgba(255,255,255,.07); border-radius: 10px; padding: 6px 10px; font-size: 18px; }
.pe .pe-pair.me { box-shadow: 0 0 0 2px #ffd25f inset; }
.pe .pe-pair .won { color: #7CFC7C; font-weight: bold; } .pe .pe-pair .lost { opacity: .5; text-decoration: line-through; }
.pe .pe-tourend { font-size: 22px; }
/* ---- the wishlist (main.js wished/toggleWish) ---- */
.pe .pe-wish { color: #ff6f91; text-shadow: 0 0 4px rgba(0,0,0,.6); }
.pe .pf.wish > .pe-wish { position: absolute; right: 6%; top: 4%; font-size: 1.4em; z-index: 3; }
.pe .pf.wish { box-shadow: 0 0 0 3px #ff6f91, 0 0 16px rgba(255,111,145,.6); }
.pe .pe-wishfit { color: #ffb3c6; text-align: left; font-size: 16px; }
/* ---- the binder (main.js binderMenu): a set's printings in their places, the missing ones as numbered silhouettes ---- */
.pe .pe-binder { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; max-height: 66vh; overflow-y: auto; padding: 6px; }
.pe .pe-slot { aspect-ratio: 5 / 7; border-radius: 10px; border: 2px dashed rgba(255,255,255,.22); background: rgba(255,255,255,.04); color: rgba(255,255,255,.45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; font-size: 13px; cursor: pointer; padding: 4px; }
.pe .pe-slot .num { font-size: 24px; font-weight: bold; } .pe .pe-slot .nm { text-align: center; line-height: 1.1; } .pe .pe-slot .rar { color: rgba(255,210,95,.6); }
.pe .pe-slot:hover, .pe .pe-slot:focus-visible { border-color: #ffd25f; color: #fff; }
/* ---- a challenge received (main.js challengeWatch) ---- */
.pe .pe-challenge { border-radius: 12px; padding: 6px 10px 10px; margin-bottom: 8px; background: rgba(124,252,124,.1); box-shadow: 0 0 0 2px rgba(124,252,124,.55) inset; animation: pe-chpulse 1.6s ease-in-out infinite alternate; }
@keyframes pe-chpulse { from { box-shadow: 0 0 0 2px rgba(124,252,124,.35) inset; } to { box-shadow: 0 0 0 3px rgba(124,252,124,.9) inset; } }
.pe.calm .pe-challenge { animation: none; }
/* ---- the guide (main.js withGuide / markNew) ---- */
.pe .pe-guide { max-width: 900px; margin: 0 auto 10px; padding: 10px 14px; border-radius: 12px; background: rgba(124,200,255,.12); box-shadow: 0 0 0 2px rgba(124,200,255,.5) inset; text-align: left; font-size: 18px; line-height: 1.4; }
.pe .pe-guide .btn { margin-top: 8px; }
.pe .pe-newtag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px; background: #ff4f6d; color: #fff; font-size: .62em; font-weight: bold; letter-spacing: .05em; vertical-align: middle; }
.pe .pe-slot.wish { border-color: #ff6f91; color: #ffb3c6; position: relative; } .pe .pe-slot.wish > .pe-wish { position: absolute; right: 6px; top: 4px; }
/* ---- profiles (main.js nameTag / profileCard) ---- */
.pe .pe-name { cursor: pointer; text-decoration: underline dotted rgba(255,255,255,.4); text-underline-offset: 3px; }
.pe .pe-name:hover, .pe .pe-name:focus-visible { color: #ffd25f; }
.pe .pe-profhead .pe-emb { font-size: 1.3em; }
.pe .pe-showcase { justify-content: center; }
/* ---- sleeves, mats and coins (cosmetics.js; main.js applyLook / looksMenu) ---- */
.pe .pe-me .cb, .pe .pe-lk-sleeve { background: radial-gradient(circle, #fff 0 20%, var(--sl-dot, #ffd75a) 22% 34%, transparent 36%), linear-gradient(160deg, var(--sl-a, #6aa5f5), var(--sl-b, #2a4fa8)); }
.pe[data-mat]:not([data-mat="mat-pocket"]) .pe-mat { background: var(--mat-bg); }
.pe[data-coin]:not([data-coin="coin-star"]) .pe-coin .h { background: var(--coin-h); color: var(--coin-hc); }
.pe[data-coin]:not([data-coin="coin-star"]) .pe-coin .t { background: var(--coin-t); color: var(--coin-tc); }
.pe.mat-dark .pe-mat::before { opacity: .22; }
.pe .pe-looks { max-width: 1200px; }
.pe .pe-lk-head { margin: 14px 0 6px; }
.pe .pe-lk-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pe .pe-lk { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 132px; padding: 10px 6px; border-radius: 12px; background: rgba(255,255,255,.07); border: 2px solid transparent; color: inherit; }
.pe .pe-lk.on { border-color: #ffd25f; } .pe .pe-lk .pr { font-size: .85em; color: #ffd25f; } .pe .pe-lk.own .pr { color: #cfe; }
.pe .pe-lk-sleeve { display: block; width: 46px; height: 64px; border-radius: 6px; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px rgba(0,0,0,.4); }
.pe .pe-lk-mat { display: block; width: 100px; height: 64px; border-radius: 10px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.6); background: linear-gradient(180deg, #d9def7 0%, #e7eafb 30%, #f7f8ff 49%, #f7f8ff 51%, #dfe6fb 78%, #cfdcf9 100%); }
.pe .pe-lk-coin { display: flex; gap: 4px; height: 64px; align-items: center; }
.pe .pe-lk-coin i { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 16px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.pe .pe-lk-coin .h { background: radial-gradient(circle at 35% 30%, #fff3b0, #f2c230 55%, #b98510); color: #7a5200; } .pe .pe-lk-coin .t { background: radial-gradient(circle at 35% 30%, #f4f7f8, #aab6ba 55%, #66757a); color: #3d4a4e; }
/* ---- pack odds and the pity counter (main.js oddsMenu / pityText) ---- */
.pe .pe-odds { max-width: 1100px; }
.pe .pe-oddsset { margin: 10px 0 16px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.06); }
.pe .pe-oddshead { margin-bottom: 6px; }
.pe .pe-oddst { width: 100%; border-collapse: collapse; font-size: .92em; }
.pe .pe-oddst th { text-align: left; color: #9fb0b3; font-weight: normal; padding: 2px 8px; }
.pe .pe-oddst td { padding: 3px 8px; border-top: 1px solid rgba(255,255,255,.08); vertical-align: top; }
.pe .pe-oddst td:first-child { width: 3em; color: #9fb0b3; }
/* ---- deck stats (main.js deckStatsMenu / deckStatsOne) ---- */
.pe .pe-forms { display: inline-flex; gap: 3px; vertical-align: middle; }
.pe .pe-form { display: inline-block; width: 1.3em; height: 1.3em; line-height: 1.3em; border-radius: 4px; text-align: center; font-style: normal; font-size: .72em; font-weight: bold; color: #10181a; }
.pe .pe-form.W { background: var(--green, #6fd38a); } .pe .pe-form.L { background: #f0b9b4; } .pe .pe-form.D { background: #c7d0d3; }
.pe .pe-dstt { width: 100%; border-collapse: collapse; }
.pe .pe-dstt th { text-align: left; color: #9fb0b3; font-weight: normal; padding: 2px 8px; }
.pe .pe-dstt td { padding: 4px 8px; border-top: 1px solid rgba(255,255,255,.08); }
.pe .pe-bar { display: inline-block; width: 160px; height: 10px; border-radius: 5px; background: rgba(255,255,255,.12); overflow: hidden; vertical-align: middle; }
.pe .pe-bar > i { display: block; height: 100%; background: var(--green, #6fd38a); }
