/* Paper theme: a cut-paper party controller on a cardboard board.
   Stocks: ivory card, ink print, kraft board, antique brass hardware. The player's own colour (--player) is
   only used for that player's things: their name card's band, their big keys, their stick, their picks.
   One paper object per job: flap = instruction, key cap = key, luggage tag = counter / status,
   ribbon = announcement, stamp = result, brass brad = answered. paper.js draws the shapes. */

:root {
	color-scheme: light;
	--ink: #1E1A16;
	--ink-soft: #5A4A36;
	--ivory: #F7EFDC;
	--ivory-shade: #EFE3C8;
	--ivory-deep: #E2D2AE;
	--kraft: #C49A63;
	--kraft-dark: #A9814E;
	--brass: #8F7136;
	--brass-hi: #CFB06B;
	--grape: #B06BDB;
	--shadow: rgba(40, 22, 5, 0.32);
	--gap: 14px;
	--cut: 3px;                 /* paper corner radius: card is cut, not moulded */
	--text-floor: 26px;         /* nothing prints smaller */
	--key-text: 32px;           /* anything that decides an action */
	/* paper grain, generated noise (no image files) */
	--grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.25  0 0 0 0 0.12  0 0 0 .55 0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.35'/></svg>");
}

html, body {
	background-color: var(--kraft);
	/* corrugated board: soft flutes under the grain */
	background-image: repeating-linear-gradient(90deg, rgba(255, 240, 210, 0.10) 0 5px, rgba(80, 50, 20, 0.07) 5px 11px);
	color: var(--ink);
	font-size: var(--text-floor);
	line-height: 1.12;
	-webkit-font-smoothing: antialiased;
}
body { letter-spacing: 0.01em; }

/* ---------------------------------------------------------------- drawn glyphs */

.pp-ico { display: inline-flex; width: 0.9em; height: 0.9em; vertical-align: -0.1em; flex: none; }
.pp-ico svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pp-glyph { margin: 0 0.12em; }

/* ---------------------------------------------------------------- shared paper pieces */

/* ivory card (the TV's cream paper): grain, cut corners, soft cast shadow */
#heading, .brand, #join-form, .choice-option, .el-touchpad, .el-swipe, .el-progress, .el-slider,
.el-textinput, .el-number, .el-drawing, .stick-base, .el-text {
	background-color: var(--ivory);
	background-image: var(--grain);
	background-size: 160px 160px;
}

/* ---------------------------------------------------------------- join page */

.join { gap: 18px; max-width: 480px; padding-top: calc(18px + var(--safe-top)); justify-content: flex-start; }
@media (min-height: 760px) { .join { justify-content: center; } }
.brand {
	position: relative; padding: 16px 18px 16px 34px; border-radius: var(--cut);
	box-shadow: 0 8px 14px -6px var(--shadow), 0 2px 0 rgba(0, 0, 0, 0.08);
	rotate: -1deg; text-align: left;
}
/* ink bookcloth spine with two brass brads, as on the TV's flap */
.brand::before, #heading::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 16px;
	background:
		radial-gradient(circle at 50% 26px, var(--brass-hi) 0 3px, var(--brass) 3.5px 6px, var(--ink) 6.5px 7.5px, transparent 8px),
		radial-gradient(circle at 50% calc(100% - 26px), var(--brass-hi) 0 3px, var(--brass) 3.5px 6px, var(--ink) 6.5px 7.5px, transparent 8px),
		var(--ink);
	border-radius: var(--cut) 0 0 var(--cut);
}
.brand h1 { font-size: clamp(44px, 14vw, 64px); line-height: 0.95; color: var(--ink); letter-spacing: 0.01em; font-weight: 400; }
.brand p, #join-subtitle { color: var(--ink-soft); font-size: var(--text-floor); margin-top: 10px; }
#join-form {
	padding: 16px 16px 18px; border-radius: var(--cut); gap: 14px;
	box-shadow: 0 8px 14px -6px var(--shadow), 0 2px 0 rgba(0, 0, 0, 0.08); rotate: 0.6deg;
}
label { color: var(--ink); font-weight: 400; font-size: var(--text-floor); gap: 8px; }
input, textarea {
	background: #FFFBF0; color: var(--ink); border: 3px solid var(--ink); border-radius: var(--cut);
	font-size: var(--key-text); padding: 12px 14px; min-height: 64px;
	box-shadow: inset 0 3px 0 rgba(30, 26, 22, 0.08);
}
input::placeholder, textarea::placeholder { color: var(--ink-soft); opacity: 0.85; }
input:focus, textarea:focus { border-color: var(--ink); outline: 4px solid var(--player, var(--ink)); outline-offset: 2px; }
#code { letter-spacing: 0.4em; padding-left: calc(14px + 0.4em); font-size: 44px; text-align: center; font-weight: 400; }
#join-button { margin-top: 4px; }
.error {
	color: var(--ink); font-weight: 400; font-size: var(--text-floor);
	background: var(--ivory-shade); border-left: 10px solid var(--ink); padding: 10px 12px; text-align: left; border-radius: var(--cut);
}

/* ---------------------------------------------------------------- key caps */

