/* tgcmarketcap: estilos del simulador de cajas. Solo los carga /[game]/simulador/. */
html .btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
html .btn--line:hover { border-color: var(--ink); }
html .btn:disabled { opacity: .55; cursor: default; }
html .bsim { margin-top: var(--s-6); display: grid; gap: var(--s-5); }
html .bsim__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: -8px; }
html .bsim__top > .bt__chk { margin-left: auto; }
html .bsim__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
html .bsim__stage { position: relative; min-height: 600px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 2px rgb(6 82 92 / .06), 0 18px 40px -24px rgb(6 82 92 / .35); display: grid; }
html .bsim__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; min-height: 44px; }
html .bsim__bar > b { font: 400 22px/1.2 var(--font-display); letter-spacing: -.02em; }
html .bsim__actions { display: flex; flex-wrap: wrap; gap: 8px; }
html .bsim__note, html .bsim__fine { font-size: 13px; color: var(--muted); max-width: 72ch; }
html .bsim__note { margin-top: 16px; }/* la mesa: la caja a la izquierda, los sobres a la derecha (sin stacking context: los sobres salen por detrás de la cara) */


html .bsim__table { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
html .bsim__table.is-box { align-items: center; align-self: center; }
html .bsim__boxcol { padding-top: 64px; }
html .ub { position: relative; width: 200px; aspect-ratio: 200 / 262; }
html .ub__mouth, html .ub__lid { position: absolute; left: 0; right: 0; top: 0; height: 13%; clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); }
html .ub__mouth { z-index: 1; background: linear-gradient(180deg, #021f24, #04343b); box-shadow: inset 0 6px 10px rgb(0 0 0 / .45); }
html .ub__lid { z-index: 4; background: linear-gradient(180deg, #13808d, #0b5d68); transform-origin: 50% 100%; }
html .ub__lid::after { content: ""; position: absolute; left: 10%; right: 10%; top: 40%; height: 2px; background: rgb(255 255 255 / .18); }
html .ub.is-open .ub__lid { opacity: 0; }
html .ub__front { position: absolute; z-index: 3; left: 0; right: 0; top: 13%; bottom: 0; border-radius: 0 0 14px 14px; padding: 22px 18px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: #f7f9f8;
  background: radial-gradient(circle at 20% 15%, #205d66 0 2px, transparent 2.5px) 0 0 / 18px 18px, linear-gradient(170deg, #0b5d68, #06404a 70%);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / .12), 0 30px 50px -28px rgb(6 82 92 / .7); }
html .ub__code { font: 500 12px/1 var(--font-mono); letter-spacing: .1em; color: #c1d0d2; }
html .ub__set { font: 400 26px/1.05 var(--font-display); letter-spacing: -.03em; }
html .ub__type { font-size: 13px; color: #c1d0d2; }
html .ub__count { margin-top: 8px; font: 500 12px/1 var(--font-mono); color: #06525c; background: #f7f9f8; border-radius: 6px; padding: 6px 8px; align-self: flex-start; }
html .bsim__boxinfo { display: grid; gap: 12px; max-width: 380px; }
html .bsim__h { font: 400 26px/1.15 var(--font-display); letter-spacing: -.02em; }/* el envoltorio del sobre: se usa en la mesa (pequeño) y al rasgarlo (grande); el texto escala con el ancho */


html .pk { position: absolute; inset: 0; display: block; color: #f7f9f8; font-size: 7.6cqw;
  background: linear-gradient(112deg, transparent 36%, rgb(255 255 255 / .10) 45%, transparent 55%), radial-gradient(circle at 30% 30%, rgb(255 255 255 / .08) 0 1px, transparent 1.6px) 0 0 / .9em .9em, linear-gradient(172deg, #13808d, #0b5d68 35%, #06404a); }
html .pk::before, html .pk::after { content: ""; position: absolute; left: 0; right: 0; height: 6%; background: repeating-linear-gradient(90deg, rgb(255 255 255 / .16) 0 1px, transparent 1px 5px), rgb(0 0 0 / .12); }
html .pk::before { top: 0; } html .pk::after { bottom: 0; }
html .pk__code { position: absolute; top: 18%; left: 10%; font: 500 .8em/1 var(--font-mono); letter-spacing: .1em; color: #c1d0d2; }
html .pk__mark { position: absolute; top: 31%; left: 50%; width: 2.8em; height: 2.8em; margin-left: -1.4em; background: #c1d0d2; }
html .pk__set { position: absolute; left: 10%; right: 10%; top: 54%; font: 400 1.3em/1.05 var(--font-display); letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html .pk__type { position: absolute; left: 10%; top: 76%; font-size: .72em; color: #c1d0d2; }
html .pk__n { position: absolute; left: 10%; bottom: 10%; font: 500 .68em/1 var(--font-mono); color: #06525c; background: #f7f9f8; border-radius: .3em; padding: .35em .5em; }/* los sobres en la mesa */


html .bsim__packs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
html .bsim__pack { position: relative; z-index: 2; container-type: inline-size; aspect-ratio: 5 / 8; border: 0; padding: 0; cursor: pointer; background: #06404a; transition: transform .18s; }
html .bsim__pack:not(:disabled):hover { transform: translateY(-4px) rotate(-1deg); }
html .bsim__pack:disabled { cursor: default; opacity: 1; }
html .bsim__pack.is-open { background: var(--surface); }
html .bsim__pval { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px; text-align: left; font: 500 13px/1.2 var(--font-text); color: var(--ink); }
html .bsim__pval b { font: 500 15px/1.1 var(--font-mono); }
html .bsim__result { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
html .bsim__result > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
html .bsim__result span { font-size: 13px; color: var(--muted); }
html .bsim__result b { font: 400 22px/1.1 var(--font-display); }/* rasgar el sobre: tira de arriba, cuerpo y montón de cartas dentro */


html .bsim__deal { position: relative; min-height: 470px; }
html .rip { --rw: 200px; position: absolute; z-index: 5; top: 120px; left: calc(50% - var(--rw) / 2); width: var(--rw); aspect-ratio: 5 / 8; container-type: inline-size; filter: drop-shadow(0 22px 26px rgb(6 82 92 / .32)); }
html .rip__top { z-index: 3; transform-origin: 85% 10%; }
html .rip__body { z-index: 2; }
html .rip__stack { position: absolute; z-index: 1; left: 8%; width: 84%; top: 20%; aspect-ratio: 63 / 88; }
html .rip__stack i { position: absolute; inset: 0; border-radius: 9px; background: radial-gradient(circle at 25% 25%, #205d66 0 1.5px, transparent 2px) 0 0 / 11px 11px, linear-gradient(160deg, #0b5d68, #06404a); box-shadow: inset 0 0 0 4px #0b3d44; }
html .rip__stack i:nth-child(2) { transform: translate(3px, -3px) rotate(1.5deg); }
html .rip__stack i:nth-child(3) { transform: translate(-3px, -6px) rotate(-1.5deg); }/* las cartas */


html .bsim__cards { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; perspective: 1200px; }
html .bsim__cards.is-hidden { visibility: hidden; }
@media (max-width: 1279px) { html .bsim__cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
html .sc { position: relative; z-index: 6; aspect-ratio: 63 / 88; border: 0; padding: 0; background: none; cursor: pointer; }
html .sc:disabled { cursor: default; }
html .sc__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .5s var(--u-spring, ease); }
html .sc.is-up .sc__in { transform: rotateY(180deg); }
html .sc__back, html .sc__face { position: absolute; inset: 0; border-radius: 9px; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
html .sc__back { display: grid; place-items: center; background: radial-gradient(circle at 25% 25%, #205d66 0 1.5px, transparent 2px) 0 0 / 11px 11px, linear-gradient(160deg, #0b5d68, #06404a); box-shadow: inset 0 0 0 4px #0b3d44, 0 8px 16px -12px rgb(6 82 92 / .9); }
html .sc__back .mark { width: 26px; height: 26px; background: #c1d0d2; }
html .sc:not(.is-up):hover .sc__in { transform: translateY(-3px); }
html .sc__face { transform: rotateY(180deg); display: flex; flex-direction: column; gap: 4px; padding: 14px 9px 9px; text-align: left; color: #06525c; background: var(--c-bg, #e6ebea); box-shadow: inset 0 0 0 1px rgb(6 82 92 / .14), 0 8px 16px -12px rgb(6 82 92 / .7); }
html .sc__band { position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--c-band, #9fb2b1); }
html .sc__name { font: 500 12px/1.2 var(--font-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html .sc__meta { font-size: 11px; line-height: 1.25; color: #2f737d; }
html .sc__num { font: 400 10px/1 var(--font-mono); color: #2f737d; opacity: .8; }
html .sc__price { margin-top: auto; font: 500 15px/1 var(--font-mono); }
html .sc__price.is-demo { align-self: flex-start; color: #6b4a00; background: #fff1c7; border-radius: 4px; padding: 3px 4px; font-size: 13px; }
html .sc__price.is-none { font: 400 11px/1.2 var(--font-text); color: #2f737d; }
html .sc__flag { align-self: flex-start; font: 500 10px/1 var(--font-text); color: #f7f9f8; background: #06525c; border-radius: 4px; padding: 4px 5px; }
html .sc.is-hit .sc__face { box-shadow: inset 0 0 0 2px #06525c, 0 10px 20px -12px rgb(6 82 92 / .9); }
html .sc.is-foil .sc__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, transparent 32%, rgb(255 255 255 / .55) 46%, rgb(193 208 210 / .35) 54%, transparent 68%); mix-blend-mode: soft-light; }
html .sc[data-c=W] { --c-bg: #f3eedf; --c-band: #cbbd92; }
html .sc[data-c=U] { --c-bg: #dbe8f1; --c-band: #7ea7c4; }
html .sc[data-c=B] { --c-bg: #e2dedb; --c-band: #6f6763; }
html .sc[data-c=R] { --c-bg: #f4ddd3; --c-band: #c98068; }
html .sc[data-c=G] { --c-bg: #dcebdc; --c-band: #6fa57a; }
html .sc[data-c=M] { --c-bg: #eee7d0; --c-band: #b8a46a; }
html .sc[data-c=C] { --c-bg: #e6ebea; --c-band: #9fb2b1; }/* el panel con la cuenta */


html .bsim__track { padding: 18px 20px; display: grid; gap: 12px; color: var(--u-ink); font: 400 14px/1.4 var(--font-text); position: sticky; top: calc(var(--nav) + 16px); }
html .bsim__sum { display: grid; gap: 2px; }
html .bsim__sum > span:first-child { color: var(--u-soft); }
html .bsim__sum b { font: 400 40px/1.05 var(--font-display); letter-spacing: -.03em; }
html .bsim__meter { height: 8px; border-radius: 4px; background: var(--u-line); overflow: hidden; }
html .bsim__meter i { display: block; height: 100%; background: var(--u-accent); transition: width .35s var(--u-ease); }
html .bsim__bars { position: relative; height: 64px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; border-bottom: 1px solid var(--u-line); }
html .bsim__bars i { display: block; border-radius: 3px 3px 0 0; background: var(--u-fill-3); transition: height .35s var(--u-ease); }
html .bsim__bars i.is-up { background: #0b7a4b; } html .bsim__bars i.is-down { background: #b3261e; opacity: .75; }
html .bsim__line { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--u-ink); opacity: .5; }
html .bsim__best { display: grid; gap: 8px; }
html .bsim__bname { display: grid; min-width: 0; }
html .bsim__bname small { color: var(--u-soft); font-size: 12px; }
html .bsim__session { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--u-line-2); }/* mil cajas */


html .bsim__many { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 20px; }
html .bsim__manyhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
html .bsim__manyhead h3 { margin-bottom: 6px; }
html .bsim__many .stats4 { margin-top: 0; }
html .bsim__hist { position: relative; height: 140px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; align-items: end; border-bottom: 1px solid var(--line); }
html .bsim__hist i { display: block; border-radius: 3px 3px 0 0; background: #b9ccce; }
html .bsim__hist i.is-up { background: #0b7a4b; }
html .bsim__hline { position: absolute; top: 0; bottom: 0; border-left: 1.5px dashed var(--ink); }
html .bsim__hline em { position: absolute; top: -2px; left: 6px; font: 500 12px/1 var(--font-mono); font-style: normal; white-space: nowrap; background: #fff; padding: 2px 4px; }
html .bsim__hends { display: flex; justify-content: space-between; font: 400 12px/1 var(--font-mono); color: var(--muted); margin-top: -10px; }

@media (prefers-reduced-motion: reduce) { html .bsim *, html .bsim *::before, html .bsim *::after { transition: none !important; } }
@media (max-width: 1023px) { html .bsim__grid { grid-template-columns: minmax(0, 1fr); } html .bsim__track { position: static; } html .bsim__cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  html .bsim__stage { padding: 16px; min-height: 0; }
  html .bsim__table { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html .bsim__boxcol { padding-top: 28px; display: flex; justify-content: center; }
  html .ub { width: 150px; }
  html .ub__set { font-size: 20px; } html .ub__front { padding: 14px 12px 12px; }
  html .bsim__packs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  html .bsim__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html .rip { --rw: 160px; }
  html .bsim__deal { min-height: 400px; }
  html .rip { top: 110px; }
  html .bsim__result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html .bsim__actions, html .bsim__actions .btn { width: 100%; }
  html .bsim__many { padding: 16px; }
}

html .bsim__select { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1 var(--font-text); }
html .bsim__select select { height: 40px; min-width: 300px; max-width: 100%; padding: 0 36px 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; color: var(--ink); font: 400 15px var(--font-text); }
html .bsim__demo { font-size: 13px; line-height: 1.4; color: var(--u-text-2); display: grid; gap: 6px; justify-items: start; }
@media (max-width: 767px) { html .bsim__select, html .bsim__select select { width: 100%; min-width: 0; } }
html .page-head .notice { flex-wrap: wrap; }
