@font-face { font-family: "Baloo 2"; src: url("../fonts/baloo2.woff2") format("woff2"); font-weight: 500 800; font-display: block; }
@font-face { font-family: "Patrick Hand"; src: url("../fonts/patrickhand.woff2") format("woff2"); font-display: block; }
:root {
  --paper: #fdf4dc; --paper2: #f7e8c4; --kraft: #dcb98a; --kraft2: #c9a06c; --ink: #5a3a28; --soft: #9a7a62; --red: #e2664f; --red2: #b9483a;
  --gold: #f2b84b; --green: #5fae6e; --teal: #6fbfae; --line: #ead3a6; --wood: #c58a58; --wood2: #a36b42; --chalk: #3d5a4c; --shadow: rgba(100, 60, 25, .3);
  --font: "Baloo 2", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --hand: "Patrick Hand", "Bradley Hand", "Noteworthy", "Chalkboard SE", "Marker Felt", var(--font);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .32 0 0 0 0 .15 0 0 0 .1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  --woodtex: repeating-linear-gradient(2deg, rgba(90, 45, 15, .09) 0 2px, transparent 2px 11px), repeating-linear-gradient(-1deg, rgba(255, 230, 190, .12) 0 1px, transparent 1px 17px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #f6e8cf; font-family: var(--font); color: var(--ink); user-select: none; -webkit-user-select: none; }
canvas#c { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; }
#ui, #world, #rain { position: fixed; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
#world, #hud, #toasts, #prompt, #knead, #fade { pointer-events: none !important; }
#hud button { pointer-events: auto; }
.hide { display: none !important; }
button { font-family: var(--font); }
img { -webkit-user-drag: none; }
kbd { display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; padding: 0 .4em; border-radius: .5em; background: linear-gradient(#fff8e6, #f3dfb4); color: var(--ink); font: 800 .82em var(--font); box-shadow: 0 3px 0 #b98a52, 0 0 0 2px #cfa16b; }
.coin { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3b8, #f5c33b 55%, #d9962a); box-shadow: inset 0 -3px 0 rgba(160, 100, 20, .45), 0 0 0 2px #c98a2a; display: inline-block; position: relative; flex: none; }
.coin::after { content: ''; position: absolute; left: 50%; top: 50%; width: 34%; height: 52%; transform: translate(-50%, -50%) rotate(-25deg); border-radius: 50%; background: rgba(160, 100, 20, .42); box-shadow: inset 0 0 0 2px rgba(255, 240, 170, .6); }
.coin.sm { width: 19px; height: 19px; vertical-align: -4px; box-shadow: inset 0 -2px 0 rgba(160, 100, 20, .45), 0 0 0 1.5px #c98a2a; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes bump { 30% { transform: scale(1.16) rotate(-3deg); } }
@keyframes bob { to { transform: translateY(5px); } }
@keyframes sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes ink { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- botones ---------- */
.btn { font: 800 18px var(--font); color: var(--ink); background: linear-gradient(#fffaf0, #f6e6c2); border: none; border-radius: 16px; padding: 12px 24px; cursor: pointer; box-shadow: 0 5px 0 #caa06a, 0 0 0 3px #fff inset, 0 9px 16px rgba(90, 50, 20, .18); transition: transform .08s, box-shadow .08s, filter .15s; display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.btn:hover { filter: brightness(1.04); transform: translateY(-1px); } .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #caa06a, 0 0 0 3px #fff inset; }
.btn.main { background: linear-gradient(#f08a70, var(--red)); color: #fff; box-shadow: 0 5px 0 var(--red2), 0 0 0 3px rgba(255, 255, 255, .35) inset, 0 9px 16px rgba(90, 50, 20, .22); text-shadow: 0 1px 0 rgba(120, 40, 20, .4); }
.btn.sm { padding: 7px 14px; font-size: 15px; border-radius: 12px; box-shadow: 0 3px 0 #caa06a, 0 0 0 2px #fff inset; }
.btn[disabled] { filter: grayscale(.7) opacity(.55); cursor: default; pointer-events: none; }
.x { position: absolute; right: -14px; top: -14px; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--red); font: 800 22px var(--font); color: #fff; cursor: pointer; box-shadow: 0 4px 0 var(--red2), 0 0 0 3px #fff inset; z-index: 5; }
.x:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red2), 0 0 0 3px #fff inset; }

/* ---------- HUD ---------- */
#cal { position: absolute; left: 22px; top: 18px; display: flex; gap: 12px; align-items: flex-start; filter: drop-shadow(0 6px 0 var(--shadow)) drop-shadow(0 12px 14px rgba(90, 50, 20, .2)); }
.leaf { width: 96px; background: var(--paper) var(--grain); border-radius: 12px 12px 4px 4px; text-align: center; overflow: hidden; transform: rotate(-3deg); position: relative; padding-bottom: 12px; clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 86% 93%, 78% 100%, 70% 93%, 62% 100%, 54% 93%, 46% 100%, 38% 93%, 30% 100%, 22% 93%, 14% 100%, 6% 93%, 0 100%); }
.leaf .top { background: var(--red); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; padding: 9px 0 5px; position: relative; }
.leaf .top::before, .leaf .top::after { content: ''; position: absolute; top: 3px; width: 9px; height: 9px; border-radius: 50%; background: #7a2f25; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .3); } .leaf .top::before { left: 22px; } .leaf .top::after { right: 22px; }
.leaf small { display: block; font-weight: 800; font-size: 11px; color: var(--soft); margin-top: 4px; letter-spacing: 1px; text-transform: uppercase; } .leaf b { display: block; font-size: 46px; line-height: .95; font-weight: 900; }
.leaf.flip { animation: leaf .6s cubic-bezier(.2, 1.4, .4, 1); } @keyframes leaf { 0% { transform: rotate(-3deg) translateY(-30px) rotateX(80deg); opacity: 0; } }
.clock { background: var(--paper) var(--grain); border-radius: 18px; padding: 8px 16px 10px; min-width: 168px; border: 3px solid #fff; margin-top: 4px; }
.sunarc { position: relative; height: 40px; margin: 0 2px; } .sunarc svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#sun { position: absolute; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b8, #ffc83d 60%, #f29a2e); box-shadow: 0 0 0 3px rgba(255, 210, 90, .35), 0 0 12px rgba(255, 190, 60, .8); }
.clock .row2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; } #dc-time { font-size: 32px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; } #dc-wx { width: 34px; height: 34px; } #dc-wx svg { width: 100%; height: 100%; }
#dc-antojo { position: absolute; left: 8px; top: 108px; background: var(--chalk); color: #fff6da; border: 5px solid var(--wood); border-radius: 10px; padding: 5px 12px 5px 6px; font: 700 15px var(--hand); display: flex; align-items: center; gap: 6px; white-space: nowrap; transform: rotate(1.5deg); box-shadow: inset 0 0 14px rgba(0, 0, 0, .25); } #dc-antojo:empty { display: none; } #dc-antojo img { width: 36px; height: 36px; margin: -8px 0; } #dc-antojo b { color: #ffd98a; font-size: 16px; }
#topright { position: absolute; right: 22px; top: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
#money { display: flex; align-items: center; gap: 10px; padding: 9px 20px 9px 34px; background: var(--kraft) var(--grain); font-weight: 900; font-size: 26px; clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%); position: relative; filter: drop-shadow(0 5px 0 var(--shadow)); font-variant-numeric: tabular-nums; }
#money::before { content: ''; position: absolute; left: 14px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #7a5a3a; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .35); }
#money.bump { animation: bump .35s; }
#rep { display: flex; align-items: center; gap: 10px; background: var(--paper) var(--grain); border: 3px solid #fff; border-radius: 40px 18px 18px 40px; padding: 6px 16px 8px 6px; box-shadow: 0 5px 0 var(--shadow); min-width: 252px; }
.rosette { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 22px; background: radial-gradient(circle, #f48a96 0 52%, transparent 53%), repeating-conic-gradient(#ef6f7f 0 15deg, #ffb3bd 15deg 30deg); box-shadow: 0 3px 0 rgba(150, 50, 60, .4); } .rosette b { font-size: 19px; font-weight: 900; text-shadow: 0 1px 0 rgba(150, 50, 60, .6); }
#rep-name { font-weight: 800; font-size: 15px; }
.loafbar { height: 13px; width: 178px; border-radius: 10px; background: #ead9b6; margin-top: 4px; overflow: hidden; box-shadow: inset 0 2px 0 rgba(120, 80, 40, .18); } .loafbar i { display: block; height: 100%; border-radius: 10px; background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 240, 200, .75) 14px 18px), linear-gradient(#f0b354, #d98a2e); transition: width .6s cubic-bezier(.2, 1.4, .4, 1); box-shadow: inset 0 -3px 0 rgba(150, 80, 20, .35); }
#shelf { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; max-width: 300px; padding-top: 8px; border-top: 3px solid rgba(255, 255, 255, .85); min-width: 60px; filter: drop-shadow(0 3px 0 var(--shadow)); } #shelf:empty { display: none; }
.sh { position: relative; background: var(--paper) var(--grain); border-radius: 6px 6px 12px 12px; padding: 12px 6px 4px; text-align: center; font-weight: 900; font-size: 15px; width: 54px; transform-origin: 50% -8px; animation: sway 3.4s ease-in-out infinite; clip-path: polygon(22% 0, 78% 0, 100% 16%, 100% 100%, 0 100%, 0 16%); }
.sh:nth-child(2n) { animation-duration: 4.1s; animation-delay: -1s; } .sh::before { content: ''; position: absolute; left: 50%; top: 4px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #9a7a5a; } .sh img { width: 44px; height: 44px; display: block; margin: -2px auto -4px; }
#goal { position: absolute; left: 26px; bottom: 26px; padding: 12px 20px 12px 12px; display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 17px; max-width: 540px; background: #fff8d6 var(--grain); transform: rotate(-1.2deg); box-shadow: 0 5px 0 var(--shadow), 0 10px 20px rgba(90, 50, 20, .18); border-radius: 3px 14px 3px 12px; }
#goal::before { content: ''; position: absolute; left: 50%; top: -11px; width: 86px; height: 22px; margin-left: -43px; background: repeating-linear-gradient(45deg, rgba(226, 102, 79, .75) 0 8px, rgba(255, 190, 170, .75) 8px 16px); transform: rotate(2deg); border-radius: 2px; }
#goal img { width: 40px; height: 40px; margin: -6px 0; flex: none; } #goal.flash { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
#keys { position: absolute; right: 104px; bottom: 30px; display: flex; gap: 14px; font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(60, 30, 10, .8); align-items: center; }
#btn-lib { position: absolute; right: 22px; bottom: 20px; width: 64px; height: 70px; border: none; cursor: pointer; background: linear-gradient(90deg, #c9523f 0 14px, var(--red) 14px); border-radius: 6px 12px 12px 6px; box-shadow: 0 5px 0 var(--red2), 0 10px 16px rgba(90, 50, 20, .25); transform: rotate(4deg); transition: transform .12s; }
#btn-lib::before { content: ''; position: absolute; left: 22px; right: 9px; top: 14px; height: 24px; background: var(--paper); border-radius: 4px; box-shadow: inset 0 -9px 0 -6px var(--line), inset 0 -17px 0 -14px var(--line); } #btn-lib::after { content: 'L'; position: absolute; right: -8px; bottom: -8px; width: 24px; height: 24px; border-radius: 8px; background: #fff8e6; color: var(--ink); font: 800 13px var(--font); display: grid; place-items: center; box-shadow: 0 2px 0 #b98a52, 0 0 0 2px #cfa16b; }
#btn-lib:hover { transform: rotate(-2deg) scale(1.08); } #btn-lib.dot { animation: bump 1.2s infinite; }

/* ---------- sobre el mundo ---------- */
.bub { position: absolute; left: 0; top: 0; will-change: transform; }
.bub .in { transform: translate(-50%, -100%); background: var(--paper); border: 3px solid #fff; border-radius: 22px; padding: 4px 8px 9px; box-shadow: 0 4px 0 var(--shadow); position: relative; animation: pop .3s cubic-bezier(.2, 1.6, .4, 1); }
.bub.side .in { transform: translate(-100%, -50%); }
.bub .in::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 16px; height: 16px; background: var(--paper); transform: translateX(-50%) rotate(45deg); border-radius: 3px; border: 3px solid #fff; border-left: none; border-top: none; box-shadow: 3px 3px 0 var(--shadow); }
.bub.side .in::after { left: auto; right: -10px; bottom: 50%; transform: translateY(50%) rotate(-45deg); }
.bub img { width: 54px; height: 54px; display: block; } .bub .wait { position: absolute; left: 11px; right: 11px; bottom: 5px; height: 5px; border-radius: 5px; background: #ecdcba; overflow: hidden; } .bub .wait i { display: block; height: 100%; background: var(--green); border-radius: 5px; }
.bub.say .in { padding: 9px 15px; font-weight: 700; font-size: 15px; width: max-content; max-width: 250px; text-align: center; line-height: 1.25; }
.bub .nm { position: absolute; left: 50%; top: -12px; transform: translateX(-50%) rotate(-2deg); background: var(--red); color: #fff; font-size: 11.5px; font-weight: 800; padding: 2px 10px; border-radius: 99px; white-space: nowrap; box-shadow: 0 2px 0 var(--red2); }
.bub.emo .in { padding: 2px 9px; font-size: 26px; font-weight: 900; line-height: 1.2; min-width: 44px; text-align: center; }
.gauge { position: absolute; left: 0; top: 0; }
.gauge .in { transform: translate(-50%, -100%); background: var(--paper); border: 3px solid #fff; border-radius: 16px; padding: 6px 10px 9px; box-shadow: 0 4px 0 var(--shadow); min-width: 164px; font-weight: 800; font-size: 13.5px; text-align: center; }
.gauge .track { position: relative; height: 16px; border-radius: 9px; background: linear-gradient(90deg, #f7ead0 0 28%, #f1d9a2 28% 50%, #f2b84b 50% 78.5%, #a8642a 78.5% 92%, #5a3524 92%); margin-top: 5px; box-shadow: inset 0 2px 0 rgba(90, 50, 20, .2); }
.gauge.ferm .track { background: #ecdcba; overflow: hidden; } .gauge.ferm .track i { display: block; height: 100%; background: repeating-linear-gradient(115deg, transparent 0 10px, rgba(255, 255, 255, .5) 10px 14px), linear-gradient(#ffe7a8, #f2c96b); border-radius: 9px; }
.gauge .mark { position: absolute; top: -9px; width: 30px; height: 30px; margin-left: -15px; } .gauge .mark img { width: 100%; height: 100%; filter: drop-shadow(0 2px 0 rgba(90, 50, 20, .5)); }
.gauge.ready .in { background: #fff3b8; animation: wig .6s infinite; } @keyframes wig { 50% { transform: translate(-50%, -106%) rotate(-2deg); } }
.float { position: absolute; left: 0; top: 0; font-weight: 900; font-size: 24px; color: #fff; text-shadow: 0 2px 0 rgba(120, 70, 20, .85), 0 0 8px rgba(120, 70, 20, .4); white-space: nowrap; animation: floatup 1.3s cubic-bezier(.2, .8, .3, 1) forwards; } .float small { font-size: 16px; color: #ffe9a8; }
.float.heart { color: #ff8fa3; font-size: 34px; } .float.star { color: #ffe27a; }
@keyframes floatup { 0% { transform: translate(-50%, 0) scale(.5); opacity: 0; } 15% { transform: translate(-50%, -18px) scale(1.15); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(-50%, -70px) scale(1); opacity: 0; } }
#prompt { position: absolute; left: 0; top: 0; }
#prompt .in { transform: translate(-50%, -100%); background: var(--paper); border: 3px solid #fff; color: var(--ink); padding: 6px 16px 6px 7px; border-radius: 999px; font-weight: 800; font-size: 16px; display: flex; gap: 9px; align-items: center; white-space: nowrap; box-shadow: 0 4px 0 var(--shadow); }
#prompt .in.no { background: #e9dfcc; color: var(--soft); padding-left: 16px; }

/* ---------- amasado ---------- */
#knead { position: absolute; left: 50%; margin-left: -280px; bottom: 4%; text-align: center; width: 560px; }
.k-title { display: inline-block; font: 700 22px var(--hand); color: #fff6da; background: var(--chalk); border: 5px solid var(--wood); border-radius: 12px; padding: 4px 22px; margin-bottom: 6px; transform: rotate(-2deg); box-shadow: 0 4px 0 var(--shadow); }
.k-stage { display: flex; align-items: center; justify-content: center; gap: 26px; height: 210px; }
.k-mid { position: relative; width: 210px; height: 210px; flex: none; }
.k-target, .k-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.k-target { width: 112px; height: 112px; background: radial-gradient(circle at 38% 32%, #fffaf0, #f6e4bd 70%, #e6cd9c); box-shadow: 0 6px 0 rgba(120, 80, 40, .35), 0 0 0 6px rgba(255, 255, 255, .55); display: grid; place-items: center; transition: border-radius .2s; }
.k-target b { font-size: 34px; color: #c9a06a; font-weight: 900; }
.k-ring { width: 210px; height: 210px; border: 9px dotted #fff; filter: drop-shadow(0 2px 0 rgba(120, 70, 20, .5)); }
.k-target.hitl { animation: squishl .28s; } .k-target.hitr { animation: squishr .28s; } .k-target.hit { animation: squish .3s; }
@keyframes squishl { 30% { transform: translate(-36%, -48%) scale(1.35, .72) rotate(8deg); } 65% { transform: translate(-52%, -51%) scale(.94, 1.1); } }
@keyframes squishr { 30% { transform: translate(-64%, -48%) scale(1.35, .72) rotate(-8deg); } 65% { transform: translate(-48%, -51%) scale(.94, 1.1); } }
@keyframes squish { 30% { transform: translate(-50%, -44%) scale(1.25, .7); } 65% { transform: translate(-50%, -52%) scale(.92, 1.12); } }
.k-hand { width: 92px; height: 92px; border-radius: 50%; background: var(--paper) var(--grain); border: 4px solid #fff; box-shadow: 0 5px 0 var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; opacity: .45; transition: transform .12s cubic-bezier(.2, 1.8, .4, 1), opacity .12s; font-size: 22px; }
.k-hand small { font-size: 11px; font-weight: 800; color: var(--soft); } .k-hand.on { opacity: 1; transform: scale(1.18); box-shadow: 0 5px 0 var(--shadow), 0 0 0 6px rgba(255, 220, 120, .9); } .k-hand.press { transform: scale(.86); }
.k-dots { display: flex; gap: 8px; justify-content: center; margin-top: 4px; } .k-dots i { width: 26px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .5); box-shadow: 0 3px 0 rgba(120, 70, 20, .4); }
.k-dots i.p { background: radial-gradient(circle at 40% 30%, #ffe08a, #e9a53a); } .k-dots i.g { background: #f6dba0; } .k-dots i.m { background: #cdb9a0; }
.k-hold { position: relative; height: 30px; width: 380px; margin: 10px auto 0; border-radius: 16px; background: #ecdcba; border: 4px solid #fff; box-shadow: 0 4px 0 var(--shadow); overflow: visible; } .k-hold .zone { position: absolute; left: 70%; width: 18%; top: 0; bottom: 0; background: repeating-linear-gradient(115deg, #f2b84b 0 8px, #ffd97a 8px 16px); border-radius: 6px; } .k-hold i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 12px; background: linear-gradient(#fffaf0, #f3dfb4); box-shadow: inset 0 -4px 0 rgba(160, 110, 50, .25); mix-blend-mode: multiply; } .k-hold span { position: absolute; left: 0; right: 0; top: 36px; font-weight: 800; font-size: 14px; color: #fff; text-shadow: 0 1px 3px rgba(60, 30, 10, .9); }
.k-combo { position: absolute; right: 30px; top: 70px; font-weight: 900; font-size: 30px; color: #ffe27a; text-shadow: 0 3px 0 rgba(120, 70, 20, .85); rotate: 8deg; } .k-combo.pop { animation: bump .3s; }
.k-word { height: 34px; font-weight: 900; font-size: 26px; color: #fff; text-shadow: 0 2px 0 rgba(120, 70, 20, .85); margin-top: 26px; }
.fly { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px; pointer-events: none; z-index: 3; filter: drop-shadow(0 6px 4px rgba(90, 50, 20, .35)); }

/* ---------- avisos y diálogo ---------- */
#toasts { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; z-index: 3; }
.toast { background: var(--kraft) var(--grain); color: var(--ink); font-weight: 800; font-size: 16.5px; padding: 9px 22px 9px 34px; clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%); animation: toast 3s forwards; display: flex; gap: 8px; align-items: center; position: relative; filter: drop-shadow(0 4px 0 var(--shadow)); white-space: nowrap; }
.toast::before { content: ''; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #7a5a3a; } .toast img { width: 36px; height: 36px; margin: -8px 0; }
.toast.good { background-color: #cfe6b8; } .toast.gold { background-color: #ffd97a; } .toast .st { color: #d9861c; letter-spacing: 1px; }
@keyframes toast { 0% { transform: translateY(-24px) rotate(-4deg); opacity: 0; } 8% { transform: rotate(1deg); opacity: 1; } 14% { transform: none; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
#dialog { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); width: min(800px, calc(90 * var(--vw, 1vw))); min-height: 140px; padding: 30px 40px 26px 164px; background: var(--paper) var(--grain); border: 4px solid #fff; border-radius: 40px; box-shadow: 0 7px 0 var(--shadow), 0 18px 40px rgba(90, 50, 20, .3); font-size: 23px; font-weight: 700; line-height: 1.38; cursor: pointer; animation: pop .25s cubic-bezier(.2, 1.4, .4, 1); }
#dialog.noface { padding-left: 40px; }
#dlg-face { position: absolute; left: 16px; bottom: 14px; width: 132px; height: 132px; border-radius: 50%; background: #ffe9b8; border: 5px solid #fff; box-shadow: 0 5px 0 var(--shadow); overflow: hidden; } #dlg-face img { width: 118%; height: 118%; margin: -4% 0 0 -9%; display: block; }
#dlg-name { position: absolute; left: 132px; top: -20px; background: var(--red); color: #fff; font-weight: 800; font-size: 18px; padding: 6px 22px; border-radius: 999px; box-shadow: 0 4px 0 var(--red2); transform: rotate(-2deg); }
#dlg-text .h { opacity: 0; } #dlg-next { position: absolute; right: 28px; bottom: 12px; color: var(--red); font-size: 18px; animation: bob .7s infinite alternate; }

/* ---------- modal base ---------- */
#modal { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(70, 40, 20, .25), rgba(50, 28, 14, .55)); backdrop-filter: blur(4px); z-index: 4; }
.sheet { position: relative; animation: pop .28s cubic-bezier(.2, 1.3, .4, 1); max-height: calc(94 * var(--vh, 1vh)); }
.hint-keys { display: flex; gap: 16px; justify-content: center; font-weight: 800; font-size: 13.5px; color: #fff; text-shadow: 0 1px 3px rgba(60, 30, 10, .8); margin-top: 16px; align-items: center; }
.scroll { overflow-y: auto; min-height: 0; } .scroll::-webkit-scrollbar { width: 10px; } .scroll::-webkit-scrollbar-thumb { background: var(--kraft); border-radius: 10px; }

/* ---------- colmado ---------- */
.shop { width: min(1080px, 96vw); }
.awning { height: 74px; margin: 0 18px; position: relative; z-index: 2; background: repeating-linear-gradient(90deg, var(--red) 0 44px, #fff6e2 44px 88px); border-radius: 18px 18px 0 0; box-shadow: inset 0 10px 0 rgba(255, 255, 255, .25); display: grid; place-items: center; }
.awning::after { content: ''; position: absolute; left: 0; right: 0; bottom: -20px; height: 22px; background: radial-gradient(circle at 22px 0, var(--red) 21.5px, transparent 22px) 0 0 / 88px 22px, radial-gradient(circle at 66px 0, #fff6e2 21.5px, transparent 22px) 0 0 / 88px 22px; filter: drop-shadow(0 4px 0 rgba(100, 60, 25, .25)); }
.awning span { background: var(--paper) var(--grain); font-weight: 900; font-size: 24px; padding: 6px 28px; border-radius: 12px; box-shadow: 0 4px 0 var(--shadow), 0 0 0 3px #fff inset; transform: rotate(-1.5deg); }
.shop-in { display: flex; gap: 22px; background: #f3dfb6 var(--grain); border: 10px solid var(--wood); border-radius: 12px 12px 26px 26px; padding: 44px 22px 22px; box-shadow: 0 10px 0 var(--wood2), 0 26px 50px rgba(50, 25, 10, .45), inset 0 0 0 3px rgba(255, 255, 255, .5); background-image: var(--grain), repeating-linear-gradient(90deg, rgba(190, 150, 90, .13) 0 2px, transparent 2px 44px); }
.keeper { width: 292px; flex: none; display: flex; flex-direction: column; gap: 14px; }
.kwin { display: flex; gap: 12px; align-items: flex-end; } .kwin .pic { width: 112px; height: 112px; flex: none; border-radius: 50%; background: #bfe6dc; border: 5px solid #fff; box-shadow: 0 5px 0 var(--shadow); overflow: hidden; } .kwin .pic img { width: 118%; height: 118%; margin: -4% 0 0 -9%; display: block; } .kwin .pic.hop { animation: bump .35s; }
.ksay { flex: 1; background: #fff; border-radius: 18px 18px 18px 4px; padding: 10px 14px; font-weight: 700; font-size: 15px; line-height: 1.3; min-height: 86px; box-shadow: 0 4px 0 var(--line); position: relative; } .ksay b { display: block; color: var(--red); font-size: 12.5px; margin-bottom: 2px; } .ksay.pop { animation: pop .22s; }
.ticket { background: #fffdf6; padding: 14px 16px 22px; font-family: "Courier New", ui-monospace, monospace; font-weight: 700; font-size: 14.5px; color: #4a3a30; box-shadow: 0 5px 0 rgba(100, 60, 25, .2); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), 96% 100%, 92% calc(100% - 9px), 88% 100%, 84% calc(100% - 9px), 80% 100%, 76% calc(100% - 9px), 72% 100%, 68% calc(100% - 9px), 64% 100%, 60% calc(100% - 9px), 56% 100%, 52% calc(100% - 9px), 48% 100%, 44% calc(100% - 9px), 40% 100%, 36% calc(100% - 9px), 32% 100%, 28% calc(100% - 9px), 24% 100%, 20% calc(100% - 9px), 16% 100%, 12% calc(100% - 9px), 8% 100%, 4% calc(100% - 9px), 0 100%); position: relative; flex: 1; display: flex; flex-direction: column; min-height: 250px; }
.tk-h { text-align: center; letter-spacing: 2px; border-bottom: 2px dashed #cbb99a; padding-bottom: 7px; margin-bottom: 7px; } .tk-h small { display: block; letter-spacing: 0; font-size: 11.5px; color: var(--soft); }
.tk-lines { flex: 1; } .tk-l { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; animation: ink .2s; } .tk-empty { color: #b9a78e; text-align: center; padding: 22px 0; font-family: var(--hand); font-size: 17px; }
.tk-tot { display: flex; justify-content: space-between; border-top: 2px dashed #cbb99a; padding-top: 7px; margin-top: 7px; font-size: 18px; } .tk-purse { display: flex; justify-content: space-between; color: var(--soft); font-size: 13px; padding-top: 3px; } .tk-purse.bad { color: #c9432f; }
.ticket .btn { margin-top: 12px; width: 100%; }
.stamp { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-14deg); border: 5px solid var(--red); color: var(--red); font: 900 30px var(--font); padding: 4px 16px; border-radius: 10px; letter-spacing: 2px; opacity: .88; animation: stamp .35s cubic-bezier(.3, 1.6, .5, 1); background: rgba(255, 255, 255, .5); white-space: nowrap; pointer-events: none; } @keyframes stamp { 0% { transform: translate(-50%, -50%) rotate(-14deg) scale(3); opacity: 0; } }
.shelves { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.plank { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: end; padding: 0 12px 16px; position: relative; }
.plank::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; z-index: 1; border-radius: 6px; background: linear-gradient(var(--wood), var(--wood2)); background-image: var(--woodtex), linear-gradient(#d39a66, var(--wood2)); box-shadow: 0 5px 0 rgba(90, 50, 20, .25), inset 0 3px 0 rgba(255, 255, 255, .25); }
.prod { position: relative; background: none; border: none; padding: 4px 0 30px; cursor: pointer; z-index: 2; border-radius: 16px; transition: transform .12s cubic-bezier(.2, 1.6, .4, 1); font-family: var(--font); color: var(--ink); }
.prod .pi { width: 112px; height: 112px; display: block; margin: 0 auto -8px; filter: drop-shadow(0 6px 4px rgba(90, 50, 20, .28)); transition: transform .15s cubic-bezier(.2, 1.8, .4, 1); }
.prod.sel { transform: translateY(-6px); } .prod.sel .pi { transform: scale(1.12) rotate(-3deg); } .prod.off .pi { filter: grayscale(.5) opacity(.7) drop-shadow(0 6px 4px rgba(90, 50, 20, .2)); }
.prod.add .pi { animation: prodhop .3s; } @keyframes prodhop { 40% { transform: scale(1.3, .86) translateY(-12px) rotate(4deg); } }
.prod .cur { position: absolute; left: 50%; top: -22px; width: 28px; height: 28px; margin-left: -14px; background: var(--red); clip-path: polygon(50% 100%, 0 20%, 30% 20%, 30% 0, 70% 0, 70% 20%, 100% 20%); animation: bob .45s infinite alternate; display: none; filter: drop-shadow(0 2px 0 var(--red2)); } .prod.sel .cur { display: block; }
.ptag { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%) rotate(-3deg); background: var(--kraft) var(--grain); font-weight: 900; font-size: 15px; padding: 3px 9px 3px 16px; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); white-space: nowrap; display: flex; gap: 4px; align-items: center; } .ptag.down { background-color: #bfe0a8; } .ptag.up { background-color: #f6b8a6; }
.prod .pn { position: absolute; left: -10px; right: -10px; bottom: -16px; font-size: 11.5px; font-weight: 800; color: #fff3d6; text-shadow: 0 1px 0 rgba(90, 45, 15, .7); white-space: nowrap; z-index: 3; }
.qty { position: absolute; right: 8px; top: 8px; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 16px; background: var(--red); color: #fff; font-weight: 900; font-size: 16px; display: grid; place-items: center; box-shadow: 0 3px 0 var(--red2), 0 0 0 3px #fff inset; animation: pop .2s; } .qty:empty { display: none; }
.minus { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--red); font-weight: 900; font-size: 20px; line-height: 26px; box-shadow: 0 3px 0 var(--line); display: none; text-align: center; } .prod.has .minus { display: block; }
.ribbon { position: absolute; left: 4px; top: 40px; background: var(--green); color: #fff; font-size: 11px; font-weight: 900; padding: 2px 8px; border-radius: 4px; transform: rotate(-12deg); box-shadow: 0 2px 0 rgba(40, 100, 50, .5); z-index: 2; letter-spacing: .5px; } .ribbon.up { background: #c9634f; box-shadow: 0 2px 0 rgba(120, 50, 40, .5); }
.havej { position: absolute; right: 2px; bottom: 34px; background: #fff; border-radius: 10px; font-size: 11.5px; font-weight: 800; padding: 1px 7px; color: var(--soft); box-shadow: 0 2px 0 var(--line); } .havej b { color: var(--ink); font-size: 13px; }

/* ---------- libreta de anillas ---------- */
.book { width: min(1060px, calc(96 * var(--vw, 1vw))); height: min(640px, calc(86 * var(--vh, 1vh))); display: flex; position: relative; filter: drop-shadow(0 12px 0 rgba(90, 40, 30, .5)) drop-shadow(0 30px 40px rgba(50, 25, 10, .45)); }
.book::before { content: ''; position: absolute; inset: -12px -14px; background: var(--red); border-radius: 26px; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25), inset 0 0 0 9px var(--red), inset 0 0 0 11px rgba(255, 255, 255, .35); background-image: var(--grain); }
.bpage { position: relative; flex: 1; background: var(--paper) var(--grain); padding: 26px 28px 22px; min-width: 0; display: flex; flex-direction: column; background-image: var(--grain), repeating-linear-gradient(transparent 0 31px, rgba(160, 190, 220, .28) 31px 32px); }
.bpage.l { border-radius: 14px 4px 4px 14px; padding-right: 40px; box-shadow: inset -22px 0 26px -18px rgba(120, 80, 40, .35); flex: .92; } .bpage.r { border-radius: 4px 14px 14px 4px; padding-left: 44px; box-shadow: inset 22px 0 26px -18px rgba(120, 80, 40, .35); }
.bpage.r.turn { animation: turn .35s cubic-bezier(.3, 1.2, .5, 1); transform-origin: 0 50%; } @keyframes turn { 0% { transform: perspective(1400px) rotateY(-55deg); opacity: .4; } }
.rings { position: absolute; left: 46.9%; top: 0; bottom: 0; width: 40px; margin-left: -20px; z-index: 3; background: radial-gradient(ellipse 18px 7px at 50% 50%, #e8e8ee 0 60%, #9a9aa8 62% 78%, transparent 80%) 0 14px / 40px 46px repeat-y; pointer-events: none; }
.btabs { position: absolute; left: 30px; top: -46px; display: flex; gap: 6px; z-index: 0; }
.btab { border: none; cursor: pointer; font: 800 16px var(--font); color: var(--ink); padding: 9px 20px 22px; border-radius: 14px 14px 0 0; background: #f4d98c var(--grain); transform: translateY(12px); transition: transform .12s; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45); }
.btab:nth-child(2) { background-color: #bfe0c8; } .btab:nth-child(3) { background-color: #f6b8a6; } .btab:nth-child(4) { background-color: #bcd6f2; } .btab.on, .btab:hover { transform: translateY(2px); } .btab .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); margin-left: 6px; vertical-align: 1px; animation: bump 1s infinite; }
.bpage h2 { margin: 0; font: 700 34px var(--hand); line-height: 1; } .bpage .sub { font: 700 16px var(--hand); color: var(--soft); margin: 4px 0 12px; line-height: 1.25; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; padding: 6px 4px 12px; align-content: start; } .thumbs.c3 { grid-template-columns: repeat(3, 1fr); }
.th { position: relative; border: none; background: none; padding: 0; cursor: pointer; aspect-ratio: 1; border-radius: 50%; transition: transform .14s cubic-bezier(.2, 1.7, .4, 1); font-family: var(--font); color: var(--ink); }
.th .stk { position: absolute; inset: 4px; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 var(--line), 0 0 0 0 var(--gold); display: grid; place-items: center; transition: box-shadow .12s; overflow: hidden; } .th img { width: 92%; height: 92%; }
.th.sel { transform: scale(1.12) rotate(-4deg); z-index: 2; } .th.sel .stk { box-shadow: 0 3px 0 var(--line), 0 0 0 5px var(--gold); }
.th.unk .stk { background: none; box-shadow: none; border: 3px dashed #d2bb92; } .th.unk img { filter: brightness(0) opacity(.14); } .th.unk::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; font: 700 30px var(--hand); color: #c2a878; }
.th .mini { position: absolute; right: -2px; bottom: -2px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--green); color: #fff; font-size: 13px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 2px 0 rgba(40, 100, 50, .5), 0 0 0 2px #fff inset; padding: 0 5px; } .th .mini.red { background: var(--red); } .th .mini.gold { background: var(--gold); color: var(--ink); } .th .mini.grey { background: #b9a78e; }
.th.photo { aspect-ratio: .86; border-radius: 4px; } .th.photo .stk { border-radius: 3px; inset: 3px; padding: 6px 6px 22px; background: #fff; } .th.photo .stk img { width: 100%; height: 100%; object-fit: cover; background: #ffe9b8; border-radius: 2px; } .th.photo.unk .stk img { filter: brightness(0) opacity(.2); background: #eadcc0; } .th.photo.unk .stk { border: none; background: #fff; box-shadow: 0 3px 0 var(--line); } .th.photo .cap { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 700 12.5px var(--hand); white-space: nowrap; }
.th.photo:nth-child(odd) { rotate: -2.5deg; } .th.photo:nth-child(even) { rotate: 2deg; }
.det { display: flex; flex-direction: column; flex: 1; min-height: 0; } .det .big { display: flex; gap: 14px; align-items: center; }
.doily { width: 168px; height: 168px; flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff 0 58%, transparent 59%), repeating-conic-gradient(#fff 0 9deg, transparent 9deg 18deg), radial-gradient(circle, #fff 0 68%, transparent 69%); filter: drop-shadow(0 4px 0 var(--line)); } .doily img { width: 150px; height: 150px; animation: pop .3s cubic-bezier(.2, 1.5, .4, 1); }
.det h3 { margin: 0; font: 700 34px var(--hand); line-height: 1.05; } .det .ds { font: 700 17.5px var(--hand); color: var(--soft); line-height: 1.25; margin-top: 6px; }
.lbl { font-weight: 900; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); margin: 14px 0 6px; }
.ings { display: flex; flex-wrap: wrap; gap: 6px; } .ing { font-size: 14px; font-weight: 800; padding: 2px 11px 2px 2px; border-radius: 99px; background: #fff; display: inline-flex; gap: 4px; align-items: center; box-shadow: 0 2px 0 var(--line); } .ing img { width: 34px; height: 34px; margin: -4px 0; } .ing.miss { background: #ffd9d2; color: #b8432f; box-shadow: 0 2px 0 #f0b3a6; } .ing small { color: var(--soft); font-weight: 700; }
.tags3 { display: flex; gap: 12px; padding-top: 12px; } .ptg { position: relative; border: none; cursor: pointer; background: var(--kraft) var(--grain); padding: 16px 12px 8px; width: 112px; text-align: center; clip-path: polygon(24% 0, 76% 0, 100% 20%, 100% 100%, 0 100%, 0 20%); font-family: var(--font); color: var(--ink); transition: transform .14s cubic-bezier(.2, 1.7, .4, 1); opacity: .62; }
.ptg::before { content: ''; position: absolute; left: 50%; top: 6px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #7a5a3a; } .ptg b { display: block; font-size: 13px; font-weight: 900; } .ptg span { font-size: 23px; font-weight: 900; display: inline-flex; gap: 4px; align-items: center; } .ptg small { display: block; font: 700 11.5px var(--hand); line-height: 1.1; margin-top: 2px; }
.ptg.on { opacity: 1; transform: translateY(-6px) rotate(-3deg) scale(1.06); background-color: #ffd97a; } .ptg:hover { opacity: 1; }
.from { margin-top: auto; display: flex; align-items: center; gap: 10px; font: 700 16px var(--hand); color: var(--soft); padding-top: 10px; } .from .pic { width: 46px; height: 46px; border-radius: 50%; background: #ffe9b8; border: 3px solid #fff; box-shadow: 0 2px 0 var(--line); overflow: hidden; flex: none; } .from .pic img { width: 118%; height: 118%; margin: -4% 0 0 -9%; } .from b { color: var(--ink); }
.polaroid { background: #fff; padding: 9px 9px 34px; box-shadow: 0 5px 0 var(--line), 0 10px 20px rgba(90, 50, 20, .15); rotate: -3deg; position: relative; flex: none; width: 190px; } .polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #ffe9b8; display: block; } .polaroid .cap { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 700 19px var(--hand); }
.polaroid::before { content: ''; position: absolute; left: 50%; top: -12px; width: 80px; height: 24px; margin-left: -40px; background: rgba(255, 220, 130, .8); rotate: 3deg; }
.hearts { font-size: 24px; color: #ef6f7f; letter-spacing: 3px; } .hearts i { color: #e6d2a8; font-style: normal; }
.minibar { height: 9px; border-radius: 9px; background: #ead9b6; overflow: hidden; margin-top: 5px; width: 200px; } .minibar i { display: block; height: 100%; background: linear-gradient(90deg, #ff9aa8, #ef6f7f); border-radius: 9px; }
.likes { display: flex; gap: 8px; } .likes .lk { width: 60px; height: 60px; background: #fff; border-radius: 16px; box-shadow: 0 3px 0 var(--line); display: grid; place-items: center; position: relative; } .likes img { width: 56px; height: 56px; } .likes .lk.unk img { filter: brightness(0) opacity(.15); }
.quote { font: 700 18px var(--hand); background: #fff; border-radius: 16px 16px 16px 4px; padding: 9px 14px; box-shadow: 0 3px 0 var(--line); line-height: 1.25; margin-top: 4px; }
.chap { font-weight: 900; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--red); margin: 6px 0 2px; grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; } .chap::after { content: ''; flex: 1; border-top: 2px dashed #dcc59a; }
.blue { width: 200px; height: 170px; flex: none; border-radius: 12px; background: #4f7fb5; background-image: linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 17px 17px; display: grid; place-items: center; box-shadow: 0 4px 0 var(--line), inset 0 0 0 3px rgba(255, 255, 255, .5); rotate: -2deg; } .blue img { width: 160px; height: 160px; filter: drop-shadow(0 6px 4px rgba(20, 40, 80, .4)); animation: pop .3s cubic-bezier(.2, 1.5, .4, 1); }
.bfoot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; } .bfoot .grow { flex: 1; font: 700 15px var(--hand); color: var(--soft); line-height: 1.2; }
.doorsign { border: none; cursor: pointer; background: linear-gradient(#d39a66, var(--wood)); background-image: var(--woodtex), linear-gradient(#d39a66, var(--wood)); color: #fff6da; font: 800 15px var(--font); padding: 9px 16px; border-radius: 10px; box-shadow: 0 4px 0 var(--wood2), inset 0 2px 0 rgba(255, 255, 255, .3); position: relative; transform-origin: 50% -14px; text-shadow: 0 1px 0 rgba(90, 40, 10, .6); white-space: nowrap; } .doorsign:hover { animation: sway 1s infinite; }
.doorsign::before { content: ''; position: absolute; left: 22%; right: 22%; top: -13px; height: 14px; border: 2px solid #7a5a3a; border-bottom: none; border-radius: 40px 40px 0 0; }
.sealed { display: inline-block; border: 4px solid var(--green); color: var(--green); font-weight: 900; font-size: 20px; padding: 2px 14px; border-radius: 8px; rotate: -8deg; letter-spacing: 1px; } .sealed.wip { border-color: #d9962a; color: #d9962a; } .sealed.lock { border-color: #b9a78e; color: #b9a78e; font-size: 15px; rotate: -3deg; }

/* ---------- fichas de receta (mesa) ---------- */
.board { width: min(1100px, 96vw); text-align: center; }
.board .head { display: inline-block; background: var(--chalk); color: #fff6da; border: 7px solid var(--wood); border-radius: 14px; padding: 8px 34px 10px; box-shadow: 0 6px 0 var(--wood2), inset 0 0 20px rgba(0, 0, 0, .25); transform: rotate(-1.5deg); margin-bottom: 22px; } .board .head h2 { margin: 0; font: 700 32px var(--hand); } .board .head div { font: 700 16px var(--hand); color: #cfe6d2; }
.rcards { display: flex; flex-wrap: wrap; gap: 20px 14px; justify-content: center; padding: 18px 10px 10px; max-height: calc(72 * var(--vh, 1vh)); }
.rcard { position: relative; width: 178px; background: #fffdf4 var(--grain); border: none; cursor: pointer; padding: 22px 12px 12px; border-radius: 6px; box-shadow: 0 5px 0 var(--line), 0 12px 20px rgba(50, 25, 10, .3); font-family: var(--font); color: var(--ink); transition: transform .16s cubic-bezier(.2, 1.7, .4, 1); background-image: var(--grain), linear-gradient(transparent 0 37px, #f2a69a 37px 39px, transparent 39px); text-align: center; }
.rcard:nth-child(odd) { rotate: -2deg; } .rcard:nth-child(even) { rotate: 1.6deg; } .rcard:nth-child(3n) { rotate: -.6deg; }
.rcard::before { content: ''; position: absolute; left: 50%; top: -11px; width: 70px; height: 22px; margin-left: -35px; background: rgba(255, 215, 120, .85); rotate: -3deg; }
.rcard .nm { font: 700 16.5px var(--hand); line-height: 1; height: 20px; white-space: nowrap; } .rcard img.b { width: 98px; height: 98px; display: block; margin: 10px auto -6px; filter: drop-shadow(0 6px 4px rgba(90, 50, 20, .25)); }
.rcard .need { display: flex; justify-content: center; gap: 3px; flex-wrap: wrap; min-height: 40px; } .rcard .nd { position: relative; width: 40px; height: 40px; } .rcard .nd img { width: 100%; height: 100%; } .rcard .nd b { position: absolute; right: -2px; bottom: -2px; background: var(--ink); color: #fff; font-size: 11px; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; } .rcard .nd.miss img { filter: grayscale(1) opacity(.45); } .rcard .nd.miss b { background: var(--red); }
.rcard .out { font-weight: 800; font-size: 13.5px; color: var(--soft); margin-top: 6px; white-space: nowrap; } .rcard .hot { position: absolute; right: -12px; top: 52px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 4px; rotate: 10deg; box-shadow: 0 2px 0 var(--red2); }
.rcard.sel { transform: translateY(-14px) scale(1.07); rotate: 0deg; z-index: 3; box-shadow: 0 5px 0 var(--line), 0 0 0 5px var(--gold), 0 20px 26px rgba(50, 25, 10, .35); } .rcard.no { filter: saturate(.55) brightness(.94); } .rcard.no .out { color: var(--red); }

/* ---------- cierre de caja, carta y receta nueva ---------- */
.receipt { width: min(440px, 92vw); background: #fffdf6; padding: 26px 30px 40px; font-family: "Courier New", ui-monospace, monospace; font-weight: 700; color: #4a3a30; font-size: 17px; position: relative; filter: drop-shadow(0 10px 0 rgba(90, 50, 20, .3)) drop-shadow(0 26px 30px rgba(50, 25, 10, .4)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 95% 100%, 90% calc(100% - 12px), 85% 100%, 80% calc(100% - 12px), 75% 100%, 70% calc(100% - 12px), 65% 100%, 60% calc(100% - 12px), 55% 100%, 50% calc(100% - 12px), 45% 100%, 40% calc(100% - 12px), 35% 100%, 30% calc(100% - 12px), 25% 100%, 20% calc(100% - 12px), 15% 100%, 10% calc(100% - 12px), 5% 100%, 0 calc(100% - 12px)); animation: print .7s cubic-bezier(.3, 1, .4, 1); transform-origin: 50% 0; } @keyframes print { 0% { transform: translateY(-110%); } }
.receipt .logo-s { display: block; width: 210px; margin: 0 auto 4px; } .receipt .rh { text-align: center; border-bottom: 2px dashed #cbb99a; padding-bottom: 10px; margin-bottom: 10px; font-size: 14px; color: var(--soft); letter-spacing: 1px; }
.receipt .rl { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; opacity: 0; animation: ink .25s forwards; } .receipt .rl.tot { border-top: 2px dashed #cbb99a; margin-top: 8px; padding-top: 10px; font-size: 23px; } .receipt .rl.note { display: block; font: 700 17px var(--hand); color: var(--soft); line-height: 1.25; margin-top: 10px; }
.receipt .btn { width: 100%; margin-top: 16px; opacity: 0; animation: ink .3s forwards; font-family: var(--font); } .receipt .stamp { top: 66px; left: 80%; font-size: 19px; rotate: 22deg; }
.lettersheet { width: min(620px, 92vw); } .lettersheet h2 { color: #fff; font: 700 30px var(--hand); text-align: center; margin: 0 0 12px; text-shadow: 0 2px 0 rgba(60, 30, 10, .6); }
.letter { background: #fffdf5 var(--grain); border-radius: 4px; padding: 36px 42px 30px; font: 600 20.5px var(--hand); line-height: 1.5; box-shadow: 0 8px 0 rgba(90, 50, 20, .3), 0 26px 40px rgba(50, 25, 10, .4), inset 0 0 70px rgba(240, 210, 150, .4); transform: rotate(-1deg); color: #5a3a28; background-image: var(--grain), linear-gradient(90deg, transparent 49.8%, rgba(190, 150, 100, .22) 50%, transparent 50.2%), linear-gradient(transparent 49.7%, rgba(190, 150, 100, .22) 50%, transparent 50.3%); } .letter p { margin: 0 0 11px; opacity: 0; animation: ink .7s forwards; }
.lettersheet .row { display: flex; justify-content: center; margin-top: 20px; }
.unlock { text-align: center; width: min(460px, 92vw); position: relative; } .unlock .rays { position: absolute; left: 50%; top: 46%; width: 760px; height: 760px; margin: -380px; background: repeating-conic-gradient(rgba(255, 225, 140, .55) 0 9deg, transparent 9deg 18deg); border-radius: 50%; animation: spin 16s linear infinite; mask: radial-gradient(circle, #000 20%, transparent 66%); -webkit-mask: radial-gradient(circle, #000 20%, transparent 66%); pointer-events: none; }
.unlock .card { position: relative; background: #fffdf4 var(--grain); padding: 30px 30px 26px; border-radius: 8px; box-shadow: 0 8px 0 var(--line), 0 26px 40px rgba(50, 25, 10, .4); rotate: -2deg; animation: flip .6s cubic-bezier(.2, 1.4, .4, 1); background-image: var(--grain), linear-gradient(transparent 0 57px, #f2a69a 57px 59px, transparent 59px); } @keyframes flip { 0% { transform: perspective(900px) rotateY(90deg) scale(.6); } }
.unlock .card::before { content: ''; position: absolute; left: 50%; top: -13px; width: 96px; height: 26px; margin-left: -48px; background: rgba(255, 215, 120, .88); rotate: 2deg; }
.unlock .who { font: 700 17px var(--hand); color: var(--soft); } .unlock h2 { font: 700 40px var(--hand); margin: 14px 0 0; line-height: 1; } .unlock img.b { width: 230px; height: 230px; filter: drop-shadow(0 12px 10px rgba(90, 50, 20, .3)); margin: -4px 0 -10px; } .unlock p { font: 700 18px var(--hand); color: var(--soft); margin: 0 10px 12px; line-height: 1.25; } .unlock .ings { justify-content: center; margin-bottom: 18px; }

/* ---------- título, días, fiesta ---------- */
#title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 7vh; background: linear-gradient(180deg, rgba(255, 240, 210, 0) 40%, rgba(90, 50, 20, .4)); }
#title .logo { position: absolute; top: 4vh; left: 50%; width: min(760px, 78vw); transform: translateX(-50%); animation: logo 1s cubic-bezier(.2, 1.3, .4, 1); filter: drop-shadow(0 12px 18px rgba(90, 40, 10, .4)); } @keyframes logo { from { transform: translateX(-50%) translateY(-80px) rotate(-8deg) scale(.6); opacity: 0; } }
#title .btn { font-size: 24px; padding: 16px 46px; margin-top: 12px; border-radius: 20px; } #title .hint { color: #fff; font-weight: 800; margin-top: 18px; text-shadow: 0 1px 4px rgba(60, 30, 10, .8); display: flex; gap: 14px; align-items: center; }
#fade { position: absolute; inset: 0; background: #2a1a12; opacity: 0; transition: opacity .6s; z-index: 2; }
.daytitle { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); text-align: center; animation: dayt 3.2s forwards; pointer-events: none; z-index: 3; }
.daytitle .a { display: inline-block; background: var(--paper) var(--grain); font-size: 70px; font-weight: 900; padding: 6px 44px 10px; border-radius: 18px; border-top: 22px solid var(--red); box-shadow: 0 8px 0 var(--shadow), 0 20px 40px rgba(60, 30, 10, .35); rotate: -3deg; } .daytitle .b { margin-top: 20px; font: 700 28px var(--hand); color: #fff; text-shadow: 0 3px 0 rgba(120, 70, 20, .75), 0 0 20px rgba(60, 30, 10, .5); }
@keyframes dayt { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.8) rotate(-8deg); } 12% { opacity: 1; transform: translate(-50%, -50%); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%); } }
.fiesta-card { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); text-align: center; color: #fff; font-weight: 800; font-size: 30px; text-shadow: 0 3px 0 rgba(90, 40, 20, .8), 0 0 24px rgba(60, 20, 60, .6); width: 86vw; animation: ink 1.2s; } .fiesta-card small { display: block; font-size: 19px; margin-top: 8px; font-weight: 700; }
.drop { position: absolute; top: -40px; width: 2px; height: 34px; background: linear-gradient(transparent, rgba(220, 240, 255, .75)); animation: fall linear infinite; } @keyframes fall { to { transform: translate(-60px, 110vh); } }

#brb { position: absolute; left: 124px; top: 152px; background: var(--paper) var(--grain); border: 4px solid var(--wood); color: var(--red); font-weight: 900; font-size: 14px; padding: 4px 12px; border-radius: 10px; white-space: nowrap; transform-origin: 50% -10px; animation: sway 2.4s ease-in-out infinite; display: flex; gap: 6px; align-items: center; }
.gauge.fire .in { min-width: 104px; padding: 4px 9px 7px; font-size: 12px; } .gauge.fire .track { height: 11px; background: #e6d6b6; overflow: hidden; margin-top: 3px; } .gauge.fire .track i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #f6c34a, #f2853a 70%, #e2533a); }
.gauge.fire.low .in { background: #ffd9d2; animation: wig .6s infinite; }

.k-title { position: fixed; left: 50%; top: 22px; translate: -50% 0; margin: 0; white-space: nowrap; z-index: 2; }
body.kneading #goal, body.kneading #keys, body.kneading #btn-lib, body.kneading #cal, body.kneading #topright { opacity: 0; transition: opacity .3s; }
#goal, #keys, #btn-lib, #cal, #topright { transition: opacity .3s; }

#chalks { position: absolute; left: 8px; top: 108px; display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
#dc-antojo, #brb { position: relative; left: auto; top: auto; }
#orders { display: flex; flex-direction: column; gap: 7px; } #orders:empty { display: none; }
.ord { background: var(--paper) var(--grain); border-radius: 4px 12px 4px 12px; padding: 4px 12px 4px 4px; display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; box-shadow: 0 3px 0 var(--shadow); rotate: -1deg; white-space: nowrap; border-left: 6px solid var(--red); } .ord .pic { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #ffe9b8; flex: none; } .ord .pic img { width: 118%; height: 118%; margin: -4% 0 0 -9%; } .ord > img { width: 34px; height: 34px; margin: -4px -2px; } .ord small { color: var(--soft); font-weight: 800; } .ord.ok { border-left-color: var(--green); background-color: #e3f3d6; } .ord.late { opacity: .45; text-decoration: line-through; }
.suprow { display: flex; align-items: center; gap: 8px; padding: 0 12px; font-weight: 800; font-size: 13px; color: var(--soft); margin-top: 2px; } .suprow .pic { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #ffe9b8; border: 2px solid #fff; flex: none; box-shadow: 0 2px 0 var(--line); } .suprow .pic img { width: 118%; height: 118%; margin: -4% 0 0 -9%; } .suprow b { color: var(--ink); font-size: 14px; }
.stamps { display: flex; gap: 4px; margin-left: auto; background: #fffdf6; padding: 4px 8px; border-radius: 8px; box-shadow: 0 2px 0 var(--line); align-items: center; } .stamps i { width: 15px; height: 15px; border-radius: 50%; border: 2px dashed #d2bb92; } .stamps i.on { border: none; background: radial-gradient(circle at 35% 30%, #f48a96, var(--red)); box-shadow: inset 0 -2px 0 rgba(120, 40, 30, .35); } .stamps i.new { animation: stamp .4s cubic-bezier(.3, 1.6, .5, 1); } .stamps em { font-style: normal; font-size: 12px; color: var(--red); margin-left: 4px; font-weight: 900; }
.shop .prod .pi { width: 92px; height: 92px; } .shop .prod { padding-bottom: 28px; } .shop .shop-in { padding-top: 38px; padding-bottom: 16px; } .shop .ribbon { top: 30px; }
.paper { width: min(760px, calc(94 * var(--vw, 1vw))); background: var(--paper) var(--grain); border: 4px solid #fff; border-radius: 26px; padding: 26px 30px 24px; box-shadow: 0 8px 0 var(--shadow), 0 26px 50px rgba(50, 25, 10, .45); max-height: calc(88 * var(--vh, 1vh)); display: flex; flex-direction: column; } .paper h2 { margin: 0; font: 700 34px var(--hand); } .paper .sub { font: 700 17px var(--hand); color: var(--soft); margin: 2px 0 14px; line-height: 1.25; }
.paper .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.mue { background: #fff; border-radius: 18px; padding: 10px 12px 12px; box-shadow: 0 3px 0 var(--line); text-align: center; } .mue img { width: 120px; height: 120px; display: block; margin: -4px auto -2px; } .mue .nm { font-weight: 800; font-size: 15.5px; } .mue .ds { font: 700 14px var(--hand); color: var(--soft); line-height: 1.2; min-height: 34px; margin: 2px 0 8px; } .mue.own { background: #eef7e6; }
.tinbox { display: flex; gap: 22px; align-items: center; } .tinbig { width: 150px; height: 170px; flex: none; border-radius: 22px 22px 16px 16px; background: linear-gradient(90deg, #c9523f, var(--red) 30%, #f08a70 55%, var(--red) 80%, #b9483a); position: relative; box-shadow: 0 6px 0 var(--red2); display: grid; place-items: center; } .tinbig::before { content: ''; position: absolute; left: -5px; right: -5px; top: -10px; height: 30px; border-radius: 14px; background: linear-gradient(90deg, #d9962a, #f2c14e 50%, #d9962a); box-shadow: 0 3px 0 #b97a1e; } .tinbig b { background: #fff6e2; border-radius: 10px; padding: 8px 12px; font-size: 26px; font-weight: 900; display: flex; gap: 6px; align-items: center; rotate: -3deg; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .statg { display: grid; grid-template-columns: 1fr auto; gap: 4px 26px; font-weight: 700; font-size: 16px; margin-top: 6px; } .statg b { text-align: right; font-weight: 900; }
.troph { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; } .tr { background: #fff; border-radius: 16px; padding: 4px 4px 8px; text-align: center; box-shadow: 0 3px 0 var(--line); font-weight: 800; font-size: 12.5px; } .tr img { width: 76px; height: 76px; display: block; margin: 0 auto -4px; } .tr.unk img { filter: brightness(0) opacity(.14); } .tr .st { color: #d9861c; font-size: 15px; letter-spacing: 1px; }

.gauge.mini .in { min-width: 92px; padding: 3px 8px 6px; font-size: 11.5px; border-radius: 12px; transform: translate(-50%, -50%); } .gauge.mini .track { height: 8px; margin-top: 2px; } .gauge.mini.ready .in { animation: none; background: #d9f2c9; }

.gauge.fermbox .in { min-width: 0; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; border-radius: 12px; transform: translate(-50%, -100%); background: #2f3a36; border-color: #9ad1c0; } .fb { width: 84px; height: 8px; border-radius: 6px; background: #1f2724; overflow: hidden; } .fb i { display: block; height: 100%; width: 0; border-radius: 6px; background: #ffd166; } .fb.ok i { background: #7bd389; box-shadow: 0 0 8px #7bd389; } .fb.ok { animation: bump .8s infinite; }

/* temporizadores discretos */
.gauge.timer .in, .gauge.fdots .in, .gauge.flame .in { min-width: 0; padding: 0; background: none; border: none; box-shadow: none; transform: translate(-50%, -50%); animation: none; }
.dial { position: relative; width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(from -135deg, #f7ead0 0 75deg, #f1d9a2 75deg 135deg, #f2b84b 135deg 212deg, #a8642a 212deg 250deg, #5a3524 250deg 270deg, #fff6e4 270deg); box-shadow: 0 0 0 4px #fff, 0 4px 0 4px var(--shadow); display: grid; place-items: center; animation: pop .3s cubic-bezier(.2, 1.6, .4, 1); }
.dial::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 2px 0 rgba(120, 80, 40, .15); } .dial img { position: relative; width: 38px; height: 38px; margin-top: -2px; }
.dial .ndl { position: absolute; left: 50%; top: 50%; width: 5px; height: 33px; margin: -33px 0 0 -2.5px; background: var(--red); border-radius: 3px; transform-origin: 50% 100%; box-shadow: 0 0 0 1.5px #fff; z-index: 2; } .dial b { position: absolute; left: 50%; top: -16px; translate: -50% 0; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; padding: 1px 8px; border-radius: 99px; white-space: nowrap; z-index: 3; } .dial b:empty { display: none; }
.gauge.timer.ready .dial { box-shadow: 0 0 0 4px #ffe27a, 0 0 16px 6px rgba(255, 215, 110, .9), 0 4px 0 4px var(--shadow); animation: bump .7s infinite; } .gauge.timer.late .dial { box-shadow: 0 0 0 4px #e2664f, 0 4px 0 4px var(--shadow); animation: bump .35s infinite; }
.gauge.fdots .in { display: flex; gap: 6px; background: var(--paper); border: 3px solid #fff; border-radius: 99px; padding: 5px 9px; box-shadow: 0 3px 0 var(--shadow); transform: translate(-50%, -100%); }
.gauge.fdots .fb { width: 20px; height: 20px; border-radius: 50%; background: #ead9b6; overflow: visible; display: grid; place-items: center; animation: none; } .gauge.fdots .fb i { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fffaf0, #f3dba6); box-shadow: inset 0 -2px 0 rgba(160, 110, 50, .3); transform: scale(0); display: block; } .gauge.fdots .fb.ok i { background: radial-gradient(circle at 38% 32%, #e6ffd9, #7bd389); box-shadow: 0 0 0 3px rgba(123, 211, 137, .45); } .gauge.fdots .fb.ok { animation: bump .9s infinite; }
.gauge.flame { transition: opacity .35s; } .fl { width: 30px; height: 40px; position: relative; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: #fff6e4; box-shadow: 0 0 0 3px #fff, 0 3px 0 3px var(--shadow); overflow: hidden; clip-path: polygon(50% 0, 78% 28%, 100% 62%, 86% 92%, 50% 100%, 14% 92%, 0 62%, 22% 28%); } .fl i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#ffd27a, #f2853a 60%, #e2533a); } .gauge.flame.low .fl { animation: bump .5s infinite; }

.gauge.till .in, .gauge.chop .in { min-width: 0; padding: 7px 10px 6px; transform: translate(-50%, -100%); animation: pop .18s; }
.tillbar, .chopbar { position: relative; width: 150px; height: 16px; border-radius: 9px; background: #ecdcba; box-shadow: inset 0 2px 0 rgba(90, 50, 20, .18); } .tillbar .zone { position: absolute; left: 60%; width: 24%; top: 0; bottom: 0; border-radius: 6px; background: repeating-linear-gradient(115deg, #f2b84b 0 7px, #ffd97a 7px 14px); }
.tillbar i, .chopbar i { position: absolute; top: -5px; bottom: -5px; width: 7px; margin-left: -3.5px; border-radius: 4px; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.chopbar { width: 190px; } .chopbar .zone { position: absolute; left: 26%; width: 48%; top: 0; bottom: 0; background: #f6dba0; border-radius: 6px; } .chopbar .zone2 { position: absolute; left: 42.5%; width: 15%; top: -2px; bottom: -2px; border-radius: 6px; background: repeating-linear-gradient(115deg, #f2b84b 0 7px, #ffd97a 7px 14px); box-shadow: 0 0 0 2px #fff; }
.tk { font-size: 11.5px; font-weight: 800; color: var(--soft); margin-top: 5px; white-space: nowrap; display: flex; gap: 5px; align-items: center; justify-content: center; }

/* carga, pausa, táctil, escalado y salidas */
#boot { position: fixed; inset: 0; z-index: 50; background: #f6e3c0; display: grid; place-items: center; align-content: center; gap: 22px; color: #7a4a2a; font: 800 22px "Baloo 2", ui-rounded, sans-serif; transition: opacity .5s; } #boot.out { opacity: 0; pointer-events: none; }
#boot .loaf { width: 120px; height: 58px; border-radius: 60px 60px 22px 22px; background: linear-gradient(#e9a94e, #c9772a); box-shadow: inset 0 -8px 0 rgba(120, 60, 10, .3), 0 8px 0 rgba(120, 70, 20, .2); position: relative; animation: loafb .9s ease-in-out infinite alternate; } #boot .loaf::before { content: ''; position: absolute; left: 22px; right: 22px; top: 12px; height: 9px; border-radius: 9px; background: #f6dfae; box-shadow: 0 16px 0 #f6dfae; transform: rotate(-8deg); } @keyframes loafb { to { transform: translateY(-14px) scale(1.06, .95); } }
#cal, #topright, #goal, #keys, #btn-lib, #toasts, #title > * { zoom: var(--z, 1); } #dialog, #knead, .sheet { zoom: var(--zs, 1); }
#modal.out { opacity: 0; transition: opacity .13s; } #modal.out .sheet { transform: scale(.94) translateY(10px); transition: transform .13s; }
#keys { transition: opacity .6s; } #keys.gone { opacity: 0 !important; }
#prompt { pointer-events: none !important; } #prompt .in { pointer-events: auto; cursor: pointer; position: relative; overflow: hidden; } #prompt .in::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--h, 0) * 100%); background: rgba(242, 184, 75, .55); z-index: 0; } #prompt .in > * { position: relative; z-index: 1; }
.toast { animation-duration: 2.6s; }
.set { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: center; font-weight: 800; font-size: 17px; margin: 6px 0 16px; } .set input[type=range] { width: 100%; accent-color: var(--red); height: 26px; } .ctl { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px 12px; font-weight: 700; font-size: 15px; align-items: center; }
#touch { position: fixed; inset: 0; pointer-events: none !important; z-index: 1; } #stick { position: absolute; left: 26px; bottom: 96px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 247, 230, .35); border: 3px solid rgba(255, 255, 255, .7); } #stick i { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: var(--paper); box-shadow: 0 4px 0 var(--shadow); }
#tapE { position: absolute; right: 26px; bottom: 110px; width: 92px; height: 92px; border-radius: 50%; border: 4px solid #fff; background: var(--red); color: #fff; font: 800 34px var(--font); box-shadow: 0 6px 0 var(--red2); pointer-events: auto; }

.pips { display: flex; gap: 5px; flex-wrap: wrap; } .pips i { width: 26px; height: 16px; border-radius: 8px; background: #ead9b6; box-shadow: inset 0 2px 0 rgba(120, 80, 40, .15); } .pips i.on { background: repeating-linear-gradient(115deg, transparent 0 8px, rgba(255, 240, 200, .7) 8px 11px), linear-gradient(#f0b354, #d98a2e); box-shadow: inset 0 -3px 0 rgba(150, 80, 20, .35); }
.rcard .mach { position: absolute; left: 50%; bottom: -13px; translate: -50% 0; background: var(--teal); color: #fff; font-size: 11.5px; font-weight: 800; padding: 2px 10px; border-radius: 99px; box-shadow: 0 2px 0 rgba(40, 110, 100, .6); white-space: nowrap; cursor: pointer; }
.btab:nth-child(4) { background-color: #d9c8f2; }

.thumbs { min-width: 0; overflow-x: hidden; } .th { min-width: 0; } .th.photo { aspect-ratio: .86; }

.leaf em { display: block; font-style: normal; font: 700 13px var(--hand); color: var(--soft); margin-top: -2px; }
.logs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 148px; padding-right: 4px; } .lg { background: #fff; border-radius: 12px; padding: 4px 10px 5px; font-weight: 800; font-size: 13px; box-shadow: 0 2px 0 var(--line); opacity: .6; line-height: 1.15; } .lg b { color: #cbb99a; margin-right: 4px; } .lg small { display: block; font: 700 12px var(--hand); color: var(--soft); } .lg.on { opacity: 1; background: #fff6d2; } .lg.on b { color: #d9861c; }
.paper .troph { grid-template-columns: repeat(10, 1fr); gap: 5px; } .paper .tr { font-size: 10.5px; padding: 2px 2px 5px; line-height: 1.1; } .paper .tr img { width: 54px; height: 54px; } .paper { width: min(900px, 95vw); }

.paper.side { width: 400px; margin-right: 4vw; } .ropa { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .rp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 3px solid transparent; border-radius: 14px; padding: 6px 10px; cursor: pointer; font-family: var(--font); color: var(--ink); box-shadow: 0 3px 0 var(--line); text-align: left; } .rp i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15), 0 0 0 2px var(--line); flex: none; } .rp b { font-size: 14.5px; font-weight: 800; } .rp small { flex-basis: 100%; font: 700 12.5px var(--hand); color: var(--soft); line-height: 1.1; } .rp.on { border-color: var(--gold); background: #fff6d2; } .rp.lock { opacity: .55; cursor: default; }

.paper.side { padding: 20px 22px 18px; } .paper.side .lbl { margin: 9px 0 5px; } .paper.side .ropa { grid-template-columns: 1fr 1fr 1fr; gap: 6px; } .paper.side .rp { padding: 5px 7px; gap: 6px; } .paper.side .rp b { font-size: 12.5px; } .paper.side .rp i { width: 22px; height: 22px; } .paper.side .rp small { font-size: 11.5px; } .paper.side { width: 470px; }

.paper .troph { grid-template-columns: repeat(12, 1fr); } .paper .tr img { width: 46px; height: 46px; } .sub b { color: var(--ink); }

/* ===== La vida en Migas: zurrón, almanaque, calendario, pesca, feria ===== */
#dc-ev { align-self: flex-start; background: #fff3d8; color: #7a4a2a; border: 3px solid #fff; border-radius: 12px; padding: 3px 12px 4px; font-weight: 800; font-size: 14px; box-shadow: 0 3px 0 var(--shadow); transform: rotate(-1deg); margin-bottom: 4px; }
#dc-ev.hide { display: none; }
.sed { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 3px; vertical-align: -1px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.sechip { display: inline-block; color: #fff; font-weight: 800; font-size: 13.5px; padding: 2px 11px 3px; border-radius: 99px; margin: 0 6px 4px 0; text-shadow: 0 1px 0 rgba(90, 40, 20, .35); }
.mue.off { opacity: .45; }
button.mue.gift { border: none; font: inherit; color: inherit; cursor: pointer; transition: transform .1s; }
button.mue.gift:hover { transform: translateY(-3px) rotate(-1deg); background: #fff8e6; }
.mue.gift img, .feria img { pointer-events: none; }
.sheet.paper .empty, .feria .empty { font: 700 19px var(--hand); color: var(--soft); text-align: center; padding: 34px 10px; }
.thumbs.c5 { grid-template-columns: repeat(5, 1fr) !important; gap: 8px; }
.ofis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0 0 10px; }
.ofi { background: #fff8e6; border-radius: 12px; padding: 4px 8px 6px; box-shadow: 0 2px 0 var(--line); font-size: 12.5px; white-space: nowrap; display: grid; grid-template-columns: 1fr auto; gap: 1px 6px; align-items: baseline; }
.ofi b { font-weight: 800; } .ofi span { color: var(--soft); font-weight: 800; font-size: 12px; } .ofi .minibar { grid-column: 1 / 3; margin: 2px 0 0; }
.slots { display: flex; gap: 9px; flex-wrap: wrap; }
.slot { width: 104px; border: 3px dashed #d9c39a; border-radius: 16px; background: rgba(255, 255, 255, .5); padding: 6px 4px 7px; text-align: center; font: inherit; color: inherit; display: flex; flex-direction: column; align-items: center; gap: 1px; position: relative; }
.slot img { width: 62px; height: 62px; } .slot .coin { width: 40px; height: 40px; margin: 11px 0; }
.slot b { font-size: 12.5px; font-weight: 800; line-height: 1.1; min-height: 27px; display: grid; place-items: center; } .slot small { font: 700 13px var(--hand); color: var(--soft); }
.slot.can { border: 3px solid #f2b84b; background: #fff6d8; cursor: pointer; animation: bump 1s infinite; } .slot.can small { color: #c9621c; font-weight: 800; }
.slot.got { border: 3px solid #9ad19a; background: #eef7e6; } .slot.got::after { content: '✓'; position: absolute; right: -7px; top: -9px; width: 24px; height: 24px; border-radius: 50%; background: #5fae5a; color: #fff; font-weight: 900; font-size: 15px; display: grid; place-items: center; box-shadow: 0 2px 0 rgba(40, 90, 40, .4); }
.calhead { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; font-weight: 800; font-size: 12px; color: var(--soft); text-align: center; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.thumbs.cal { grid-template-columns: repeat(7, 1fr) !important; gap: 6px; align-content: start; }
.th.day { aspect-ratio: 1 / 1; height: auto; min-height: 0; border-radius: 12px; background: #fff; border-top: 9px solid var(--sc); position: relative; padding: 0; box-shadow: 0 2px 0 var(--line); }
.th.day em { position: absolute; left: 6px; top: 1px; font-style: normal; font-weight: 800; font-size: 15px; color: #7a4a2a; }
.th.day .bd { position: absolute; right: 1px; bottom: 1px; width: 62%; height: 62%; border-radius: 50%; } .th.day .bd.unk { filter: brightness(0) opacity(.18); }
.th.day.past { opacity: .5; } .th.day.today { box-shadow: 0 0 0 3px #e2664f, 0 3px 0 3px rgba(160, 60, 40, .4); } .th.day.sel { background: #fff3c4; transform: scale(1.06); }
.ev { display: inline-block; width: 11px; height: 11px; border-radius: 3px; transform: rotate(45deg); } .ev.e2 { background: #7b5ea7; } .ev.e4 { background: #4fa3c9; } .ev.e6 { background: #e2664f; }
.th.day .ev { position: absolute; left: 7px; bottom: 7px; }
.calkey { display: flex; flex-wrap: wrap; gap: 3px 12px; font: 700 14px var(--hand); color: var(--soft); margin-top: 8px; } .calkey .ev { margin-right: 6px; width: 9px; height: 9px; }
.calbig { width: 132px; height: 132px; flex: none; border-radius: 18px; background: #fff; border-top: 26px solid var(--sc); box-shadow: 0 4px 0 var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-3deg); position: relative; }
.calbig small { position: absolute; top: -24px; color: #fff; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; } .calbig b { font-size: 58px; line-height: 1; color: #5a3a28; } .calbig em { font: 700 17px var(--hand); color: var(--soft); font-style: normal; }
.bday { font: 700 15.5px var(--hand); color: #c9556b; margin-top: 6px; }
.toques { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding: 2px 4px 10px; scrollbar-width: none; max-width: 100%; }
.toques > * { flex: none; }
.toques b { font-weight: 800; font-size: 14px; color: #7a4a2a; margin-right: 4px; }
.tq { border: 3px solid transparent; background: #fff; border-radius: 99px; padding: 2px 12px 3px 6px; font: inherit; font-weight: 800; font-size: 13.5px; color: #5a3a28; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; box-shadow: 0 2px 0 var(--line); }
.tq img { width: 30px; height: 30px; margin: -4px 0; } .tq small { font-weight: 700; color: var(--soft); } .tq[data-tq=""] { padding-left: 12px; } .tq.on { border-color: #f2b84b; background: #fff3c4; }
.rl.tom { display: block; text-align: left; border-top: 2px dashed #d9c9a8; margin-top: 8px; padding-top: 8px; opacity: 0; animation: ink .5s forwards; }
.rl.tom b { display: block; letter-spacing: 2px; font-size: 12px; color: #a8642a; margin-bottom: 2px; } .rl.tom span { display: block; font: 700 16px var(--hand); line-height: 1.2; color: #5a3a28; } .rl.tom span::before { content: '· '; }
.feria { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.fcol { max-height: calc(44 * var(--vh, 1vh)); display: flex; flex-direction: column; gap: 5px; padding-right: 4px; }
.frow { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 2px 12px 2px 4px; box-shadow: 0 2px 0 var(--line); font-weight: 800; font-size: 14.5px; opacity: 0; animation: ink .35s forwards; }
.frow img { width: 40px; height: 40px; } .frow span { flex: 1; } .frow small { font: 700 13.5px var(--hand); color: #3f9a5a; margin-left: 4px; } .frow b { color: #e2664f; font-size: 17px; }
.fres { background: #fff8e6; border-radius: 18px; padding: 12px; text-align: center; box-shadow: 0 3px 0 var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fres .pic { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: #e9dcf5; box-shadow: 0 3px 0 var(--line); } .fres .pic img { width: 100%; height: 100%; }
.ftot { font-size: 44px; font-weight: 900; line-height: 1; color: #5a3a28; } .ftot small { display: block; font: 700 15px var(--hand); color: var(--soft); }
.rib { background: var(--rc); color: #4a2f1c; font-weight: 900; padding: 4px 16px 5px; border-radius: 99px; box-shadow: 0 3px 0 rgba(90, 50, 20, .35), inset 0 2px 0 rgba(255, 255, 255, .5); transform: rotate(-2deg); }
.fres .ds { font: 700 15px var(--hand); color: var(--soft); line-height: 1.2; }
.gauge.reel .in { min-width: 0; padding: 8px 9px 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.reel { display: flex; gap: 6px; align-items: stretch; height: 190px; }
.rtrack { position: relative; width: 44px; border-radius: 12px; background: linear-gradient(#bfe6f7, #6cc7ea 60%, #3f9ac9); box-shadow: inset 0 3px 0 rgba(30, 80, 120, .25); overflow: hidden; }
.rzone { position: absolute; left: 3px; right: 3px; border-radius: 9px; background: rgba(255, 255, 255, .45); border: 3px solid #fff; box-sizing: border-box; }
.gauge.reel.on .rzone { background: rgba(140, 230, 140, .65); border-color: #eaffd9; }
.rfish { position: absolute; left: 50%; width: 40px; height: 40px; margin: 0 0 -20px -20px; display: grid; place-items: center; } .rfish img { width: 100%; height: 100%; filter: drop-shadow(0 2px 0 rgba(20, 60, 90, .5)); } .rfish b { font-size: 24px; color: #fff; text-shadow: 0 2px 0 rgba(20, 60, 90, .6); }
.rprog { width: 12px; border-radius: 8px; background: #ead9b6; position: relative; overflow: hidden; } .rprog i { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(#ffe27a, #f2a03a); border-radius: 8px; }
.gauge.reel .tk { font-size: 12px; white-space: nowrap; }
/* arreglos: la carta cabe en pantallas bajas, y la flecha del colmado no tapa el rótulo */
.lettersheet { max-height: calc(96 * var(--vh, 1vh)); display: flex; flex-direction: column; }
.lettersheet .letter { overflow-y: auto; min-height: 0; }
@media (max-height: 560px) { .lettersheet h2 { font-size: 22px; margin-bottom: 6px; } .lettersheet .letter { padding: 18px 24px 14px; font-size: 16.5px; line-height: 1.32; } .lettersheet .letter p { margin-bottom: 6px; } .lettersheet .row { margin-top: 10px; } }
.btab:nth-child(5) { background-color: #f2c9a0; } .btab:nth-child(6) { background-color: #f2a8b8; } .btab:nth-child(7) { background-color: #a8d8e8; }
.btab { padding-left: 15px; padding-right: 15px; }
.prod .cur { top: -8px; width: 22px; height: 22px; margin-left: -11px; }

/* ---------- pantallas pequeñas: se lee antes que caber de una vez ---------- */
@media (pointer: coarse) { #keys { display: none !important; } }
/* la hoja que no cabe entera se recorre con el dedo */
body.small #modal { overflow-y: auto; align-items: safe center; padding: 8px 0; box-sizing: border-box; scrollbar-width: none; } body.small .sheet { max-height: none; } body.small .sheet.lettersheet { max-height: calc(96 * var(--vh, 1vh)); }
body.small .book { height: min(640px, calc(100 * var(--vh, 1vh) - 74px)); margin-top: 38px; }
body.small .bpage { padding: 16px 20px 12px; } body.small .bpage.l { padding-right: 32px; } body.small .bpage.r { padding-left: 36px; overflow-y: auto; scrollbar-width: none; }
body.small .bpage h2 { font-size: 28px; } body.small .bpage .sub { margin-bottom: 6px; font-size: 15px; } body.small .bfoot { padding-top: 6px; }
body.small .rcards { gap: 12px 10px; padding-top: 10px; max-height: none; }
body.small #goal { max-width: calc(100vw / var(--z, 1) - 150px); }
body.small #title .logo { width: min(500px, 62vw); top: 2vh; } body.small #title { padding-bottom: 4vh; }

/* ---------- encargos con progreso ---------- */
.ord { padding: 4px 12px 5px 4px; } .ord .oc { display: flex; flex-direction: column; gap: 0; line-height: 1.15; } .ord .l1 { display: flex; align-items: center; gap: 5px; } .ord .l1 img { width: 32px; height: 32px; margin: -5px -3px; } .ord .l1 b { margin-left: 4px; }
.ord .pg { background: #fff; border-radius: 99px; padding: 0 8px; font-size: 12.5px; font-weight: 900; color: var(--red); box-shadow: 0 2px 0 var(--line); font-variant-numeric: tabular-nums; } .ord small { font-size: 12px; }
.ord.late { opacity: 1; text-decoration: none; border-left-color: #b9a78e; background-color: #efe6d3; } .ord.late small { color: #b0563f; }
.ord.rdy { border-left-color: var(--gold); background-color: #fff3c4; animation: ordrdy 1s ease-in-out infinite alternate; } .ord.rdy .pg { background: var(--green); color: #fff; box-shadow: 0 2px 0 #3f8a50; } .ord.rdy small { color: #8a5a12; } .ord.ok .pg { background: var(--green); color: #fff; box-shadow: none; }
@keyframes ordrdy { to { transform: translateX(5px) scale(1.03); box-shadow: 0 3px 0 var(--shadow), 0 0 0 4px rgba(255, 214, 110, .75); } }

/* ---------- el reloj que corre ---------- */
#cal .clock { pointer-events: auto; cursor: pointer; position: relative; touch-action: none; }
#cal .clock::after { content: 'F ▸▸'; position: absolute; right: -10px; bottom: -11px; background: #fff8e6; color: var(--soft); font: 900 11px var(--font); padding: 2px 8px; border-radius: 99px; box-shadow: 0 2px 0 #b98a52, 0 0 0 2px #cfa16b; letter-spacing: .5px; transition: transform .15s cubic-bezier(.2, 1.8, .4, 1), background .15s, color .15s; }
body.ff #cal .clock::after { background: var(--red); color: #fff; box-shadow: 0 2px 0 var(--red2), 0 0 0 2px #fff; transform: scale(1.25) rotate(-4deg); }
body.ff #cal .clock { animation: ffclock .32s ease-in-out infinite alternate; } @keyframes ffclock { to { transform: rotate(1.6deg) scale(1.04); } }
body.ff #dc-time { color: var(--red); }
#ui::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(ellipse at center, transparent 52%, rgba(255, 236, 190, .5) 100%), repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, .07) 46px 50px); z-index: 1; }
body.ff #ui::after { opacity: 1; animation: ffline .5s linear infinite; } @keyframes ffline { to { background-position: 0 0, 50px 0; } }
.toast kbd { margin-right: 2px; }

/* ---------- sello de guardado ---------- */
#saved { position: absolute; right: calc(98px * var(--z, 1)); bottom: calc(34px * var(--z, 1)); zoom: var(--z, 1); display: flex; align-items: center; gap: 8px; background: var(--paper) var(--grain); color: var(--ink); font: 700 16px var(--hand); padding: 5px 14px 5px 8px; border-radius: 4px 12px 4px 12px; box-shadow: 0 3px 0 var(--shadow); rotate: -2deg; opacity: 0; pointer-events: none; z-index: 2; }
#saved i { width: 22px; height: 22px; border-radius: 50%; background: var(--green); box-shadow: 0 2px 0 #3f8a50; position: relative; flex: none; } #saved i::after { content: ''; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(40deg); }
#saved.on { animation: savedin 2.6s forwards; } @keyframes savedin { 0% { opacity: 0; transform: translateX(30px) scale(.8); } 9% { opacity: 1; transform: translateX(-4px) scale(1.06); } 15% { transform: none; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(6px); } }

/* ---------- pausa: la libreta en curso ---------- */
.psave { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 10px 14px 10px 10px; margin: 0 0 14px; box-shadow: 0 4px 0 var(--line); border-left: 12px solid var(--lc, var(--red)); }
.psave .ph { width: 128px; height: 80px; flex: none; background: #f1e3c3; border: 4px solid #fff; border-radius: 4px; box-shadow: 0 3px 0 var(--line), 0 0 0 1px var(--line); rotate: -2.5deg; overflow: hidden; } .psave .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.psave .pi { flex: 1; min-width: 0; } .psave .pi b { display: block; font: 700 25px var(--hand); line-height: 1.05; } .psave .pi small { display: block; font: 700 14.5px var(--hand); color: var(--soft); margin-bottom: 6px; } .psave .pb { display: flex; gap: 8px; flex-wrap: wrap; }
.lib-c0 { --lc: #e2664f; --lc2: #b9483a; --lc3: #f08a70; } .lib-c1 { --lc: #6fbf8f; --lc2: #47966a; --lc3: #92d6ad; } .lib-c2 { --lc: #5b9bd0; --lc2: #3d76a8; --lc3: #86bde8; }

/* ---------- título: las libretas ---------- */
#title.libros { justify-content: flex-end; padding-bottom: 2.2vh; background: linear-gradient(180deg, rgba(255, 240, 210, 0) 26%, rgba(70, 38, 16, .62)); transition: opacity .4s .15s; }
#title.libros.leaving { opacity: 0; }
#title.libros .logo { width: min(470px, 46vw); top: 1.5vh; }
.libs-h { font: 700 26px var(--hand); color: #fff6da; background: var(--chalk); border: 5px solid var(--wood); border-radius: 12px; padding: 2px 22px; rotate: -1.5deg; box-shadow: 0 4px 0 var(--shadow), inset 0 0 14px rgba(0, 0, 0, .25); margin-bottom: 20px; }
.libs { display: flex; gap: 34px; align-items: flex-end; perspective: 1500px; }
.lib { position: relative; width: 250px; padding-bottom: 62px; transition: transform .22s cubic-bezier(.2, 1.5, .4, 1), filter .2s; transform: translateY(16px) rotate(var(--r, 0deg)) scale(.94); filter: brightness(.88) saturate(.85); cursor: pointer; }
.lib:nth-child(1) { --r: -2.5deg; } .lib:nth-child(2) { --r: 1deg; } .lib:nth-child(3) { --r: 2.5deg; }
.libs.in .lib { animation: libin .7s cubic-bezier(.2, 1.4, .4, 1) backwards; } .libs.in .lib:nth-child(2) { animation-delay: .1s; } .libs.in .lib:nth-child(3) { animation-delay: .2s; } @keyframes libin { from { transform: translateY(380px) rotate(14deg); opacity: 0; } }
.lib.sel { transform: translateY(0) rotate(0deg) scale(1); filter: none; z-index: 2; }
.lib .cover { position: relative; height: 322px; border-radius: 8px 20px 20px 8px; background: linear-gradient(90deg, var(--lc2) 0 30px, transparent 30px), var(--grain), linear-gradient(160deg, var(--lc3), var(--lc)); box-shadow: 0 7px 0 var(--lc2), 0 16px 26px rgba(50, 25, 10, .45), inset 0 0 0 3px rgba(255, 255, 255, .28); padding: 16px 16px 12px 44px; transform-origin: 0 50%; transition: transform .5s cubic-bezier(.3, .9, .3, 1), opacity .2s .25s; backface-visibility: hidden; z-index: 2; display: flex; flex-direction: column; gap: 9px; }
.lib .rings { position: absolute; left: 7px; top: 22px; bottom: 22px; width: 30px; background: radial-gradient(circle at 15px 15px, #fff7e4 0 5.5px, rgba(60, 25, 10, .5) 6px 8px, transparent 8.5px) 0 0 / 30px 34px repeat-y; }
.lib .rings::after { content: ''; position: absolute; left: -11px; top: 9px; bottom: 9px; width: 24px; background: linear-gradient(#d9d2c4, #a59c8c) 0 0 / 24px 6px repeat-y; background-size: 24px 34px; background-image: linear-gradient(180deg, transparent 0 4px, #efe9dc 4px 7px, #a59c8c 7px 10px, transparent 10px); border-radius: 6px; }
.lib.sel .cover { box-shadow: 0 7px 0 var(--lc2), 0 22px 34px rgba(50, 25, 10, .5), inset 0 0 0 3px rgba(255, 255, 255, .28), 0 0 0 5px rgba(255, 233, 160, .95); }
.lib .label { position: relative; background: #fffdf5; border-radius: 8px; padding: 4px 30px 5px 12px; box-shadow: 0 3px 0 rgba(60, 25, 10, .25), inset 0 0 0 2px #fffdf5, inset 0 0 0 4px #e2664f55; rotate: -1.2deg; cursor: text; }
.lib .label small { display: block; font: 900 10px var(--font); letter-spacing: 1.6px; text-transform: uppercase; color: var(--soft); } .lib .label b { display: block; font: 700 23px/1.05 var(--hand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 24px; }
.lib .label .pen { position: absolute; right: 8px; top: 50%; translate: 0 -50%; font-style: normal; color: var(--soft); opacity: 0; transition: opacity .15s; } .lib.sel .label:hover .pen { opacity: 1; }
.lib .label input { font: 700 23px/1 var(--hand); color: var(--ink); width: 100%; border: none; outline: none; background: #fff3c4; border-radius: 4px; padding: 0 2px; margin: 0 -2px; }
.lib .photo { position: relative; align-self: center; width: 178px; height: 122px; background: #fffdf5; padding: 6px 6px 14px; box-shadow: 0 4px 0 rgba(60, 25, 10, .28); rotate: 2.2deg; flex: none; } .lib .photo img { width: 100%; height: 100%; object-fit: cover; display: block; background: #f1e3c3; }
.lib .photo.no > span:not(.who) { display: grid; place-items: center; height: 100%; background: repeating-linear-gradient(45deg, #f4e7c8 0 9px, #efdfba 9px 18px); font: 700 15px var(--hand); color: var(--soft); }
.lib .photo .tape { position: absolute; left: 50%; top: -9px; width: 62px; height: 19px; margin-left: -31px; background: rgba(245, 205, 110, .85); rotate: -3deg; box-shadow: 0 1px 0 rgba(120, 80, 20, .2); }
.lib .stats { display: flex; align-items: center; gap: 7px; margin-top: 3px; } .lib .st { display: inline-flex; align-items: center; gap: 4px; background: #fffdf5; border-radius: 99px; padding: 1px 9px 1px 4px; font-weight: 900; font-size: 13.5px; box-shadow: 0 2px 0 rgba(60, 25, 10, .25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lib .ros { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--red); color: #fff; font: 900 11px var(--font); font-style: normal; flex: none; }
.lib .mleaf { width: 40px; flex: none; background: #fffdf5; border-radius: 6px 6px 3px 3px; text-align: center; overflow: hidden; box-shadow: 0 2px 0 rgba(60, 25, 10, .25); rotate: -4deg; margin: -4px 0; } .lib .mleaf em { display: block; background: var(--red); color: #fff; font: 900 9px var(--font); font-style: normal; text-transform: uppercase; letter-spacing: 1px; padding: 2px 0 0; } .lib .mleaf b { display: block; font: 900 19px/1.15 var(--font); }
.lib .foot { font: 700 14px/1.2 var(--hand); color: #fff; text-shadow: 0 1px 0 rgba(60, 25, 10, .45); margin-top: auto; }
.lib .acts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; justify-content: center; align-items: center; opacity: 0; transform: translateY(-14px) scale(.9); transition: opacity .15s, transform .2s cubic-bezier(.2, 1.6, .4, 1); pointer-events: none; }
.lib.sel .acts { opacity: 1; transform: none; pointer-events: auto; } #title.libros .lib .btn { font-size: 17px; padding: 10px 18px; margin: 0; border-radius: 14px; white-space: nowrap; } #title.libros .lib .btn.sm { font-size: 14px; padding: 8px 12px; }
/* libreta vacía */
.lib.empty .cover { background: linear-gradient(90deg, #b99468 0 30px, transparent 30px), var(--grain), linear-gradient(160deg, #e6c89c, var(--kraft)); box-shadow: 0 7px 0 #a98458, 0 16px 26px rgba(50, 25, 10, .4), inset 0 0 0 3px rgba(255, 255, 255, .3); align-items: center; justify-content: center; text-align: center; gap: 4px; color: var(--ink); }
.lib.empty.sel .cover { box-shadow: 0 7px 0 #a98458, 0 22px 34px rgba(50, 25, 10, .5), inset 0 0 0 3px rgba(255, 255, 255, .3), 0 0 0 5px rgba(255, 233, 160, .95); }
.lib.empty .plus { width: 74px; height: 74px; border-radius: 50%; border: 4px dashed #a98458; display: grid; place-items: center; font: 900 44px/1 var(--font); color: #a98458; margin-bottom: 8px; transition: transform .25s cubic-bezier(.2, 1.8, .4, 1); } .lib.empty.sel .plus { transform: rotate(90deg) scale(1.08); background: #fff6da; }
.lib.empty .nw { font: 700 27px var(--hand); } .lib.empty small { font: 700 15.5px/1.2 var(--hand); color: #7c5c40; }
/* libreta abierta: la tapa gira sobre las anillas y deja ver la hoja */
.lib .inside { position: absolute; left: 22px; right: 0; top: 0; height: 322px; border-radius: 4px 18px 18px 4px; background: linear-gradient(90deg, transparent 0 26px, #f0a8a0 26px 28px, transparent 28px), repeating-linear-gradient(#fffdf5 0 25px, #cfe0ee 25px 27px); box-shadow: 0 7px 0 #d9c9a4, 0 16px 26px rgba(50, 25, 10, .45); padding: 10px 12px 10px 36px; display: flex; flex-direction: column; gap: 3px; opacity: 0; pointer-events: none; transition: opacity .1s .3s; overflow: hidden; }
.lib.open .inside { opacity: 1; pointer-events: auto; transition: opacity .05s; } .lib.open .cover { transform: rotateY(-108deg); opacity: 0; pointer-events: none; }
.lib .in-h { font: 700 21px/1.2 var(--hand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lib .in-l { font: 900 10px var(--font); letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin-top: 7px; } .lib .none { font: 700 15px var(--hand); color: var(--soft); }
.lib .row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; border: none; background: rgba(255, 255, 255, .0); font: 700 17px/1 var(--hand); color: var(--ink); padding: 5px 8px; border-radius: 9px; cursor: pointer; text-align: left; overflow: hidden; } .lib .row em { font-style: normal; font: 900 13px var(--font); color: var(--soft); display: inline-flex; align-items: center; gap: 3px; flex: none; }
.lib .row:hover { background: #fff3c4; box-shadow: 0 2px 0 var(--line); } .lib .row[disabled] { opacity: .4; pointer-events: none; } .lib .row.sure { background: var(--red); color: #fff; font-size: 14.5px; } .lib .row.sure em { display: none; }
.lib .row.del { color: #b9483a; margin-top: auto; } .lib .row.del::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--h, 0) * 100%); background: rgba(226, 102, 79, .35); } .lib .row.del > * { position: relative; }
.lib.torn { animation: torn .4s forwards; } @keyframes torn { to { transform: translateY(260px) rotate(24deg) scale(.7); opacity: 0; } }
.lib.pick { transform: translateY(-26px) scale(1.07) !important; transition: transform .45s cubic-bezier(.2, 1.5, .4, 1); } .lib.drop { transform: translateY(420px) rotate(10deg) !important; opacity: 0; transition: transform .45s ease-in, opacity .3s .15s; }
.tfoot { display: flex; gap: 16px; align-items: center; margin-top: 12px; color: #fff; font-weight: 800; font-size: 14px; text-shadow: 0 1px 4px rgba(60, 30, 10, .8); }
.tlink { background: none; border: none; color: #fff6da; font: 700 17px var(--hand); text-decoration: underline dashed; text-underline-offset: 4px; cursor: pointer; text-shadow: 0 1px 4px rgba(60, 30, 10, .8); padding: 4px 8px; } .tlink:hover { color: #fff; }
.tbin { position: absolute; left: 50%; top: 31vh; translate: -50% 0; display: flex; gap: 12px; align-items: center; background: var(--kraft) var(--grain); font-weight: 800; font-size: 16px; padding: 8px 14px 8px 34px; clip-path: polygon(20px 0, 100% 0, 100% 100%, 20px 100%, 0 50%); filter: drop-shadow(0 4px 0 var(--shadow)); animation: pop .25s cubic-bezier(.2, 1.6, .4, 1); z-index: 5; white-space: nowrap; } #title.libros .tbin .btn { font-size: 14px; padding: 6px 12px; margin: 0; border-radius: 10px; }
body.small #title.libros .logo { width: min(330px, 40vw); top: 1vh; } body.small .libs { gap: 16px; } body.small .libs-h { margin-bottom: 10px; font-size: 20px; } body.small .tfoot span { display: none; }
@media (max-aspect-ratio: 1/1) { .libs { gap: 0; } .lib { margin: 0 -62px; } .lib.sel { z-index: 3; } }

/* ---------- quién lleva el obrador ---------- */
.lib .photo .who { position: absolute; right: -16px; bottom: -12px; width: 54px; height: 54px; border-radius: 50%; background: #ffe9b8; border: 4px solid #fffdf5; box-shadow: 0 3px 0 rgba(60, 25, 10, .3); overflow: hidden; rotate: -6deg; } .lib .photo .who img { width: 118%; height: 118%; margin: -4% 0 0 -9%; display: block; }
.lib .st { flex: none; } .lib .st.lv { flex: 0 1 auto; display: inline-block; padding-left: 4px; } .lib .st.lv .ros { display: inline-grid; vertical-align: -3px; margin-right: 4px; }
#pick { position: absolute; inset: 0; z-index: 3; background: radial-gradient(ellipse at 50% 42%, transparent 26%, rgba(20, 12, 32, .62) 100%); animation: pkin .5s both; } @keyframes pkin { from { opacity: 0; } }
#pick > * { zoom: var(--z, 1); }
.pk-h { position: absolute; left: 50%; top: 3.5vh; translate: -50% 0; font: 700 38px var(--hand); color: #fff6da; background: var(--chalk); border: 6px solid var(--wood); border-radius: 14px; padding: 3px 34px 5px; rotate: -1.5deg; box-shadow: 0 6px 0 rgba(20, 10, 5, .45), inset 0 0 18px rgba(0, 0, 0, .3); white-space: nowrap; animation: pkdrop .6s cubic-bezier(.2, 1.4, .4, 1) both; } @keyframes pkdrop { from { transform: translateY(-140px) rotate(-8deg); } }
.pk-plate { position: absolute; left: 50%; bottom: 7.5vh; width: 640px; margin-left: -320px; text-align: center; background: var(--paper) var(--grain); border-radius: 8px 8px 26px 26px; padding: 9px 26px 14px; box-shadow: 0 7px 0 rgba(20, 10, 5, .45), 0 20px 40px rgba(10, 5, 20, .55); border-top: 12px solid var(--red); transition: border-color .25s; }
#pick[data-sel="1"] .pk-plate { border-top-color: #34466b; }
.pk-plate.in { animation: pkplate .42s cubic-bezier(.2, 1.4, .4, 1) both; } @keyframes pkplate { from { transform: translateX(calc(var(--d, 1) * 70px)) rotate(calc(var(--d, 1) * 3deg)); opacity: 0; } }
.pk-plate .tape { position: absolute; left: 50%; top: -24px; width: 110px; height: 24px; margin-left: -55px; background: rgba(245, 205, 110, .9); rotate: -2deg; box-shadow: 0 1px 0 rgba(120, 80, 20, .2); }
.pk-sub { display: block; font: 900 11.5px var(--font); letter-spacing: 2px; text-transform: uppercase; color: var(--red); } #pick[data-sel="1"] .pk-sub { color: #34466b; }
.pk-name { font: 900 58px/0.95 var(--font); color: var(--ink); letter-spacing: 1px; margin: 0 0 2px; text-shadow: 0 4px 0 var(--line); } .pk-name span { display: inline-block; animation: pkletter .45s cubic-bezier(.2, 1.9, .4, 1) both; } @keyframes pkletter { from { transform: translateY(26px) scale(.4) rotate(-14deg); opacity: 0; } }
.pk-quote { font: 700 22px/1.15 var(--hand); color: var(--ink); margin-bottom: 7px; }
.pk-tags { display: flex; gap: 7px; justify-content: center; flex-wrap: nowrap; margin-bottom: 10px; } .pk-tags span { background: #fff; border-radius: 99px; padding: 2px 12px 3px; font: 700 15.5px var(--hand); color: var(--soft); box-shadow: 0 2px 0 var(--line); white-space: nowrap; animation: pop .3s cubic-bezier(.2, 1.6, .4, 1) both; }
.pk-plate .btn { font-size: 20px; padding: 10px 40px; }
.pk-seal { position: absolute; right: 22px; top: 22px; border: 5px solid var(--red); color: var(--red); font: 900 27px var(--font); padding: 2px 14px; border-radius: 10px; letter-spacing: 2px; rotate: 12deg; background: rgba(255, 255, 255, .7); opacity: 0; pointer-events: none; } #pick.done .pk-seal { opacity: .94; animation: stamp .35s cubic-bezier(.3, 1.6, .5, 1); }
.pk-arrow { position: absolute; top: 36%; display: flex; align-items: center; gap: 10px; background: var(--kraft) var(--grain); border: none; cursor: pointer; padding: 8px 20px; font-family: var(--font); color: var(--ink); filter: drop-shadow(0 5px 0 rgba(20, 10, 5, .45)); transition: transform .2s cubic-bezier(.2, 1.6, .4, 1), opacity .2s; animation: pkbob 1.1s ease-in-out infinite alternate; }
.pk-arrow.l { left: 3.5%; clip-path: polygon(26px 0, 100% 0, 100% 100%, 26px 100%, 0 50%); padding-left: 38px; --bx: -7px; } .pk-arrow.r { right: 3.5%; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%); padding-right: 38px; --bx: 7px; } @keyframes pkbob { to { translate: var(--bx) 0; } }
.pk-arrow b { font: 700 27px var(--hand); } .pk-arrow .pk-pic { width: 50px; height: 50px; flex: none; border-radius: 50%; background: #ffe9b8; border: 3px solid #fff; overflow: hidden; filter: saturate(.75) brightness(.92); } .pk-arrow .pk-pic img { width: 118%; height: 118%; margin: -4% 0 0 -9%; display: block; }
.pk-arrow:hover { transform: scale(1.08); } .pk-arrow.off { opacity: 0; pointer-events: none; transform: scale(.7); }
.pk-dots { position: absolute; left: 50%; bottom: 5.6vh; translate: -50% 0; display: flex; gap: 8px; } .pk-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: all .2s; } .pk-dots i.on { background: #ffe27a; width: 26px; }
#pick.done .pk-arrow, #pick.done .pk-keys, #pick.done .pk-dots, #pick.done .pk-plate .btn { opacity: 0; pointer-events: none; }
.pk-keys { position: absolute; left: 50%; bottom: 1.6vh; translate: -50% 0; display: flex; gap: 18px; color: #fff; font-weight: 800; font-size: 13.5px; text-shadow: 0 1px 4px rgba(20, 10, 30, .9); white-space: nowrap; align-items: center; transition: opacity .2s; }
@media (max-aspect-ratio: 1/1) { .pk-plate { width: 92vw; margin-left: -46vw; } .pk-name { font-size: 54px; } .pk-h { font-size: 26px; } .pk-keys, .pk-arrow kbd { display: none; } .pk-arrow { top: 30%; } }

/* ---------- ratos libres ---------- */
#oferta { background: var(--chalk); color: #fff6da; border: 5px solid var(--wood); border-radius: 10px; padding: 3px 12px 3px 8px; font: 700 15px var(--hand); display: flex; align-items: center; gap: 6px; white-space: nowrap; rotate: -1deg; box-shadow: inset 0 0 14px rgba(0, 0, 0, .25); align-self: flex-start; } #oferta:empty { display: none; } #oferta img { width: 32px; height: 32px; margin: -5px 0; } #oferta b { color: #ffe27a; }
.bub.chatty .in { padding: 12px 12px 8px; } .bub.chatty b { display: block; font: 700 16px var(--hand); color: var(--ink); white-space: nowrap; } .bub.chatty .in { animation: pop .3s cubic-bezier(.2, 1.6, .4, 1), chatty 1.2s .3s ease-in-out infinite alternate; } @keyframes chatty { to { transform: translate(-50%, -100%) rotate(-2.5deg) scale(1.04); } }
#score { position: absolute; left: 50%; bottom: 5%; width: 560px; margin-left: -280px; text-align: center; zoom: var(--zs, 1); cursor: pointer; animation: pop .25s cubic-bezier(.2, 1.4, .4, 1); z-index: 2; }
#score canvas { display: block; width: 560px; height: 210px; filter: drop-shadow(0 7px 0 var(--shadow)) drop-shadow(0 16px 20px rgba(60, 30, 10, .35)); }
.sc-word { height: 34px; font: 900 27px var(--font); color: #fff; text-shadow: 0 3px 0 rgba(120, 70, 20, .75), 0 0 16px rgba(60, 30, 10, .5); margin-top: -6px; } .sc-keys { display: flex; gap: 16px; justify-content: center; color: #fff; font-weight: 800; font-size: 13.5px; text-shadow: 0 1px 3px rgba(60, 30, 10, .8); }

/* ---------- la radio ---------- */
.sheet.radio { width: 820px; } .sheet.radio .hint-keys kbd { margin: 0 1px; }
.rd-body { position: relative; background: linear-gradient(#ec7a62, var(--red) 55%, #cf5644); border-radius: 46px 46px 30px 30px; padding: 30px 30px 24px; box-shadow: 0 10px 0 var(--red2), 0 26px 50px rgba(50, 25, 10, .5), inset 0 0 0 4px rgba(255, 255, 255, .22), inset 0 -16px 0 rgba(120, 40, 20, .18); background-image: var(--grain), linear-gradient(#ec7a62, var(--red) 55%, #cf5644); }
.rd-handle { position: absolute; left: 50%; top: -34px; width: 300px; height: 56px; margin-left: -150px; border: 12px solid #b9794a; border-bottom: none; border-radius: 40px 40px 0 0; z-index: -1; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25); }
.rd-row { display: flex; gap: 18px; align-items: stretch; }
.rd-grille { width: 132px; flex: none; border-radius: 22px; background: #5a3a28; display: flex; gap: 6px; align-items: center; justify-content: center; padding: 14px 12px; box-shadow: inset 0 5px 0 rgba(0, 0, 0, .3), 0 0 0 4px #f4e6c8; } .rd-grille i { width: 6px; height: 88px; border-radius: 6px; background: #f2b84b; transform-origin: 50% 50%; transform: scaleY(.15); } .sheet.radio.off .rd-grille i { background: #8c6a50; }
.rd-face { flex: 1; background: #f8edd2 var(--grain); border-radius: 22px; padding: 14px 20px 10px; box-shadow: inset 0 5px 0 rgba(120, 80, 30, .18), 0 0 0 4px #fff; position: relative; }
.rd-scale { position: relative; height: 84px; cursor: ew-resize; touch-action: none; border-bottom: 3px solid #cbb48a; margin-right: 46px; }
.rd-ticks i { position: absolute; bottom: 0; width: 2px; height: 14px; background: #b79f77; margin-left: -1px; } .rd-ticks i.big { height: 26px; background: #7a5a3e; } .rd-ticks b { position: absolute; left: 50%; bottom: 30px; translate: -50% 0; font: 900 15px var(--font); color: #7a5a3e; }
.rd-marks i { position: absolute; top: 4px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; } .rd-marks i.on { background: var(--green); box-shadow: 0 2px 0 #3f8a50, 0 0 0 3px rgba(95, 174, 110, .25); } .rd-marks i.new { background: var(--gold); animation: bob .5s infinite alternate; box-shadow: 0 0 0 4px rgba(242, 184, 75, .3); } .rd-marks i.lock { background: none; border: 3px dashed #cbb48a; }
.rd-needle { position: absolute; top: -6px; bottom: -7px; width: 5px; margin-left: -2.5px; background: var(--red); border-radius: 4px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 3px 3px 0 rgba(120, 60, 20, .2); } .rd-needle::after { content: ''; position: absolute; left: -6px; top: -8px; width: 17px; height: 17px; border-radius: 50%; background: var(--red); box-shadow: 0 2px 0 var(--red2); }
.rd-eye { position: absolute; right: 14px; top: 16px; width: 40px; height: 40px; border-radius: 50%; background: #23362a; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .4), 0 0 0 3px #cbb48a; display: grid; place-items: center; } .rd-eye i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(#d6ffb0, #6fe05a 55%, #2f9a3a); box-shadow: 0 0 14px #7dff6a; transition: transform .08s, opacity .08s; }
.rd-fm { font: 900 12px var(--font); letter-spacing: 1.5px; color: #a58a62; margin-top: 7px; font-variant-numeric: tabular-nums; } .rd-fm span { color: var(--red); font-size: 15px; }
.rd-knobs { width: 112px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; }
.rd-knob { width: 92px; height: 92px; border-radius: 50%; border: none; cursor: grab; background: radial-gradient(circle at 35% 30%, #fff6da, #f2b84b 60%, #c98a2a); box-shadow: 0 6px 0 #a56f1f, 0 0 0 5px #f4e6c8, 0 12px 14px rgba(60, 25, 10, .3); touch-action: none; padding: 0; } .rd-knob:active { cursor: grabbing; } .rd-knob i { display: block; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(#7a4a2a, #7a4a2a) 50% 9px / 7px 22px no-repeat; }
.rd-pow { width: 58px; height: 30px; border-radius: 99px; border: none; background: #5a3a28; cursor: pointer; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .3), 0 0 0 3px #f4e6c8; position: relative; padding: 0; } .rd-pow i { position: absolute; top: 4px; left: 31px; width: 22px; height: 22px; border-radius: 50%; background: #7dff6a; box-shadow: 0 0 10px #7dff6a; transition: left .15s cubic-bezier(.2, 1.6, .4, 1), background .15s; } .sheet.radio.off .rd-pow i { left: 5px; background: #a58a62; box-shadow: none; }
.rd-label { position: relative; margin: 20px 4px 0; background: var(--paper) var(--grain); border-radius: 5px; padding: 12px 22px 12px; min-height: 108px; box-shadow: 0 4px 0 rgba(120, 40, 20, .35); rotate: -.6deg; }
.rd-label .tape { position: absolute; left: 50%; top: -11px; width: 96px; height: 22px; margin-left: -48px; background: rgba(245, 205, 110, .92); rotate: -2deg; }
#rd-txt.in { animation: rdin .28s cubic-bezier(.2, 1.4, .4, 1); } @keyframes rdin { from { transform: translateY(8px); opacity: 0; } }
#rd-txt small { display: block; font: 900 11px var(--font); letter-spacing: 1.6px; text-transform: uppercase; color: var(--red); } #rd-txt b { display: block; font: 700 34px/1.05 var(--hand); } #rd-txt p { margin: 2px 0 0; font: 700 18px/1.2 var(--hand); color: var(--soft); } #rd-txt em { display: block; font: 700 18px var(--hand); font-style: normal; color: var(--ink); margin-top: 3px; } #rd-txt u { text-decoration: none; color: var(--ink); background: #fff3c4; padding: 0 5px; border-radius: 5px; }
.rd-seal { position: absolute; right: 18px; top: 16px; border: 5px solid var(--green); color: #3f8a50; font: 900 22px var(--font); padding: 1px 12px; border-radius: 10px; letter-spacing: 2px; rotate: 9deg; background: rgba(255, 255, 255, .7); opacity: 0; pointer-events: none; } .rd-label.hit .rd-seal { animation: rdseal 2.4s forwards; } @keyframes rdseal { 0% { opacity: 0; transform: scale(2.4); } 8% { opacity: .95; transform: scale(1); } 80% { opacity: .95; } 100% { opacity: 0; } }
.rd-presets { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin-top: 16px; } .rd-p { display: inline-flex; align-items: center; gap: 6px; border: none; border-radius: 12px; padding: 5px 12px 5px 6px; font: 800 13.5px var(--font); color: var(--ink); background: linear-gradient(#fffaf0, #f6e6c2); box-shadow: 0 3px 0 rgba(120, 40, 20, .4); cursor: pointer; white-space: nowrap; } .rd-p.no { background: rgba(90, 40, 20, .28); color: #ffe9d8; box-shadow: none; cursor: default; padding-left: 12px; font-weight: 700; } .rd-p .lk { display: inline-block; width: 11px; height: 9px; border-radius: 2px; background: #ffe9d8; position: relative; margin-top: 4px; } .rd-p .lk::before { content: ''; position: absolute; left: 1.5px; top: -6px; width: 5px; height: 6px; border: 2px solid #ffe9d8; border-bottom: none; border-radius: 5px 5px 0 0; }
body.small .sheet.radio { width: 760px; }

/* ---------- progresión a la vista ---------- */
.th .who { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; background: #ffe9b8; border: 3px solid #fff; overflow: hidden; box-shadow: 0 2px 0 var(--line); } .th .who img { width: 118%; height: 118%; margin: -4% 0 0 -9%; display: block; filter: none !important; opacity: 1 !important; }
.howto { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 3px 0 var(--line); } .howto .pic { width: 66px; height: 66px; flex: none; border-radius: 50%; background: #ffe9b8; overflow: hidden; border: 3px solid #fff; box-shadow: 0 2px 0 var(--line); } .howto .pic img { width: 118%; height: 118%; margin: -4% 0 0 -9%; display: block; } .howto b { display: block; font: 700 23px/1.1 var(--hand); } .howto p { margin: 2px 0 0; font: 700 16.5px/1.22 var(--hand); color: var(--soft); }
.det .from .hearts { font-size: 22px; } .det .from .minibar { margin-left: 10px; }
.th.medal .stk { background: #efe2c4; border-radius: 50%; aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; } .th.medal b { font: 900 22px var(--font); color: #b9a78e; position: relative; z-index: 1; } .th.medal.on .stk { background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 65%, #c98a2a); box-shadow: 0 3px 0 #a56f1f; } .th.medal.on b { color: #fff; text-shadow: 0 2px 0 #a56f1f; }
.th.medal .stk i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--p, 0%); background: rgba(242, 184, 75, .5); }
.bigmedal { width: 150px; height: 150px; flex: none; border-radius: 50%; background: #efe2c4; display: grid; place-items: center; box-shadow: 0 5px 0 var(--line), inset 0 0 0 6px #fff; rotate: -5deg; } .bigmedal b { font: 900 70px var(--font); color: #cdbb9c; } .bigmedal.on { background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold) 62%, #c98a2a); box-shadow: 0 6px 0 #a56f1f, inset 0 0 0 6px rgba(255, 255, 255, .55); animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); } .bigmedal.on b { color: #fff; text-shadow: 0 4px 0 #a56f1f; }
.lprog { display: flex; align-items: center; gap: 14px; min-height: 44px; } .lprog .minibar { flex: 1; height: 16px; } .lprog b { font: 900 18px var(--font); white-space: nowrap; }
.prizes { display: flex; gap: 10px; flex-wrap: wrap; } .pz { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 99px; padding: 5px 16px 5px 10px; font: 800 16px var(--font); box-shadow: 0 3px 0 var(--line); } .pz.mus { background: var(--red); color: #fff; box-shadow: 0 3px 0 var(--red2); padding-left: 16px; }
.bub.wish img { filter: brightness(0) opacity(.28); } .bub.wish .q { position: absolute; left: 50%; top: 14px; translate: -50% 0; font: 900 30px var(--font); color: var(--red); text-shadow: 0 2px 0 #fff; animation: bob .5s infinite alternate; }
.th.unk .mini { top: -2px; bottom: auto; }

/* ---------- armario y La Percha ---------- */
.wtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; } .wt { position: relative; border: none; border-radius: 99px; padding: 5px 13px; font: 800 13.5px var(--font); color: var(--ink); background: #f1e3c3; cursor: pointer; box-shadow: 0 2px 0 var(--line); } .wt.on { background: var(--red); color: #fff; box-shadow: 0 2px 0 var(--red2); } .wt .dot { position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px #fff; }
.paper.side .ropa { grid-template-columns: 1fr 1fr; gap: 7px; align-content: start; min-height: 190px; padding: 2px 4px 6px 2px; } .paper.side .rp { padding: 7px 9px; } .paper.side .rp b { font-size: 14px; } .paper.side .rp i { width: 26px; height: 26px; } .rp small { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font: 800 12.5px var(--font); color: var(--soft); } .rp.buy { background: #fff8e3; box-shadow: 0 3px 0 var(--line), inset 0 0 0 2px #f2d79a; } .rp.buy small { color: #a56f1f; } .rp.on small { color: var(--green); }
.wfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 2px dashed #dcc59a; font: 700 17px var(--hand); color: var(--soft); min-height: 52px; } .wfoot b { color: var(--ink); font-family: var(--font); } .wfoot .btn { font-size: 16px; padding: 10px 16px; white-space: nowrap; }