button {
	font-weight: 400; border-radius: 12px; padding: 0; min-height: 64px; min-width: 64px;
	background: var(--ivory); color: var(--ink); border: 3px solid var(--ink);
	box-shadow: 0 7px 0 var(--ink), 0 12px 14px -4px var(--shadow);
	transition: transform 60ms ease-out, box-shadow 60ms ease-out;
	margin-bottom: 7px; /* room for the cap's skirt */
	position: relative;
}
button:not(.pp-key) { padding: 14px 18px; font-size: var(--key-text); }
button.primary, button.pp-send {
	background: var(--ink); color: var(--ivory);
	box-shadow: 0 7px 0 #000, 0 12px 14px -4px var(--shadow);
}
button.big { font-size: var(--key-text); padding: 14px 18px; }
button:active:not(:disabled), button.pressed {
	transform: translateY(6px); box-shadow: 0 1px 0 var(--ink), 0 2px 4px -1px var(--shadow);
}
button.primary:active:not(:disabled) { box-shadow: 0 1px 0 #000; }
button:disabled { opacity: 1; filter: none; background: var(--ivory-shade); color: rgba(90, 74, 54, 0.7); box-shadow: 0 3px 0 var(--ink-soft); transform: translateY(4px); }
button.ghost { background: var(--ivory-shade); border: 3px solid var(--ink); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }

.pp-face {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	width: 100%; height: 100%; min-height: 58px; padding: 12px 14px; position: relative;
	border-radius: 9px;
	/* the cap's dished top: a lighter face inside the rim */
	box-shadow: inset 0 -5px 0 rgba(30, 26, 22, 0.08), inset 0 3px 0 rgba(255, 255, 255, 0.55);
}
.pp-word { display: inline-flex; align-items: center; justify-content: center; gap: 0.32em; max-width: 100%; }
.pp-label { font-size: var(--key-text); line-height: 1.04; text-align: center; overflow-wrap: anywhere; letter-spacing: 0.02em; }
.pp-action { width: 1.05em; height: 1.05em; font-size: var(--key-text); }
.el-button { min-height: auto; font-size: var(--key-text); letter-spacing: 0; box-shadow: 0 7px 0 var(--ink), 0 12px 14px -4px var(--shadow); max-height: 150px; touch-action: none; }
.el-button.pressed { transform: translateY(6px); box-shadow: 0 1px 0 var(--ink), 0 2px 4px -1px var(--shadow); filter: none; }
.el-button small { font-size: var(--text-floor); opacity: 1; color: var(--ink-soft); }

/* Odd/even caps sit a touch off-square, like cards placed by hand. */
.el-row > .el-button:nth-child(odd) { rotate: -0.5deg; }
.el-row > .el-button:nth-child(even) { rotate: 0.5deg; }

/* The player's own keys (mash, hold, their stick): their colour, the word on a printed ivory label. */
.el-button.pp-player, .el-button.pp-colour { background: var(--cap, var(--player)); }
.pp-player .pp-word, .pp-colour .pp-word {
	background: var(--ivory); color: var(--ink); padding: 8px 14px 6px; border-radius: 4px;
	box-shadow: 0 0 0 2.5px var(--ink), 0 3px 0 2.5px rgba(30, 26, 22, 0.35);
}
.pp-player .pp-face { box-shadow: inset 0 -6px 0 rgba(30, 26, 22, 0.16), inset 0 4px 0 rgba(255, 255, 255, 0.35); }
.el-button.pp-player:not(.shape-round) { max-height: none; }
.pp-shape { width: 0.95em; height: 0.95em; font-size: var(--key-text); color: var(--cap); }
.pp-shape svg * { stroke: var(--ink); stroke-width: 2.4px; paint-order: stroke; }

/* The big round key (MASH, SNAP, TUG) */
.el-button.shape-round { width: min(100%, 44vh, 340px); border-width: 4px; box-shadow: 0 10px 0 var(--ink), 0 18px 20px -6px var(--shadow); margin-bottom: 10px; max-height: none; }
.el-button.shape-round .pp-face { border-radius: 50%; }
.el-button.shape-round.pressed { transform: translateY(9px); box-shadow: 0 1px 0 var(--ink), 0 3px 6px -2px var(--shadow); }
.el-button.shape-round .pp-label { font-size: clamp(40px, 12vw, 56px); }
.el-button.shape-round .pp-action { font-size: clamp(40px, 12vw, 56px); }

/* Back / cancel: a lower cap, kraft-shaded so it never reads as the main move. */
.el-button.pp-quiet { background: var(--ivory-shade); box-shadow: 0 5px 0 var(--ink-soft), 0 8px 10px -4px var(--shadow); border-color: var(--ink-soft); flex: 0 0 auto; }
.el-button.pp-quiet .pp-label { color: var(--ink-soft); }

/* Numbered keys ("1. Double Points"): an ink chip carries the number. */
.pp-numbered .pp-face { flex-direction: row; justify-content: flex-start; gap: 14px; padding-left: 12px; text-align: left; }
.pp-numbered .pp-word { justify-content: flex-start; }
.pp-numbered .pp-label { text-align: left; }
.pp-num {
	flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 6px;
	background: var(--ink); color: var(--ivory); font-size: var(--key-text); line-height: 1; padding-top: 3px;
}

/* Rows that can't fit their words side by side stack into one list of keys. */
.el-row.pp-stack { flex-direction: column; }
.el-row.pp-stack > .el-button { rotate: 0deg; flex: 1 1 auto; max-height: 128px; }
.el-row.pp-stack, .el-column.pp-keylist { flex: 0 1 auto; }
.el-column.pp-keylist { justify-content: center; }

/* Keys fill the space but never grow into slabs; the group sits low, under the thumb. */
#elements { justify-content: flex-end; }
.game[data-keys="1"] #elements > .el-row > .el-button:not(.pp-player) { max-height: 150px; }

/* Chaos and mayhem: the audience's hand is ink-striped grape, words on an ink plate. */
body[data-mood="chaos"] .el-button:not(.pp-quiet):not(.pp-player):not(:has(.pp-ico-bubble)) {
	background-color: var(--grape);
	background-image: repeating-linear-gradient(-45deg, rgba(30, 26, 22, 0.85) 0 9px, transparent 9px 28px);
}
body[data-mood="chaos"] .el-button:not(.pp-quiet):not(.pp-player):not(:has(.pp-ico-bubble)) .pp-word {
	background: var(--ink); color: var(--ivory); padding: 8px 14px 6px; border-radius: 4px;
}
body[data-mood="chaos"] .el-button .pp-num { background: var(--ivory); color: var(--ink); }

/* ---------------------------------------------------------------- top bar: name card, tag, ruler */

.game { max-width: 620px; margin: 0 auto; gap: var(--gap); padding-left: 14px; padding-right: 14px; overflow-y: auto; overflow-x: hidden; }
#elements { flex: 1 0 auto; min-height: auto; }
#elements .el-row, #elements .el-column { min-height: min-content; }
#topbar { min-height: 58px; gap: 12px; align-items: stretch; }

/* the player's tent card: ivory with a band of their own colour, name in ink */
.chip {
	position: relative; border-radius: var(--cut); padding: 14px 14px 6px 12px; max-width: 58%;
	background: var(--ivory) var(--grain); background-size: 160px 160px;
	box-shadow: inset 0 9px 0 var(--player), inset 0 11.5px 0 var(--ink), 0 6px 10px -4px var(--shadow);
	font-weight: 400; font-size: var(--text-floor); line-height: 1; gap: 8px; align-items: center;
	border: 2.5px solid var(--ink);
}
#me-dot { display: none; }
#me-name { padding-top: 2px; }
#me-badge { background: var(--ink); color: var(--ivory); border-radius: 4px; font-size: var(--text-floor); padding: 3px 7px 1px; text-shadow: none; font-weight: 400; }

/* round counter: a luggage tag (clipped point, punched hole) */
#round:not(:empty), .status {
	position: relative; color: var(--ink); font-size: var(--text-floor); font-weight: 400;
	background: var(--ivory) var(--grain); background-size: 160px 160px;
	padding: 8px 14px 6px 40px; align-self: center; flex: 0 1 auto; margin: 0 auto;
	clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
	filter: drop-shadow(0 3px 2px var(--shadow));
}
#round:not(:empty)::before, .status::before {
	content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
	background: radial-gradient(circle, var(--kraft) 0 3.5px, var(--kraft-dark) 4px 6px, var(--ink) 6.5px 7px);
}
#round:empty { flex: 1; }

/* time is the ruler tab: ivory, ink ticks, ink numerals; it never changes colour */
#timer {
	min-width: 82px; height: auto; padding: 2px 12px 18px 18px; border-radius: 0 var(--cut) var(--cut) 0;
	background:
		repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 9px) left 18px bottom 0 / calc(100% - 18px) 9px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 45px) left 18px bottom 0 / calc(100% - 18px) 14px no-repeat,
		linear-gradient(90deg, var(--ink) 0 8px, transparent 8px),
		var(--ivory);
	color: var(--ink); font-size: 40px; font-weight: 400; line-height: 1; letter-spacing: 0.02em;
	box-shadow: 0 6px 10px -4px var(--shadow); border: 2.5px solid var(--ink); border-left: 0;
	display: grid; place-items: center;
}
#timer.low {
	background:
		repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 9px) left 18px bottom 0 / calc(100% - 18px) 9px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 45px) left 18px bottom 0 / calc(100% - 18px) 14px no-repeat,
		linear-gradient(90deg, var(--ink) 0 8px, transparent 8px),
		var(--ivory);
	color: var(--ink); font-size: 40px; animation: pp-ruler 0.5s ease-in-out infinite; transform-origin: 100% 0;
}
@keyframes pp-ruler { 0%, 100% { transform: rotate(0) scale(1.12); } 25% { transform: rotate(-2deg) scale(1.18); } 75% { transform: rotate(2deg) scale(1.18); } }

/* ---------------------------------------------------------------- the flap (title + subtitle) */

#heading {
	position: relative; text-align: left; padding: 16px 16px 16px 32px; border-radius: var(--cut);
	box-shadow: 0 9px 14px -6px var(--shadow), 0 2px 0 rgba(0, 0, 0, 0.08);
	rotate: -0.6deg; flex: none;
}
#title { font-size: clamp(40px, 11.6vw, 52px); font-weight: 400; line-height: 0.98; color: var(--ink); letter-spacing: 0.01em; overflow-wrap: anywhere; }
#subtitle { font-size: var(--text-floor); color: var(--ink-soft); margin-top: 10px; line-height: 1.12; }
#subtitle:empty { display: none; }

/* Watching (no controls): the flap takes the middle and says so. */
.game.pp-watching #heading { padding-top: 22px; padding-bottom: 22px; }
.game.pp-watching #elements { flex: 0 0 auto; }

/* ---------------------------------------------------------------- d-pad */

.el-dpad { padding-bottom: 8px; }
.dpad-pad { gap: 8px; max-width: min(46vh, 380px); }
.dpad-dir {
	background: var(--ivory); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px;
	box-shadow: 0 7px 0 var(--ink), 0 12px 14px -4px var(--shadow);
	font-size: clamp(40px, 13vw, 64px);
}
.dpad-dir .pp-ico { width: 0.8em; height: 0.8em; margin: 0; }
.dpad-dir.pressed { transform: translateY(6px); box-shadow: 0 1px 0 var(--ink); background: var(--ivory-shade); filter: none; }
.dpad-center { display: none; }

/* ---------------------------------------------------------------- joystick */

.stick-base {
	border: 3px solid var(--ink); box-shadow: 0 9px 14px -6px var(--shadow);
	background:
		linear-gradient(var(--ink), var(--ink)) center / 3px 78% no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 78% 3px no-repeat,
		radial-gradient(circle, transparent 0 46%, rgba(30, 26, 22, 0.25) 46.5% 47.5%, transparent 48%),
		var(--grain), var(--ivory);
	background-size: 3px 78%, 78% 3px, auto, 160px 160px;
	max-width: 380px;
}
.stick-knob {
	background: var(--player); border: 4px solid var(--ink);
	box-shadow: 0 8px 0 var(--ink), inset 0 -6px 0 rgba(30, 26, 22, 0.16), inset 0 5px 0 rgba(255, 255, 255, 0.35);
}
.stick-label { font-size: var(--text-floor); color: var(--ink-soft); font-weight: 400; }

/* ---------------------------------------------------------------- pads, swipe, progress, slider */

.el-touchpad, .el-swipe { border: 3px dashed var(--ink-soft); border-radius: var(--cut); box-shadow: 0 9px 14px -6px var(--shadow); }
.touch-label, .swipe-label { color: var(--ink-soft); font-size: var(--key-text); font-weight: 400; }
.touch-dot { background: var(--player); border: 3px solid var(--ink); }
@keyframes swiped { 0% { background-color: var(--ivory-deep); } 100% { background-color: var(--ivory); } }

