:root {
  --ink: #3b2a1c;
  --ink-soft: #7a624c;
  --paper: rgba(255, 250, 238, 0.88);
  --paper-solid: #fff8e8;
  --line: rgba(122, 84, 44, 0.2);
  --green: #4fc45f;
  --green-d: #2f9a41;
  --gold: #ffcf4a;
  --gold-d: #d99a12;
  --red: #e6524a;
  --blue: #3fa7ff;
  --violet: #b46bff;
  --radius: 20px;
  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', 'Avenir Next Rounded', 'Trebuchet MS', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; height: 100dvh; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; overflow: hidden; background: #a9d7ff; font-family: var(--font); color: var(--ink); user-select: none; -webkit-user-select: none; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; width: 100%; height: 100%; outline: none; }
#vignette { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(60, 30, 10, 0.28) 100%); }
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
#loading { position: fixed; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; background: linear-gradient(#9fd6ff, #ffeed3); z-index: 100; transition: opacity .6s; font-weight: 800; }
#loading.hide { opacity: 0; pointer-events: none; }
.ld-hex { width: 64px; height: 64px; background: var(--green); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); animation: spin 1.2s ease-in-out infinite; }
@keyframes spin { 50% { transform: rotate(180deg) scale(.7); background: var(--gold); } 100% { transform: rotate(360deg); } }

