/* Scattered cream-and-gold cards on teal felt, matching the owner's approved art direction. */
body:has(.spot-stage){background:#07545a!important}
.spot-stage{--felt:#07545a;position:relative;isolation:isolate;display:flex;flex-direction:column;flex:1;min-height:0;height:100%;overflow:hidden;color:#fff0cb;background:radial-gradient(ellipse at 25% 10%,#287b7a70,transparent 65%),radial-gradient(ellipse at 90% 90%,#002c3d88,transparent 70%),#07545a}
.spot-stage:before{content:"";position:absolute;inset:0;z-index:-1;opacity:.24;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.6' d='M0 0H150V150H0z'/%3E%3C/svg%3E")}
body.ug-shell .spot-stage .free-toolbar{flex:none;display:flex;justify-content:center;align-items:center;gap:18px;background:transparent!important;padding:8px 16px 0!important;min-height:0;margin:0;border:0;box-shadow:none}
.spot-stage .free-toolbar h1{margin:0;color:#ffedbd;font:700 clamp(18px,2.6vw,30px)/1.2 Georgia,serif;text-shadow:0 2px 0 #002b30;letter-spacing:.6px}.spot-stage .free-toolbar>span{font-size:15px;color:#ffe6a5}
.match-goal{text-align:center;flex:none;color:#e2eeea;font-size:clamp(13px,1.4vw,17px);margin:5px 12px 0;line-height:1.3;min-height:1.3em}
.match-cards{display:flex;flex:1;min-height:0;justify-content:center;align-items:center;gap:clamp(14px,3vw,44px);padding:12px 14px 18px;max-width:none;margin:0;width:100%}
.match-card{position:relative;flex:none;width:min(44vw,calc(100dvh - var(--ug-footer,66px) - 100px),650px);height:auto;aspect-ratio:1;border:5px solid #d5ad5d!important;border-radius:50%;background:radial-gradient(ellipse at 35% 25%,#fffdf4,#f5ead0 85%,#e8d9b6);display:block;grid-template-columns:none;padding:0!important;box-shadow:inset 0 0 0 2px #fff7d7,inset 0 0 15px #a37a2b22,0 12px 18px #002d3577;container-type:inline-size;overflow:hidden;transition:box-shadow .18s}
.match-item{position:absolute;left:calc(var(--spot-x)*100%);top:calc(var(--spot-y)*100%);width:calc(var(--spot-r)*200%);height:calc(var(--spot-r)*200%);min-width:0!important;min-height:0!important;transform:translate(-50%,-50%);border:0;background:transparent!important;box-shadow:none!important;padding:0!important;border-radius:50%;touch-action:manipulation;display:grid;place-items:center;outline-offset:0;color:#174067}
.match-item>span{width:85%;height:85%;display:grid;place-items:center;transform:rotate(var(--spot-angle));filter:drop-shadow(1px 2px 1px #40301726);pointer-events:none}
.match-item canvas,.match-item svg{display:block;width:100%;height:100%;max-height:none!important;object-fit:contain;pointer-events:none}
.match-item.selected{outline:3px solid #c48b32;background:#f7ca5e22!important;border-radius:50%}.match-item:focus-visible{outline:3px solid #17667e}.match-decoration{pointer-events:none}
.spot-judaica{display:block;width:100%;height:100%;background-image:url('/spot-match/judaica-v2.webp');background-size:400% 400%;background-position:var(--sprite-x) var(--sprite-y);background-repeat:no-repeat;pointer-events:none}
.match-memory{position:absolute;z-index:2;inset:0;display:grid;place-items:center;background:radial-gradient(ellipse,#18666d,#06434c);color:#ffe4a4;border-radius:50%;font:700 clamp(18px,4cqw,26px)/1.3 Georgia,serif;padding:15%}
.match-cards.is-paused{visibility:hidden}#match-replay{align-self:center;flex:none;margin:0 0 8px;border:1px solid #d4ad60;background:#074751;color:#ffeac3;font-size:13px;padding:6px 12px}
@media(orientation:portrait){.match-cards{flex-direction:column;flex-wrap:nowrap;gap:10px;padding:8px 8px 12px}.match-card{width:min(88vw,calc((100dvh - var(--ug-footer,66px) - 112px)/2));height:auto}.spot-stage .free-toolbar h1{font-size:22px}.match-goal{font-size:14px}}
@media(max-height:500px) and (orientation:landscape){.spot-stage .free-toolbar{padding:3px 10px 0!important}.spot-stage .free-toolbar h1{font-size:18px}.match-goal{font-size:12px;margin-top:2px}.match-card{width:min(43vw,calc(100dvh - var(--ug-footer,66px) - 75px))}.match-cards{padding:5px 8px 8px}#match-replay{font-size:11px;padding:2px 8px;margin-bottom:2px}}
@media(prefers-reduced-motion:reduce){.match-card{transition:none}}

.match-item.matched{outline:5px solid #20a86e!important;outline-offset:2px;background:#7ee29e25!important;box-shadow:0 0 0 2px #fff5ae!important}.match-item.matched>span{filter:drop-shadow(0 0 6px #27bd73)}
