/* ── custom frames (customframe.js): the frame over a seat and its effects ─────────────────────────────────────
   Every effect is drawn on the frame's own band only (cut to its shape by --cf, the frame's picture): nothing is
   ever drawn around it, so a frame with every effect is exactly as big as the same frame without any. */
.seat-frame.cf { position: absolute; left: calc(-23 * var(--u)); top: calc(-29 * var(--u)); width: calc(140 * var(--u)); height: calc(181 * var(--u)); pointer-events: none; z-index: 2; }
.cf > img, .cf > canvas { display: block; width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.dz-frame-img.cf { display: block; }
/* the layers of effects: each the frame's own shape */
.cf.fx-rainbow::before, .cf.fx-shine::after, .cf-fxl { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  -webkit-mask: var(--cf) center / 100% 100% no-repeat; mask: var(--cf) center / 100% 100% no-repeat; }
.cf-fxl { z-index: 3; font-style: normal; overflow: hidden; }
/* glow: the band lights up warm gold and fades (no halo around it) */
.cf.fx-glow > img, .cf.fx-glow > canvas { animation: cfGlow 2.4s ease-in-out infinite; }
@keyframes cfGlow { 0%, 100% { filter: none; } 50% { filter: brightness(1.12) sepia(.25) saturate(1.3); } }
/* pulse: the whole band brightens and fades (it never grows) */
.cf.fx-pulse { animation: cfPulse 1.8s ease-in-out infinite; }
@keyframes cfPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.15) saturate(1.15); } }
/* rainbow: colours running along the band */
.cf.fx-rainbow::before { background: linear-gradient(120deg, #ff3b6b, #ffb23b, #fff23b, #3bff8a, #3bd2ff, #8a3bff, #ff3b6b); background-size: 300% 300%; mix-blend-mode: color; opacity: .55; animation: cfRainbow 4s linear infinite; }
@keyframes cfRainbow { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
/* shine: a light passing along the band */
.cf.fx-shine::after { background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .9) 50%, transparent 65%); background-size: 260% 100%; animation: cfShine 2.6s ease-in-out infinite; }
@keyframes cfShine { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }
/* sparkles: glints at the band's four corners (seen on the band only) */
.cf-spark b { position: absolute; width: 16%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; animation: cfTwinkle 1.6s ease-in-out infinite;
  background: radial-gradient(circle, #fff 0 14%, transparent 22%), conic-gradient(from 45deg, transparent 0 10%, #fff8c8 12% 13%, transparent 15% 35%, #fff8c8 37% 38%, transparent 40% 60%, #fff8c8 62% 63%, transparent 65% 85%, #fff8c8 87% 88%, transparent 90%); }
.cf-spark b:nth-child(1) { left: 15%; top: 15%; }
.cf-spark b:nth-child(2) { left: 85%; top: 15%; animation-delay: .4s; }
.cf-spark b:nth-child(3) { left: 15%; top: 85%; animation-delay: .8s; }
.cf-spark b:nth-child(4) { left: 85%; top: 85%; animation-delay: 1.2s; }
@keyframes cfTwinkle { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
/* hearts: little hearts rising inside the side bands */
.cf-hearts b { position: absolute; top: 86%; translate: -50% 0; font-size: calc(6 * var(--u, 1px)); line-height: 1; opacity: 0; animation: cfHeart 3s ease-in infinite; }
.cf-hearts b:nth-child(1) { left: 15%; }
.cf-hearts b:nth-child(2) { left: 85%; animation-delay: 1s; }
.cf-hearts b:nth-child(3) { left: 15%; animation-delay: 2s; }
@keyframes cfHeart { 0% { top: 86%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 12%; opacity: 0; } }
/* the second set of effects: each a layer cut to the frame's band (.cf-fxl), its pieces at --x / --y, from --d */
.cf-fxl b { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; font-style: normal; line-height: 1; pointer-events: none; }
/* neon: two colours running and flickering along the band */
.cf-neon { background: linear-gradient(90deg, #00e5ff, #ff2bd6, #7c4dff, #00e5ff); background-size: 300% 100%; mix-blend-mode: screen; opacity: .55; animation: cfNeon 3s linear infinite; }
@keyframes cfNeon { 0% { background-position: 0 0; opacity: .55; } 46% { opacity: .55; } 48% { opacity: .2; } 50% { opacity: .6; } 100% { background-position: 300% 0; opacity: .55; } }
/* gold: the band turns gold, a gleam running over it */
.cf-gold { background: linear-gradient(115deg, #8a6d1f, #ffe58a 28%, #b8860b 45%, #fff4c1 60%, #a07a1c 78%, #ffe58a); background-size: 250% 250%; mix-blend-mode: color; opacity: .8; animation: cfGold 3.5s ease-in-out infinite alternate; }
@keyframes cfGold { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
/* fire: the band burning (orange from below to yellow, flickering), embers rising up its sides */
.cf-fire { background: linear-gradient(to top, rgba(255, 70, 0, .95), rgba(255, 150, 0, .6) 40%, rgba(255, 220, 60, .35) 75%, rgba(255, 240, 150, .2)); mix-blend-mode: screen; animation: cfFlicker 1.1s steps(5) infinite; }
@keyframes cfFlicker { 0%, 100% { opacity: .95; } 20% { opacity: .65; } 40% { opacity: 1; } 60% { opacity: .75; } 80% { opacity: .9; } }
.cf-fire b { top: auto; bottom: -4%; width: 6%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fffbe0, #ffb300 40%, #ff3d00 62%, transparent 72%); animation: cfRise 2.2s ease-in var(--d) infinite; }
/* bubbles: see-through rings rising and swaying */
.cf-bubbles b { top: auto; bottom: -5%; width: 6.5%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .95); background: radial-gradient(circle at 35% 35%, #fff 0 14%, rgba(170, 230, 255, .45) 40%, rgba(120, 190, 255, .15) 70%); box-shadow: 0 0 4px rgba(170, 230, 255, .9); animation: cfRise 3.6s ease-in-out var(--d) infinite, cfSway 1.4s ease-in-out var(--d) infinite alternate; }
@keyframes cfRise { 0% { bottom: -5%; opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { bottom: 105%; opacity: 0; } }
@keyframes cfSway { from { margin-left: -1.2%; } to { margin-left: 1.2%; } }
/* snow: flakes falling and drifting, the band a little frosted */
.cf-snow { background: linear-gradient(rgba(220, 240, 255, .35), rgba(255, 255, 255, .1)); mix-blend-mode: screen; }
.cf-snow b { top: -3%; width: 4.2%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 45%, rgba(255, 255, 255, .5) 65%, transparent 72%); box-shadow: 0 0 4px #fff; animation: cfFall 4s linear var(--d) infinite, cfSway 1.8s ease-in-out var(--d) infinite alternate; }
@keyframes cfFall { 0% { top: -4%; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { top: 104%; opacity: 0; } }
/* petals: flowers falling and turning */
.cf-petals b { top: -4%; font-size: calc(11 * var(--u, 1px)); animation: cfFall 5s linear var(--d) infinite, cfSpin 3s linear var(--d) infinite; }
@keyframes cfSpin { to { rotate: 360deg; } }
/* confetti: little coloured papers falling and spinning */
.cf-confetti b { top: -4%; width: 3.6%; height: 2.2%; border-radius: 1px; background: #ff4f9a; box-shadow: 0 0 2px rgba(0, 0, 0, .3); animation: cfFall 3.4s linear var(--d) infinite, cfSpin 1.1s linear var(--d) infinite; }
.cf-confetti b:nth-child(5n + 2) { background: #ffd54f; }
.cf-confetti b:nth-child(5n + 3) { background: #4fc3f7; }
.cf-confetti b:nth-child(5n + 4) { background: #69f0ae; }
.cf-confetti b:nth-child(5n + 5) { background: #b388ff; }
/* stars: four-pointed stars twinkling along the band */
.cf-stars b { font-size: calc(13 * var(--u, 1px)); color: #fffbe0; text-shadow: 0 0 3px #fff, 0 0 6px #ffd54f, 0 0 10px #ffb300; animation: cfStar 2s ease-in-out var(--d) infinite; }
@keyframes cfStar { 0%, 100% { scale: .3; opacity: .1; rotate: 0deg; } 50% { scale: 1; opacity: 1; rotate: 90deg; } }
/* butterflies: fluttering and drifting along the band */
.cf-butterflies b { font-size: calc(13 * var(--u, 1px)); animation: cfFlap .35s ease-in-out infinite alternate, cfDrift 6s ease-in-out var(--d) infinite; }
@keyframes cfFlap { from { transform: scaleX(1); } to { transform: scaleX(.35); } }
@keyframes cfDrift { 0%, 100% { margin: 0; } 25% { margin: -10% 0 0 2%; } 50% { margin: -18% 0 0 -2%; } 75% { margin: -8% 0 0 -3%; } }
/* lightning: the band charged (a cold blue light), now and then flashing white, bolts striking along it */
.cf-lightning { background: rgba(140, 200, 255, .3); mix-blend-mode: screen; animation: cfCharge 3.4s linear infinite; }
@keyframes cfCharge { 0%, 84%, 100% { background-color: rgba(140, 200, 255, .3); } 86% { background-color: rgba(240, 250, 255, .95); } 88% { background-color: rgba(140, 200, 255, .2); } 90% { background-color: rgba(250, 252, 255, .95); } 94% { background-color: rgba(140, 200, 255, .3); } }
.cf-lightning b { font-size: calc(13 * var(--u, 1px)); filter: drop-shadow(0 0 3px #bfe3ff); animation: cfBolt 1.7s steps(1) var(--d) infinite; }
@keyframes cfBolt { 0%, 100% { opacity: 0; } 10% { opacity: 1; } 18% { opacity: .2; } 24% { opacity: 1; } 40% { opacity: 0; } }

/* the making screen: the thickness and the edge */
.cf-chips { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 14px; background: #f6f2ff; }
.cf-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 6px 2px 5px; border-radius: 10px; border: 2px solid transparent; background: #fff; cursor: pointer; font: inherit; color: #3d3460; box-shadow: 0 1px 3px rgba(61, 52, 96, .12); transition: border-color .15s, transform .15s; }
.cf-chip:hover { transform: translateY(-1px); }
.cf-chip.on { border-color: #7c4dff; background: #efe7ff; box-shadow: 0 2px 8px rgba(124, 77, 255, .3); }
.cf-chip.on small { color: #4b2aa8; font-weight: 700; }
.cf-chip small { font-size: 10.5px; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-mini-ico { display: block; line-height: 0; }
@media (prefers-reduced-motion: reduce) { .cf, .cf > *, .cf::before, .cf::after, .cf-fxl, .cf-fxl b { animation: none !important; } }

/* the making screen */
.cf-screen .panel-body { padding: 0; }
.cfm { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 18px; }
.cf-head { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.cf-head b { font-size: 16px; color: #4b2aa8; }
.cf-head small { color: #6b6290; font-size: 12px; }
.cf-preview { --u: 1.55px; display: grid; place-items: center; padding: calc(34 * var(--u)) 0 calc(36 * var(--u)); background: radial-gradient(circle at 50% 40%, #2f6b3c, #174424); border-radius: 14px; }
@media (min-width: 950px) { .cf-preview { --u: 1.8px; } }
.cf-stage { position: relative; width: calc(93 * var(--u)); height: calc(121 * var(--u)); }
.cf-seat, .cf-seat .seat-photo { position: absolute; inset: 0; }
.cf-seat .seat-photo { overflow: hidden; }
.cf-ava { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-cap { font-weight: 800; font-size: 13px; color: #4b2aa8; margin-top: 8px; }
.cf-layouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cf-layout { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border-radius: 12px; border: 2px solid #e4dafb; background: #fff; cursor: pointer; font: inherit; color: #3d3460; }
.cf-layout.on { border-color: #7c4dff; background: #f3edff; box-shadow: 0 2px 8px rgba(124, 77, 255, .25); }
.cf-layout small { font-size: 11px; line-height: 1.2; text-align: center; }
.cf-lay-ico { position: relative; width: 40px; height: 52px; border-radius: 5px; overflow: hidden; background: #ece6fb; }
.cf-lay-ico i { position: absolute; background: #9a7bff; }
.cf-lay-ico em { position: absolute; left: 8px; top: 9px; width: 24px; height: 34px; background: #fff; border-radius: 3px; }
.cf-lay-ico.l-four .p-top { left: 0; right: 0; top: 0; height: 9px; background: #ff8a65; }
.cf-lay-ico.l-four .p-bottom { left: 0; right: 0; bottom: 0; height: 9px; background: #4fc3f7; }
.cf-lay-ico.l-four .p-left { left: 0; top: 9px; bottom: 9px; width: 8px; background: #81c784; }
.cf-lay-ico.l-four .p-right { right: 0; top: 9px; bottom: 9px; width: 8px; background: #ba68c8; }
.cf-lay-ico.l-one .p-all { inset: 0; background: linear-gradient(135deg, #ff8a65, #ba68c8); }
.cf-lay-ico.l-two .p-left { left: 0; top: 0; bottom: 0; width: 50%; background: #81c784; }
.cf-lay-ico.l-two .p-right { right: 0; top: 0; bottom: 0; width: 50%; background: #ba68c8; }
.cf-lay-ico.l-tb .p-top { left: 0; right: 0; top: 0; height: 9px; background: #ff8a65; }
.cf-lay-ico.l-tb .p-bottom { left: 0; right: 0; bottom: 0; height: 9px; background: #4fc3f7; }
.cf-lay-ico.l-sides .p-left { left: 0; top: 0; bottom: 0; width: 8px; background: #81c784; }
.cf-lay-ico.l-sides .p-right { right: 0; top: 0; bottom: 0; width: 8px; background: #ba68c8; }
.cf-lay-ico.l-top .p-top { left: 0; right: 0; top: 0; height: 9px; background: linear-gradient(90deg, #ffb74d, #ff8a65); }
.cf-lay-ico.l-bottom .p-bottom { left: 0; right: 0; bottom: 0; height: 9px; background: linear-gradient(90deg, #4fc3f7, #7c4dff); }
.cf-lay-ico.l-corners i { width: 13px; height: 13px; background: transparent; border: 0 solid #ff8a65; }
.cf-lay-ico.l-corners .p-tl { left: 0; top: 0; border-width: 8px 0 0 8px; }
.cf-lay-ico.l-corners .p-tr { right: 0; top: 0; border-width: 8px 8px 0 0; border-color: #ba68c8; }
.cf-lay-ico.l-corners .p-bl { left: 0; bottom: 0; border-width: 0 0 8px 8px; border-color: #81c784; }
.cf-lay-ico.l-corners .p-br { right: 0; bottom: 0; border-width: 0 8px 8px 0; border-color: #4fc3f7; }
.cf-lay-ico.l-free { background: #fff3e6; }
.cf-lay-ico.l-free .p-free { inset: 0; background: none; }
.cf-lay-ico.l-free .p-free::before { content: '🔥'; position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); font-size: 30px; line-height: 1; font-style: normal; }
.cf-lay-ico.l-free em { z-index: 1; }
.cf-lay-ico.l-plate .p-top { left: 0; right: 0; top: 0; height: 9px; background: #ff8a65; }
.cf-lay-ico.l-plate .p-left { left: 0; top: 9px; height: 26px; width: 8px; background: #81c784; }
.cf-lay-ico.l-plate .p-right { right: 0; top: 9px; height: 26px; width: 8px; background: #ba68c8; }
.cf-lay-ico.l-plate .p-plate { left: 0; right: 0; bottom: 0; height: 17px; background: linear-gradient(90deg, #7c4dff, #4fc3f7); z-index: 2; }
.cf-lay-ico.l-plate .p-plate::after { content: 'Aa'; position: absolute; inset: 0; font: 800 9px/12px Arial, sans-serif; color: #fff; text-align: center; font-style: normal; }
/* the name plate frame: the name written over its plate, where the seat's bar was (the seat's last 18 of 121 units) */
.cf-name { position: absolute; z-index: 4; left: calc(23 / 140 * 100%); width: calc(93 / 140 * 100%); top: calc(132 / 181 * 100%); height: calc(18 / 181 * 100%);
  display: flex; align-items: center; justify-content: center; padding: 0 calc(4 * var(--u)); box-sizing: border-box; overflow: hidden; white-space: nowrap;
  font-size: calc(12 * var(--u)); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 4px rgba(0, 0, 0, .6); pointer-events: none; }
:is(.seat-photo, .cf-stage):has(> .cf-plate) .seat-name { visibility: hidden; }
.cf-place-tip { display: block; font-size: 10.5px; line-height: 1.25; color: #8a7fb0; font-weight: 500; margin-top: 2px; }
/* the free picture's cutter: a checkered ground shows its see-through parts */
.cf-cut-box.free { background: repeating-conic-gradient(#e9e4f5 0% 25%, #fff 0% 50%) 0 0 / 18px 18px; }
.cf-places { display: flex; flex-direction: column; gap: 6px; }
.cf-place { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: #fff; border: 1px dashed #cdbff5; }
.cf-place.done { border-style: solid; border-color: #b9e6c3; background: #f5fff7; }
.cf-place-pic { width: 46px; height: 46px; border-radius: 8px; background: #f0eafd; display: grid; place-items: center; overflow: hidden; flex: none; color: #7c4dff; }
.cf-place-pic img { width: 100%; height: 100%; object-fit: cover; }
.cf-place-name { flex: 1; font-weight: 700; font-size: 13px; color: #3d3460; }
.cf-place-acts { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cf-mini { border: 0; border-radius: 16px; padding: 6px 10px; background: #7c4dff; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.cf-mini.ghost { background: #efe8ff; color: #5b36d6; }
.cf-fx { display: flex; flex-wrap: wrap; gap: 6px; }
.cf-fx-chip { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 76px; padding: 6px 10px; border-radius: 12px; border: 2px solid #e4dafb; background: #fff; cursor: pointer; font: inherit; color: #3d3460; }
.cf-fx-chip span { font-weight: 700; font-size: 12px; }
.cf-fx-chip small { font-size: 11px; color: #8a7fb0; }
.cf-fx-chip.on { border-color: #ffb300; background: #fff8e1; box-shadow: 0 2px 8px rgba(255, 179, 0, .3); }
.cf-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: #f3edff; position: sticky; bottom: 0; z-index: 5; }
.cf-total { display: flex; flex-direction: column; }
.cf-total small { font-size: 11px; color: #6b6290; }
.cf-total b { font-size: 17px; color: #3d2a8a; }
.cf-make { min-width: 140px; }
.cf-make:disabled { opacity: .45; }
.cf-need { margin: 2px 0 0; text-align: center; font-size: 12px; color: #8a7fb0; }
/* the cutter */
.dialog.cf-cut { width: min(560px, 94vw); max-width: none; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cf-cut-title { font-size: 15px; color: #3d2a8a; }
.cf-cut-hint { margin: 0; font-size: 12px; color: #6b6290; text-align: center; }
.cf-cut-box { max-height: 60vh; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 16px 16px; box-shadow: 0 0 0 2px #7c4dff; touch-action: none; }
.cf-cut-view { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.cf-cut-view:active { cursor: grabbing; }
.cf-zoom-row { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 360px; }
.cf-zoom { flex: 1; accent-color: #7c4dff; }
/* making it, and ready */
.cf-making .dialog { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: min(320px, 90vw); text-align: center; }
.cf-make-ico { font-size: 40px; animation: cfBob 1.2s ease-in-out infinite; }
@keyframes cfBob { 50% { transform: scale(1.12); } }
.cf-make-ico.done { animation: none; }
.cf-bar { width: 100%; height: 8px; border-radius: 4px; background: #eee; overflow: hidden; }
.cf-bar i { display: block; height: 100%; width: 4%; background: linear-gradient(90deg, #7c4dff, #ff4f9a); transition: width .4s; }
.cf-steps { margin: 0; padding: 0 0 0 18px; text-align: start; font-size: 13px; color: #9a92b8; display: flex; flex-direction: column; gap: 4px; }
.cf-steps li.now { color: #5b36d6; font-weight: 700; }
.cf-steps li.ok { color: #2e9e57; }
.cf-ready-art { --u: 1.2px; position: relative; width: calc(140 * var(--u)); height: calc(181 * var(--u)); }
.cf-ready-frame { position: absolute; inset: 0; }
.cf-use { width: 100%; }
.dz-card.dz-new { animation: cfNew 1.4s ease-in-out 3; box-shadow: 0 0 0 3px #ffb300; }
@keyframes cfNew { 50% { transform: scale(1.04); } }
/* "Your design" → Frames: my custom frame on a small seat */
.dz-art-cf { --u: .72px; display: grid; place-items: center; overflow: visible; }
.dz-art-cf .cf-stage { margin: calc(29 * var(--u)) calc(24 * var(--u)) calc(31 * var(--u)) calc(23 * var(--u)); }
.dz-art-cf .cf-ava { border-radius: calc(5 * var(--u)); }
@media (min-width: 950px) { .dz-art-cf { --u: .8px; } }

/* ── the seat accessory (seatbadge.js): its centre on the seat's bottom-left corner ─────────────────────────── */
.seat-badge { --bw: calc(var(--bs, 34) * var(--u)); position: absolute; z-index: 4; width: var(--bw); height: var(--bw);
  /* it OVERLAPS the card's bottom-left corner: only about a third of it hangs outside, so it reads as worn on the
     seat (the owner, 2026-11-15: «يجب رفعها قليلا للاعلى لانها تبدو بعيدة بالفعل عن المقعد»; it used to sit with its
     centre exactly on the corner — half of it adrift below and to the left) */
  left: calc(var(--bw) * -.3); bottom: calc(var(--bw) * -.22); object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
/* the accessory screen */
.sbd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.sbd-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 12px; border: 2px solid #e4dafb; background: #fff; cursor: pointer; font: inherit; color: #3d3460; }
.sbd-card.on { border-color: #2e9e57; box-shadow: 0 2px 8px rgba(46, 158, 87, .25); }
.sbd-pic { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.sbd-pic img { width: 100%; height: 100%; object-fit: contain; }
.sbd-pic.none { background: #f6f4fb; color: #b0a8c8; font-size: 22px; }
.sbd-card small { font-size: 11px; font-weight: 700; }
/* "my own word" (the ✍️ tab, 2026-11-15): write it, pick its colour and its side */
.sbd-own { margin: 2px 0 10px; padding: 10px; border: 2px solid #e4dafb; border-radius: 14px; background: linear-gradient(#fff, #faf7ff); }
.sbd-own[hidden] { display: none; }
.sbd-own-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sbd-own-head b { color: #3d3460; }
.sbd-own-head small { color: #8a7fb0; }
.sbd-own-in { width: 100%; padding: 9px 12px; border: 2px solid #e4dafb; border-radius: 10px; font: 800 16px/1.2 'Montserrat', Arial, sans-serif; letter-spacing: 1px; text-align: center; text-transform: uppercase; color: #3d3460; background: #fff; }
.sbd-own-in:focus { outline: none; border-color: #7c4dff; }
.sbd-own-colors { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.sbd-dot { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid #ddd3f5; background: var(--dc, #ff3d7f); cursor: pointer; }
.sbd-dot.on { border-color: #2e9e57; box-shadow: 0 0 0 2px rgba(46, 158, 87, .3); }
.sbd-own-row { display: flex; gap: 8px; justify-content: center; }
.sbd-own-row + .sbd-own-row { margin-top: 8px; }
.sbd-side { flex: 1; padding: 7px 0; border-radius: 10px; border: 2px solid #e4dafb; background: #fff; color: #6b5f8f; font: inherit; font-weight: 700; cursor: pointer; }
.sbd-side.on { border-color: #7c4dff; color: #7c4dff; }
.sbd-own-lock { display: grid; gap: 6px; justify-items: center; text-align: center; color: #6b5f8f; }
.sbd-own-go { margin-top: 4px; }
/* the full price struck through beside the one my membership pays (2026-11-15) */
.sbd-was { margin-inline-start: 4px; opacity: .55; font-weight: 600; }
.cf-stage .seat-badge { --u: inherit; }
/* the warning about explicit pictures: red, short, three lines at most in any language */
.cf-warn { margin: 0 auto 2px; max-width: 300px; color: #d32f2f; font-weight: 800; font-size: 12px; line-height: 1.35; text-align: center; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* the preview's watermark: the game's address repeated over the whole preview (until the frame is bought) */
.cf-preview { position: relative; overflow: hidden; }
.cf-wm { position: absolute; inset: 0; z-index: 6; pointer-events: none; background-repeat: repeat; background-size: 150px 80px; }
.sbd-shop .sbd-pic { background: radial-gradient(circle, #fff7e6, #f3edff); }
/* the seat accessory's other places: wings behind the card, words down one side, the country flag */
/* wings rise upright beside the card (tall, not wide: they fit any seat's place) — half behind it, the tips above it;
   the picture is the left wing (200 × 256, its shoulder on the right edge), the right one mirrored */
.seat-wing { position: absolute; z-index: auto; top: calc(-24 * var(--u)); width: calc(56 * var(--u)); height: calc(72 * var(--u)); pointer-events: none; object-fit: contain; object-position: right center;
  filter: drop-shadow(0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(0, 0, 0, .35)); }
.seat-wing.l { left: calc(-30 * var(--u)); }
.seat-wing.r { right: calc(-30 * var(--u)); transform: scaleX(-1); }
/* above the card (a crown, a halo — 2026-11-15): centred on the card's top edge, a third of it over the photo.
   Centred with `left`, never `translate`: table.js fitBadges() sets `translate` to keep it inside the play area. */
.seat-top { position: absolute; z-index: 5; width: calc(var(--ts, 34) * var(--u)); height: calc(var(--ts, 34) * var(--u));
  left: calc(50% - var(--ts, 34) * var(--u) / 2); top: calc(var(--ts, 34) * var(--u) * -.66); object-fit: contain; pointer-events: none;
  filter: drop-shadow(0 calc(1 * var(--u)) calc(2 * var(--u)) rgba(0, 0, 0, .4)); }
.seat-vtext { position: absolute; z-index: 4; top: 50%; translate: 0 -50%; writing-mode: vertical-rl; text-orientation: upright; pointer-events: none; white-space: nowrap;
  font: 900 calc(8.5 * var(--u)) / 1 'Montserrat', 'Segoe UI', Tahoma, Arial, sans-serif; letter-spacing: calc(-1.2 * var(--u)); color: var(--vc, #ff4f9a);
  text-shadow: 0 0 calc(2 * var(--u)) #fff, 0 0 calc(4 * var(--u)) var(--vc, #ff4f9a); }
/* a word of a joined script (Arabic, Hebrew): upright would break its letters apart, so it is turned sideways
   (the owner, 2026-11-15: every language is allowed) */
.seat-vtext.sideways, .sbd-vt.sideways { text-orientation: sideways; letter-spacing: 0; }
/* a sideways word is read along the card, so it has to be bigger and harder-edged than the upright capitals to
   stay legible at the seat's real size (2026-11-15) */
.seat-vtext.sideways { font-size: calc(12 * var(--u)); font-weight: 800;
  text-shadow: 0 0 calc(1.5 * var(--u)) #000, 0 0 calc(3 * var(--u)) #000, 0 0 calc(5 * var(--u)) var(--vc, #ff4f9a); }
.seat-vtext.sideways.right { right: calc(-13 * var(--u)); }
.seat-vtext.sideways.left { left: calc(-13 * var(--u)); }
.sbd-vt.sideways { font-size: 13px; }
.seat-vtext.right { right: calc(-10 * var(--u)); }
.seat-vtext.left { left: calc(-10 * var(--u)); }
.seat-flag { height: calc(var(--bs, 22) * .75 * var(--u)); bottom: calc(var(--bs, 22) * .75 * var(--u) * -.22); object-fit: cover; border-radius: calc(2.5 * var(--u)); box-shadow: 0 0 0 calc(1.2 * var(--u)) #fff, 0 calc(1 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, .4); filter: none; }
.cf-acc { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.sbd-vt { writing-mode: vertical-rl; text-orientation: upright; font: 900 10px/1 'Montserrat', Arial, sans-serif; letter-spacing: -1px; color: var(--vc, #ff4f9a); text-shadow: 0 0 3px #fff; }
/* the accessory screen's bar: "none", then the three tabs (Country, Shape, Sticker) as one control */
.sbd-bar { display: flex; align-items: stretch; gap: 8px; margin: 10px 0 8px; }
.sbd-none { flex: none; width: 44px; padding: 0; border-radius: 12px; border: 2px solid #e4dafb; background: #fff; color: #6b5f8f; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.sbd-none.on { border-color: #2e9e57; color: #2e9e57; box-shadow: 0 2px 8px rgba(46, 158, 87, .25); }
.sbd-tabs.dz-tabs { flex: 1; display: flex; grid-auto-rows: auto; height: 40px; }
.sbd-tabs .dz-tab { flex: 1 1 0; grid-column: auto; border-top: 0; font-size: 20px; text-decoration: none; }
.sbd-tabs .dz-tab.on { box-shadow: inset 0 -3px 0 #ffd84a; }
.sbd-tabs .dz-tab:nth-child(5)::before { display: block; }
.sbd-note { margin: 0 0 8px; color: #7b3ff2; font-size: 12px; font-weight: 700; text-align: center; }
.sbd-note:empty { display: none; }
.sbd-find { width: 100%; margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid #e4dafb; font: inherit; font-size: 13px; }
.sbd-find[hidden] { display: none; }
.sbd-flag .sbd-pic { height: 40px; background: none; border-radius: 4px; }
.sbd-flag .sbd-pic img { object-fit: cover; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.sbd-flag small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