.el-progress, .el-slider { padding: 12px 14px; border-radius: var(--cut); box-shadow: 0 6px 10px -5px var(--shadow); }
.progress-label, .slider-label { color: var(--ink); font-weight: 400; font-size: var(--text-floor); }
.progress-bar { height: 26px; background: var(--ivory-shade); border-radius: var(--cut); box-shadow: inset 0 0 0 2.5px var(--ink); }
.progress-fill { background: var(--player); border-radius: var(--cut) 0 0 var(--cut); box-shadow: inset -2.5px 0 0 var(--ink), inset 0 0 0 2.5px var(--ink); }
.el-slider input[type="range"] { height: 64px; }
.el-slider input[type="range"]::-webkit-slider-runnable-track { height: 14px; border-radius: var(--cut); background: var(--ivory-shade); box-shadow: inset 0 0 0 2.5px var(--ink); }
.el-slider input[type="range"]::-webkit-slider-thumb { width: 52px; height: 52px; margin-top: -19px; background: var(--player); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.el-slider output { font-size: var(--key-text); font-weight: 400; }

/* ---------------------------------------------------------------- text shown in the controls area */

.el-text {
	padding: 2px 4px; color: var(--ink); font-size: var(--text-floor); align-self: stretch;
	background: none !important; text-align: left;
}
.el-text.align-center { text-align: left; }
.el-text.size-s, .el-text.size-m { font-size: var(--text-floor); }
.el-text.size-l { font-size: var(--key-text); font-weight: 400; }
.el-text.size-xl { font-size: 56px; font-weight: 400; }
.el-row > .el-text { box-shadow: none; display: grid; place-items: center; text-align: center; padding: 6px 4px; background: transparent; margin-bottom: 7px; }

/* ---------------------------------------------------------------- entry: text, number */

.el-textinput, .el-number {
	position: relative; padding: 16px 16px 18px; border-radius: var(--cut); gap: 14px;
	box-shadow: 0 9px 14px -6px var(--shadow), 0 2px 0 rgba(0, 0, 0, 0.08);
}
.el-textinput label, .el-number label { color: var(--ink); font-size: var(--text-floor); }
.el-textinput input, .el-textinput textarea { font-size: var(--key-text); }
.pp-dial { display: grid; grid-template-columns: 76px 1fr 76px; gap: 12px; align-items: start; }
.pp-dial input { font-size: 52px; text-align: center; min-height: 76px; padding: 6px 4px 2px; letter-spacing: 0.04em; }
.pp-step { height: 76px; min-width: 0; }
.pp-step .pp-face { padding: 0; font-size: 40px; }
.pp-step .pp-ico { width: 0.85em; height: 0.85em; }
.pp-send .pp-face { flex-direction: row; }
.pp-send .pp-ico svg path[stroke="#F7EFDC"] { stroke: var(--ink); }
.el-textinput button[type="submit"], .el-number button[type="submit"] { min-height: 72px; }

/* sent: the form keeps what was sent, and a brass brad pins it ("answered") */
.el.sent { opacity: 1; }
.el-textinput.sent::after, .el-number.sent::after, .el-choice.sent .picked::after, .el-drawing.sent::after {
	content: ""; position: absolute; top: -9px; right: 18px; width: 30px; height: 30px; border-radius: 50%;
	background: radial-gradient(circle at 42% 38%, var(--brass-hi) 0 4px, var(--brass) 5px 8px, var(--ink) 8.5px 10px, var(--ivory) 10.5px 13px, var(--ink) 13.5px 15px);
	filter: drop-shadow(0 2px 1px var(--shadow)); z-index: 2;
}
.el.sent input, .el.sent textarea { background: var(--ivory-shade); color: var(--ink); -webkit-text-fill-color: var(--ink); border-color: var(--ink-soft); }
.el.sent button:disabled { visibility: hidden; height: 0; min-height: 0; margin: 0; border: 0; }

/* ---------------------------------------------------------------- choice lists */

.choice-grid { gap: 12px; grid-template-columns: 1fr !important; }
.choice-option {
	position: relative; font-size: var(--key-text); color: var(--ink); min-height: 72px; padding: 12px 16px 10px 18px; gap: 14px;
	border: 3px solid var(--ink); border-radius: var(--cut);
	box-shadow: inset 8px 0 0 var(--ink-soft), 0 5px 0 var(--ink), 0 9px 10px -4px var(--shadow);
	background-color: var(--ivory); text-align: left; line-height: 1.05;
}
.choice-option:active { transform: translateY(4px); box-shadow: inset 8px 0 0 var(--ink-soft), 0 1px 0 var(--ink); }
.choice-option.picked { outline: 0; filter: none; box-shadow: inset 14px 0 0 var(--player), inset 16.5px 0 0 var(--ink), 0 5px 0 var(--ink), 0 9px 10px -4px var(--shadow); padding-left: 28px; }
.el-choice.sent .choice-option:not(.picked) { opacity: 0.45; }
.choice-option.pp-quiet { background: var(--ivory-shade); color: var(--ink-soft); border-color: var(--ink-soft); box-shadow: 0 4px 0 var(--ink-soft); min-height: 64px; }
/* on / off switch for list items */
.pp-box { flex: none; width: 34px; height: 34px; border: 3px solid var(--ink); border-radius: 4px; background: #FFFBF0; position: relative; }
.choice-option[data-toggle="on"] .pp-box { background: var(--ink); }
.choice-option[data-toggle="on"] .pp-box::after {
	content: ""; position: absolute; left: 8px; top: 2px; width: 9px; height: 17px;
	border: solid var(--ivory); border-width: 0 4.5px 4.5px 0; rotate: 42deg;
}
.choice-option[data-toggle="off"] { color: var(--ink-soft); background-color: var(--ivory-shade); }
.choice-option[data-toggle="off"] .choice-label { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(90, 74, 54, 0.55); }

/* ---------------------------------------------------------------- drawing */

.el-drawing { position: relative; padding: 14px; border-radius: var(--cut); box-shadow: 0 9px 14px -6px var(--shadow); }
.el-drawing canvas { box-shadow: 0 0 0 3px var(--ink); border-radius: var(--cut); }
.swatch { width: 52px; height: 52px; min-height: 52px; min-width: 52px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); margin-bottom: 4px; }
.swatch.selected { box-shadow: 0 4px 0 var(--ink), 0 0 0 5px var(--ivory), 0 0 0 8px var(--ink); }
.draw-tools .ghost { min-height: 64px; font-size: var(--text-floor); }

/* ---------------------------------------------------------------- customiser */

.el-image { background: var(--ivory) var(--grain); background-size: 160px 160px; border-radius: var(--cut); box-shadow: 0 9px 14px -6px var(--shadow); padding: 8px; height: 30vh; min-height: 150px; flex: 0 0 auto !important; }
.el-image img { object-fit: contain !important; }
.el-row:has(> .el-text) { align-items: stretch; gap: 10px; flex: 0 0 auto; }
.el-row:has(> .el-text) > .el-button { flex: 0 0 72px; min-height: 72px; max-height: 72px; rotate: 0deg; }
.el-row:has(> .el-text) > .el-button .pp-face { padding: 0; }
.el-row:has(> .el-text) > .el-button .pp-word { background: none; box-shadow: none; padding: 0; }
.el-row:has(> .el-text) > .el-button .pp-glyph { width: 1.1em; height: 1.1em; margin: 0; font-size: 36px; }
.el-row:has(> .el-text) > .el-text {
	background: var(--ivory) var(--grain); background-size: 160px 160px;
	border: 2.5px solid var(--ink); border-radius: var(--cut); font-size: var(--text-floor);
}

/* ---------------------------------------------------------------- feedback */

/* The toast is an announcement ribbon: ivory, ink words, notched ends. */
#toast {
	background: var(--ivory) var(--grain) !important; background-size: 160px 160px !important;
	color: var(--ink); font-size: clamp(36px, 10.5vw, 56px); font-weight: 400; line-height: 1;
	padding: 18px 46px 14px; white-space: normal !important; justify-content: center; width: max-content; max-width: calc(100vw - 20px); border-radius: 0; box-shadow: none;
	clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 50%, 100% 100%, 0 100%, 26px 50%);
	filter: drop-shadow(0 6px 4px var(--shadow)); display: flex; align-items: center; gap: 14px;
}
#toast::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(var(--ink) 0 4px, transparent 4px calc(100% - 4px), var(--ink) calc(100% - 4px));
}
/* a result rides on the ribbon as a stamp: tick for right, cross for wrong */
.pp-stamp {
	display: grid; place-items: center; width: 1.05em; height: 1.05em; flex: none; border-radius: 50%;
	border: 4px solid var(--ink); color: var(--ink); rotate: -10deg;
	box-shadow: inset 0 0 0 3px var(--ivory), inset 0 0 0 5px var(--ink);
}
.pp-stamp .pp-ico { width: 0.62em; height: 0.62em; }
#flash { mix-blend-mode: multiply; }
#flash.on { animation: pp-flash 420ms ease-out; }
@keyframes pp-flash { 0% { opacity: 0.45; } 100% { opacity: 0; } }

