/* ===== PartyLoteria ===== */
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/baloo-2-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/baloo-2-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/baloo-2-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/baloo-2-latin-800-normal.woff2) format('woff2'); }

:root {
  /* brand palette */
  --pink: #FF3B8D; --orange: #FF9F1C; --yellow: #FFD23F; --green: #2ECC71;
  --teal: #00A9A7; --blue: #0A5BD3; --navy: #122B4D; --purple: #8E44AD;

  --a: var(--pink);      /* primary (game themes override) */
  --b: var(--teal);      /* accent */
  --bg: #ffffff;
  --ink: var(--navy);
  --muted: #55657d;
  --paper: #ffffff;
  --tint: #f5fbfb;
  --line: rgba(18, 43, 77, .12);
  --bean: #5d3a1a;
  --radius: 20px;
  --shadow: 0 1px 0 rgba(18,43,77,.05), 0 10px 30px -14px rgba(18,43,77,.28);
  --display: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --body: 'Baloo 2', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0; min-height: 100vh; font-family: var(--body); color: var(--ink); background: var(--bg);
  line-height: 1.55; font-size: 17px; font-weight: 400; overflow-x: hidden;
}
body:not(.brand-page) {
  background-image: radial-gradient(color-mix(in srgb, var(--a) 8%, transparent) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
body.is-dark { --ink: #f5ecff; --muted: #c4b5d6; --paper: #2a2138; --line: rgba(255,255,255,.14); }
a { color: var(--a); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.2px; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 3.8vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 20px; padding-bottom: 40px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* brand rainbow strip */
.rainbow { height: 8px; background: linear-gradient(90deg, var(--pink) 0 14.28%, var(--orange) 0 28.56%, var(--yellow) 0 42.84%, var(--green) 0 57.12%, var(--teal) 0 71.4%, var(--blue) 0 85.68%, var(--navy) 0); }
body.play .rainbow { height: 6px; }

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1140px; margin: 0 auto; padding: 10px 16px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand .logo { height: 60px; width: auto; display: block; }
.topbar nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 700; }
.topbar nav a:not(.btn):not(.lang):hover { color: var(--pink); }
.topbar nav a.btn { color: #fff; }
.lang { border: 2px solid var(--line); border-radius: 10px; padding: 1px 8px; font-size: .82rem !important; }
@media (max-width: 760px) { .hide-sm { display: none; } }
@media (max-width: 480px) {
  .brand .logo { height: 40px; }
  .topbar nav { gap: 10px; }
  .topbar nav a { font-size: .92rem; }
}

/* footer */
.foot { background: var(--navy); color: #c9d4e5; margin-top: 40px; position: relative; }
.foot::before { content: ''; display: block; height: 8px; background: inherit; background: linear-gradient(90deg, var(--pink) 0 14.28%, var(--orange) 0 28.56%, var(--yellow) 0 42.84%, var(--green) 0 57.12%, var(--teal) 0 71.4%, var(--blue) 0 85.68%, var(--navy) 0); }
.foot-grid { max-width: 1140px; margin: 0 auto; padding: 36px 16px 20px; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.2fr 1.6fr 1fr; } }
.foot-brand .logo { height: 64px; width: auto; background: #fff; border-radius: 16px; padding: 6px 10px; }
.foot-brand p { margin-top: 12px; font-size: .95rem; max-width: 30em; }
.foot h2 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot nav:first-of-type ul { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.foot a { color: #c9d4e5; font-weight: 600; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { max-width: 1140px; margin: 0 auto; padding: 16px 16px 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; }

/* buttons */
.btn {
  --c: var(--a);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 1.05rem/1.1 var(--body); color: #fff; background: var(--c);
  border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 70%, #000); transition: transform .08s, box-shadow .08s, filter .15s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 70%, #000); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 8px 16px; font-size: .92rem; box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 70%, #000); }
.btn-lg { padding: 16px 28px; font-size: 1.15rem; }
.btn-xl { padding: 20px 24px; font-size: 1.45rem; border-radius: 20px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost { background: #fff; color: var(--c); box-shadow: inset 0 0 0 2.5px var(--c); }
.btn-ghost:active { box-shadow: inset 0 0 0 2.5px var(--c); }
.btn-white { background: #fff; color: var(--pink); box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.btn-link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 6px 8px; }

/* boxes, forms */
.card-box { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--line); margin-bottom: 20px; }
.auth { max-width: 440px; margin: 24px auto; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 1rem; }
.form input:not([type=radio]):not([type=checkbox]) {
  font: 600 1.05rem var(--body); padding: 11px 16px; border-radius: 14px; border: 2px solid var(--line);
  background: #fff; color: var(--navy); width: 100%;
}
.form input:focus { outline: none; border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 18%, transparent); }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.flash { padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-weight: 700; }
.flash-ok { background: #e6f9ee; color: #146c3a; }
.flash-err { background: #ffe8f1; color: #b0124f; }
.tag { font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--b) 16%, #fff); color: color-mix(in srgb, var(--b) 70%, #000); }
.pill { display: inline-block; font-size: .82rem; font-weight: 800; padding: 3px 12px; border-radius: 99px; background: color-mix(in srgb, var(--a) 12%, #fff); color: color-mix(in srgb, var(--a) 80%, #000); }
.pill-status[data-s=playing] { background: #e6f9ee; color: #146c3a; }
.pill-status[data-s=won] { background: #fff6cc; color: #7a5300; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 4px 14px; font-weight: 700; font-size: .95rem; color: var(--navy); margin-bottom: 14px; }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: .82rem; color: var(--a); margin-bottom: 10px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }

/* game theme picker (dashboard) */
.theme-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.theme-opt {
  position: relative; display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--bg);
  border: 2px solid color-mix(in srgb, var(--a) 30%, transparent); color: var(--tile-ink, var(--navy)); cursor: pointer; transition: transform .1s;
}
.theme-icon { font-size: 1.8rem; line-height: 1; }
.theme-name { font-weight: 800; }
.theme-peek { font-size: 1rem; letter-spacing: 2px; opacity: .85; }
.theme-opt input { position: absolute; opacity: 0; pointer-events: none; }
.theme-opt:has(input:checked) { border-color: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 30%, transparent); transform: translateY(-2px); }
.theme-opt:has(input:checked)::after { content: '✓'; position: absolute; top: 8px; right: 10px; background: var(--a); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }

/* pricing */
.price-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 20px 0 8px; }
.price-card { background: #fff; border-radius: var(--radius); padding: 24px 22px; border: 2px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.15rem; }
.price-card.featured { border-color: var(--pink); position: relative; transform: translateY(-6px); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--pink) 60%, transparent); }
.price-card.featured::before { content: '★'; position: absolute; top: -14px; right: 18px; background: var(--yellow); color: var(--navy); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; }
.price { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; margin: 6px 0 10px; color: var(--a); }
.price-card .btn { margin-top: auto; }
.buy .price-card .btn { margin-top: auto; }

/* ===== landing (brand) ===== */
.c-pink { color: var(--pink); } .c-teal { color: var(--teal); }
.hero2 { position: relative; padding: 28px 0 40px; overflow: hidden;
  background:
    radial-gradient(600px 300px at 90% 10%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 70%),
    radial-gradient(500px 300px at 0% 90%, color-mix(in srgb, var(--pink) 10%, transparent), transparent 70%);
}
.hero2-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero2-grid { grid-template-columns: 1.15fr .85fr; } .hero2 { padding: 56px 0 72px; } }
.hero2 h1 { font-size: clamp(2.3rem, 7vw, 4rem); line-height: 1.02; }
.hero2 h1 .h1-tail { display: block; color: var(--navy); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks li { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.checks li::before { content: '✓'; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: .8rem; }
.hero2-art { position: relative; max-width: 360px; width: 100%; margin: 0 auto; padding: 20px 10px; }
.phone { position: relative; width: 270px; margin: 0 auto; background: var(--navy); border-radius: 42px; padding: 12px; box-shadow: 0 30px 60px -24px rgba(18,43,77,.6); transform: rotate(3deg); }
.phone-notch { position: absolute; top: 12px; left: 50%; width: 90px; height: 20px; background: var(--navy); border-radius: 0 0 14px 14px; transform: translateX(-50%); z-index: 2; }
.phone-screen { background: #fdf6fb; border-radius: 32px; padding: 30px 10px 14px; overflow: hidden; }
.phone-now { display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--pink); border-radius: 14px; padding: 6px 8px; margin-bottom: 8px; }
.phone-now-card { width: 34px; height: 44px; display: grid; place-items: center; font-size: 1.3rem; border: 2px solid var(--navy); border-radius: 6px; }
.phone-now small { display: block; font-size: .58rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); line-height: 1; }
.phone-now b { font-size: .95rem; line-height: 1.1; }
.tabla-phone { border-width: 3px; padding: 4px; box-shadow: 0 0 0 2px var(--a); }
.tabla-phone .tabla-head { display: none; }
.tabla-phone .grid { gap: 3px; }
.tabla-phone .cell { border-width: 1.5px; border-radius: 4px; padding: 6px 1px 10px; cursor: default; }
.tabla-phone .cell .emo { font-size: 1.35rem; }
.tabla-phone .cell .nm { font-size: .36rem; padding: 1px; border-top-width: 1px; }
.tabla-phone .cell .num { font-size: .42rem; top: 1px; left: 3px; }
.phone-btn { margin-top: 10px; background: #e53935; color: #fff; text-align: center; font-weight: 800; font-size: 1.15rem; border-radius: 14px; padding: 8px; box-shadow: 0 3px 0 #a3201e; }
.float-card { position: absolute; left: -6px; top: 36px; width: 86px; aspect-ratio: var(--cr, .75); background: #fff; border: 3px solid var(--navy); border-radius: 10px; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--orange), var(--shadow); transform: rotate(-10deg); padding-bottom: 18px; animation: bob 5s ease-in-out infinite; }
.float-card span { font-size: 2.2rem; }
.float-card b { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: .62rem; text-transform: uppercase; border-top: 2px solid var(--navy); background: #fff4e6; border-radius: 0 0 7px 7px; padding: 1px; }
.float-chip { position: absolute; right: -4px; bottom: -14px; background: #fff; border-radius: 99px; padding: 8px 16px; font-weight: 800; box-shadow: var(--shadow); border: 2px solid var(--green); transform: rotate(-3deg); animation: bob 5s ease-in-out infinite reverse; white-space: nowrap; }
.burst { position: absolute; width: 90px; height: 90px; background:
  linear-gradient(var(--yellow), var(--yellow)) 50% 0 / 8px 26px no-repeat,
  linear-gradient(var(--pink), var(--pink)) 0 60% / 26px 8px no-repeat,
  linear-gradient(var(--teal), var(--teal)) 100% 40% / 26px 8px no-repeat; border-radius: 4px; opacity: .9; }
.burst.b1 { top: -6px; right: 18px; transform: rotate(18deg); }
.burst.b2 { bottom: -4px; left: 10px; transform: rotate(-150deg); }
@keyframes bob { 50% { translate: 0 -8px; } }

.section { padding: 56px 0; }
.section-tint { background: var(--tint); }
.sec-h { text-align: center; }
.sec-h.left { text-align: left; }
.sec-p { text-align: center; color: var(--muted); max-width: 40em; margin: 0 auto 26px; font-size: 1.1rem; }

.theme-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (min-width: 900px) { .theme-cards { grid-template-columns: repeat(6, 1fr); } }
.theme-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--navy); background: #fff; border-radius: 20px; border: 2px solid var(--line); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.theme-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px var(--tc); border-color: var(--tc); }
.tc-art { position: relative; display: grid; place-items: center; aspect-ratio: 4/3; background: var(--tc);
  background-image: radial-gradient(rgba(255,255,255,.22) 2px, transparent 2px); background-size: 16px 16px; }
.tc-icon { font-size: 3rem; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.tc-peek { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.tc-peek i { font-style: normal; font-size: .95rem; background: #fff; border-radius: 6px; width: 24px; height: 24px; display: grid; place-items: center; }
.tc-name { font-weight: 800; font-size: 1.02rem; line-height: 1.15; padding: 10px 12px 2px; }
.tc-go { margin-top: auto; padding: 4px 12px 12px; color: var(--tc); font-weight: 800; font-size: .92rem; }
.small-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.small-cards .tc-art { aspect-ratio: 16/9; }
.small-cards .tc-icon { font-size: 2.2rem; }
.small-cards .tc-name { padding-bottom: 12px; font-size: .95rem; }

.steps2 { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.steps2 li { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 6px solid var(--sc); }
.steps2 p, .feats p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sc, var(--a)); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 10px; }
.feats { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 900px) { .feats { grid-template-columns: repeat(3, 1fr); } }
.feats li { padding: 22px; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; }
.feat-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 1.6rem; margin-bottom: 10px; background: color-mix(in srgb, var(--sc) 16%, #fff); }

.what { display: grid; gap: 30px; align-items: center; }
@media (min-width: 860px) { .what { grid-template-columns: 1.3fr .7fr; } }
.what p { font-size: 1.08rem; }
.tabla-what { max-width: 300px; margin: 0 auto; transform: rotate(2deg); }
.tabla-what .cell, .th-art .cell { cursor: default; }

.faq { max-width: 820px; }
.faq details { background: #fff; border-radius: 18px; border: 2px solid var(--line); margin-bottom: 10px; padding: 0 20px; }
.faq details[open] { border-color: var(--teal); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 800; font-size: 1.5rem; color: var(--teal); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq summary h3 { margin: 0; font-size: 1.1rem; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

.final-cta { text-align: center; color: #fff; padding: 56px 0; background: linear-gradient(120deg, var(--pink), #ff5f7e 40%, var(--orange)); }
.final-cta h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.final-cta p { font-size: 1.15rem; margin-bottom: 20px; }

/* theme page */
.crumbs ol { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .92rem; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { color: var(--muted); font-weight: 600; text-decoration: none; }
.th-hero { display: grid; gap: 30px; align-items: center; padding: 26px 0 10px; }
@media (min-width: 860px) { .th-hero { grid-template-columns: 1.2fr .8fr; } }
.th-hero h1 { color: var(--tc); }
.th-hero .btn { --c: var(--tc); }
.th-art { margin: 0; text-align: center; }
.th-art .tabla { max-width: 320px; margin: 0 auto 8px; transform: rotate(2deg); }
.deck { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.deck li { position: relative; display: grid; justify-items: center; background: #fff; border: 2px solid var(--navy); border-radius: 10px; padding: 16px 4px 0; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px color-mix(in srgb, var(--a) 45%, #fff); overflow: hidden; }
.deck .num { position: absolute; top: 2px; left: 6px; font-size: .7rem; font-weight: 800; opacity: .6; }
.deck .emo { font-size: 2rem; line-height: 1.1; }
.deck .nm { width: 100%; text-align: center; font-size: .66rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; padding: 4px 2px; margin-top: 6px; border-top: 1.5px solid var(--navy); background: color-mix(in srgb, var(--a) 10%, #fff); }
.brand-page .foot { margin-top: 0; }
.theme-page + .foot, .theme-page { padding-bottom: 30px; }
.th-cols .btn { --c: var(--tc); }
.th-cols { display: grid; gap: 0 20px; margin-top: 30px; }
@media (min-width: 860px) { .th-cols { grid-template-columns: 1fr 1fr; } }
.how-list { padding-left: 1.3em; margin: 0; display: grid; gap: 8px; }
.tips { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.tips li { padding-left: 30px; position: relative; }
.tips li::before { content: '★'; position: absolute; left: 0; color: var(--yellow); font-size: 1.2rem; line-height: 1.3; text-shadow: 0 1px 0 #d9a400; }

/* ===== dashboard ===== */
.dash-head { margin-bottom: 16px; }
.event-list { display: grid; gap: 10px; }
.event-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; background: var(--paper); border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); border-left: 6px solid var(--a); box-shadow: var(--shadow); flex-wrap: wrap; }
.event-main { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; flex: 1 1 220px; }
.event-main strong { display: block; }
.event-main .muted { display: block; font-weight: 600; }
.event-actions { display: flex; align-items: center; gap: 8px; }
.event-actions form { margin: 0; }

/* ===== tabla (card) ===== */
.tabla {
  background: var(--tabla-bg, #fffdf7); border: 5px solid #122B4D; border-radius: 12px; padding: 7px;
  box-shadow: 0 0 0 3px var(--a), 0 14px 30px -12px rgba(0,0,0,.45);
  color: #122B4D;
}
.tabla-head { text-align: center; font-family: var(--display); font-weight: 800; font-size: .95rem; color: var(--a); padding: 2px 0 7px; letter-spacing: .5px; }
.tabla .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.cell {
  position: relative; aspect-ratio: var(--cr, .75); display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #fff; border: 2px solid #122B4D; border-radius: 6px; padding: 14px 2px 18px; overflow: hidden;
  font-family: var(--body); color: #122B4D; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px color-mix(in srgb, var(--a) 45%, #fff);
  user-select: none; -webkit-user-select: none;
}
.cell .num { position: absolute; top: 3px; left: 5px; font: 800 .62rem var(--body); opacity: .65; }
.cell .emo { font-size: clamp(1.6rem, 9vw, 2.6rem); line-height: 1; }
.cell .nm {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 2px 3px; font: 800 clamp(.5rem, 2.3vw, .66rem)/1.05 var(--body);
  text-transform: uppercase; letter-spacing: .2px; background: color-mix(in srgb, var(--a) 10%, #fff); border-top: 1.5px solid #122B4D;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cell .bean {
  position: absolute; width: calc(46% * var(--mk-scale, 1)); aspect-ratio: var(--mk-ratio, 1.25); border-radius: var(--mk-radius, 50%); top: 50%; left: 50%;
  transform: translate(-50%, -60%) scale(0) rotate(var(--mk-rot, -20deg));
  background: var(--mk-bg, radial-gradient(ellipse at 35% 30%, #a0714a 0 12%, var(--bean) 45%, #3b220e 100%));
  box-shadow: var(--mk-shadow, 0 3px 4px rgba(0,0,0,.45)); filter: var(--mk-filter, none); transition: transform .18s cubic-bezier(.3,1.6,.6,1);
  container-type: inline-size; display: grid; place-items: center;
}
/* emoji marker */
.cell .bean::after { content: var(--mk-emoji, none); font-size: 78cqw; line-height: 1; }
.cell.marked .bean { transform: translate(-50%, -60%) scale(1) rotate(var(--mk-rot, -20deg)); }
.cell.marked .emo { opacity: .5; }
.cell.win { box-shadow: inset 0 0 0 3px #fdd835, 0 0 0 3px #fdd835; animation: glow 1.2s ease-in-out infinite alternate; }
.cell.dim { opacity: .55; }
@keyframes glow { to { box-shadow: inset 0 0 0 3px #fdd835, 0 0 14px 4px #fdd835; } }
.tabla.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.tabla-sm { max-width: 260px; margin: 12px auto; }
.tabla-sm .cell { cursor: default; }
.tabla-sm .cell .emo { font-size: 1.5rem; }
.tabla-sm .cell .nm { font-size: .45rem; }

/* pattern icon */
.pat { display: inline-grid; grid-template-columns: repeat(4, 7px); gap: 2px; vertical-align: middle; }
.pat i { width: 7px; height: 7px; border-radius: 2px; background: color-mix(in srgb, currentColor 20%, transparent); }
.pat i.on { background: var(--a); }

/* ===== host ===== */
.host-head { margin-bottom: 14px; }
.host-head .back { font-size: .9rem; text-decoration: none; }
.host-head h1 { margin-top: 6px; display: flex; align-items: center; gap: 10px; }
.code { font-family: ui-monospace, Menlo, monospace; letter-spacing: 2px; background: var(--paper); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); }
.host-grid { display: grid; gap: 0 20px; }
@media (min-width: 900px) {
  .host-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .host-grid .caller { grid-row: span 2; }
}
.caller-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.voice { margin-left: auto; font-size: .875rem; font-weight: 700; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.label { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.pattern-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pattern-btn {
  display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: 12px; border: 2px solid var(--line);
  background: #fff; color: #122B4D; font: 700 .72rem/1.1 var(--body); cursor: pointer; text-align: center;
}
.pattern-btn.active { border-color: var(--a); background: color-mix(in srgb, var(--a) 10%, #fff); box-shadow: 0 0 0 2px var(--a); }
.pattern-btn.locked:not(.active) { opacity: .4; }
.big-card {
  position: relative; margin: 18px auto 8px; width: min(calc(320px * var(--cr, .75)), 70vw, 300px); aspect-ratio: var(--cr, .75); background: #fff; color: #122B4D;
  border: 5px solid #122B4D; border-radius: 14px; box-shadow: 0 0 0 4px var(--a), 0 16px 30px -14px rgba(0,0,0,.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 40px;
}
.big-card .num { position: absolute; top: 8px; left: 12px; font: 800 1.1rem var(--body); }
.big-card .emo { font-size: clamp(4rem, 22vw, 6.5rem); line-height: 1; }
.big-card .nm { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 6px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.2rem; border-top: 3px solid #122B4D; background: color-mix(in srgb, var(--a) 10%, #fff); border-radius: 0 0 8px 8px; line-height: 1.1; }
.flip { animation: flip .5s cubic-bezier(.3,1.4,.6,1); }
@keyframes flip { from { transform: rotateY(90deg) scale(.9); } to { transform: none; } }
#mainBtn { margin-top: 10px; }
#newRoundBtn { margin-top: 10px; }
.called-wrap { margin-top: 18px; }
.called-wrap summary { cursor: pointer; font-weight: 800; padding: 6px 0; }
.called-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin-top: 8px; }
.called-item { display: grid; justify-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 2px; color: #122B4D; }
.called-item b { font-size: 1.4rem; font-weight: 400; }
.called-item small { font-size: .55rem; font-weight: 800; text-transform: uppercase; text-align: center; line-height: 1.1; }
.called-item.latest { border-color: var(--a); box-shadow: 0 0 0 2px var(--a); }
.invite { text-align: center; }
.qr-box { background: #fff; padding: 14px; border-radius: 14px; display: inline-block; border: 1px solid var(--line); }
.qr-box canvas, .qr-box img { width: 200px !important; height: 200px !important; display: block; image-rendering: pixelated; }
.join-url { margin: 10px 0; word-break: break-all; font-size: .9rem; }
.btn-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.upsell { margin-top: 16px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--a) 8%, #fff); color: #122B4D; }
.upsell p { margin-bottom: 8px; font-weight: 700; font-size: .9rem; }
.player-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-height: 360px; overflow: auto; }
.player-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 4%, transparent); font-weight: 700; }
.winners-box { background: #fff3c4; color: #5a3d00; padding: 10px 12px; border-radius: 12px; margin-bottom: 10px; }
.claim-bad { font-size: .85rem; color: #b71c1c; margin: 8px 0 0; font-weight: 700; }

/* overlay */
.overlay { position: fixed; inset: 0; background: rgba(20, 10, 5, .6); display: grid; place-items: center; padding: 16px; z-index: 50; backdrop-filter: blur(3px); }
.overlay-card { position: relative; background: var(--paper); color: var(--ink); border-radius: 20px; padding: 24px 20px; width: min(420px, 100%); text-align: center; overflow: hidden; max-height: 92vh; overflow-y: auto; animation: pop .35s cubic-bezier(.3,1.5,.6,1); }
.overlay-card h2 { font-size: 1.9rem; color: var(--a); }
.overlay-card .eyebrow { font-family: var(--display); font-weight: 800; font-size: 1rem; text-transform: none; letter-spacing: .5px; }
.big-emo { font-size: 4rem; margin: 0; }
.btn-col { display: grid; gap: 8px; margin-top: 12px; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { top: 110%; transform: translateX(30px) rotate(720deg); } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); background: #122B4D; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; opacity: 0; transition: .25s; z-index: 60; max-width: calc(100% - 32px); text-align: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #b71c1c; }
.toast.ok { background: #1b5e20; }

/* ===== guest play ===== */
.play-wrap { max-width: 520px; margin: 0 auto; padding: 8px 12px calc(24px + env(safe-area-inset-bottom)); }
.play-head { display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; }
.play-head h1 { font-size: 1.2rem; margin: 0; }
.play-head p { margin: 0; color: var(--muted); }
.play-head .lang { margin-left: auto; color: var(--ink); text-decoration: none; }
.join { margin-top: 20px; text-align: center; }
.join .form { text-align: left; }
.now-bar {
  display: flex; gap: 12px; align-items: center; background: var(--paper); border-radius: 16px; padding: 10px 12px;
  box-shadow: var(--shadow); border: 2px solid var(--a); margin-bottom: 10px; position: sticky; top: 6px; z-index: 5;
}
.now-card { width: calc(78px * var(--cr, .75)); max-width: 72px; aspect-ratio: var(--cr, .75); background: #fff; border: 3px solid #122B4D; border-radius: 8px; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 2px var(--a); }
.now-card .emo { font-size: 2rem; }
.now-text { display: grid; min-width: 0; }
.now-text .label { margin: 0; font-size: .68rem; }
.now-text strong { font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
.now-text .prev { font-size: .85rem; color: var(--muted); }
.play-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 4px 2px 10px; font-size: .85rem; font-weight: 700; }
.pat-badge { display: inline-flex; align-items: center; gap: 8px; }
.pat-badge small { font-weight: 600; color: var(--muted); }
.me-name { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.loteria-btn { margin-top: 14px; font-size: 1.7rem; --c: #e53935; }
.status-msg { text-align: center; margin-top: 12px; padding: 10px; border-radius: 12px; background: var(--paper); font-weight: 800; border: 1px solid var(--line); }
.status-msg.won { background: #fff3c4; color: #5a3d00; }

/* ===== TV screen ===== */
body.tv { overflow: hidden; }
.tv-wrap { height: calc(100vh - 30px); padding: 3vh 4vw; }
.tv-main { height: 100%; display: grid; grid-template-columns: auto 1fr; gap: 4vw; align-items: center; }
.tv-card { position: relative; height: min(82vh, calc(46vw / var(--cr, .75))); aspect-ratio: var(--cr, .75); background: #fff; color: #122B4D; border: 1vh solid #122B4D; border-radius: 2vh; box-shadow: 0 0 0 .8vh var(--a), 0 3vh 6vh -3vh rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding-bottom: 12vh; }
.tv-card .num { position: absolute; top: 1.5vh; left: 2vh; font: 800 4vh var(--body); }
.tv-card .emo { font-size: 32vh; line-height: 1; }
.tv-card .nm { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; padding: 2vh 1vh; font-family: var(--display); font-weight: 800; font-size: 5.5vh; border-top: .6vh solid #122B4D; background: color-mix(in srgb, var(--a) 10%, #fff); border-radius: 0 0 1vh 1vh; line-height: 1.05; }
.tv-side h1 { font-size: 6vh; }
.tv-pattern { font-size: 3.2vh; font-weight: 800; color: var(--a); margin: 0; }
.tv-meta { font-size: 2.4vh; color: var(--muted); }
.tv-recent { display: flex; flex-wrap: wrap; gap: 1vh; margin: 2vh 0; }
.tv-recent span { font-size: 6vh; background: #fff; border: .4vh solid #122B4D; border-radius: 1vh; width: 10vh; height: 12vh; display: grid; place-items: center; }
.tv-winners { font-family: var(--display); font-weight: 800; font-size: 5vh; color: var(--a); margin: 2vh 0; animation: pop .4s; }
.tv-join { display: flex; align-items: center; gap: 2vw; margin-top: 3vh; font-size: 2.6vh; background: var(--paper); padding: 1.5vh; border-radius: 1.5vh; width: fit-content; }
.tv-join #tvQr { background: #fff; padding: .8vh; border-radius: 1vh; }
.tv-join canvas, .tv-join img { width: 18vh !important; height: 18vh !important; display: block; }
@media (max-aspect-ratio: 1/1) {
  body.tv { overflow: auto; }
  .tv-main { grid-template-columns: 1fr; }
  .tv-card { height: auto; width: min(80vw, 420px); margin: 0 auto; }
}

@media (max-width: 480px) {
  .brand { font-size: 1.05rem; }
  .topbar nav { gap: 10px; }
  .topbar nav a { font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.btn.btn-link { background: none; box-shadow: none; color: var(--muted); }

/* uploaded card art */
.emo img, .tc-peek i img, .called-item b img, .phone-now-card img, .float-card span img, .tv-recent span img, .prev i img, .theme-peek img { width: 1.25em; height: 1.25em; object-fit: contain; display: inline-block; vertical-align: middle; }
.cell .emo img, .big-card .emo img, .tv-card .emo img, .deck .emo img { width: 1.5em; height: 1.5em; }
.prev i { font-style: normal; }

/* ===== admin ===== */
body.admin main.wrap { max-width: 1240px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head h1 { font-size: 1.8rem; margin: 0; }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 4px; }
.admin-tabs a { text-decoration: none; color: var(--navy); padding: 6px 14px; border-radius: 99px; font-size: .95rem; }
.admin-tabs a.on { background: var(--navy); color: #fff; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 20px; }
.stat { background: #fff; border-radius: 18px; padding: 16px; border: 2px solid var(--line); border-top: 6px solid var(--sc); display: grid; gap: 2px; }
.stat-l { font-weight: 700; font-size: .9rem; color: var(--muted); }
.stat b { font-size: 2rem; line-height: 1.1; }
.admin-cols { display: grid; gap: 0 20px; }
@media (min-width: 900px) { .admin-cols { grid-template-columns: repeat(3, 1fr); } .admin-cols.two-cols { grid-template-columns: 1fr 1fr; gap: 24px; } }
.table-wrap { overflow-x: auto; }
.atable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.atable th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--line); }
.atable td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.atable .right { text-align: right; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search input, .search select, .admin select, .admin textarea, .inline-form input[type=number] {
  font: 600 1rem var(--body); padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--navy);
}
.admin textarea { width: 100%; resize: vertical; }
.admin select { width: 100%; }
.search select { width: auto; }
.admin-actions { display: grid; gap: 12px; margin-top: 10px; }
.inline-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-form label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.btn-danger { --c: #d32f2f; }
.tag-paid { background: #e6f9ee; color: #146c3a; }
.tag-pending { background: #fff3d6; color: #8a5a00; }
.copy-box { margin-top: 14px; display: grid; gap: 4px; }
.copy-box input { font: 600 .9rem ui-monospace, monospace; padding: 10px; border-radius: 10px; border: 2px dashed var(--teal); width: 100%; }
.pager { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.pager a, .pager b { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; }
.pager b { background: var(--navy); color: #fff; }
.bar-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; font-size: .95rem; }
.bar { height: 10px; background: var(--tint); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--orange)); border-radius: 99px; }
.narrow { max-width: 560px; }

.game-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.game-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--line); border-left: 8px solid var(--tc); flex-wrap: wrap; }
.game-main { display: flex; align-items: center; gap: 12px; flex: 1 1 300px; text-decoration: none; color: var(--navy); min-width: 0; }
.game-icon { font-size: 2rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--tc) 15%, #fff); flex: none; }
.game-icon.big { width: 72px; height: 72px; font-size: 2.8rem; }
.game-txt { display: grid; min-width: 0; }
.game-peek { display: flex; gap: 4px; font-size: 1.2rem; margin-top: 2px; }
.game-peek i { font-style: normal; }
.game-peek img { width: 1.3em; height: 1.3em; object-fit: contain; }
.game-meta { display: grid; justify-items: end; gap: 2px; }
.game-head { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.game-head h2 { margin: 0; }
.sub-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; position: sticky; top: 0; background: var(--bg); padding: 8px 0; z-index: 4; }
.sub-tabs a { text-decoration: none; background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 4px 14px; color: var(--navy); font-size: .92rem; }
.sub-tabs a:hover { border-color: var(--pink); }
.admin section[id] { scroll-margin-top: 64px; }
.grid-form { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
.live-toggle { grid-column: 1 / -1; background: var(--tint); padding: 10px 14px; border-radius: 12px; }
.design-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .design-grid { grid-template-columns: 1fr 1fr; } }
.color-row { display: flex !important; flex-direction: row; align-items: center; gap: 12px; font-weight: 400 !important; }
.color-row input[type=color] { width: 56px; height: 44px; border: 2px solid var(--line); border-radius: 12px; padding: 2px; background: #fff; cursor: pointer; flex: none; }
.design-preview { background: var(--bg); border-radius: 20px; padding: 18px; border: 2px dashed var(--line); color: #122B4D; }
.design-preview.is-dark { color: #f5ecff; }
.design-preview .tabla { max-width: 300px; margin: 0 auto; }
.design-preview .cell { cursor: default; }
.preview-row { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.theme-card.mini { width: 130px; }
.theme-card.mini .tc-art { aspect-ratio: 16/9; }
.theme-card.mini .tc-icon { font-size: 1.8rem; }
.theme-card.mini .tc-name { font-size: .85rem; padding-bottom: 8px; }

.fig-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 14px 0; }
.fig-ed { display: grid; grid-template-columns: 84px 1fr; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px; }
.fig-ed.is-hidden { opacity: .55; background: repeating-linear-gradient(45deg, #fff 0 10px, #f6f7f9 10px 20px); }
.fig-ed.is-deleting { border-color: #d32f2f; opacity: .5; }
.fig-ed.changed { border-color: var(--teal); }
.fig-prev { aspect-ratio: var(--cr, .75); height: auto; align-self: start; cursor: default; }
.fig-prev .emo { font-size: 2.1rem; }
.fig-prev .nm { font-size: .5rem; }
.fig-fields { display: grid; gap: 6px; min-width: 0; }
.fig-fields label { display: grid; gap: 2px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.fig-fields input:not([type=checkbox]):not([type=file]) { font: 600 .95rem var(--body); padding: 5px 8px; border-radius: 8px; border: 2px solid var(--line); width: 100%; color: var(--navy); min-width: 0; }
.fig-fields .two { display: grid; grid-template-columns: 1fr 70px; gap: 6px; }
.fig-fields .check { display: flex; grid-template-columns: none; align-items: center; gap: 4px; font-size: .8rem; }
.fig-checks { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.fig-checks .danger { color: #b0124f; }
.file-lbl input { font-size: .75rem; max-width: 100%; }
.save-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: rgba(255,255,255,.95); backdrop-filter: blur(4px); border-top: 2px solid var(--line); padding: 12px 0; z-index: 5; }
.drop { display: grid !important; place-items: center; border: 3px dashed var(--line); border-radius: 16px; padding: 28px 12px; cursor: pointer; text-align: center; position: relative; }
.drop:hover { border-color: var(--teal); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop span { font-weight: 800; color: var(--teal); }
.slug-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.slug-row input { flex: 1 1 160px; }
.counter { float: right; font-size: .78rem; color: var(--muted); font-weight: 700; }
.counter.over { color: #d32f2f; }
/* admin fixes */
.admin .card-box h2 { font-size: 1.45rem; }
.form .color-row input[type=color] { width: 56px; height: 44px; padding: 2px; border-radius: 12px; flex: none; }
.fig-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.fig-ed { grid-template-columns: 84px minmax(0, 1fr); }
.fig-fields > *, .fig-fields input { min-width: 0; max-width: 100%; }
.file-lbl input { width: 100%; }

/* ===== themed backgrounds (admin → card design) ===== */
body.has-page-bg { background: var(--page-bg); background-size: cover; background-position: center; min-height: 100vh; }
@media (min-width: 900px) { body.has-page-bg { background-attachment: fixed; } }
body.has-page-bg .play-head h1, body.has-page-bg .play-head p, body.has-page-bg .play-meta, body.has-page-bg #hint, body.has-page-bg .host-head {
  background: rgba(255,255,255,.88); color: #122B4D; border-radius: 12px; padding: 2px 10px; width: fit-content;
}
.design-preview { background: var(--page-bg, var(--bg)); }

/* ===== picture cards fill the whole card ===== */
.cell.art { padding: 0; }
.cell.art .emo, .deck li.art .emo, .big-card.art .emo, .tv-card.art .emo, .now-card.art .emo,
.float-card.art span { position: absolute; inset: 0; font-size: 0; display: block; }
.cell.art .emo img, .deck li.art .emo img, .big-card.art .emo img, .tv-card.art .emo img, .now-card.art .emo img,
.phone-now-card.art img, .float-card.art span img { width: 100%; height: 100%; object-fit: var(--img-fit, cover); display: block; border-radius: inherit; }
.cell.art .emo { border-radius: 4px; overflow: hidden; }
.cell.art .nm { z-index: 1; background: rgba(255,255,255,.88); }
.cell.art .num { z-index: 1; opacity: 1; background: rgba(255,255,255,.85); border-radius: 4px; padding: 0 3px; top: 2px; left: 2px; }
.cell.art .bean { z-index: 2; }
.cell.art.marked .emo { opacity: .75; }
.cell.no-nm .nm, .cell.no-num .num,
.deck li.no-nm .nm, .deck li.no-num .num,
.big-card.no-nm .nm, .big-card.no-num .num,
.tv-card.no-nm .nm, .tv-card.no-num .num { display: none; }
.cell.no-nm .bean { transform: translate(-50%, -50%) scale(0) rotate(var(--mk-rot, -20deg)); }
.cell.no-nm.marked .bean { transform: translate(-50%, -50%) scale(1) rotate(var(--mk-rot, -20deg)); }

.deck li.art { aspect-ratio: var(--cr, .75); padding: 0; align-content: end; }
.deck li.art .emo { overflow: hidden; }
.deck li.art .nm { position: relative; z-index: 1; background: rgba(255,255,255,.9); margin-top: 0; }
.deck li.art .num { z-index: 1; opacity: 1; background: rgba(255,255,255,.85); border-radius: 4px; padding: 0 3px; }

.big-card, .tv-card { overflow: hidden; }
.big-card.art, .tv-card.art { padding-bottom: 0; }
.big-card.art .nm, .tv-card.art .nm { z-index: 1; background: rgba(255,255,255,.9); }
.big-card.art .num, .tv-card.art .num { z-index: 1; background: rgba(255,255,255,.85); border-radius: 6px; padding: 0 6px; }
.now-card { position: relative; overflow: hidden; }
.phone-now-card.art { overflow: hidden; display: block; font-size: 0; }
.float-card.art { overflow: hidden; padding-bottom: 0; }
.float-card.art b { z-index: 1; }
.float-card.art.no-nm b { display: none; }

/* admin: background pictures */
.design-sub { font-size: 1.05rem; margin: 10px 0 0; padding-top: 12px; border-top: 2px solid var(--line); }
.pic-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: start; }
.pic-row input[type=file] { display: block; margin-top: 6px; font-size: .85rem; max-width: 100%; }
.pic-thumb { width: 76px; height: 76px; border-radius: 12px; border: 2px dashed var(--line); background: #f6f7f9 center / cover no-repeat; display: grid; place-items: center; font-size: .75rem; color: var(--muted); }
.tv-recent span { overflow: hidden; }
.tv-recent span img, .called-item b img { width: 100%; height: 100%; object-fit: var(--img-fit, cover); }
.called-item b { display: block; width: 100%; aspect-ratio: var(--cr, .75); display: grid; place-items: center; }
body.has-page-bg .tv-side > h1, body.has-page-bg .tv-pattern, body.has-page-bg .tv-meta {
  background: rgba(255,255,255,.9); color: #122B4D; width: fit-content; padding: 2px 14px; border-radius: 14px; margin-bottom: 1vh;
}

/* ===== bingo ===== */
.tabla .grid.g5 { grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tabla.bingo .cell { aspect-ratio: var(--cr, 1); padding: 2px; }
.tabla.bingo .cell .nm, .tabla.bingo .cell .num { display: none; }
.bingo-head { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 5px; }
.bingo-head span { text-align: center; font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 6vw, 1.9rem); line-height: 1.25; color: #fff; border-radius: 8px; }
.bh-B, .ball-B { --ball: #0A5BD3; } .bh-I, .ball-I { --ball: #FF3B8D; } .bh-N, .ball-N { --ball: #FF9F1C; }
.bh-G, .ball-G { --ball: #2ECC71; } .bh-O, .ball-O { --ball: #8E44AD; }
.bingo-head span { background: var(--ball); }
.cell.free { cursor: default; background: color-mix(in srgb, var(--a) 14%, #fff); }
.free-txt { font-family: var(--display); font-weight: 800; font-size: clamp(.6rem, 2.6vw, .85rem); line-height: 1.1; text-align: center; color: var(--a); }
.cell.free .bean { display: none; }
.cell.free.marked .free-txt { opacity: 1; }

/* the ball: colored ring, white center, letter + number */
.ball { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 1.45em; height: 1.45em; border-radius: 50%; line-height: .95;
  background: radial-gradient(circle at 50% 50%, #fff 0 52%, var(--ball, var(--a)) 54%); box-shadow: inset -0.06em -0.08em 0 rgba(0,0,0,.18), 0 .04em .1em rgba(0,0,0,.25); color: #122B4D; vertical-align: middle; }
.ball small { font-size: .2em; font-weight: 800; color: var(--ball, var(--a)); }
.ball b { font-size: .42em; font-weight: 800; }
/* inside a bingo card cell just show the number */
.cell .ball { background: none; box-shadow: none; width: auto; height: auto; }
.cell .ball small { display: none; }
.cell .ball b { font-size: 1em; }
.tabla.bingo .cell .emo { font-size: clamp(1.15rem, 5.6vw, 1.7rem); font-family: var(--display); }
.tabla.bingo .cell.marked .emo { opacity: .55; }
.tabla.bingo .cell .bean { width: calc(70% * var(--mk-scale, 1)); transform: translate(-50%, -50%) scale(0); background: var(--mk-bg, radial-gradient(circle at 35% 30%, #fff8 0 10%, var(--a) 40%, color-mix(in srgb, var(--a) 70%, #000) 100%)); aspect-ratio: 1; opacity: var(--mk-opacity, .85); }
.tabla.bingo .cell.marked .bean { transform: translate(-50%, -50%) scale(1); }
.tabla-sm.bingo .cell .emo { font-size: .95rem; }
.tabla-sm.bingo .bingo-head span { font-size: 1rem; }
.big-card .ball { font-size: 1.15em; }
.tv-card .ball { font-size: 1.05em; }
.big-card:has(.ball) .nm, .tv-card:has(.ball) .nm { letter-spacing: 2px; }
.tc-peek .ball, .game-peek .ball, .theme-peek .ball { font-size: 1.1em; }
.deck .ball { font-size: 1.4em; }

/* host: 75-number board */
.bboard { display: grid; gap: 4px; margin-top: 8px; }
.bb-row { display: grid; grid-template-columns: 26px repeat(15, 1fr); gap: 3px; align-items: center; }
.bb-row b { display: grid; place-items: center; height: 24px; border-radius: 6px; background: var(--ball); color: #fff; font-weight: 800; font-size: .9rem; }
.bb-row i { font-style: normal; display: grid; place-items: center; height: 24px; border-radius: 6px; font-size: .72rem; font-weight: 700; color: #9aa6b8; background: #f2f4f8; }
.bb-row i.on { background: var(--navy); color: #fff; }
.bb-row i.last { background: var(--pink); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pink); }
@media (max-width: 480px) { .bb-row { grid-template-columns: 20px repeat(15, 1fr); gap: 2px; } .bb-row i { font-size: .6rem; height: 20px; } }

.pat5 { grid-template-columns: repeat(5, 6px); }
.pat5 i { width: 6px; height: 6px; }

/* admin: sounds + bingo numbers */
.snd-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 14px; }
.snd-box { display: grid; gap: 6px; padding: 14px; border: 2px solid var(--line); border-radius: 16px; background: #fff; align-content: start; }
.snd-box input[type=file] { font-size: .85rem; max-width: 100%; }
.snd-now { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.play-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--teal); color: #fff; font-size: .9rem; cursor: pointer; flex: none; display: inline-grid; place-items: center; }
.play-btn:hover { filter: brightness(1.1); }
.snd-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.snd-row .play-btn { width: 28px; height: 28px; font-size: .75rem; }
.snd-file { flex: 1 1 120px; }
.num-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); margin: 14px 0; }
.num-ed { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.num-ed.has-snd { border-color: color-mix(in srgb, var(--teal) 60%, #fff); background: color-mix(in srgb, var(--teal) 6%, #fff); }
.num-ed.changed { border-color: var(--pink); }
.num-ed .ball { font-size: 2.1rem; flex: none; }
.num-ctl { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.num-ctl .play-btn { width: 26px; height: 26px; font-size: .7rem; }
.snd-pick { position: relative; display: inline-grid !important; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f2f4f8; cursor: pointer; font-size: .8rem; }
.snd-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.type-opt { align-items: flex-start !important; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; margin-bottom: 6px; }
.type-opt:has(input:checked) { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 6%, #fff); }
@media (min-width: 900px) { .admin-cols.three-cols { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* bingo dauber: see-through so the number stays readable */
.tabla.bingo .cell .emo { position: relative; z-index: 3; }
.tabla.bingo .cell.marked .emo { opacity: 1; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tabla.bingo .cell .bean { opacity: var(--mk-opacity, .8); z-index: 2; }
.big-card:has(.ball) .num, .tv-card:has(.ball) .num { display: none; }

/* card shape follows the game's pictures (--cr = width ÷ height) */
.tv-recent span { width: calc(12vh * var(--cr, .75)); }
.phone-now-card { width: auto; height: 44px; aspect-ratio: var(--cr, .75); }
.tv-wrap .tv-main { grid-template-columns: auto minmax(0, 1fr); }

.fit-pick { display: grid; gap: 6px; }
.fit-pick .check { align-items: flex-start; font-weight: 400; }
.shape-tag { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; background: var(--tint); color: var(--teal); border-radius: 6px; padding: 0 6px; margin-left: 4px; }

/* admin: AI voice */
.slider-row { display: grid !important; gap: 6px; font-weight: 400 !important; }
.slider-row input[type=range] { width: 100%; accent-color: var(--pink); }
.slider-row output { font-weight: 800; color: var(--pink); margin-left: 6px; }
.voice-pick select { font-size: .95rem; }
.voice-meta { display: flex; align-items: center; gap: 8px; min-height: 34px; margin: 4px 0; }
.voice-id { font-family: ui-monospace, Menlo, monospace !important; font-size: .9rem !important; }
.tpl-grid { display: grid; grid-template-columns: 130px 1fr 1fr; gap: 8px; align-items: center; }
.tpl-grid input { font: 600 .95rem var(--body); padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); width: 100%; min-width: 0; color: var(--navy); }
.tpl-l { font-weight: 700; font-size: .9rem; }
@media (max-width: 700px) { .tpl-grid { grid-template-columns: 1fr; } .tpl-grid > b { display: none; } .tpl-l { margin-top: 8px; } }
.try-row { display: flex; gap: 8px; flex-wrap: wrap; }
.try-row input { flex: 1 1 240px; font: 600 1rem var(--body); padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); }
.try-row select { width: auto; }
.ai-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 12px 0; }
.ai-stats > div { display: grid; gap: 4px; }
.ai-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-progress { margin-top: 12px; display: grid; gap: 6px; }
.ai-progress .bar { height: 12px; }
.play-btn.ai { background: var(--purple); }
.play-btn.mini { width: 22px; height: 22px; font-size: .6rem; }
.ai-badges { display: flex; align-items: center; gap: 4px; color: var(--purple); font-weight: 700; }

/* admin: site check */
.check-table td { vertical-align: top; }
.chk-ico { width: 34px; font-size: 1.2rem; }
.chk-bad { background: #fff5f7; }
.chk-fix { color: #b0124f; font-weight: 700; }
.chk-fix a { color: inherit; }

/* ===== card text colors (Admin → Card design) ===== */
.cell .nm, .cell .num, .big-card .nm, .big-card .num, .tv-card .nm, .tv-card .num, .deck .nm, .deck .num { color: var(--card-ink, #122B4D); }
.cell .nm, .big-card .nm, .tv-card .nm, .deck .nm { background: var(--card-label, color-mix(in srgb, var(--a) 10%, #fff)); }
.cell.art .nm { background: var(--card-label, rgba(255,255,255,.88)); }
.deck li.art .nm, .big-card.art .nm, .tv-card.art .nm { background: var(--card-label, rgba(255,255,255,.9)); }
.cell.art .num, .deck li.art .num, .big-card.art .num, .tv-card.art .num { background: var(--card-label, rgba(255,255,255,.85)); }

/* ===== game cover pictures ===== */
.theme-icon img.cover, .theme-icon .cover { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.theme-icon:has(img.cover) { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; display: inline-block; vertical-align: middle; font-size: 0; }
.host-head .theme-icon:has(img.cover), .play-head .theme-icon:has(img.cover) { width: 44px; height: 44px; }
.tc-art img.tc-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.theme-opt .theme-icon:has(img.cover) { width: 100%; height: auto; aspect-ratio: 16/9; border-radius: 10px; }
.th-cover { width: 100%; max-width: 520px; aspect-ratio: 16/9; object-fit: cover; border-radius: 18px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); display: block; margin: 0 auto 14px; }
.adm-cover { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; vertical-align: middle; }

/* ===== picture protection + watermark ===== */
.cell img, .big-card img, .tv-card img, .now-card img, .deck img, .tc-art img, .called-item img, .theme-peek img, .float-card img, .phone-now-card img, .tv-recent img, i img {
  -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; pointer-events: none;
}
.tabla, .big-card, .tv-card, .now-card, .deck li, .tc-art { position: relative; }
.wmk::after, .tabla::after, .big-card::after, .tv-card::after, .deck li.art::after, .tc-art::after {
  content: ''; position: absolute; inset: 0; background: var(--wm, none) repeat; background-size: 220px 140px; pointer-events: none; z-index: 6; border-radius: inherit;
}
.tv-card::after { background-size: 300px 190px; }
.deck li.art::after, .tc-art::after { background-size: 160px 102px; }
body.admin .tabla::after, body.admin .deck li.art::after { background: none; }
.game-icon:has(.gi-cover) { overflow: hidden; padding: 0; font-size: 0; }
.game-icon .gi-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== several cards per guest ===== */
.how-many { border: 0; padding: 0; margin: 4px 0 6px; }
.how-many legend { font-weight: 800; margin-bottom: 6px; }
.hm-opts { display: flex; gap: 8px; }
.hm-opts label { flex: 1; }
.hm-opts input { position: absolute; opacity: 0; pointer-events: none; }
.hm-opts span { display: grid; place-items: center; height: 54px; border: 2px solid var(--line); border-radius: 14px; font: 800 1.5rem var(--display); background: #fff; color: var(--navy); cursor: pointer; }
.hm-opts input:checked + span { border-color: var(--a, var(--pink)); background: color-mix(in srgb, var(--a, var(--pink)) 14%, #fff); box-shadow: 0 0 0 2px var(--a, var(--pink)); }
.hm-opts input:focus-visible + span { outline: 3px solid var(--teal); }
.cards { display: grid; gap: 14px; }
.tabla-label { margin: 0 0 4px; font: 800 .95rem var(--display); color: var(--a); }
body.has-page-bg .tabla-label { background: rgba(255,255,255,.88); color: #122B4D; border-radius: 10px; padding: 0 10px; width: fit-content; }
.tabla-wrap.winner .tabla { box-shadow: 0 0 0 3px #fdd835, 0 0 22px 4px rgba(253,216,53,.7); }
body.multi-cards .now-bar { position: sticky; top: 0; z-index: 20; }
body.multi-cards .loteria-btn { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 20; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); }
@media (min-width: 640px) {
  body.multi-cards .play-wrap { max-width: 900px; }
  .cards.multi { grid-template-columns: repeat(2, 1fr); }
}
#addCardBtn { margin-top: 10px; }
.cards-pick { display: grid; gap: 4px; margin: 10px 0; font-weight: 700; }
.cards-pick select { width: auto; max-width: 120px; }
.pill-clock { background: color-mix(in srgb, var(--teal) 14%, #fff); color: #0b5f5e; }
.pill-clock.ending { background: #fff2cc; color: #8a5a00; }
.ended-box { margin: 8px 0 12px; }
.ended-view { margin-top: 24px; }
.clock-tag { color: #0b5f5e; }
.ended-tag { color: #b3261e; }
.pl-cards { font-size: .8rem; color: var(--muted); font-weight: 700; }

/* ===== admin: settings + AI pictures ===== */
.wm-demo { max-width: 260px; margin: 8px 0 0; }
body.admin .wm-demo .tabla::after { background: var(--wm-demo, var(--wm, none)) repeat; background-size: 160px 102px; }
.tool-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 14px; padding: 10px 12px; background: #f6f7f9; border-radius: 12px; }
.tool-row select { width: auto; }
.ok-text { color: #1b8a3a; font-weight: 700; }
.err-text { color: #c62828; font-weight: 700; }
.ai-pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.ai-pic { margin: 0; display: grid; gap: 4px; }
.ai-pic.cover { grid-column: span 2; }
.ai-pic-img { position: relative; aspect-ratio: var(--cr, .75); background: #f6f7f9; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.ai-pic.cover .ai-pic-img { aspect-ratio: 3 / 2; }
.ai-pic-img img { width: 100%; height: 100%; object-fit: cover; }
.ai-pic-img .emo { font-size: 2.4rem; }
.ai-pic figcaption { font-size: .8rem; font-weight: 700; display: flex; justify-content: space-between; gap: 4px; line-height: 1.2; }
.ai-pic.is-hidden { opacity: .5; }
.ai-pic.busy .ai-pic-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%) #e9ecf1; background-size: 250% 100%; animation: shimmer 1.2s linear infinite; }
.ai-pic.failed .ai-pic-img { border-color: #c62828; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.cards-pick { display: grid; justify-items: center; gap: 6px; margin-top: 14px; font-weight: 800; text-align: center; }
.cards-pick select { width: auto; min-width: 90px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 10px; font: 800 1rem var(--body); background: #fff; text-align: center; }
.cards-pick .muted { font-weight: 600; }
.player-count { margin: -6px 0 10px; font-weight: 700; }
.admin label.small:has(> select) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.admin label.small > select { width: auto; display: inline-block; }

/* ===== batch actions on cards ===== */
.bulk-bar { position: sticky; top: 8px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; padding: 10px 14px; background: #fff; border: 2px solid var(--line); border-radius: 14px; box-shadow: 0 8px 20px -14px rgba(18,43,77,.4); }
.bulk-bar.has-sel { border-color: var(--pink); }
.bulk-quick .btn-link { padding: 0; font-size: inherit; }
.bulk-act { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.bulk-act select { width: auto; max-width: 260px; }
.fig-ed, .num-ed { position: relative; }
.fig-sel { position: absolute; top: 6px; left: 6px; z-index: 8; width: 30px; height: 30px; display: grid; place-items: center; background: rgba(255,255,255,.95); border: 2px solid var(--line); border-radius: 8px; cursor: pointer; }
.fig-sel input { width: 18px; height: 18px; margin: 0; accent-color: var(--pink); cursor: pointer; }
.num-ed .fig-sel { top: 2px; left: 2px; width: 24px; height: 24px; }
.num-ed .fig-sel input { width: 15px; height: 15px; }
.fig-ed.sel, .num-ed.sel { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 12px; }
@media (max-width: 640px) { .bulk-act { margin-left: 0; width: 100%; } .bulk-act select { flex: 1; max-width: none; } }

.ai-filled { background: #fff8e6 !important; transition: background 1.5s; }
#seoAi { margin-bottom: 16px; }

/* ===== Etsy ===== */
.etsy-box .etsy-badge { display: inline-block; margin: 0 0 6px; padding: 3px 12px; border-radius: 999px; background: #f1641e; color: #fff; font-weight: 800; font-size: .85rem; }
.etsy-order { font: 800 1.35rem var(--body); letter-spacing: 1px; text-align: center; }
.etsy-sub { font-size: 1.05rem; margin: 10px 0 0; }
.etsy-note { margin-top: 14px; padding: 10px 14px; border: 2px dashed #f1641e; border-radius: 12px; }
ol.steps { padding-left: 20px; display: grid; gap: 8px; }
.copy-me { display: inline-block; margin-top: 4px; padding: 4px 8px; background: #f6f7f9; border-radius: 6px; user-select: all; word-break: break-all; }
tr.is-off td { opacity: .5; }

/* admin: marker picker */
.marker-pick { display: grid; gap: 8px; }
.marker-pick .mk-opt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.marker-pick input[name=marker_emoji] { width: 90px; font-size: 1.4rem; text-align: center; }
.mk-sample { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #f6f7f9; font-size: 1.6rem; }
.mk-sample img { max-width: 34px; max-height: 34px; }

/* ===== custom win pattern ===== */
.pattern-opts { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.pat-editor { margin-top: 10px; padding: 14px; border: 2px dashed var(--a); border-radius: 14px; background: #fff; display: grid; gap: 10px; justify-items: center; text-align: center; }
.pe-title { margin: 0; }
.pe-grid { display: grid; gap: 6px; width: min(100%, 260px); }
.pe-grid.pe4 { grid-template-columns: repeat(4, 1fr); }
.pe-grid.pe5 { grid-template-columns: repeat(5, 1fr); }
.pe-cell { aspect-ratio: 1; border: 2px solid var(--line); border-radius: 8px; background: #f6f7f9; cursor: pointer; font-weight: 800; color: #fff; transition: transform .1s, background .15s; }
.pe-cell:active { transform: scale(.92); }
.pe-cell.on { background: var(--a); border-color: color-mix(in srgb, var(--a) 70%, #000); }
.pe-cell.free { cursor: default; background: var(--a); opacity: .6; }
.pe-presets { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; align-items: center; }
.pe-presets .btn-link { font-weight: 800; font-size: 1rem; padding: 0 4px; }
.pe-actions { display: flex; gap: 8px; }

/* ===== landing additions ===== */
.cta-sub { margin: 10px 0 0; font-size: .9rem; font-weight: 700; color: var(--muted, #5b6b82); }
.tc-blurb { display: block; padding: 0 14px; font-size: .82rem; line-height: 1.35; color: #5b6b82; font-weight: 600; }
.section-occ .occ { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.occ-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.occ-list li { padding: 12px 14px; border-radius: 14px; background: #fff; border: 2px solid color-mix(in srgb, var(--sc) 35%, #fff); font-weight: 800; font-size: .92rem; box-shadow: 0 4px 0 color-mix(in srgb, var(--sc) 30%, #fff); }
.trust .quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0 22px; }
.trust blockquote { margin: 0; padding: 18px 20px; background: #fff; border-radius: 18px; border: 2px solid var(--line, #e3e7ee); }
.trust blockquote p { margin: 0 0 8px; font-weight: 600; font-size: 1.02rem; }
.trust cite { font-style: normal; font-weight: 800; color: var(--pink, #FF3B8D); font-size: .9rem; }
.pay-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pay-row li { padding: 8px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--line, #e3e7ee); font-weight: 800; font-size: .88rem; }
.pay-row a { color: inherit; text-decoration: none; }
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.contact-box { padding: 22px; border-radius: 20px; background: #fff; border: 2px dashed var(--pink, #FF3B8D); }
.contact-box h3 { margin-top: 0; }
.signup-why { margin-top: 18px; }
.signup-why h2 { font-size: 1.15rem; }
.checks-list { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.checks-list li::before { content: '✓ '; color: var(--teal, #00A9A7); font-weight: 900; }
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .section-occ .occ, .about { grid-template-columns: 1fr; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); box-shadow: 0 -6px 20px -10px rgba(18,43,77,.35); transform: translateY(110%); transition: transform .25s; }
  .sticky-cta.show { transform: none; }
  body:has(.sticky-cta) .foot { padding-bottom: 90px; }
}

/* Etsy shop badge */
.pay-row li.etsy-badge-li { padding: 6px 14px 6px 6px; }
.etsy-trust { display: inline-flex; align-items: center; gap: 10px; }
.etsy-logo { display: inline-grid; place-items: center; height: 30px; padding: 0 10px; border-radius: 999px; background: #F1641E; color: #fff; font: 800 .95rem Georgia, 'Times New Roman', serif; letter-spacing: .2px; }
.etsy-trust small { display: block; font-weight: 600; font-size: .75rem; opacity: .7; line-height: 1.1; }
.etsy-stars { color: #b8860b; white-space: nowrap; }

/* ===== hero: lotería and bingo scenes take turns ===== */
.hero2-art { display: grid; }
.hero-scene { grid-area: 1 / 1; position: relative; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.hero-scene.on { opacity: 1; transform: none; }
.hero-scene .phone-now { border-color: var(--a); }
.hero-scene .cell.just { box-shadow: 0 0 0 2px #fdd835; }
.float-ball { position: absolute; left: 4px; top: 40px; transform: rotate(-10deg); animation: bob 5s ease-in-out infinite; font-size: 2.6rem; filter: drop-shadow(0 8px 10px rgba(18,43,77,.3)); }
.float-ball .ball { width: 1.9em; height: 1.9em; }
@media (prefers-reduced-motion: reduce) { .hero-scene { transition: none; } }
.float-ball { left: -14px; top: 6px; }
.float-ball .ball { font-size: 3rem; }
.float-ball .ball small { font-size: .36em; line-height: 1; font-weight: 900; }
.float-ball .ball b { font-size: .42em; line-height: 1; }