/* ───── paneles ───── */
.panel {
  background: linear-gradient(180deg, rgba(255, 252, 242, .93), rgba(255, 243, 219, .88));
  backdrop-filter: blur(12px) saturate(1.25); -webkit-backdrop-filter: blur(12px) saturate(1.25);
  border: 1.5px solid rgba(255, 255, 255, .75); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(70, 40, 10, .28), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -2px 0 rgba(160, 110, 50, .12);
}
#left, #right { position: fixed; top: 74px; bottom: 16px; width: 292px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overflow-x: hidden; padding: 2px 4px 6px 2px; scrollbar-width: thin; scrollbar-color: rgba(122, 84, 44, .4) transparent; }
#left { left: 14px; } #right { right: 14px; }
#left::-webkit-scrollbar, #right::-webkit-scrollbar { width: 6px; }
#left::-webkit-scrollbar-thumb, #right::-webkit-scrollbar-thumb { background: rgba(122, 84, 44, .4); border-radius: 6px; }
.ph { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.avatar { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); flex: none; }
.pname { font-weight: 900; font-size: 16px; line-height: 1.1; }
.psub { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }
.big { margin-left: auto; font-size: 40px; font-weight: 900; line-height: 1; color: #2f7d3f; text-shadow: 0 2px 0 #fff, 0 4px 10px rgba(79,196,95,.35); font-variant-numeric: tabular-nums; }
.big.bump { animation: bump .5s cubic-bezier(.2,1.8,.4,1); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45) rotate(-4deg); color: #f0a30a; } 100% { transform: scale(1); } }
.rows { padding: 2px 8px 10px; display: grid; gap: 3px; }
.row { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; cursor: default; transition: background .15s, transform .15s; overflow: hidden; }
.row:hover { background: rgba(255, 255, 255, .8); transform: translateX(3px); }
.row .ic { font-size: 20px; text-align: center; filter: drop-shadow(0 1px 0 rgba(255,255,255,.8)); }
.row b { font-size: 13.5px; font-weight: 900; display: block; line-height: 1.1; }
.row small { font-size: 11px; font-weight: 700; color: var(--ink-soft); }
.row .pts { font-size: 20px; font-weight: 900; min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.row .bar { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--c); opacity: .85; transition: width .6s cubic-bezier(.2,1,.3,1); }
.row.flash { animation: rowflash 1s ease-out; }
@keyframes rowflash { 0% { background: rgba(255, 220, 90, .95); transform: scale(1.04); } 100% { background: transparent; transform: none; } }
.row .gain { position: absolute; right: 44px; top: 4px; font-weight: 900; font-size: 15px; color: #16a34a; animation: gainup 1.2s ease-out forwards; pointer-events: none; text-shadow: 0 1px 0 #fff; }
@keyframes gainup { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 20% { opacity: 1; transform: translateY(0) scale(1.3); } 100% { opacity: 0; transform: translateY(-16px) scale(1); } }
.turngain { display: flex; justify-content: space-between; align-items: center; margin: 0 12px 12px; padding: 7px 12px; border-radius: 12px; background: linear-gradient(90deg, #eaffd8, #fff5c9); font-weight: 800; font-size: 12.5px; border: 1px solid rgba(80,150,50,.25); }
.turngain b { font-size: 16px; color: #2f7d3f; }

.sect { padding: 4px 6px 0; font-weight: 900; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #fffbea; text-shadow: 0 1px 3px rgba(60,30,0,.55), 0 0 10px rgba(60,30,0,.35); display: flex; justify-content: space-between; align-items: center; }
.sect small { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 800; }

/* ───── cartas de animal ───── */
.cards { display: grid; gap: 9px; }
.acard { --hab: #4fc45f; position: relative; display: grid; grid-template-columns: 138px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 8px 10px 9px; border-radius: 16px; background: linear-gradient(180deg, #fffdf6, #fff3d8); border: 2px solid color-mix(in srgb, var(--hab) 55%, white); box-shadow: 0 6px 14px rgba(70,40,10,.2), inset 0 0 0 1px rgba(255,255,255,.8); cursor: default; transition: transform .18s cubic-bezier(.2,1.6,.4,1), box-shadow .18s; }
.acard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 14px 0 0 14px; background: var(--hab); }
.acard:hover { transform: translateY(-2px) scale(1.015); box-shadow: 0 10px 22px rgba(70,40,10,.3); z-index: 3; }
.acard .ac-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin: 0 0 4px 4px; }
.acard .ac-emoji { font-size: 20px; line-height: 1; filter: drop-shadow(0 2px 0 rgba(0,0,0,.12)); }
.acard .ac-top b { font-weight: 900; font-size: 14px; }
.acard .ac-top em { font-style: normal; font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, var(--hab) 25%, white); color: color-mix(in srgb, var(--hab) 60%, #3b2a1c); }
.acard .badge { margin-left: auto; font-size: 10.5px; font-weight: 900; padding: 2px 8px; border-radius: 99px; background: linear-gradient(#ffe06a, #ffbf2f); color: #6b3d00; box-shadow: 0 2px 0 #c98a10; animation: badgepulse 1.1s ease-in-out infinite; }
@keyframes badgepulse { 50% { transform: scale(1.12); } }
.acard .ac-pat { display: grid; place-items: center; background: rgba(120, 170, 100, .16); border-radius: 12px; min-height: 60px; }
.acard .ac-side { display: grid; gap: 5px; align-content: center; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { min-width: 26px; height: 24px; padding: 0 5px; display: grid; place-items: center; border-radius: 8px; font-size: 12.5px; font-weight: 900; background: #f1e4c8; color: #8b6a44; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.chip.used { background: var(--hab); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.chip.cur { outline: 2px solid var(--gold-d); outline-offset: 1px; }
.chip.next { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--hab); animation: nextpulse 1.6s ease-in-out infinite; }
@keyframes nextpulse { 50% { box-shadow: inset 0 0 0 2px var(--hab), 0 0 0 3px color-mix(in srgb, var(--hab) 30%, transparent); } }
.prog { height: 7px; background: rgba(120, 90, 50, .16); border-radius: 6px; overflow: hidden; }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--hab), color-mix(in srgb, var(--hab) 60%, white)); border-radius: 6px; transition: width .5s cubic-bezier(.2,1,.3,1); }
.ac-meta { font-size: 11px; font-weight: 800; color: var(--ink-soft); display: flex; justify-content: space-between; }
.acard.ready { box-shadow: 0 0 0 3px rgba(255, 207, 74, .9), 0 0 22px rgba(255, 190, 40, .75), 0 6px 14px rgba(70,40,10,.2); cursor: pointer; animation: readyglow 1.2s ease-in-out infinite; }
@keyframes readyglow { 50% { box-shadow: 0 0 0 4px rgba(255, 207, 74, 1), 0 0 34px rgba(255, 190, 40, 1), 0 6px 14px rgba(70,40,10,.2); } }
.acard.done { opacity: .78; filter: saturate(.7); }
.acard.market { cursor: pointer; }
.acard.market.disabled { cursor: not-allowed; }
.acard.market.disabled:hover { transform: none; }
.acard .take { position: absolute; right: 8px; top: 6px; border: 0; padding: 3px 11px; border-radius: 99px; font: 900 11.5px var(--font); color: #fff; background: linear-gradient(var(--green), var(--green-d)); box-shadow: 0 3px 0 #1f7a30; cursor: pointer; opacity: 0; transform: scale(.8); transition: .15s; }
.acard.market:not(.disabled):hover .take { opacity: 1; transform: none; }
.acard.newcard { animation: cardin .7s cubic-bezier(.2,1.5,.4,1); }
@keyframes cardin { 0% { transform: translateY(-30px) rotate(-6deg) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.empty { padding: 14px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); background: rgba(255,255,255,.55); border-radius: 14px; border: 2px dashed var(--line); }

/* ───── jugadores ───── */
.players { display: grid; gap: 8px; }
.pl { position: relative; display: grid; grid-template-columns: 1fr 96px; gap: 2px 8px; padding: 9px 12px; border-radius: 16px; cursor: pointer; background: linear-gradient(180deg, rgba(255,252,242,.93), rgba(255,243,219,.88)); border: 2px solid transparent; box-shadow: 0 6px 14px rgba(70,40,10,.2); transition: transform .15s, border-color .15s; }
.pl:hover { transform: translateY(-2px); }
.pl.view { border-color: var(--pc); }
.pl.cur::after { content: '▶ turno'; position: absolute; right: 10px; top: -8px; background: var(--pc); color: #fff; font-size: 10.5px; font-weight: 900; padding: 2px 9px; border-radius: 99px; box-shadow: 0 2px 0 rgba(0,0,0,.2); animation: badgepulse 1.4s ease-in-out infinite; }
.pl .pl-name { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 14px; }
.pl .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--pc); flex: none; box-shadow: 0 0 0 2px #fff; }
.pl .tag { font-size: 9.5px; padding: 1px 6px; border-radius: 99px; background: #eadfc8; color: var(--ink-soft); font-weight: 900; }
.pl .pl-score { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: 30px; font-weight: 900; color: var(--pc); line-height: 1; font-variant-numeric: tabular-nums; }
.pl .pl-meta { font-size: 11.5px; font-weight: 800; color: var(--ink-soft); display: flex; gap: 10px; align-items: center; }
.pl .pl-mini { grid-column: 1 / -1; display: grid; place-items: center; margin-top: 4px; background: rgba(47,106,85,.9); border-radius: 12px; padding: 4px; }
.free { display: inline-flex; align-items: center; gap: 5px; }
.free i { display: inline-block; width: 36px; height: 6px; border-radius: 6px; background: rgba(120,90,50,.18); overflow: hidden; } .free i b { display: block; height: 100%; background: #6cc97a; } .free.low i b { background: #ff8a4a; }

/* ───── barra superior ───── */
#topbar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; padding: 8px 10px 8px 16px; border-radius: 99px; white-space: nowrap; }
#topbar .logo { font-weight: 900; font-size: 19px; letter-spacing: -.02em; color: #2f7d3f; text-shadow: 0 1px 0 #fff; display: flex; align-items: center; gap: 7px; }
#topbar .logo .logo-mark { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 2px rgba(40,90,50,.35)); margin: -3px 0; }
#topbar .logo b { font-weight: 900; font-size: 21px; letter-spacing: -.02em; background: linear-gradient(#3f9d52, #1f6f36); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 1px 0 #fff); }
#topbar .sep { width: 1.5px; height: 22px; background: var(--line); }
#topbar .info { font-size: 13px; font-weight: 800; display: flex; gap: 6px; align-items: center; }
#topbar .info b { font-weight: 900; }
.tokchips { display: inline-flex; gap: 3px; }
.tokchips i { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 10.5px; font-weight: 900; padding: 1px 6px 1px 4px; border-radius: 99px; background: rgba(255,255,255,.8); }
.tokchips i::before { content: ''; width: 9px; height: 9px; background: var(--c); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.endflag { background: linear-gradient(90deg, #ff9a3c, #ff5d7a); color: #fff; padding: 3px 11px; border-radius: 99px; font-weight: 900; font-size: 12px; animation: badgepulse 1s ease-in-out infinite; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
#tools { position: fixed; right: 14px; top: 14px; display: flex; gap: 8px; z-index: 25; }
#toolsList { display: flex; gap: 8px; }
#toolsToggle, .tl { display: none; }
#toolsToggle .ti-close { display: none; }
#right { top: 74px; }
.tool { width: 42px; height: 42px; border-radius: 14px; border: 0; cursor: pointer; font-size: 19px; display: grid; place-items: center; background: linear-gradient(#fffdf4, #ffeecb); box-shadow: 0 4px 0 #d9b877, 0 8px 16px rgba(70,40,10,.25); transition: transform .12s; color: var(--ink); font-family: var(--font); }
.tool:hover { transform: translateY(-2px); } .tool:active { transform: translateY(2px); box-shadow: 0 1px 0 #d9b877; }
.tool.off { opacity: .55; filter: grayscale(.7); }

/* ───── dock inferior ───── */
#dock { position: fixed; left: 50%; bottom: 16px; width: max-content; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 20px; border-radius: 99px; max-width: calc(100vw - 660px); min-width: 420px; }
#dock .prompt { flex: 1; font-weight: 800; font-size: 14.5px; line-height: 1.25; min-width: 0; }
#dock .prompt small { display: block; font-size: 11.5px; color: var(--ink-soft); font-weight: 700; }
.btn { border: 0; cursor: pointer; font: 900 15px var(--font); padding: 11px 20px; border-radius: 99px; color: #fff; background: linear-gradient(#5fd670, var(--green-d)); box-shadow: 0 4px 0 #1f7a30, 0 8px 16px rgba(30,110,50,.3); text-shadow: 0 1px 0 rgba(0,0,0,.25); transition: transform .1s, filter .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #1f7a30; }
.btn[disabled] { filter: grayscale(.9) brightness(1.05); opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { color: var(--ink); background: linear-gradient(#fffdf4, #ffeecb); box-shadow: 0 4px 0 #d9b877, 0 8px 16px rgba(70,40,10,.2); text-shadow: none; padding: 11px 15px; }
.btn.gold { background: linear-gradient(#ffdc5c, #f5a90e); box-shadow: 0 4px 0 #b97800, 0 8px 16px rgba(180,110,0,.3); color: #5a3200; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.btn.pulse { animation: btnpulse 1.1s ease-in-out infinite; }
@keyframes btnpulse { 50% { transform: scale(1.07); filter: brightness(1.12); } }
.btn.big { font-size: 19px; padding: 14px 32px; }

/* ───── popups, banners, toasts ───── */
#fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.popup { position: absolute; transform: translate(-50%, -50%); font-weight: 900; font-size: 26px; color: var(--c, #fff); white-space: nowrap; -webkit-text-stroke: 1.5px rgba(40, 20, 0, .55); paint-order: stroke fill; text-shadow: 0 3px 0 rgba(40,20,0,.35), 0 0 16px var(--c, #fff); animation: pop 1.5s cubic-bezier(.2,.8,.3,1) forwards; }
.popup.big { font-size: 40px; }
.popup.small { font-size: 18px; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.3); } 14% { opacity: 1; transform: translate(-50%, -80%) scale(1.35); } 30% { transform: translate(-50%, -100%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
.banner { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); text-align: center; animation: banner 2s cubic-bezier(.2,1.4,.3,1) forwards; }
.banner h1 { margin: 0; font-size: clamp(44px, 7vw, 96px); font-weight: 900; letter-spacing: -.02em; background: linear-gradient(#fff7b0, #ffc233 55%, #ff8a1f); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 3px #7a3e00; paint-order: stroke fill; filter: drop-shadow(0 6px 0 rgba(90,40,0,.45)) drop-shadow(0 0 24px rgba(255,190,40,.8)); }
.banner p { margin: 4px 0 0; font-size: 22px; font-weight: 900; color: #fff; -webkit-text-stroke: 1px rgba(60,30,0,.6); paint-order: stroke fill; text-shadow: 0 3px 8px rgba(60,30,0,.6); }
.banner.turn h1 { font-size: clamp(34px, 5vw, 64px); background: linear-gradient(#fff, #cfeeff 55%, #7cc8ff); -webkit-text-stroke: 2.5px #14507a; }
@keyframes banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-8deg); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.15) rotate(2deg); } 30% { transform: translate(-50%, -50%) scale(1) rotate(0); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1.05); } }
#toasts { position: fixed; top: 74px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; z-index: 15; pointer-events: none; }
.toast { padding: 9px 18px; border-radius: 18px; max-width: min(560px, 90vw); text-align: center; line-height: 1.3; font-weight: 800; font-size: 14px; background: rgba(60, 38, 20, .9); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.3); animation: toast var(--d, 3.2s) ease forwards; }
.toast.good { background: linear-gradient(90deg, #2f9a41, #4fc45f); }
.toast.warn { background: linear-gradient(90deg, #d9701a, #ff9a3c); }
@keyframes toast { 0% { opacity: 0; transform: translateY(-12px) scale(.9); } 8% { opacity: 1; transform: none; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
#tip { position: fixed; z-index: 30; pointer-events: none; padding: 8px 12px; border-radius: 14px; background: rgba(50, 32, 16, .92); color: #fff; font-size: 12.5px; font-weight: 800; box-shadow: 0 8px 20px rgba(0,0,0,.35); display: none; max-width: 260px; transform: translate(14px, 14px); }
#tip .tl { display: flex; gap: 6px; align-items: center; } #tip .tl b { color: #9dffb0; font-size: 14px; }
#tip .none { color: #ffd9a0; }
#tip .head { font-size: 11px; opacity: .75; margin-bottom: 3px; }

/* ───── modales ───── */
#modal-root { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.modal { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(255,240,205,.35), rgba(40,20,5,.55)); backdrop-filter: blur(4px); pointer-events: auto; padding: 20px; overflow: auto; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; } }
.card { width: min(720px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow: auto; padding: 26px 30px 24px; border-radius: 28px; animation: cardpop .5s cubic-bezier(.2,1.4,.3,1); scrollbar-width: thin; }
@keyframes cardpop { from { transform: translateY(24px) scale(.9); opacity: 0; } }
.card h1 { margin: 0; font-size: 46px; font-weight: 900; letter-spacing: -.03em; color: #2f7d3f; text-shadow: 0 2px 0 #fff, 0 6px 16px rgba(79,196,95,.4); display: flex; align-items: center; gap: 12px; }
.card .brand { display: flex; align-items: center; gap: 14px; }
.card .brand-mark { width: 62px; height: 62px; flex: none; filter: drop-shadow(0 5px 6px rgba(40,90,50,.35)); animation: brandfloat 4s ease-in-out infinite; }
@keyframes brandfloat { 50% { transform: translateY(-4px) rotate(-3deg); } }
.card .brand h1 { font-size: 52px; letter-spacing: -.035em; background: linear-gradient(#52c46a, #1f7a3a); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 0 #fff) drop-shadow(0 6px 12px rgba(79,196,95,.35)); }
.card h2 { margin: 18px 0 8px; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.card p { margin: 6px 0; font-weight: 700; line-height: 1.45; }
.sub { font-size: 16px; font-weight: 800; color: var(--ink-soft); margin: 4px 0 4px; }
.field { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.field label { font-weight: 900; min-width: 118px; }
.seg { display: inline-flex; background: #f1e4c8; border-radius: 99px; padding: 4px; gap: 2px; }
.seg button { border: 0; padding: 8px 15px; border-radius: 99px; font: 900 14px var(--font); color: var(--ink-soft); background: transparent; cursor: pointer; transition: .15s; }
.seg button.on { background: linear-gradient(#5fd670, var(--green-d)); color: #fff; box-shadow: 0 3px 0 #1f7a30; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
input[type=text] { font: 800 15px var(--font); padding: 9px 14px; border-radius: 99px; border: 2px solid var(--line); background: #fff; color: var(--ink); width: 180px; outline: none; user-select: text; }
input[type=text]:focus { border-color: var(--green); }
.actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; flex-wrap: wrap; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.hbox { background: rgba(255,255,255,.7); border-radius: 16px; padding: 10px 12px; border: 1.5px solid var(--line); }
.hbox b { display: flex; gap: 6px; align-items: center; font-weight: 900; }
.hbox p { font-size: 13px; margin: 4px 0; }
.hbox .ex { display: flex; gap: 10px; align-items: flex-end; margin-top: 6px; flex-wrap: wrap; }
.hbox .ex div { text-align: center; font-size: 11px; font-weight: 900; }
kbd { background: #fff; border: 1.5px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; font: 800 12px var(--font); }
.rank { display: grid; gap: 10px; margin-top: 12px; }
.rk { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.75); border: 2px solid transparent; animation: rkin .6s cubic-bezier(.2,1.4,.3,1) backwards; }
.rk:nth-child(2) { animation-delay: .15s; } .rk:nth-child(3) { animation-delay: .3s; } .rk:nth-child(4) { animation-delay: .45s; }
@keyframes rkin { from { transform: translateX(-30px); opacity: 0; } }
.rk.win { border-color: var(--gold); background: linear-gradient(90deg, #fff6cc, #fff); box-shadow: 0 0 0 4px rgba(255,207,74,.35); }
.rk .medal { font-size: 30px; text-align: center; }
.rk .rn { font-weight: 900; font-size: 17px; }
.rk .rb { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.rk .rb span { font-size: 11.5px; font-weight: 900; background: #f4e8cc; padding: 2px 8px; border-radius: 99px; }
.rk .rs { font-size: 38px; font-weight: 900; color: #2f7d3f; font-variant-numeric: tabular-nums; }

@media (max-width: 1500px) { #topbar #tb-bag .tokchips { display: none; } }
@media (max-width: 1100px) {
  #left, #right { width: 232px; }
  #dock { max-width: calc(100vw - 500px); min-width: 300px; }
  .acard { grid-template-columns: 78px 1fr; }
}
#sheetTabs { display: none; }
@media (max-width: 900px), (orientation: portrait) and (max-width: 1100px) {
  :root { --dockh: 120px; --safe-b: env(safe-area-inset-bottom, 0px); }
  /* barra superior compacta + botón de opciones plegable */
  #topbar { top: calc(10px + env(safe-area-inset-top, 0px)); left: 10px; transform: none; max-width: calc(100vw - 72px); overflow: hidden; padding: 6px 14px 6px 10px; gap: 8px; }
  #topbar #tb-bag, #topbar .sep { display: none; }
  #topbar .logo b { font-size: 18px; }
  #topbar .info { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: block; }
  #tools { top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; flex-direction: column; align-items: flex-end; gap: 8px; }
  #toolsToggle { display: grid; width: 46px; height: 46px; border-radius: 16px; position: relative; z-index: 2; }
  #toolsToggle svg.ic { width: 24px; height: 24px; transition: transform .35s cubic-bezier(.2,1.4,.3,1); }
  body.tools-open #toolsToggle { background: linear-gradient(#ffe27a, #ffb52e); box-shadow: 0 4px 0 #c98a10, 0 8px 16px rgba(255,170,30,.4); }
  body.tools-open #toolsToggle .ti-open { display: none; } body.tools-open #toolsToggle .ti-close { display: inline-flex; }
  #toolsList { display: none; flex-direction: column; gap: 6px; padding: 8px; border-radius: 20px; background: rgba(255,248,232,.97); box-shadow: 0 12px 34px rgba(50,30,5,.4); min-width: 214px; transform-origin: top right; }
  body.tools-open #toolsList { display: flex; animation: toolspop .22s cubic-bezier(.2,1.3,.3,1); }
  @keyframes toolspop { from { opacity: 0; transform: scale(.85) translateY(-8px); } }
  #toolsList .tool { width: 100%; height: 46px; display: flex; align-items: center; gap: 12px; justify-content: flex-start; padding: 0 14px; border-radius: 14px; font-weight: 800; font-size: 14.5px; box-shadow: 0 3px 0 #d9b877; }
  #toolsList .tl { display: inline; }
  /* dock: texto arriba, acciones debajo (ya no se pisan) */
  #dock { bottom: calc(10px + var(--safe-b)); max-width: calc(100vw - 20px); min-width: 0; width: calc(100vw - 20px); border-radius: 26px; padding: 10px 12px 12px; flex-wrap: wrap; row-gap: 8px; column-gap: 12px; align-items: center; justify-content: center; }
  #dock .prompt { flex: 1 1 100%; order: 1; font-size: 13.5px; }
  #dock .prompt small { display: none; }
  #handchips { order: 2; flex: 1 1 100%; justify-content: center; }
  #sheetTabs { display: flex; order: 3; gap: 6px; flex: none; }
  #sheetTabs button { border: 0; cursor: pointer; font: inherit; font-weight: 900; font-size: 14px; color: var(--ink); height: 44px; min-width: 48px; padding: 0 12px; border-radius: 99px; background: linear-gradient(#fffdf4, #ffeecb); box-shadow: 0 3px 0 #d9b877; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
  #sheetTabs button .tt { display: none; margin-left: 5px; }
  #sheetTabs button.on { background: linear-gradient(#ffe27a, #ffb52e); box-shadow: 0 3px 0 #c98a10, 0 6px 12px rgba(255,170,30,.4); }
  #sheetTabs button i { font-style: normal; background: #ff6b4a; color: #fff; border-radius: 99px; padding: 0 7px; margin-left: 6px; font-size: 12px; line-height: 18px; }
  #dock .btn.undo, #dock .btn.hint { order: 4; flex: none; width: 46px; height: 44px; padding: 0; display: inline-grid; place-items: center; }
  #dock .btn#b-end { order: 5; flex: 1 1 110px; padding: 11px 12px; height: 44px; font-size: 14px; }
  /* hojas: Mis animales / Mercado, siempre justo encima del dock */
  #left, #right { display: none; position: fixed; top: auto; bottom: calc(var(--dockh) + 20px + var(--safe-b)); left: 10px; right: 10px; width: auto; max-height: calc(100vh - var(--dockh) - 100px - var(--safe-b)); max-height: calc(100dvh - var(--dockh) - 100px - var(--safe-b)); padding: 10px; border-radius: 20px; background: rgba(255,248,232,.97); box-shadow: 0 10px 34px rgba(50,30,5,.4); z-index: 12; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  body.sheet-left #left, body.sheet-right #right { display: flex; animation: fadein .2s ease; }
  #left .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
  #right #market { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
}
@media (max-width: 900px) and (min-width: 481px), (orientation: portrait) and (min-width: 481px) and (max-width: 1100px) {
  #sheetTabs button .tt { display: inline; }
}
@media (max-width: 900px) and (max-height: 480px) {
  /* móvil en horizontal: todo en una fila */
  #dock { flex-wrap: nowrap; padding: 8px 10px 8px 16px; border-radius: 99px; }
  #dock .prompt { flex: 1 1 auto; order: 0; } #handchips { order: 0; flex: none; } #sheetTabs { order: 0; }
  #dock .btn#b-end { flex: none; }
  #left, #right { max-height: calc(100dvh - var(--dockh) - 80px); }
}
@media (max-width: 480px) {
  .tut-nav { flex-wrap: wrap; row-gap: 8px; } .tut-dots { order: -1; flex: 1 1 100%; justify-content: center; margin: 0 0 2px; }
  .card { padding: 20px 18px 18px; border-radius: 24px; }
  .card .brand h1 { font-size: 40px; } .card .brand-mark { width: 50px; height: 50px; }
}

/* ───── chuleta de apilado ───── */
#stackref { position: fixed; right: 14px; top: 66px; width: 350px; max-width: calc(100vw - 28px); z-index: 30; padding: 12px 14px 10px; display: none; max-height: calc(100vh - 90px); overflow: auto; }
#stackref.open { display: block; animation: fadein .25s ease; }
.tool.on { box-shadow: 0 2px 0 #d9b877, 0 0 0 3px #ffd43b, 0 8px 16px rgba(70,40,10,.25); }
.sr-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.sr-x { border: 0; background: rgba(0,0,0,.08); border-radius: 9px; width: 26px; height: 26px; cursor: pointer; font-weight: 900; color: var(--ink); }
.sr-note { font-size: 12.5px; margin: 6px 0; font-weight: 700; }
.sr-row { display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; align-items: center; padding: 6px 0; border-top: 1.5px dashed rgba(120,80,30,.25); }
.sr-txt b { font-weight: 900; font-size: 14px; display: block; } .sr-txt small { font-size: 11.5px; font-weight: 700; opacity: .8; }
.sr-onto { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.sr-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.7); border: 1.5px solid var(--line); border-radius: 10px; padding: 1px 7px 1px 3px; font-size: 11.5px; font-weight: 800; }
.sr-chip em { font-style: normal; }
.sr-empty { width: 16px; height: 11px; background: #cfe3ae; border: 1.5px solid #8a5f34; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); display: inline-block; margin: 0 4px; }

/* ───── tutorial ───── */
#tut { position: fixed; inset: 0; z-index: 60; }
#tut.center { background: radial-gradient(ellipse at center, rgba(255,240,205,.3), rgba(30,15,5,.65)); backdrop-filter: blur(3px); }
.tut-hole { position: fixed; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(25,12,3,.62), 0 0 0 3px #ffd43b, 0 0 26px 6px rgba(255,212,59,.65); transition: all .35s cubic-bezier(.2,.9,.3,1.1); pointer-events: none; animation: tutglow 1.6s ease-in-out infinite; }
@keyframes tutglow { 50% { box-shadow: 0 0 0 9999px rgba(25,12,3,.62), 0 0 0 3px #fff2a3, 0 0 36px 10px rgba(255,212,59,.85); } }
.tut-card { position: fixed; width: 360px; max-width: calc(100vw - 24px); padding: 14px 16px 12px; z-index: 61; transition: left .35s, top .35s; }
.tut-card.pop { animation: tutpop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes tutpop { from { scale: .94; } }
.tut-step { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; opacity: .6; }
.tut-card h3 { margin: 2px 0 4px; font-size: 20px; }
.tut-card p { margin: 0 0 10px; font-size: 14px; line-height: 1.45; font-weight: 700; }
.tut-nav { display: flex; align-items: center; gap: 8px; }
.tut-nav .btn { padding: 7px 14px; font-size: 14px; }
.tut-nav .tut-next { margin-left: auto; }
.tut-dots { display: flex; gap: 4px; margin: 0 6px; } .tut-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(120,80,30,.25); } .tut-dots i.on { background: #4fc45f; scale: 1.3; }
svg.ic { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.tool svg.ic { width: 22px; height: 22px; }
#tb-bag svg.ic { color: #b9772f; margin-right: 2px; }

/* selector de ficha en el dock */
#handchips { display: none; gap: 6px; align-items: center; }
.hchip { position: relative; width: 50px; height: 44px; border-radius: 14px; border: 2px solid rgba(122,84,44,.25); background: rgba(255,255,255,.65); cursor: pointer; padding: 0; display: grid; place-items: center; transition: transform .12s, box-shadow .12s; }
.hchip:hover { transform: translateY(-2px); }
.hchip.sel { border-color: #ffb400; background: #fff6d4; box-shadow: 0 0 0 3px rgba(255,212,59,.6); transform: translateY(-3px) scale(1.06); }
.hchip.used { border-style: dashed; opacity: .35; cursor: default; }
.hchip i { position: absolute; right: 3px; bottom: 1px; font-style: normal; font-size: 10px; font-weight: 900; color: var(--ink-soft); }
.hchip svg { pointer-events: none; }

/* iconos 3D de animales y patrones */
img.ico { width: 1.7em; height: 1.7em; vertical-align: -0.5em; margin: -0.3em 0.1em -0.2em 0; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(60,35,10,.35)); pointer-events: none; }
.acard .ac-emoji { display: grid; place-items: center; width: 38px; height: 34px; margin: -10px 0 -10px -4px; }
.acard img.ac-ico { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(60,35,10,.35)); }
.acard .ac-pat { padding: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, rgba(170,215,120,.35), rgba(120,170,100,.12)); min-height: 90px; }
.acard img.ac-img { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 3px rgba(60,35,10,.25)); }
.toast img.t-ico { width: 30px; height: 30px; margin: -8px 6px -8px -8px; vertical-align: middle; }

/* botones del dock */
#dock .btn svg.ic { width: 18px; height: 18px; vertical-align: -3px; margin-right: 5px; }
#dock .btn.undo { background: linear-gradient(#ffffff, #e9f0ff); color: #2b4a86; box-shadow: 0 4px 0 #b3c4e8, 0 6px 12px rgba(40,60,110,.18); padding-left: 14px; padding-right: 16px; }
#dock .btn.undo:active { box-shadow: 0 1px 0 #b3c4e8; }
#dock .btn.hint { background: linear-gradient(#ffe27a, #ffb52e); color: #6b3d00; box-shadow: 0 4px 0 #c98a10, 0 6px 14px rgba(255,170,30,.4); }
#dock .btn.hint svg { color: #7a4a00; }
#dock .btn.hint:active { box-shadow: 0 1px 0 #c98a10; }
#dock .btn.hint:not(:disabled) svg { animation: bulb 2.4s ease-in-out infinite; }
@keyframes bulb { 50% { filter: drop-shadow(0 0 5px #fff6b0); transform: scale(1.12); } }
#dock .btn.undo:disabled, #dock .btn.hint:disabled { filter: grayscale(.85); opacity: .55; }
.inl { display: inline-flex; vertical-align: middle; width: 26px; height: 26px; border-radius: 9px; align-items: center; justify-content: center; background: linear-gradient(#fffdf4, #ffeecb); box-shadow: 0 2px 0 #d9b877; color: var(--ink); margin: 0 1px; }
.inl svg.ic { width: 16px; height: 16px; margin: 0; }
.inl.hintc { background: linear-gradient(#ffe27a, #ffb52e); box-shadow: 0 2px 0 #c98a10; color: #7a4a00; }
@media (max-width: 1250px) { #dock .btn span { display: none; } #dock .btn svg.ic { margin: 0; } }


/* mercado compacto: 2 por fila, nombre + patrón + puntos pequeños */
#market { grid-template-columns: 1fr 1fr; gap: 7px; }
.acard.market { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 5px 6px 6px 9px; border-radius: 13px; row-gap: 3px; }
.acard.market::before { width: 5px; }
.acard.market .ac-top { margin: 0; gap: 3px; min-width: 0; }
.acard.market .ac-top b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acard.market .ac-top em, .acard.market .ac-meta { display: none; }
.acard.market .ac-emoji { width: 30px; height: 26px; margin: -6px 0 -6px -3px; flex: none; }
.acard.market img.ac-ico { width: 34px; height: 34px; }
.acard.market .ac-pat { min-height: 0; border-radius: 9px; }
.acard.market .badge { position: absolute; left: 9px; top: 32px; font-size: 9.5px; padding: 1px 7px; z-index: 2; }
.acard.market .chips { gap: 2px; flex-wrap: nowrap; justify-content: center; }
.acard.market .chip { min-width: 0; flex: 1; height: 18px; padding: 0 2px; font-size: 10.5px; border-radius: 6px; }
.acard.market .take { top: 4px; right: 5px; padding: 2px 8px; font-size: 10.5px; }
.acard.market .prog { display: none; }
/* jugadores más compactos para que el mercado quepa sin scroll */
.pl-mini svg { height: 60px !important; }
.pl { padding-top: 6px; padding-bottom: 6px; }

/* carta que se expande al pasar el ratón: vista explosionada en 3D sobre la propia carta */
#cardprev { position: fixed; z-index: 35; width: 362px; padding: 9px 10px 8px; display: none; pointer-events: none; }
#cardprev.open { display: block; }
#cardprev.grow { animation: cpgrow .22s cubic-bezier(.2,1.25,.4,1); }
@keyframes cpgrow { from { transform: scale(.42); opacity: .4; } }
.cp-title { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 17px; padding: 0 4px 5px; }
.cp-title em { font-style: normal; font-size: 10.5px; font-weight: 800; margin-left: 5px; padding: 2px 8px; border-radius: 99px; background: rgba(120,170,100,.25); }
.cp-vals { display: flex; gap: 3px; } .cp-vals i { font-style: normal; min-width: 24px; height: 22px; padding: 0 5px; display: grid; place-items: center; border-radius: 7px; font-size: 12px; font-weight: 900; background: #f1e4c8; color: #8b6a44; }
.cp-stage { position: relative; width: 340px; height: 236px; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 65%, rgba(170,215,120,.45), rgba(120,170,100,.12)); }
.cp-stage canvas { width: 340px !important; height: 236px !important; display: block; }
.cp-lab { position: absolute; right: 8px; top: 0; padding: 2px 8px 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 900; color: #fff; background: var(--c); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); text-shadow: 0 1px 1px rgba(0,0,0,.35); white-space: nowrap; will-change: transform; }
.cp-cap { padding: 6px 4px 0; display: grid; gap: 3px; }
.cp-row { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; }
.cp-h { min-width: 66px; opacity: .75; } .cp-h u { text-decoration: none; color: #e8a800; }
.cp-row b { opacity: .5; }
.cp-chip { font-style: normal; padding: 1px 8px; border-radius: 99px; color: #fff; background: var(--c); text-shadow: 0 1px 1px rgba(0,0,0,.35); font-size: 11px; }

/* jugadores compactos: mini-tablero a la izquierda, datos a la derecha */
.pl { grid-template-columns: 92px 1fr; grid-template-rows: auto auto; align-items: center; padding: 6px 10px; gap: 1px 8px; }
.pl .pl-mini { grid-column: 1; grid-row: 1 / span 2; margin: 0; padding: 3px; }
.pl-mini svg { height: 46px !important; max-width: 100%; }
.pl .pl-name { grid-column: 2; grid-row: 1; font-size: 13px; min-width: 0; }
.pl .pl-score { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; font-size: 28px; }
.pl .pl-meta { grid-column: 2; grid-row: 2; font-size: 11px; gap: 8px; }
.pl .pl-meta .free i { display: none; }
.acard.market img.ac-img { max-height: 62px; object-fit: contain; }
.acard.market .ac-pat { display: grid; place-items: center; }
.tool.loud { box-shadow: 0 4px 0 #d9b877, 0 0 0 3px rgba(79,196,95,.7), 0 8px 16px rgba(70,40,10,.25); }

/* etiqueta de hábitat visible en el mercado + carta expandida con su color */
.acard.market .ac-top em { display: block; position: absolute; right: 7px; top: 32px; z-index: 2; font-size: 9.5px; padding: 0 6px; line-height: 15px; }
.acard.market .badge { top: auto; bottom: 30px; left: 9px; }
#cardprev { --hab: #4fc45f; border: 2.5px solid color-mix(in srgb, var(--hab) 65%, white); background: linear-gradient(180deg, #fffdf6, #fff3d8); box-shadow: 0 18px 40px rgba(50,30,5,.4), inset 0 0 0 1px rgba(255,255,255,.8); }
#cardprev::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; border-radius: 14px 0 0 14px; background: var(--hab); }
.cp-title em { background: color-mix(in srgb, var(--hab) 25%, white); color: color-mix(in srgb, var(--hab) 60%, #3b2a1c); }
.cp-foot { display: flex; justify-content: space-between; margin-top: 3px; padding-top: 5px; border-top: 1.5px dashed rgba(120,84,44,.25); font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.cp-foot b { color: var(--ink); font-size: 14px; }

.cp-lines { position: absolute; inset: 0; pointer-events: none; }
.cp-foot { justify-content: space-between; gap: 10px; } .cp-foot i { display: none; }
.cp-foot span:first-child { margin-right: auto; }

.cp-go { margin-top: 5px; display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; border-radius: 12px; font-weight: 900; font-size: 15px; color: #5a3a00; background: linear-gradient(180deg, #ffe27a, #f8c93c); box-shadow: 0 2px 0 #d98d1a, 0 4px 10px rgba(217,141,26,.35); animation: cpgo 1.1s ease-in-out infinite; }
.cp-go small { font-size: 11px; font-weight: 800; opacity: .75; }
.cp-why { margin-top: 5px; padding: 6px 10px; border-radius: 10px; font-size: 11.5px; font-weight: 700; background: rgba(120,84,44,.1); color: var(--ink-soft); }
@keyframes cpgo { 50% { transform: scale(1.025); } }

/* aviso de turno: barra sobria, sin colores chillones */
.banner.turn { top: 13%; padding: 9px 22px 10px; border-radius: 14px; background: rgba(50, 34, 20, .88); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 28px rgba(0,0,0,.28); animation: bturn 1.9s ease forwards; white-space: nowrap; }
.banner.turn h1 { font-size: 20px; font-weight: 800; letter-spacing: .01em; line-height: 1.15; background: none; -webkit-text-stroke: 0; color: #fff; filter: none; }
.banner.turn p { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.72); -webkit-text-stroke: 0; text-shadow: none; }
@keyframes bturn { 0% { opacity: 0; transform: translate(-50%, -80%); } 14%, 80% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -60%); } }