.status { position: fixed; left: 50%; bottom: calc(22px + var(--safe-bottom)); transform: translateX(-50%); margin: 0; border-radius: 0; box-shadow: none; max-width: calc(100vw - 32px); }
.motion { font-size: var(--key-text); }

/* ---------------------------------------------------------------- small and wide screens */

@media (max-height: 680px) {
	#heading { padding-top: 12px; padding-bottom: 12px; }
	#subtitle { margin-top: 6px; }
	.game { gap: 12px; }
}
@media (min-width: 600px) {
	.game { padding-top: calc(22px + var(--safe-top)); }
}
@media (orientation: landscape) and (max-height: 500px) {
	#heading { display: block; padding: 8px 14px 8px 28px; }
	#subtitle { display: none; }
	#title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
	#timer.low { animation: none; transform: scale(1.1); }
}

/* ---------------------------------------------------------------- watching: nothing to press */

.pp-watch { display: none; }
.game.pp-watching .pp-watch {
	display: flex; align-items: center; gap: 14px; align-self: center; margin-top: -4px;
	color: var(--ink); font-size: var(--text-floor);
}
.pp-watch .pp-ico { width: 58px; height: 58px; }
.pp-watch span { padding-top: 4px; }


/* a big prompt in the controls area (tilt, shake): its own card, centred */
#elements > .el-text.size-l, #elements > .el-text.size-xl {
	background: var(--ivory) var(--grain) !important; background-size: 160px 160px !important;
	padding: 18px 18px 14px; border-radius: var(--cut); text-align: center; border: 3px dashed var(--ink-soft);
}

/* ================================================================ round 2: one layout rule, hierarchy, states */

/* Keys: one group, anchored low (the thumb), sharing the space under the flap. */
.pp-keys { flex: 1 1 auto; justify-content: flex-end; gap: var(--gap); }
.pp-keys > .el-row { flex: 1 1 auto; min-height: min-content; }
.pp-keys .el-button { min-height: 76px; max-height: 140px; }
.pp-keys[data-count="1"] .el-button { max-height: 36vh; min-height: 96px; }
.pp-keys[data-count="1"] .el-button .pp-label, .pp-keys[data-count="1"] .el-button .pp-action { font-size: 40px; }
.pp-keys > .el-row.pp-taunt-row { flex: 0 0 auto; margin-bottom: 10px; }
.el-button.pp-taunt { flex: 0 0 auto; min-height: 64px; max-height: 64px; box-shadow: 0 5px 0 var(--ink), 0 8px 10px -4px var(--shadow); margin-bottom: 5px; }
.el-button.pp-taunt .pp-face { padding: 6px 14px; flex-direction: row; }
.pp-taunt-row > .el-button.pp-taunt { flex: 0 1 auto; margin-left: auto; padding: 0 6px; }
.pp-keys[data-count="1"] .el-button.pp-taunt { max-height: 64px; min-height: 64px; }
.pp-keys[data-count="1"] .el-button.pp-taunt .pp-label, .pp-keys[data-count="1"] .el-button.pp-taunt .pp-action { font-size: var(--key-text); }
.pp-keys[data-count="1"] > .pp-taunt-row { flex: 1 1 auto; align-items: flex-end; margin-bottom: 0; }

/* The host's main key: the biggest, ink, at the bottom. */
.el-button.pp-primary { background: var(--ink); color: var(--ivory); box-shadow: 0 8px 0 #000, 0 14px 16px -4px var(--shadow); min-height: 96px; }
.el-button.pp-primary .pp-face { box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.12); }
.el-button.pp-primary.pressed { box-shadow: 0 1px 0 #000; }


/* Secondary keys (cancel, back, just watch) are live ivory caps, just lower: never the disabled look. */
.el-button.pp-quiet { background: var(--ivory); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink), 0 7px 8px -4px var(--shadow); min-height: 64px; max-height: 76px; }
.el-button.pp-quiet .pp-label { color: var(--ink); font-size: var(--key-text); }
.choice-option.pp-quiet { background: var(--ivory); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
/* Disabled is flat: no skirt, faded ink. */
.el.disabled { opacity: 1; filter: none; }
.el.disabled.el-button, .el.disabled .el-button { box-shadow: none; transform: translateY(6px); color: rgba(30, 26, 22, 0.4); background: var(--ivory-shade); border-color: rgba(30, 26, 22, 0.4); }

/* Back stays reachable at the foot of a long list; the customiser's DONE row too. */
.choice-option.pp-quiet { position: sticky; bottom: 10px; z-index: 3; }
.game.scrolls #elements > .pp-keys:last-child { position: sticky; bottom: 0; z-index: 3; padding: 10px 0 4px; background: linear-gradient(transparent, var(--kraft) 14px); }
.el-image { height: 22vh; min-height: 120px; }

/* Prompts that repeat the flap are dropped; the rest hang on a luggage tag. */
.pp-echo { display: none !important; }
#elements > .el-text:not(.size-l):not(.size-xl), .el-textinput > label, .el-number > label {
	position: relative; align-self: flex-start; color: var(--ink); font-size: var(--text-floor);
	background: var(--ivory) var(--grain) !important; background-size: 160px 160px !important;
	padding: 8px 16px 6px 40px; clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
	filter: drop-shadow(0 3px 2px var(--shadow)); text-align: left; flex: 0 0 auto;
}
#elements > .el-text:not(.size-l):not(.size-xl)::before {
	content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
	background: radial-gradient(circle, var(--kraft) 0 3.5px, var(--kraft-dark) 4px 6px, var(--ink) 6.5px 7px);
}
.el-textinput > label, .el-number > label { display: block; }
.el-textinput > label input, .el-textinput > label textarea, .el-number > label input { margin-top: 10px; }

/* Entry is the field and its key on the board: no card around a card. */
.el-textinput, .el-number { background: none !important; box-shadow: none; padding: 0; }
.el-textinput > label { clip-path: none; filter: none; background: none !important; padding: 0; align-self: stretch; }
.el-textinput > label { font-size: 0; color: transparent; }
.el-textinput > label input, .el-textinput > label textarea { font-size: var(--key-text); color: var(--ink); margin-top: 0; }
.el-textinput:not(:has(> label.pp-echo)) > label { font-size: var(--text-floor); color: var(--ink); }
.el-textinput:not(:has(> label.pp-echo)) > label input { margin-top: 10px; }
.el-textinput > label.pp-echo { display: block !important; }
.el-textinput.sent::after, .el-number.sent::after { top: -12px; right: 10px; }

/* A pick is pinned: brass brad and a heavier ink edge (the colour band is kept for the player's own things). */
.choice-option.picked { box-shadow: inset 12px 0 0 var(--ink), 0 5px 0 var(--ink), 0 9px 10px -4px var(--shadow); padding-left: 28px; }
.el-choice.sent .choice-option:not(.picked) { opacity: 0.62; }
.el-choice.sent .picked::after { top: -8px; right: 8px; }

/* Chaos plates span the key, all alike. */
body[data-mood="chaos"] .el-button:not(.pp-quiet):not(.pp-player):not(:has(.pp-ico-bubble)) .pp-word { flex: 1; justify-content: flex-start; }

/* The flap stays short while there are keys to reach. */
@media (max-height: 700px) {
	.game:not(.pp-watching):not(:has(.el-textinput, .el-number)) #subtitle { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Watching: the flap stays put; the cue hangs in the free space on a tag. */
.game.pp-watching .pp-watch {
	margin: auto; flex-direction: column; gap: 10px; padding: 18px 26px 16px;
	background: var(--ivory) var(--grain); background-size: 160px 160px; border: 3px dashed var(--ink-soft); border-radius: var(--cut);
	rotate: 1deg; box-shadow: 0 8px 12px -6px var(--shadow);
}
.game.pp-watching .pp-watch .pp-ico { width: 84px; height: 84px; }

/* The answer ribbon has its own place: across the top, opaque, the whole width. */
#toast {
	top: calc(70px + var(--safe-top)); left: 8px; right: 8px; width: auto !important; max-width: none !important;
	transform: none; min-height: 92px; white-space: nowrap !important; font-size: clamp(34px, 11vw, 52px);
}
#toast.show { animation: pp-toast 1.6s ease-out forwards; }
@keyframes pp-toast { 0% { opacity: 0; transform: scale(0.7); } 12% { opacity: 1; transform: scale(1.04); } 20% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }

/* Places: a stamp on the flap; the winner's has a rosette in their own colour. */
#heading:has(.pp-place) { padding-right: 104px; }
.pp-place {
	position: absolute; right: 14px; top: 50%; translate: 0 -50%; rotate: -9deg;
	display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%;
	border: 4px solid var(--ink); box-shadow: inset 0 0 0 3px var(--ivory), inset 0 0 0 6px var(--ink);
	font-size: var(--key-text); color: var(--ink); padding-top: 4px; background: var(--ivory);
}
body[data-mood="win"] .pp-place {
	width: 96px; height: 96px; border: 0; box-shadow: none;
	background:
		radial-gradient(circle, var(--ivory) 0 30px, var(--ink) 30.5px 33px, transparent 33.5px),
		repeating-conic-gradient(var(--player) 0 10deg, color-mix(in srgb, var(--player), #000 18%) 10deg 20deg);
	-webkit-mask: radial-gradient(circle, #000 44px, transparent 44.5px);
	mask: radial-gradient(circle, #000 44px, transparent 44.5px);
}
body[data-mood="win"] #heading:has(.pp-place) { padding-right: 116px; }

/* Errors hang off what they're about. */
#join-error { order: 2; align-self: flex-start; border: 0; background: var(--ivory-shade); border-radius: var(--cut); padding: 10px 14px 8px; display: flex; gap: 10px; align-items: center; box-shadow: inset 0 0 0 2.5px var(--ink); }
#join-error .pp-ico { width: 30px; height: 30px; flex: none; }
#join-button { order: 3; }
input.pp-invalid { border-width: 4px; box-shadow: 0 0 0 4px var(--ivory), 0 0 0 7px var(--ink); }

/* Reconnecting: keys lie flat and don't take taps; the tag pins under the name card. */
body.pp-offline #elements { pointer-events: none; }
body.pp-offline .el-button, body.pp-offline .dpad-dir, body.pp-offline .choice-option, body.pp-offline button {
	box-shadow: none !important; transform: translateY(6px); color: rgba(30, 26, 22, 0.45); border-color: rgba(30, 26, 22, 0.45);
}
body.pp-offline .status { top: calc(76px + var(--safe-top)); bottom: auto; z-index: 25; }

/* ================================================================ round 3 */

/* Keys keep their size and sit at the bottom; the free space goes above them. */
.pp-keys > .el-row { flex: 0 0 auto; align-items: stretch; }
.pp-keys .el-button { min-height: clamp(76px, 11vh, 124px); max-height: none; }
.pp-keys[data-count="1"] .el-button:not(.pp-taunt) { min-height: clamp(110px, 20vh, 180px); max-height: none; }
.pp-keys .el-button.pp-taunt { min-height: 64px; }
.pp-keys > .el-row.pp-taunt-row { margin-bottom: 4px; }
.pp-primary-row > .el-button.pp-primary { min-height: clamp(88px, 13vh, 140px); }
.pp-keys[data-count="1"] > .pp-taunt-row { flex: 0 0 auto; }
@media (max-height: 700px) {
	.pp-keys .el-button { min-height: 72px; }
	.pp-primary-row > .el-button.pp-primary { min-height: 84px; }
}

/* The status tag rides in the page, under the name card, where it is seen. */
#status.status { position: static; transform: none; translate: none; align-self: flex-start; margin: -4px 0 0; max-width: 100%; order: 0; }

/* Only a TAUNT to press: still a watching moment. */
.game.pp-idle .pp-watch {
	display: flex; align-items: center; margin: auto; flex-direction: column; gap: 10px; padding: 18px 26px 16px;
	background: var(--ivory) var(--grain); background-size: 160px 160px; border: 3px dashed var(--ink-soft); border-radius: var(--cut);
	rotate: 1deg; box-shadow: 0 8px 12px -6px var(--shadow); color: var(--ink); font-size: var(--text-floor);
}
.game.pp-idle .pp-watch .pp-ico { width: 84px; height: 84px; }
.game.pp-idle #elements { flex: 0 0 auto; }

/* ================================================================ round 4 */

/* TAUNT's one home: a small key in the header. With a clock running it shrinks to its bubble. */
#topbar .el-button.pp-taunt {
	flex: 0 0 auto; align-self: stretch; min-height: 58px; max-height: 58px; margin: 0 0 6px auto; rotate: 0deg;
	box-shadow: 0 5px 0 var(--ink), 0 8px 10px -4px var(--shadow);
}
#topbar .el-button.pp-taunt.pressed { box-shadow: 0 1px 0 var(--ink); }
#topbar .el-button.pp-taunt .pp-face { padding: 4px 12px; min-height: 0; flex-direction: row; }
#topbar .el-button.pp-taunt .pp-label { font-size: var(--text-floor); }
#topbar .el-button.pp-taunt .pp-glyph { width: 30px; height: 30px; }
#topbar:has(#timer:not([hidden])) .el-button.pp-taunt { margin-right: 0; }
#topbar:has(#timer:not([hidden])) .el-button.pp-taunt .pp-label { font-size: 0; letter-spacing: 0; }
#topbar:has(#timer:not([hidden])) .el-button.pp-taunt .pp-glyph { width: 34px; height: 34px; margin: 0; }
#topbar.pp-has-taunt #round:empty { display: none; }
#topbar.pp-has-taunt #timer { margin-left: 0; }

/* Keys are one per row (digits share a row), and every key is the same height. */
.pp-keys .el-button:not(.pp-primary) { min-height: 76px; }
.pp-keys[data-count="1"] .el-button:not(.pp-taunt) { min-height: 96px; }
.pp-numbered .pp-face { padding-top: 8px; padding-bottom: 6px; min-height: 86px; }
.pp-numbered .pp-label { line-height: 1; }
.pp-keys > .el-row + .pp-primary-row { margin-top: 4px; }

/* Menus read top-down from the flap. */
.game.pp-menu #elements { justify-content: flex-start; }
.game.pp-menu .pp-keys { flex: 0 0 auto; justify-content: flex-start; }

/* The primary key is still an ivory key cap; its word rides on an ink plate. */
.el-button.pp-primary, button.pp-send, #join-button {
	background: var(--ivory); color: var(--ink); border-width: 4px; box-shadow: 0 8px 0 var(--ink), 0 14px 16px -4px var(--shadow);
}
.el-button.pp-primary .pp-word, button.pp-send .pp-word {
	background: var(--ink); color: var(--ivory); padding: 10px 18px 7px; border-radius: 5px; box-shadow: 0 3px 0 rgba(30, 26, 22, 0.3);
}
#join-button { font-size: var(--key-text); }
#join-button::before { content: ""; }
.pp-send .pp-ico svg path[stroke="#F7EFDC"] { stroke: var(--ink); }
.el-button.pp-primary .pp-face { box-shadow: inset 0 -5px 0 rgba(30, 26, 22, 0.08), inset 0 3px 0 rgba(255, 255, 255, 0.55); }
button.pp-send:disabled .pp-word { background: rgba(30, 26, 22, 0.4); }

/* Lists are keys too: full-width ivory caps with a skirt. */
.choice-option { border-radius: 12px; box-shadow: 0 6px 0 var(--ink), 0 10px 12px -4px var(--shadow); min-height: 72px; padding-left: 18px; }
.choice-option:active { box-shadow: 0 1px 0 var(--ink); transform: translateY(5px); }
.choice-option.picked { box-shadow: inset 12px 0 0 var(--ink), 0 6px 0 var(--ink); }
.choice-option.pp-quiet { justify-content: center; box-shadow: 0 6px 0 var(--ink), 0 0 0 6px var(--kraft); }

/* The watching cue is a luggage tag hung under the flap, in ink and ivory only. */
.game.pp-watching .pp-watch, .game.pp-idle .pp-watch {
	margin: 18px 0 auto 22px; align-self: flex-start; flex-direction: row; gap: 14px; rotate: -1.5deg;
	padding: 12px 22px 10px 46px; border: 0; border-radius: 0; box-shadow: none;
	background: var(--ivory) var(--grain); background-size: 160px 160px;
	clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%); filter: drop-shadow(0 4px 3px var(--shadow));
}
.game.pp-watching .pp-watch::before, .game.pp-idle .pp-watch::before {
	content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%;
	background: radial-gradient(circle, var(--kraft) 0 4px, var(--kraft-dark) 4.5px 6.5px, var(--ink) 7px 8px);
}
.game.pp-watching .pp-watch .pp-ico, .game.pp-idle .pp-watch .pp-ico { width: 52px; height: 52px; }
.pp-watch { position: relative; }
.pp-watch svg rect[opacity] { opacity: 0; }

/* The winner's rosette stands on its own under the flap: their colour, their place. */
.pp-podium { display: grid; place-items: center; margin: 10px auto 0; position: relative; width: 168px; height: 196px; }
.pp-rosette {
	position: absolute; top: 0; width: 168px; height: 168px; border-radius: 50%;
	background:
		radial-gradient(circle, var(--ivory) 0 52px, var(--ink) 52.5px 56px, transparent 56.5px),
		repeating-conic-gradient(var(--player) 0 9deg, color-mix(in srgb, var(--player), #000 20%) 9deg 18deg);
	-webkit-mask: radial-gradient(circle, #000 80px, transparent 80.5px); mask: radial-gradient(circle, #000 80px, transparent 80.5px);
	filter: drop-shadow(0 6px 4px var(--shadow));
}
.pp-podium::before, .pp-podium::after {
	content: ""; position: absolute; bottom: 0; width: 46px; height: 90px; background: var(--player);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); box-shadow: inset 0 0 0 3px var(--ink);
}
.pp-podium::before { left: 40px; rotate: 14deg; }
.pp-podium::after { right: 40px; rotate: -14deg; }
.pp-podium b { position: relative; z-index: 1; font-weight: 400; font-size: 44px; color: var(--ink); margin-bottom: 28px; }
body[data-mood="win"] #heading .pp-place { display: none; }
body[data-mood="win"] #heading:has(.pp-place) { padding-right: 16px; }

/* Sent: the brad pins the sent value itself. */
.el-number.sent::after { display: none; }
.el-number.sent .pp-dial { position: relative; }
.el-number.sent .pp-dial::after {
	content: ""; position: absolute; top: -12px; left: 50%; margin-left: -15px; width: 30px; height: 30px; border-radius: 50%;
	background: radial-gradient(circle at 42% 38%, var(--brass-hi) 0 4px, var(--brass) 5px 8px, var(--ink) 8.5px 10px, var(--ivory) 10.5px 13px, var(--ink) 13.5px 15px);
	filter: drop-shadow(0 2px 1px var(--shadow)); z-index: 2;
}

/* The toast's top is set under the flap by the script; it droops when wrong, pops when right. */
#toast { min-height: 84px; }
#toast[data-verdict="bad"] { rotate: 2.5deg; }
#toast[data-verdict="good"] { rotate: -1.5deg; }
.pp-stamp { width: 64px; height: 64px; font-size: 64px; rotate: -12deg; }

/* Value slots in the customiser are tags; the reconnect brad pulses. */
.el-row:has(> .el-text) > .el-text {
	border: 0; clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); padding-left: 24px;
	filter: drop-shadow(0 3px 2px var(--shadow));
}
body.pp-offline .status::before { animation: pp-pulse 1s ease-in-out infinite; }
@keyframes pp-pulse { 50% { opacity: 0.35; } }
.el-image { height: 18vh; min-height: 110px; }

/* ================================================================ round 4b */
#topbar .el-button.pp-taunt { flex-shrink: 0; min-width: 64px; }
.pp-keys .el-button { flex: 1 1 0; }
.pp-keys .el-button.pp-quiet { max-height: none; }
.el-button.pp-primary .pp-label { white-space: nowrap; }
body[data-mood="chaos"] .pp-keys .el-button .pp-face { align-items: stretch; }
.el-row:has(> .el-text) > .el-text {
	background: var(--ivory) var(--grain) !important; background-size: 160px 160px !important;
	padding: 6px 8px 4px 22px; white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.pp-tagtext {
	position: relative; display: inline-block; color: var(--ink); font-size: var(--text-floor); margin-bottom: 10px;
	background: var(--ivory) var(--grain); background-size: 160px 160px;
	padding: 8px 16px 6px 40px; clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
	filter: drop-shadow(0 3px 2px var(--shadow));
}
.pp-tagtext::before {
	content: ""; position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
	background: radial-gradient(circle, var(--kraft) 0 3.5px, var(--kraft-dark) 4px 6px, var(--ink) 6.5px 7px);
}
.el-textinput > label { font-size: var(--text-floor); color: var(--ink); }
.el-textinput > label input { margin-top: 0 !important; }
@media (max-height: 700px) {
	.game { gap: 10px; }
	#topbar { min-height: 52px; }
	.pp-keys { gap: 10px; }
	.pp-keys .el-button:not(.pp-primary) { min-height: 66px; }
	.pp-numbered .pp-face { min-height: 70px; padding-top: 4px; padding-bottom: 2px; }
	.pp-keys .el-button .pp-face { padding-top: 6px; padding-bottom: 4px; }
}

#timer { font-size: 36px; padding: 0 12px 20px 18px; line-height: 1; }
#timer.low { font-size: 36px; }

/* ================================================================ round 5 */

/* The primary key is the key cap itself made bigger: double ink rim, deep skirt, word straight on ivory.
   The ink plate belongs to chaos alone. */
.el-button.pp-primary, button.pp-send, #join-button {
	background: var(--ivory); color: var(--ink); border: 4px solid var(--ink);
	box-shadow: inset 0 0 0 3px var(--ivory), inset 0 0 0 5.5px var(--ink), 0 10px 0 var(--ink), 0 16px 16px -4px var(--shadow);
	margin-bottom: 10px;
}
.el-button.pp-primary.pressed, button.pp-send:active:not(:disabled), #join-button:active { transform: translateY(9px); box-shadow: inset 0 0 0 3px var(--ivory), inset 0 0 0 5.5px var(--ink), 0 1px 0 var(--ink); }
.el-button.pp-primary .pp-word, button.pp-send .pp-word { background: none; color: var(--ink); padding: 0; box-shadow: none; }
.el-button.pp-primary .pp-label, button.pp-send .pp-label, #join-button { font-size: 36px; }
.el-button.pp-primary .pp-action, button.pp-send .pp-action { font-size: 36px; }
button.pp-send .pp-ico svg path[stroke="#F7EFDC"] { stroke: var(--ivory); }
.pp-primary-row > .el-button.pp-primary { min-height: 92px; }
@media (max-height: 700px) { .pp-primary-row > .el-button.pp-primary { min-height: 84px; } }

/* One placement rule: the flap hangs from the top, every key group sits on the bottom edge. */
.game.pp-menu #elements, .game #elements { justify-content: flex-end; }
.el-dpad { flex: 0 0 auto; }
.join { justify-content: space-between !important; }
body[data-mood="chaos"] .pp-keys .el-button:not(.pp-numbered) .pp-word { justify-content: center; }

/* The header key: 64px, one form; the word is 32px, or just the bubble when the ruler needs the room. */
#topbar { min-height: 70px; }
#topbar .el-button.pp-taunt { min-height: 64px; max-height: 64px; min-width: 64px; }
#topbar .el-button.pp-taunt .pp-label { font-size: var(--key-text); }
#topbar .el-button.pp-taunt .pp-glyph { width: 34px; height: 34px; }

/* The answer ribbon: room inside its notches, never on a live key (the script places it). */
#toast { padding: 16px 40px 12px; font-size: clamp(32px, 9.4vw, 48px); gap: 12px; }
.pp-stamp { width: 56px; height: 56px; font-size: 56px; }

/* Join: the error is a tag in the name's slot, and the button stays on screen. */
#join-form > label:nth-of-type(1) { order: 1; }
#join-form > label:nth-of-type(2) { order: 2; }
#join-error { order: 3; align-self: flex-start; background: var(--ivory-shade) !important; box-shadow: none !important;
	clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); padding: 8px 14px 6px 26px !important; margin-top: -6px; }
