/* Jolly's Workshop (workshop.html). Builds on kitchen.css (same page frame, stage and dock). */
.ws-stage { background: #5A341F; }
#scene [data-go] { cursor: pointer; }
#scene [data-go]:focus-visible { outline: none; }
#scene [data-go]:focus-visible .ws-hot, #scene [data-go]:hover .ws-hot { opacity: 0.55; }
.ws-hot { opacity: 0; transition: opacity 0.2s; }
.ws-belt { animation: ws-belt 9s linear infinite; }
@keyframes ws-belt { from { transform: translateX(-160px); } to { transform: translateX(640px); } }
.ws-hammer { transform-box: fill-box; transform-origin: 10% 90%; animation: ws-hammer 0.6s ease-in-out infinite alternate; }
@keyframes ws-hammer { from { transform: rotate(10deg); } to { transform: rotate(-40deg); } }
.ws-elfbob { animation: ws-elfbob 1.4s ease-in-out infinite alternate; }
@keyframes ws-elfbob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
.ws-sway { transform-box: fill-box; transform-origin: 50% 0%; animation: ws-sway 3s ease-in-out infinite alternate; }
@keyframes ws-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
#jolly.happy .ws-jbody { animation: ws-hop 0.35s ease-in-out 3 alternate; }
@keyframes ws-hop { to { transform: translateY(-10px); } }
#jolly.sad .ws-jhead { transform-box: fill-box; transform-origin: 50% 90%; animation: ws-shake 0.25s ease-in-out 4 alternate; }
@keyframes ws-shake { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
#jolly.walk .ws-jbody { transform-box: fill-box; transform-origin: 50% 100%; animation: ws-waddle 0.3s ease-in-out infinite alternate; }
@keyframes ws-waddle { from { transform: rotate(-6deg); } to { transform: rotate(6deg) translateY(-4px); } }

/* the letter in the dock */
.ws-letter {
  background: #FBF1DF; color: #3A2018; border-radius: 16px; padding: 14px 16px 12px; position: relative;
  box-shadow: 0 0 0 3px #C9A24A; background-image: repeating-linear-gradient(transparent 0 25px, rgba(158, 43, 58, 0.1) 25px 26px);
}
.ws-letter-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ws-count { font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #9E2B3A; }
.ws-canes { display: flex; gap: 2px; }
.ws-canes svg { width: 20px; height: 26px; }
.ws-canes .lost { opacity: 0.2; }
.ws-letter p { margin: 0; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 17px; line-height: 1.4; }
.ws-letter .ws-sign { text-align: right; margin-top: 2px; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ws-chip { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #F1E0C8; color: #6B2E1E; }
.ws-chip.set { background: #143823; color: #F7EEDC; }
.ws-progress { height: 8px; border-radius: 4px; background: #EAD8BD; margin-top: 10px; overflow: hidden; }
.ws-progress span { display: block; height: 100%; background: #9E2B3A; }
.ws-dock .gk-actions button { padding: 10px 16px; font-size: 15px; }

/* panels that open over the workshop */
.ws-panel { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 12px; background: rgba(30, 10, 8, 0.55); }
.ws-panel[hidden] { display: none; }
.ws-panel-in { width: 100%; max-height: 100%; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; color: #3A2018; background: #FBF1DF; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
.ws-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 10px 18px; }
.ws-head h2 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-variation-settings: "SOFT" 100; font-size: clamp(20px, 4.2vw, 26px); color: #9E2B3A; }
.ws-body { overflow-y: auto; padding: 0 16px 16px; min-height: 0; }
.ws-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #9E2B3A; color: #FBF1DF; font-size: 26px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.ws-panel button:focus-visible, .ws-panel input:focus-visible { outline: 3px solid #C9A24A; outline-offset: 2px; }

/* the naughty and nice list: a long parchment scroll */
.ws-scroll .ws-panel-in { background: #F6E7C6; box-shadow: 0 0 0 6px #C9A24A, 0 20px 40px rgba(0, 0, 0, 0.45); }
.ws-list { list-style: none; margin: 0; padding: 0; columns: 2 180px; column-gap: 22px; }
.ws-list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 8px; padding: 6px 2px; border-bottom: 1px dashed rgba(107, 46, 30, 0.3); font-family: 'Fraunces', Georgia, serif; font-style: italic; font-size: 17px; }
.ws-list .nice { color: #1F6B3A; font-style: normal; font-weight: 800; font-family: 'Nunito', sans-serif; font-size: 14px; }
.ws-list .naughty { color: #B3202E; font-style: normal; font-weight: 800; font-family: 'Nunito', sans-serif; font-size: 14px; }

/* the Snowbook laptop */
.ws-laptop .ws-panel-in { background: #F4B6C2; padding: 12px; box-shadow: 0 0 0 4px #E8909F, 0 20px 40px rgba(0, 0, 0, 0.45); }
.ws-laptop .ws-head { padding: 0 0 10px 6px; }
.ws-laptop .ws-head h2 { color: #7E1F2B; display: flex; align-items: center; gap: 8px; }
.ws-screen { background: #EAF5FB; border-radius: 12px; border: 6px solid #3A2018; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.ws-search { margin: 10px; padding: 12px 14px; border-radius: 999px; border: 2px solid #9CC3E0; font: 700 16px 'Nunito', sans-serif; color: #3A2018; background: #fff; }
.ws-results { overflow-y: auto; padding: 0 10px 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.ws-results button { min-height: 44px; border-radius: 10px; border: 0; background: #fff; font: 800 15px 'Nunito', sans-serif; color: #2C3E64; cursor: pointer; text-align: left; padding: 8px 10px; }
.ws-results button:hover { background: #D6EAF6; }
.ws-profile { padding: 14px; overflow-y: auto; }
.ws-prof-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.ws-prof-top svg { width: 78px; height: 78px; flex: 0 0 auto; }
.ws-prof-top h3 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 24px; color: #2C3E64; }
.ws-prof-top p { margin: 2px 0 0; font-weight: 700; color: #4A6A8C; }
.ws-prof-box { background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.ws-prof-box b { display: block; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #4A6A8C; margin-bottom: 4px; }
.ws-prof-box ul { margin: 0; padding-left: 18px; font-weight: 700; }
.ws-back { margin: 0 0 10px; min-height: 44px; border-radius: 999px; border: 2px solid #9CC3E0; background: #fff; font: 800 14px 'Nunito', sans-serif; padding: 8px 14px; cursor: pointer; color: #2C3E64; }

/* the toy shelf and the wrapping papers */
.ws-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ws-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; border: 3px solid transparent; background: #FFF8EE; cursor: pointer; font: 800 14px 'Nunito', sans-serif; color: #3A2018; text-align: center; line-height: 1.2; }
.ws-pick:hover { border-color: rgba(158, 43, 58, 0.4); }
.ws-pick[aria-pressed="true"] { border-color: #9E2B3A; box-shadow: 0 0 0 3px #F6C14B; }
.ws-pick img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.ws-pick svg { width: 100%; aspect-ratio: 1; border-radius: 10px; }
.ws-pick small { font-weight: 700; color: #6B2E1E; }
.ws-note { margin: 0 0 10px; font-weight: 700; color: #6B2E1E; }

.ws-fade { position: absolute; inset: 0; z-index: 5; background: #FFE9A8; opacity: 0; transition: opacity 0.9s; }
.ws-fade.on { opacity: 1; }
.ws-win { background: #143823; color: #F7EEDC; border-radius: 16px; padding: 14px 16px; box-shadow: 0 0 0 3px #C9A24A; }
.ws-win b.code { font-family: 'Fraunces', Georgia, serif; font-size: 24px; color: #F6C14B; letter-spacing: 0.06em; }

#chute.ws-ready .ws-hot { opacity: 0.7; }
#scene #wrapped { touch-action: none; cursor: grab; }

/* v2.13: more tools */
.ws-tools { display: flex; flex-direction: column; gap: 6px; }
.ws-tools-label { font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #C9A24A; }
.ws-dock .gk-actions { gap: 8px; }
.ws-dock .gk-actions button { padding: 9px 14px; font-size: 14.5px; min-height: 44px; }
.ws-hardbtn { align-self: flex-start; font: 800 13px 'Nunito', sans-serif; min-height: 40px; padding: 8px 14px; border-radius: 999px; cursor: pointer; background: transparent; color: #E9C99A; border: 2px dashed rgba(233, 201, 154, 0.6); }
.ws-hardbtn[aria-pressed="true"] { background: #B3202E; color: #FFF8EE; border: 2px solid #F6C14B; }
.ws-timer { font-weight: 800; font-size: 14px; color: #143823; background: #DCEBDD; border-radius: 10px; padding: 6px 10px; margin-bottom: 8px; }
.ws-timer b { font-variant-numeric: tabular-nums; font-size: 17px; }
.ws-timer.low { background: #F7D2D6; color: #9E2B3A; animation: ws-blinkbg 0.8s ease-in-out infinite alternate; }
@keyframes ws-blinkbg { to { background: #F2B3BB; } }
.ws-ringing { display: block; width: 100%; margin-bottom: 8px; min-height: 44px; border: 0; border-radius: 12px; background: #B3202E; color: #FFF8EE; font: 800 15px 'Nunito', sans-serif; cursor: pointer; animation: ws-buzz 0.5s ease-in-out infinite alternate; }
@keyframes ws-buzz { from { transform: rotate(-1deg); } to { transform: rotate(1deg); } }
.ws-letter .ws-ps { font-size: 15.5px; margin-top: 6px; color: #6B2E1E; }
.ws-letter .ws-callnote { font-family: 'Nunito', sans-serif; font-style: normal; font-size: 14px; font-weight: 700; margin-top: 6px; background: #FFF3C4; border-radius: 8px; padding: 6px 8px; }
#phone .ws-ringlines { opacity: 0; }
#phone.ringing .ws-ringlines { opacity: 1; animation: ws-ring 0.4s ease-in-out infinite alternate; }
#phone.ringing .ws-handset { transform-box: fill-box; transform-origin: 50% 100%; animation: ws-hop2 0.18s ease-in-out infinite alternate; }
@keyframes ws-ring { to { opacity: 0.3; } }
@keyframes ws-hop2 { to { transform: translateY(-4px) rotate(4deg); } }
.ws-spin { animation: ws-spin 8s linear infinite; }
@keyframes ws-spin { from { transform: translateX(-12px); } to { transform: translateX(12px); } }
.ws-chute.ws-ready .ws-rim { stroke: #FFF3C4; stroke-width: 7; }

.ws-sec { margin: 14px 0 8px; font-family: 'Fraunces', Georgia, serif; font-size: 18px; color: #9E2B3A; }
.ws-sec:first-child { margin-top: 0; }
.ws-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ws-boxpick svg { aspect-ratio: 6 / 5; background: #F1E0C8; }
.ws-papers { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.ws-ribbons { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-rib { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 3px solid transparent; background: #FFF8EE; font: 800 14px 'Nunito', sans-serif; color: #3A2018; cursor: pointer; }
.ws-rib span { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.15); }
.ws-rib[aria-pressed="true"], .ws-tagpick[aria-pressed="true"] { border-color: #9E2B3A; box-shadow: 0 0 0 3px #F6C14B; }
.ws-tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ws-tagpick { min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 3px solid transparent; background: #FFF8EE; font: italic 700 15px 'Fraunces', Georgia, serif; color: #3A2018; cursor: pointer; text-align: left; }
.ws-done { display: block; margin: 16px 0 0 auto; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 0; background: #9E2B3A; color: #FFF8EE; font: 800 15px 'Nunito', sans-serif; cursor: pointer; }
.ws-phrases { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 20px; }
.ws-phrases li { break-inside: avoid; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 2px; border-bottom: 1px dashed rgba(107, 46, 30, 0.3); }
.ws-phrases small { display: block; font-size: 12.5px; color: #6B2E1E; font-weight: 600; }
.ws-hello { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 700; color: #1F6B3A; text-align: right; }
.ws-globe { padding-bottom: 10px; }
.ws-gresult { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 12px 6px; text-align: center; }
.ws-globeart { width: 150px; height: 150px; }
.ws-gtown { margin: 0; font-size: 17px; color: #2C3E64; }
.ws-call .ws-bubble { background: #FFF3C4; border-radius: 16px; padding: 14px 16px; font-size: 17px; line-height: 1.45; position: relative; margin: 4px 0 0; }
.ws-chutepicks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ws-chutepick { min-height: 56px; border-radius: 14px; border: 0; background: var(--c); color: #FFF8EE; font: 800 16px 'Nunito', sans-serif; cursor: pointer; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25); }