#join-button { order: 4; }
.join:has(#join-error:not([hidden])) .brand p { display: none; }
@media (max-height: 700px) { .brand h1 { font-size: 44px; } #join-form { gap: 12px; } }

/* Lists: the footer key sits on a kraft band of its own, and the last rows can scroll clear of it. */
.choice-option.pp-quiet { bottom: 0; box-shadow: 0 6px 0 var(--ink), 0 0 0 12px var(--kraft), 0 18px 0 12px var(--kraft); }
.el-choice:has(.pp-quiet) .choice-grid { padding-bottom: 6px; }
.choice-option[data-toggle="off"] { background-color: var(--ivory); color: var(--ink); }
.choice-option[data-toggle="off"] .choice-label { text-decoration: none; }
.el-choice.sent .choice-option:not(.picked) { opacity: 1; background: var(--ivory-shade); color: var(--ink-soft); }

/* Customiser: smaller preview on small phones, value tags that fit. */
@media (max-height: 700px) { .el-image { height: 84px; min-height: 84px; } }
.el-row:has(> .el-text) > .el-button { flex-basis: 64px; min-height: 64px; max-height: 64px; }
.el-row:has(> .el-text) { gap: 8px; }
.el-row:has(> .el-text) > .el-text { white-space: normal; line-height: 1.02; padding-left: 20px; padding-right: 4px; }

/* Places other than first hang on a tag at the flap's corner (stamps are for right and wrong). */
.pp-place {
	width: auto; height: auto; border: 0; border-radius: 0; box-shadow: none; rotate: 4deg; top: auto; bottom: -14px; translate: none;
	padding: 8px 14px 6px 36px; background: var(--ivory) var(--grain); background-size: 160px 160px; font-size: var(--key-text);
	clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); filter: drop-shadow(0 3px 2px var(--shadow));
}
.pp-place::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
	background: radial-gradient(circle, var(--kraft) 0 3.5px, var(--kraft-dark) 4px 6px, var(--ink) 6.5px 7px); }
#heading:has(.pp-place) { padding-right: 16px; padding-bottom: 30px; }

/* Brads pin the sent value. */
.el-textinput.sent::after { top: auto; bottom: 46px; right: 8px; }

/* The watching tag: balanced lines, bigger TV. */
.pp-watch span { text-wrap: balance; max-width: 9em; }
.game.pp-watching .pp-watch .pp-ico, .game.pp-idle .pp-watch .pp-ico { width: 64px; height: 64px; }

/* Reconnecting: an announcement ribbon over the keys; the flap and keys wait under a kraft wash, keys hatched. */
body.pp-offline #status.status {
	position: fixed; left: 8px; right: 8px; top: 50%; bottom: auto; transform: translateY(-50%); z-index: 30; margin: 0;
	font-size: var(--key-text); text-align: center; padding: 18px 44px 14px; clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 50%, 100% 100%, 0 100%, 22px 50%);
	background: var(--ivory) var(--grain); background-size: 160px 160px; filter: drop-shadow(0 6px 4px var(--shadow));
}
body.pp-offline #status.status::before { left: 50%; top: auto; bottom: 6px; margin: 0 0 0 -7px; }
body.pp-offline #heading, body.pp-offline #timer { opacity: 0.45; }
body.pp-offline .el-button, body.pp-offline .choice-option {
	color: var(--ink) !important; border-color: var(--ink) !important;
	background-image: repeating-linear-gradient(-45deg, rgba(30, 26, 22, 0.16) 0 2px, transparent 2px 9px) !important;
}

/* round 5b: a scrolling screen scrolls inside the game so sticky footers hold; the place tag hangs below the flap */
.game.scrolls { height: 100%; min-height: 0; }
#heading:has(.pp-place) { padding-bottom: 16px; margin-bottom: 28px; }
.pp-place { bottom: -36px; }
/* never push overflowing content above the scroll start */
.game #elements, .game.pp-menu #elements { justify-content: safe flex-end; }
.pp-keys { justify-content: safe flex-end; }
/* a sticky footer of keys is one compact row */
.game.scrolls #elements > .pp-keys:last-child { flex-direction: row; align-items: stretch; }
.game.scrolls #elements > .pp-keys:last-child > .el-row { flex: 1 1 0; }
.game.scrolls #elements > .pp-keys:last-child .el-button { min-height: 72px; }
.game.scrolls #elements > .pp-keys:last-child .pp-label { font-size: var(--key-text); }
.pp-label { overflow-wrap: normal; word-break: keep-all; }
.game.scrolls #elements > .pp-keys:last-child .pp-face { padding-left: 6px; padding-right: 6px; }
.game.scrolls #elements > .pp-keys:last-child .pp-action, .game.scrolls #elements > .pp-keys:last-child .pp-glyph { display: none; }

/* ================================================================ round 6 */

/* Customiser footer: a kraft plate of its own; the list scrolls clear of it. */
.game.scrolls #elements > .pp-keys:last-child {
	background: var(--kraft); box-shadow: 0 -10px 12px -8px var(--shadow); margin: 0 -14px; padding: 10px 14px 6px; gap: 12px;
}
.game.scrolls #elements > .pp-keys:last-child .pp-face { padding-left: 16px; padding-right: 16px; }
.game.scrolls #elements > .pp-keys:last-child .el-button:not(.pp-primary) .pp-label { font-size: 30px; letter-spacing: 0; }
@media (max-height: 700px) {
	.el-image { height: 64px; min-height: 64px; padding: 4px; }
	.game.scrolls:not(:has(.el-textinput, .el-number)) #subtitle { -webkit-line-clamp: 2; }
	body[data-mood="chaos"] .game:not(.pp-watching) #subtitle { -webkit-line-clamp: 2; }
	body[data-mood="chaos"] .pp-keys { gap: 10px; }
	body[data-mood="chaos"] .pp-numbered .pp-face { min-height: 64px; }
}

/* Reconnecting ribbon: words stay inside the notches, no brad. */
body.pp-offline #status.status { font-size: 30px; padding: 16px 40px 12px; white-space: normal; }
body.pp-offline #status.status::before { display: none; }

/* Rosette: tails behind the disc, a clear gap above the keys. */
.pp-podium { width: 132px; height: 160px; margin-bottom: 24px; }
.pp-rosette { width: 132px; height: 132px; z-index: 1;
	background: radial-gradient(circle, var(--ivory) 0 40px, var(--ink) 40.5px 44px, transparent 44.5px),
		repeating-conic-gradient(var(--player) 0 9deg, color-mix(in srgb, var(--player), #000 20%) 9deg 18deg);
	-webkit-mask: radial-gradient(circle, #000 64px, transparent 64.5px); mask: radial-gradient(circle, #000 64px, transparent 64.5px); }
.pp-podium::before, .pp-podium::after { z-index: 0; bottom: 0; width: 38px; height: 70px; }
.pp-podium::before { left: 30px; }
.pp-podium::after { right: 30px; }
.pp-podium b { z-index: 2; font-size: 36px; margin-bottom: 30px; }

/* The spirit level. */
.pp-tilt-prompt { display: none !important; }
.pp-level { align-self: stretch; margin: auto 0; padding: 22px 18px 30px; border-radius: var(--cut); flex: 0 0 auto;
	background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 12px) left 18px bottom 8px / calc(100% - 36px) 10px no-repeat,
		var(--ivory) var(--grain); background-size: calc(100% - 36px) 10px, 160px 160px;
	box-shadow: 0 9px 14px -6px var(--shadow); border: 3px solid var(--ink); }
.pp-vial { position: relative; height: 56px; border-radius: 28px; border: 3px solid var(--ink); background: #FFFBF0;
	box-shadow: inset 0 4px 0 rgba(30, 26, 22, 0.08); }
.pp-vial::before, .pp-vial::after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 3px; background: var(--ink); }
.pp-vial::before { left: calc(50% - 34px); }
.pp-vial::after { left: calc(50% + 31px); }
.pp-bubble { position: absolute; top: 50%; left: 50%; width: 52px; height: 36px; margin: -18px 0 0 -26px; border-radius: 18px;
	background: var(--player); border: 3px solid var(--ink); transition: left 80ms linear; }

/* Labels and headings print straight on the board; tags are for status and counters only. */
#elements > .el-text:not(.size-l):not(.size-xl), .el-number > label, .pp-tagtext {
	clip-path: none !important; filter: none !important; background: none !important; padding: 0 2px !important; margin-bottom: 2px;
}
#elements > .el-text:not(.size-l):not(.size-xl)::before, .pp-tagtext::before { display: none !important; }
.pp-tagtext { display: block; }
/* One field style: ivory fill, 3px ink rim, inset top shadow. */
input, textarea, .pp-dial input { background: var(--ivory) !important; border: 3px solid var(--ink) !important; box-shadow: inset 0 3px 0 rgba(30, 26, 22, 0.1) !important; }
.el.sent input { background: var(--ivory-shade) !important; }
input.pp-invalid { border-width: 4px !important; box-shadow: inset 0 3px 0 rgba(30, 26, 22, 0.1) !important; outline: 0; }
#join-error { background: none !important; clip-path: none !important; padding: 0 2px !important; }
#join-error .pp-ico { width: 34px; height: 34px; padding: 4px; border: 3px solid var(--ink); border-radius: 50%; rotate: -10deg; }
body[data-mood="chaos"] .pp-keys .el-button:not(.pp-numbered) .pp-word { justify-content: center !important; }
body[data-mood="chaos"] .pp-keys .el-button:not(.pp-numbered) .pp-label { text-align: center; }

/* Tall phones: the join card sits under its flap; the watching tag centres in the free space. */
.join { justify-content: flex-start !important; }
.game.pp-watching .pp-watch, .game.pp-idle .pp-watch { margin: auto; align-self: center; }

/* TAUNT has one look: the bubble key, 64px, and the top bar's pieces share one baseline. */
#topbar { align-items: flex-start; min-height: 64px; }
#topbar > .chip, #topbar > #timer:not([hidden]), #topbar .el-button.pp-taunt { height: 64px; min-height: 64px; max-height: 64px; margin-bottom: 0; }
#topbar .el-button.pp-taunt { width: 64px; min-width: 64px; margin-left: auto; }
#topbar .el-button.pp-taunt .pp-label { font-size: 0 !important; letter-spacing: 0; }
#topbar .el-button.pp-taunt .pp-face { padding: 0; justify-content: center; }
#topbar .el-button.pp-taunt .pp-glyph { width: 36px; height: 36px; margin: 0; }
#topbar:has(.pp-taunt) #timer { margin-left: 0; }

/* ================================================================ round 7 */

/* The flap never cuts its words: no clamping at any size. */
#subtitle { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }

/* The answer ribbon has one place at every size: across the flap, covering its words. */

/* Chaos and audience moments keep the audience's hand on the flap: a striped grape spine. */
body[data-mood="chaos"] #heading::before, body[data-mood="crowd"] #heading::before {
	width: 22px;
	background:
		radial-gradient(circle at 50% 26px, var(--brass-hi) 0 3px, var(--brass) 3.5px 6px, var(--ink) 6.5px 7.5px, transparent 8px),
		radial-gradient(circle at 50% calc(100% - 26px), var(--brass-hi) 0 3px, var(--brass) 3.5px 6px, var(--ink) 6.5px 7.5px, transparent 8px),
		repeating-linear-gradient(-45deg, var(--ink) 0 5px, var(--grape) 5px 14px);
	box-shadow: inset -3px 0 0 var(--ink);
}
body[data-mood="chaos"] #heading, body[data-mood="crowd"] #heading { padding-left: 38px; }

/* Places: every finisher gets a rosette under the flap; the winner's is in their colour, the rest in kraft. */
#heading .pp-place { display: none !important; }
#heading:has(.pp-place) { padding-bottom: 16px; margin-bottom: 0; }
body:not([data-mood="win"]) .pp-rosette {
	background: radial-gradient(circle, var(--ivory) 0 40px, var(--ink) 40.5px 44px, transparent 44.5px),
		repeating-conic-gradient(var(--kraft) 0 9deg, var(--kraft-dark) 9deg 18deg);
}
body:not([data-mood="win"]) .pp-podium::before, body:not([data-mood="win"]) .pp-podium::after { background: var(--kraft-dark); }
.game.pp-watching .pp-podium + .pp-watch { margin-top: 8px; }

/* Customiser: a preview you can read; arrows at full touch size. */
.el-image { height: 22vh !important; min-height: 110px !important; }
@media (max-height: 700px) { .el-image { height: 104px !important; min-height: 104px !important; } }
.el-row:has(> .el-text) > .el-button { flex-basis: 68px; min-width: 68px; min-height: 68px; max-height: 68px; }

/* Touch floor: the header key is 66px. */
#topbar > .chip, #topbar > #timer:not([hidden]), #topbar .el-button.pp-taunt { height: 66px; min-height: 66px; max-height: 66px; }
#topbar .el-button.pp-taunt { width: 66px; min-width: 66px; }

/* One key height: 80px everywhere (72px on short phones), primary included; only the big pads differ. */
.pp-keys .el-button, .pp-keys .el-button:not(.pp-primary), .pp-keys[data-count="1"] .el-button:not(.pp-taunt),
.pp-primary-row > .el-button.pp-primary { min-height: 80px; max-height: 80px; }
.pp-keys .el-button.pp-numbered { max-height: none; }
@media (max-height: 700px) {
	.pp-keys .el-button, .pp-keys .el-button:not(.pp-primary), .pp-keys[data-count="1"] .el-button:not(.pp-taunt),
	.pp-primary-row > .el-button.pp-primary { min-height: 72px; max-height: 72px; }
	.pp-keys .el-button.pp-numbered { min-height: 66px; max-height: none; }
}
.pp-keys[data-count="1"] .el-button .pp-label, .pp-keys[data-count="1"] .el-button .pp-action { font-size: 36px; }

/* Sent: nothing moves; the keys that can't be used any more lie flat. */
.el.sent button:disabled { visibility: hidden; height: auto; min-height: 72px; margin-bottom: 10px; border: 3px solid transparent; }
.el-number.sent .pp-step { box-shadow: none; transform: translateY(6px); color: rgba(30, 26, 22, 0.4); border-color: rgba(30, 26, 22, 0.4); pointer-events: none; }
/* the sent brad pins the sent text's own corner */
.el-textinput.sent::after { display: none; }
.el-textinput.sent > label { position: relative; }
.el-textinput.sent > label::after {
	content: ""; position: absolute; bottom: 46px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
	background: radial-gradient(circle at 42% 38%, var(--brass-hi) 0 4px, var(--brass) 5px 8px, var(--ink) 8.5px 10px, var(--ivory) 10.5px 13px, var(--ink) 13.5px 15px);
	filter: drop-shadow(0 2px 1px var(--shadow)); z-index: 2;
}

/* ================================================================ round 8 */

/* Short phones: a compact flap so timed choices fit. */
@media (max-height: 700px) {
	#heading { padding: 10px 12px 10px 30px; }
	#title { font-size: 36px; line-height: 0.96; }
	#subtitle { margin-top: 4px; line-height: 1.04; }
	#heading::before { background:
		radial-gradient(circle at 50% 18px, var(--brass-hi) 0 3px, var(--brass) 3.5px 6px, var(--ink) 6.5px 7.5px, transparent 8px),
		radial-gradient(circle at 50% calc(100% - 18px), var(--brass-hi) 0 3px, var(--brass) 3.5px 6px, var(--ink) 6.5px 7.5px, transparent 8px),
		var(--ink); }
	.pp-keys .el-button.pp-numbered { min-height: 62px; }
	.pp-numbered .pp-face { min-height: 58px; padding-top: 2px; padding-bottom: 0; gap: 10px; }
	.pp-numbered .pp-label { line-height: 0.94; }
	.pp-num { width: 40px; height: 40px; }
	.game { padding-bottom: calc(16px + var(--safe-bottom)); }
}

/* Keys grow with a two-line word instead of squeezing it. */
.pp-keys .el-button, .pp-keys .el-button:not(.pp-primary), .pp-primary-row > .el-button.pp-primary { max-height: none !important; }
.pp-keys .pp-label { line-height: 1; }

/* One or two keys and nothing else: they take the phone. */
.pp-keys[data-count="1"] .el-button:not(.pp-taunt) { min-height: clamp(110px, 36vh, 340px) !important; }
.pp-keys[data-count="2"]:not(:has(.pp-primary)) .el-button { min-height: clamp(80px, 18vh, 170px) !important; }
.pp-keys[data-count="1"] .el-button:not(.pp-taunt) .pp-label, .pp-keys[data-count="1"] .el-button:not(.pp-taunt) .pp-action { font-size: 48px; }

/* Chaos plates: one geometry, an 8px inset inside the stripes. */
body[data-mood="chaos"] .pp-keys .el-button:not(.pp-quiet):not(.pp-player) .pp-face { padding: 8px; align-items: stretch; }
body[data-mood="chaos"] .pp-keys .el-button:not(.pp-quiet):not(.pp-player):not(.pp-numbered) .pp-word { flex: 1 1 auto; align-self: stretch; padding: 8px 12px 5px; }
body[data-mood="chaos"] .pp-keys .el-button:not(.pp-numbered) { min-height: 80px; }

/* One shelf for every footer: kraft, a folded lip, a soft shadow onto the list. */
.choice-option.pp-quiet, .game.scrolls #elements > .pp-keys:last-child {
	box-shadow: 0 6px 0 var(--ink), 0 -4px 0 10px var(--kraft-dark), 0 0 0 10px var(--kraft), 0 -16px 16px 4px rgba(40, 22, 5, 0.25);
}
.game.scrolls #elements > .pp-keys:last-child { box-shadow: 0 -3px 0 var(--kraft-dark), 0 -14px 14px -6px rgba(40, 22, 5, 0.3); margin-top: 12px; }
.el-choice:has(.pp-quiet) .choice-grid { padding-bottom: 12px; }
@media (max-height: 700px) { .el-image { height: 80px !important; min-height: 80px !important; } }

/* The watching tag: one slot, 28px under the flap, sized to its words, on one line. */
.game.pp-watching .pp-watch, .game.pp-idle .pp-watch { margin: 28px auto auto 18px !important; align-self: flex-start; width: max-content; max-width: 100%; }
.pp-watch span { max-width: none; white-space: nowrap; }
.game.pp-watching .pp-watch .pp-ico, .game.pp-idle .pp-watch .pp-ico { width: 44px; height: 44px; }
.game.pp-watching .pp-podium + .pp-watch { margin-top: 12px !important; }

/* Other places: an ivory rosette with ink-cut petals. */
body:not([data-mood="win"]) .pp-rosette {
	background: radial-gradient(circle, var(--ivory) 0 40px, var(--ink) 40.5px 44px, transparent 44.5px),
		repeating-conic-gradient(var(--ivory) 0 9deg, var(--ivory-deep) 9deg 18deg);
}
body:not([data-mood="win"]) .pp-podium { filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink)); }
body:not([data-mood="win"]) .pp-podium::before, body:not([data-mood="win"]) .pp-podium::after { background: var(--ivory-deep); }

/* A pick sinks straight down onto its skirt and is pinned. */
.choice-option.picked { box-shadow: 0 2px 0 var(--ink) !important; transform: translateY(4px); padding-left: 18px; border-width: 4px; }
@media (max-width: 400px) {
	.pp-watch span { white-space: normal; max-width: 6.6em; text-wrap: balance; }
}

/* The footer shelf runs to the bottom edge: nothing scrolls into view beneath it. */
.game.scrolls #elements > .pp-keys:last-child { margin-bottom: calc(-16px - var(--safe-bottom)); padding-bottom: calc(14px + var(--safe-bottom)); }
.choice-option.pp-quiet { box-shadow: 0 6px 0 var(--ink), 0 -4px 0 10px var(--kraft-dark), 0 0 0 10px var(--kraft), 0 30px 0 12px var(--kraft), 0 -16px 16px 4px rgba(40, 22, 5, 0.25); }
.game.scrolls #elements > .pp-keys:last-child { box-shadow: 0 -3px 0 var(--kraft-dark), 0 -14px 14px -6px rgba(40, 22, 5, 0.3), 0 40px 0 0 var(--kraft); }
