/* Die Seefahrer. Dunkel, edel, Glas + Gold. Nur System-Schriften. */
:root {
  --bg: #07101f; --text: #f3ecda; --muted: #9aaccb; --gold: #e8b95a; --gold2: #f8dc92; --goldd: #a8741c;
  --line: rgba(255, 214, 140, .18); --green: #3fae6b; --red: #d4524a; --ink: #0b1628;
  --serif: Georgia, Palatino, "Palatino Linotype", "Book Antiqua", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --glass: linear-gradient(180deg, rgba(27, 45, 76, .80), rgba(10, 20, 38, .84));
  --bh: 132px; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font: 15px/1.35 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
b, strong { font-weight: 700; }
.muted { color: var(--muted); } .small { font-size: .85em; }
svg { display: block; }

.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.25); -webkit-backdrop-filter: blur(14px) saturate(1.25); box-shadow: 0 12px 34px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .09); border-radius: 16px; }

/* ================= Meer-Hintergrund ================= */
#sea { position: fixed; inset: 0; overflow: hidden; background: linear-gradient(rgba(12, 52, 92, .5), rgba(12, 52, 92, .5)), url("img/meerbg.webp") center / cover no-repeat, #0f3d68; }  /* Flux-Bild, ruhig und ohne Animation */
#sea .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(2, 8, 20, .55) 100%); pointer-events: none; }

/* ================= Brett ================= */
#board { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
#board.drag { cursor: grabbing; }
.piece, .foam, .L-shadow, .L-harbor { pointer-events: none; }
.piece { transition: transform .9s cubic-bezier(.45, 0, .2, 1); }
.piece.sailing { transition-duration: 1.1s; }
.piece .in { transform-origin: 0 0; }
.piece.pop .in { animation: pop .55s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes pop { 0% { transform: scale(0) translateY(-34px); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1) translateY(0); } }
.hex.reveal .in { animation: reveal 1s ease-out both; transform-origin: 0 0; }
@keyframes reveal { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.hex .chip { transform-box: fill-box; transform-origin: center; transition: transform .2s; cursor: pointer; }
.hex.hl .chip { transform: scale(1.2); }
.hex .ring { fill: none; stroke: #ffd56a; stroke-width: 5; opacity: 0; transition: opacity .2s; pointer-events: none; }
.hex.hl .ring { opacity: .95; }
.hex .flash { fill: #fff; opacity: 0; pointer-events: none; }
.hex.pulse .flash { animation: flash .75s ease-in-out 3; }
.hex.pulse .ring { animation: ringp .75s ease-in-out 3; }
@keyframes flash { 0%, 100% { opacity: 0; } 50% { opacity: .42; } }
@keyframes ringp { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.tw { animation: tw 3s ease-in-out infinite; animation-delay: var(--d, 0s); opacity: .1; }
@keyframes tw { 0%, 100% { opacity: .08; } 50% { opacity: .95; } }
.hex .wv { animation: wvp 6s ease-in-out infinite; animation-delay: var(--d, 0s); opacity: .12; }
@keyframes wvp { 0%, 100% { opacity: .05; } 50% { opacity: .5; } }
.fo { animation: fo 3.6s ease-in-out infinite; }
@keyframes fo { 0%, 100% { stroke-opacity: .16; } 50% { stroke-opacity: .6; } }
.fb { animation: drift 16s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
.fb1 { animation-duration: 21s; animation-name: drift2; } .fb2 { animation-duration: 25s; }
@keyframes drift { 0% { transform: translate(-22px, 4px); } 100% { transform: translate(24px, -8px); } }
@keyframes drift2 { 0% { transform: translate(18px, -6px); } 100% { transform: translate(-20px, 10px); } }
.hex.fog .q { animation: qp 5s ease-in-out infinite; }
@keyframes qp { 0%, 100% { opacity: .6; } 50% { opacity: .85; } }
.shimmer { animation: shim 5s ease-in-out infinite; }
@keyframes shim { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.bob { animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-2px) rotate(1.2deg); } }
.wake { animation: wk 2.6s ease-in-out infinite; }
@keyframes wk { 0%, 100% { opacity: .2; } 50% { opacity: .8; } }

/* Klickziele */
.tgt { cursor: pointer; }
.tgt .hit { fill: transparent; }
.tv .halo { fill: rgba(255, 226, 140, .26); stroke: #ffe08a; stroke-width: 2.4; transform-box: fill-box; transform-origin: center; animation: halo 1.5s ease-in-out infinite; }
.tv .core { fill: #fff2c0; stroke: #a87a1c; stroke-width: 2; transition: r .15s; }
.tv.city .halo { fill: rgba(150, 220, 255, .28); stroke: #a8e4ff; } .tv.city .core { fill: #dff4ff; stroke: #2c7aa8; }
.tv:hover .core { r: 12; fill: #fff; } .tv:hover .halo { fill: rgba(255, 226, 140, .5); }
@keyframes halo { 0%, 100% { transform: scale(.82); opacity: .75; } 50% { transform: scale(1.12); opacity: 1; } }
.te .bar { fill: rgba(255, 226, 140, .5); stroke: #ffe08a; stroke-width: 2.4; animation: barp 1.5s ease-in-out infinite; }
.te.ship .bar, .te.moveto .bar { fill: rgba(140, 220, 255, .45); stroke: #a8e4ff; }
.te:hover .bar { fill: rgba(255, 245, 200, .85); }
@keyframes barp { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.th .hexo { fill: rgba(255, 80, 50, .24); stroke: #ff9a80; stroke-width: 6; animation: hexp 1.6s ease-in-out infinite; }
.th.pirate .hexo { fill: rgba(120, 190, 255, .18); stroke: #9fd0ff; }
.th .dotc { fill: #fff; opacity: .5; pointer-events: none; }
.th:hover .hexo { fill: rgba(255, 140, 100, .42); stroke-width: 6; }
.th.pirate:hover .hexo { fill: rgba(140, 200, 255, .45); }
@keyframes hexp { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.tsf .ringo { fill: rgba(160, 230, 255, .12); stroke: #9fe3ff; stroke-width: 3; stroke-dasharray: 7 6; animation: barp 1.6s ease-in-out infinite; }
.tsf.sel .ringo { stroke: #fff; stroke-dasharray: none; fill: rgba(160, 230, 255, .3); }
.tsf:hover .ringo { fill: rgba(160, 230, 255, .35); }

/* ================= Buttons / Formulare ================= */
.btn { border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 9px 16px; font-weight: 700; letter-spacing: .01em; background: linear-gradient(180deg, #34517e, #223a60); color: var(--text); box-shadow: 0 3px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .22); transition: transform .12s, filter .12s, box-shadow .12s; }
.btn:hover { filter: brightness(1.13); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.btn.gold { background: linear-gradient(180deg, #fbdb85, #d99b27 55%, #b27712); color: #2a1a05; border-color: #fff0b8; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
.btn.green { background: linear-gradient(180deg, #5ccf8b, #2c9459); color: #04200f; border-color: #b6f3cf; }
.btn.red { background: linear-gradient(180deg, #e4756c, #b5392f); color: #fff; }
.btn.ghostb { background: rgba(255, 255, 255, .07); box-shadow: none; }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 9px; }
.btn.big { padding: 13px 26px; font-size: 18px; font-family: var(--serif); }
.btn.huge { padding: 18px 38px; font-size: 24px; font-family: var(--serif); border-radius: 16px; }
.btn.dis, [aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: saturate(.5); transform: none !important; }
.btn.pulsing { animation: bpulse 1.5s ease-in-out infinite; }
@keyframes bpulse { 0%, 100% { box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 0 0 rgba(248, 220, 146, .6); } 50% { box-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 0 12px rgba(248, 220, 146, 0); } }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 6px; }
.ibtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); color: var(--gold2); font-size: 22px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.ibtn:hover { filter: brightness(1.3); }
input { font: inherit; color: var(--text); background: rgba(5, 12, 26, .6); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; }
input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 185, 90, .22); }

.av { display: inline-grid; place-items: center; width: var(--sz, 30px); height: var(--sz, 30px); flex: none; border-radius: 50%; font: 700 calc(var(--sz, 30px) * .46)/1 var(--serif); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--pc) 55%, #fff), var(--pc) 55%, color-mix(in srgb, var(--pc) 60%, #000)); border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 2px 6px rgba(0, 0, 0, .5), inset 0 -3px 6px rgba(0, 0, 0, .25); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #6b7487; flex: none; display: inline-block; } .dot.on { background: #4ee08a; box-shadow: 0 0 7px #4ee08a; }
.crown { color: var(--gold); font-size: 13px; }
.waiting { color: var(--muted); display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 17px; margin: 6px 0; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= Anmeldung / Lobby ================= */
.screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; z-index: 20; }
.card { padding: 34px 40px 28px; width: min(480px, 94vw); text-align: center; border-radius: 22px; animation: rise .6s cubic-bezier(.2, .9, .3, 1) both; }
.card.wide { width: min(560px, 94vw); }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.card h1 { font: 700 44px/1.05 var(--serif); margin: 6px 0 2px; letter-spacing: .02em; background: linear-gradient(180deg, #fff2c0, #e8b95a 60%, #b27712); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 2px 18px rgba(232, 185, 90, .25); }
.card .sub { margin: 0 0 18px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 17px; }
.logo { width: 88px; height: 105px; margin: 0 auto 6px; background: url("img/logo.webp") center/contain no-repeat; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.fld { display: block; text-align: left; margin: 14px 0; } .fld > span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.fld input { width: 100%; font-size: 18px; }
.swatches { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 4px 0; }
.sw { width: 52px; height: 52px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 55%, var(--c2)); box-shadow: 0 5px 12px rgba(0, 0, 0, .45), inset 0 -5px 9px rgba(0, 0, 0, .25); transition: transform .15s, box-shadow .15s; display: grid; place-items: center; font-size: 22px; color: rgba(0, 0, 0, .55); padding: 0; }
.sw:hover:not(:disabled) { transform: translateY(-3px) scale(1.08); }
.sw.on { border-color: #fff; transform: scale(1.14); box-shadow: 0 0 0 4px rgba(248, 220, 146, .85), 0 8px 18px rgba(0, 0, 0, .55); }
.sw.taken { filter: grayscale(1) brightness(.55); cursor: not-allowed; }
#joinBtn { width: 100%; margin-top: 8px; }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.lobby-list { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 10px; }
.lobby-list li { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-left: 5px solid var(--pc); text-align: left; animation: rise .4s both; }
.lobby-list li.me { background: rgba(232, 185, 90, .10); }
.lobby-list .nm { font: 700 20px var(--serif); flex: 1; }
.lobby-list .you { font-size: 12px; color: #04200f; background: var(--green); border-radius: 8px; padding: 1px 8px; }
.row.center { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* ================= HUD ================= */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }
#banner { position: fixed; top: 12px; left: 290px; right: 70px; display: flex; justify-content: center; pointer-events: none; }
.side-open #banner { right: 450px; }
#banner .bn { max-width: 100%; }
.bn .btn { white-space: nowrap; flex: none; }
.bn { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 10px; border-radius: 999px; font: 600 18px var(--serif); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: 0 10px 28px rgba(0, 0, 0, .5); }
.bn .txt { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.bn.mine { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(232, 185, 90, .5), 0 0 30px rgba(232, 185, 90, .35), 0 10px 28px rgba(0, 0, 0, .5); animation: glow 2.4s ease-in-out infinite; }
.bn.wait { opacity: .92; color: #dbe6f7; font-weight: 500; }
.bn .tag { font: 700 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #2a1a05; background: var(--gold); border-radius: 6px; padding: 2px 7px; }
.bn .sep { opacity: .5; }
@keyframes glow { 50% { box-shadow: 0 0 0 1px rgba(232, 185, 90, .8), 0 0 42px rgba(232, 185, 90, .55), 0 10px 28px rgba(0, 0, 0, .5); } }

#players { position: fixed; left: 8px; top: 60px; width: 262px; padding: 4px 14px 8px 4px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - var(--bh) - 92px); overflow: auto; scrollbar-width: none; }
.pc { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); border-left: 5px solid var(--pc); backdrop-filter: blur(12px); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); transition: transform .3s, box-shadow .3s; }
.pc.turn { transform: translateX(6px); border-color: var(--gold); border-left-color: var(--pc); box-shadow: 0 0 0 1px rgba(232, 185, 90, .6), 0 0 26px rgba(232, 185, 90, .35), 0 6px 16px rgba(0, 0, 0, .4); background: linear-gradient(180deg, rgba(60, 70, 96, .85), rgba(18, 28, 50, .88)); }
.pc.off { opacity: .6; } .pc.off .av { filter: grayscale(.6); }
.pc .arrow { position: absolute; left: -17px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-left-color: var(--gold); animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.pc .info { flex: 1; min-width: 0; }
.pc .top { display: flex; align-items: center; gap: 6px; } .pc .nm { font: 700 16px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc .stats { display: flex; gap: 9px; font-size: 12.5px; color: #cfdbef; margin-top: 3px; flex-wrap: wrap; }
.pc .stats span { display: inline-flex; align-items: center; gap: 3px; }
.pc .bd { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }
.bdg { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #2a1a05; background: linear-gradient(180deg, #fbdb85, #d99b27); border-radius: 8px; padding: 1px 7px 1px 3px; }
.bdg svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.duty { font-size: 11px; font-weight: 700; color: #fff; background: var(--red); border-radius: 8px; padding: 1px 7px; animation: barp 1.2s infinite; } .duty.gold { background: #b27712; }
.vp { display: grid; justify-items: center; line-height: 1; min-width: 38px; }
.vp b { font: 700 28px var(--serif); color: var(--gold2); text-shadow: 0 2px 8px rgba(232, 185, 90, .35); } .vp i { font-style: normal; color: var(--gold); font-size: 12px; margin-top: -1px; }
.vp small { font-size: 10px; color: var(--muted); margin-top: 2px; }

#camBtns { position: fixed; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; }
.side-open #camBtns { right: 396px; }

#side { position: fixed; right: 12px; top: 12px; bottom: calc(var(--bh) + 24px); width: 372px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
#side > * { pointer-events: auto; }
#hud:not(.side-open) #side { display: none; }
#hud:not(.log-open) #logPanel { display: none; }
#sideToggle { position: fixed; right: 0; top: 46%; width: 24px; height: 56px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--glass); color: var(--gold2); font-size: 20px; padding: 0; }
.side-open #sideToggle { right: 396px; }
#tradeDock { display: flex; flex-direction: column; gap: 10px; max-height: 70%; overflow: auto; scrollbar-width: thin; }
#tradeDock:empty { display: none; }
#logPanel { flex: 1; min-height: 120px; display: flex; flex-direction: column; overflow: hidden; }
#logPanel header { display: flex; border-bottom: 1px solid var(--line); }
.tabbtn { flex: 1; background: none; border: 0; padding: 10px; font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; position: relative; }
.tabbtn.on { color: var(--gold2); border-bottom-color: var(--gold); }
#chatDot { position: absolute; top: 9px; right: 30%; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.scroll { flex: 1; overflow-y: auto; padding: 8px 12px; scrollbar-width: thin; scrollbar-color: #3a5276 transparent; }
.le { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 13.5px; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.le svg { flex: none; margin-top: 2px; } .le.k-award { color: var(--gold2); } .le.k-sys { color: var(--muted); font-style: italic; }
.ce { padding: 3px 0; font-size: 14px; word-break: break-word; }
#chatForm { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); } #chatForm input { flex: 1; min-width: 0; padding: 7px 10px; }

#bottom { position: fixed; left: 12px; right: 12px; bottom: 12px; min-height: var(--bh); padding: 10px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; border-radius: 20px; }
#hand { display: flex; align-items: center; gap: 14px; min-width: 0; }
#resRow { display: flex; gap: 7px; flex: none; }
.rcard { position: relative; width: 58px; height: 92px; flex: none; }
.rcard .sk { position: absolute; inset: 0; border-radius: 10px; background: color-mix(in srgb, var(--rc) 55%, #0b1628); border: 1px solid rgba(255, 255, 255, .2); }
.rcard .sk.s2, .rcard .sk.s3, .rcard .sk.s4 { box-shadow: 3px -3px 0 -0px color-mix(in srgb, var(--rc) 45%, #0b1628), 3px -3px 0 1px rgba(255, 255, 255, .18); }
.rcard .sk.s3, .rcard .sk.s4 { box-shadow: 3px -3px 0 0 color-mix(in srgb, var(--rc) 45%, #0b1628), 3px -3px 0 1px rgba(255, 255, 255, .18), 6px -6px 0 0 color-mix(in srgb, var(--rc) 38%, #0b1628), 6px -6px 0 1px rgba(255, 255, 255, .14); }
.rcard .face { position: absolute; inset: 0; border-radius: 10px; display: grid; justify-items: center; align-content: center; gap: 3px; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rc) 55%, #fff) 0%, var(--rc) 50%, color-mix(in srgb, var(--rc) 70%, #000) 100%); border: 2px solid rgba(255, 255, 255, .45); box-shadow: 0 5px 12px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .5); padding-bottom: 14px; }
.rcard .rn { font: 700 10.5px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: rgba(0, 0, 0, .6); }
.rcard .cnt { position: absolute; right: -6px; bottom: -6px; min-width: 30px; height: 30px; display: grid; place-items: center; font: 700 19px var(--serif); border-radius: 15px; background: linear-gradient(180deg, #223a60, #0e1c34); border: 2px solid var(--gold); color: var(--gold2); box-shadow: 0 3px 8px rgba(0, 0, 0, .5); padding: 0 4px; }
.rcard.zero .face { filter: grayscale(.85) brightness(.55); box-shadow: none; } .rcard.zero .cnt { border-color: #44546f; color: #7f90ad; }
.rcard.gain { animation: gain .7s cubic-bezier(.3, 1.7, .5, 1); }
@keyframes gain { 0% { transform: translateY(0); } 35% { transform: translateY(-14px) scale(1.08); } 100% { transform: translateY(0); } }
#devRow { display: flex; gap: 6px; overflow-x: auto; padding: 8px 4px 6px; scrollbar-width: thin; min-width: 0; flex: 1; }
.dcard { position: relative; flex: none; width: 54px; height: 82px; border-radius: 10px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 4px; font-size: 10.5px; font-weight: 700; text-align: center; line-height: 1.1; background: linear-gradient(180deg, #2c3b5c, #172238); border: 2px solid rgba(255, 255, 255, .22); color: #aab6cd; filter: grayscale(.6) brightness(.8); }
.dcard.play { filter: none; color: #2a1a05; background: linear-gradient(180deg, #fff3c4, #f0cd6e 60%, #d6a232); border-color: #fff; box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(248, 220, 146, .7); animation: devglow 1.8s ease-in-out infinite; }
.dcard.play:hover { transform: translateY(-6px); }
.dcard.vpc { filter: none; color: #2a1a05; background: linear-gradient(180deg, #e9f0ff, #aebde0); }
.dcard.fresh .new { position: absolute; top: -6px; right: -6px; font: 700 9px var(--sans); background: #6b7da6; color: #fff; border-radius: 7px; padding: 1px 5px; text-transform: uppercase; font-style: normal; }
@keyframes devglow { 50% { box-shadow: 0 0 0 2px var(--gold2), 0 0 28px rgba(248, 220, 146, 1); } }

#build { display: flex; gap: 7px; }
.bb { position: relative; width: 70px; height: 100px; border-radius: 14px; padding: 6px 4px 4px; display: grid; justify-items: center; align-content: space-between; background: linear-gradient(180deg, #2a4068, #172742); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 4px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .14); transition: transform .12s, filter .12s; }
.bb:hover { filter: brightness(1.2); transform: translateY(-3px); }
.bb.on { background: linear-gradient(180deg, #7a5a1c, #4a3510); border-color: var(--gold2); box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(232, 185, 90, .6); }
.bb.dis { opacity: .5; filter: grayscale(.6); }
.bb .ic { height: 40px; display: grid; place-items: center; } .bb .lb { font: 700 12px var(--sans); }
.bb .cost { display: flex; gap: 1px; flex-wrap: wrap; justify-content: center; min-height: 18px; font-size: 10px; color: var(--muted); }
.bb .cost.small { font-size: 9.5px; line-height: 1.1; align-items: center; }
.cc { display: inline-flex; align-items: center; } .cc b { font-size: 11px; margin-left: -1px; margin-right: 1px; }
.stk { position: absolute; top: -7px; right: -7px; font: 700 11px var(--sans); font-style: normal; background: #6b7da6; border-radius: 9px; padding: 1px 6px; }
.bb.trade { background: linear-gradient(180deg, #25594a, #123228); }

#dicebox { display: flex; align-items: center; gap: 12px; }
#dice { display: flex; gap: 14px; perspective: 520px; padding: 10px 6px; }
#dice.idle { opacity: .35; }
.die { width: 48px; height: 48px; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; }
.dface { position: absolute; inset: 0; border-radius: 11px; background: linear-gradient(145deg, #fffdf6, #e2d8be); border: 1px solid #b8ab88; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 7px; box-shadow: inset 0 0 10px rgba(120, 90, 30, .25); }
.dface i { place-self: center; width: 9px; height: 9px; border-radius: 50%; }
.dface i.p { background: radial-gradient(circle at 35% 30%, #5a4a38, #1b140d); box-shadow: inset 0 -1px 1px rgba(255, 255, 255, .25); }
.f1 { transform: translateZ(24px); } .f1 i.p { background: radial-gradient(circle at 35% 30%, #ff6a5e, #a3141b); width: 12px; height: 12px; }
.f6 { transform: rotateY(180deg) translateZ(24px); } .f3 { transform: rotateY(90deg) translateZ(24px); }
.f4 { transform: rotateY(-90deg) translateZ(24px); } .f2 { transform: rotateX(90deg) translateZ(24px); } .f5 { transform: rotateX(-90deg) translateZ(24px); }
#primary { min-width: 150px; display: grid; justify-items: stretch; }
.waitbox { text-align: center; color: var(--muted); font: 17px var(--serif); }

/* ================= Handels-Panel ================= */
.tpanel { padding: 0; overflow: hidden; animation: rise .35s both; }
.tpanel > header { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 14px; font: 700 17px var(--serif); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.tpanel .grow { flex: 1; }
.ghost { background: none; border: 0; color: var(--muted); font-size: 16px; padding: 2px 8px; border-radius: 8px; } .ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tbody { padding: 12px 14px 14px; }
.tpanel.incoming { border-color: var(--pc); box-shadow: 0 0 0 1px var(--pc), 0 0 34px color-mix(in srgb, var(--pc) 55%, transparent), 0 12px 34px rgba(0, 0, 0, .5); animation: rise .35s both, glow2 2s ease-in-out .4s infinite; }
@keyframes glow2 { 50% { box-shadow: 0 0 0 2px var(--pc), 0 0 48px color-mix(in srgb, var(--pc) 75%, transparent), 0 12px 34px rgba(0, 0, 0, .5); } }
.tpanel.mine { border-color: var(--gold); }
.who { display: flex; align-items: center; gap: 10px; font: 17px var(--serif); margin-bottom: 10px; }
.tcols { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 4px; }
.tcol h4 { margin: 0 0 6px; text-align: center; font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); }
.tarrow { color: var(--gold); text-align: center; } .tarrow.sm { font-size: 24px; align-self: center; }
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.tgrid.big { grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0; }
.tc { min-width: 0; position: relative; display: grid; justify-items: center; align-content: center; gap: 0; padding: 6px 2px 5px; border-radius: 11px; cursor: pointer; user-select: none; -webkit-user-select: none; background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 28%, #16233b), color-mix(in srgb, var(--rc) 14%, #0e1930)); border: 2px solid color-mix(in srgb, var(--rc) 45%, transparent); transition: transform .12s, border-color .12s, box-shadow .12s; color: var(--text); }
.tc:hover { transform: translateY(-2px); border-color: var(--rc); }
.tc.sel { border-color: var(--gold2); box-shadow: 0 0 14px rgba(248, 220, 146, .55); background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 50%, #1b2c4a), color-mix(in srgb, var(--rc) 24%, #0e1930)); }
.tc.dim { opacity: .4; }
.tc .tn { font: 700 8px var(--sans); letter-spacing: 0; max-width: 100%; overflow: hidden; text-transform: uppercase; opacity: .8; }
.tc .cnt { font: 700 20px/1 var(--serif); min-height: 20px; color: #fff; } .tc:not(.sel) .cnt { opacity: .25; }
.tc .have { position: absolute; top: 2px; right: 4px; font-size: 10px; color: var(--muted); }
.tc .minus { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; line-height: 1; font-weight: 700; background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; transition: opacity .12s; display: grid; place-items: center; }
.tc.sel .minus { opacity: .9; } .tc .minus:hover { background: var(--red); }
.tgrid.big .tc { padding: 10px 4px 8px; } .tgrid.big .tc .cnt { font-size: 26px; min-height: 26px; }
.tgrid.big.pick .tc { padding: 14px 4px; border-style: solid; } .tgrid.big.pick .tc:hover { box-shadow: 0 0 18px rgba(248, 220, 146, .6); border-color: var(--gold2); }
.presets, .rates { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; }
.chipbtn { border: 1px solid var(--line); background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; font-weight: 700; } .chipbtn:hover { background: rgba(255, 255, 255, .16); }
.rate { display: inline-flex; align-items: center; gap: 2px; border-radius: 999px; padding: 2px 8px 2px 4px; font-size: 12px; border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); background: color-mix(in srgb, var(--rc) 18%, #0e1930); }
.rate.r3 { border-color: var(--gold); box-shadow: 0 0 8px rgba(232, 185, 90, .45); } .rate.r2 { border-color: #7fe3ae; background: color-mix(in srgb, #3fae6b 35%, #0e1930); box-shadow: 0 0 10px rgba(79, 220, 140, .6); }
.rate.off { opacity: .45; } .rate:hover:not(.off) { filter: brightness(1.3); }
.thint { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); } .thint.warn { color: #ffb0a6; } .thint.mine-st { color: var(--text); }
.tact { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; } .tact .btn { flex: 1; min-width: 120px; }
.tact.three .btn { min-width: 0; flex: 1 1 0; padding: 9px 4px; font-size: 13px; white-space: nowrap; }
.tchips { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: middle; }
.tchip { display: inline-flex; align-items: center; gap: 1px; padding: 2px 8px 2px 3px; border-radius: 999px; background: color-mix(in srgb, var(--rc) 28%, #0e1930); border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); font-size: 13px; }
.offer-line { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.ol { display: grid; gap: 4px; flex: 1; justify-items: center; } .ol > span.muted { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.tsum { padding: 8px 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.resps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.resp { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.resp .nm { font-weight: 700; } .resp .cdet { grid-column: 1 / 4; font-size: 12.5px; } .resp .btn { grid-column: 1 / 4; }
.st { font-size: 12.5px; font-weight: 700; } .st.ok { color: #6fe3a0; } .st.no { color: #ff8f84; } .st.cnt2 { color: var(--gold2); }
.st.wait i { animation: dots 1.2s infinite; font-style: normal; } .st.wait i:nth-child(2) { animation-delay: .2s; } .st.wait i:nth-child(3) { animation-delay: .4s; }
@keyframes dots { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }

/* ================= Modale ================= */
.mback { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(3, 8, 18, .58); backdrop-filter: blur(3px); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(640px, 94vw); max-height: 92vh; overflow: auto; padding: 24px 28px 22px; border-radius: 22px; text-align: center; animation: rise .35s cubic-bezier(.2, .9, .3, 1) both; }
.modal h2 { margin: 0 0 4px; font: 700 28px var(--serif); color: var(--gold2); } .modal .lead { margin: 4px 0 6px; color: #d7e1f2; font-size: 16px; }
.modal h3 { margin: 14px 0 6px; font: 700 14px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold2); text-align: left; }
.cnt-line { font: 18px var(--serif); margin: 0 0 6px; color: #ffcf8a; } .cnt-line.ok { color: #7fe3ae; }
.mact { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.steal { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.stl { display: grid; justify-items: center; gap: 4px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 2px solid color-mix(in srgb, var(--pc) 60%, transparent); min-width: 120px; transition: transform .15s, box-shadow .15s; }
.stl:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 24px color-mix(in srgb, var(--pc) 70%, transparent); } .stl b { font: 700 18px var(--serif); } .stl small { color: var(--muted); }
.mback.m-win .modal { backdrop-filter: none; width: min(560px, 94vw); background: linear-gradient(180deg, rgba(40, 56, 92, .92), rgba(10, 18, 36, .94)); }
.modal h2.win { font-size: 38px; margin-top: 4px; background: linear-gradient(180deg, #fff2c0, #e8b95a 60%, #b27712); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trophy { display: grid; place-items: center; animation: trophy 2s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(248, 220, 146, .7)); } @keyframes trophy { 50% { transform: translateY(-6px) scale(1.04); } }
.av.pic { overflow: hidden; background: #1b2b4a; border-color: var(--pc); border-width: 3px; font-size: 0; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.avpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; justify-items: center; padding: 4px 0; }
.avb { width: 64px; height: 64px; border-radius: 50%; padding: 0; overflow: hidden; border: 3px solid rgba(255, 255, 255, .3); background: #1b2b4a; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.avb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avb:hover:not(:disabled) { transform: translateY(-3px) scale(1.06); }
.avb.on { border-color: #fff; transform: scale(1.1); box-shadow: 0 0 0 4px rgba(248, 220, 146, .85), 0 8px 18px rgba(0, 0, 0, .55); }
.avb.taken { filter: grayscale(1) brightness(.5); cursor: not-allowed; }
.botTag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font: 700 11px/1.5 var(--sans, sans-serif); letter-spacing: .03em; color: #0d1830; background: #8fd0ff; vertical-align: middle; }
.botdrop { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.botdrop > summary { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; list-style: none; font: 700 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold2, #f1d27a); }
.botdrop > summary::-webkit-details-marker { display: none; }
.botdrop > summary::before { content: '▸'; transition: transform .15s; } .botdrop[open] > summary::before { transform: rotate(90deg); }
.botdrop > summary small { margin-left: auto; font-weight: 400; text-transform: none; letter-spacing: 0; }
.botdrop > summary:hover { color: #fff; }
.botdrop > summary small { color: var(--muted, #9fb0cf); }
.botdrop .botcards { padding: 0 8px 8px; }
.lb-bots .botcards { display: grid; gap: 8px; }
.botcard { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .05); }
.botcard img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .45); flex: none; background: #1b2b4a; }
.botcard .bi { flex: 1; min-width: 0; } .botcard .bi small { display: block; color: var(--muted, #9fb0cf); font-size: 12px; line-height: 1.3; margin-top: 2px; }
.winav { display: grid; place-items: center; margin: 8px 0; } .winav .av { box-shadow: 0 0 0 5px rgba(248, 220, 146, .8), 0 0 40px rgba(248, 220, 146, .7); }
.rank { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; text-align: left; }
.rank li { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border-left: 4px solid var(--pc); } .rank li.first { background: rgba(232, 185, 90, .18); }
.rank .nm { flex: 1; font: 700 17px var(--serif); } .rank b { color: var(--gold2); font: 700 18px var(--serif); }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 15px; background: var(--c); border-radius: 2px; animation: fall var(--t) linear var(--d) infinite; transform: rotate(var(--r)); }
@keyframes fall { 0% { transform: translateY(0) rotate(var(--r)) rotateY(0); opacity: 1; } 100% { transform: translateY(110vh) rotate(calc(var(--r) + 540deg)) rotateY(720deg); opacity: .9; } }
.helpgrid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; text-align: left; font-size: 14px; }
.helpgrid ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.cost-t { border-collapse: collapse; width: 100%; } .cost-t th { text-align: left; padding: 4px 8px; font-weight: 700; } .cost-t td { padding: 3px 4px; } .cost-t td:last-child { text-align: right; } .cost-t .cc { margin-left: 6px; }
.cost-t svg { margin: auto; }
.chooser { position: fixed; z-index: 45; display: flex; gap: 6px; padding: 6px; border-radius: 12px; animation: fade .15s both; }

/* ================= Toasts / Status ================= */
#toasts { position: fixed; left: 50%; top: 74px; transform: translateX(-50%); z-index: 70; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: 12px; font-weight: 600; max-width: min(560px, 92vw); text-align: center; background: #4a1b1b; border: 1px solid #ff8f84; color: #ffe1dd; box-shadow: 0 10px 28px rgba(0, 0, 0, .5); animation: toastin .3s cubic-bezier(.3, 1.5, .5, 1) both; }
.toast.warn { background: #4a3a14; border-color: var(--gold); color: #ffeab6; } .toast.info { background: #153552; border-color: #7fc4ff; color: #d9efff; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: .35s; }
@keyframes toastin { from { opacity: 0; transform: translateY(-14px) scale(.9); } }
#conn { position: fixed; left: 50%; bottom: 150px; transform: translateX(-50%); z-index: 80; padding: 8px 18px; border-radius: 12px; background: #4a3a14; border: 1px solid var(--gold); color: #ffeab6; font-weight: 600; animation: barp 1.4s infinite; }

/* ================= Responsiv ================= */
@media (max-width: 1500px) {
  .rcard { width: 56px; height: 90px; } .bb { width: 70px; height: 98px; } #bottom { gap: 12px; padding: 8px 12px; } .dcard { width: 56px; }
  #primary { min-width: 140px; } .btn.huge { padding: 16px 26px; font-size: 21px; } #dice { gap: 12px; }
}
@media (max-width: 1250px) {
  :root { --bh: 118px; }
  #players { width: 214px; } .pc .stats { gap: 6px; } .rcard { width: 48px; height: 80px; } .rcard .face svg { width: 32px; height: 32px; } .rcard .rn { display: none; }
  .rcard .cnt { min-width: 24px; height: 24px; font-size: 15px; } .bb { width: 62px; height: 90px; } .bb .cost .cc svg { width: 13px; height: 13px; } .bb .ic svg { width: 32px; height: 32px; } .dcard { width: 50px; height: 76px; font-size: 9.5px; }
  .die { width: 44px; height: 44px; } .f1 { transform: translateZ(22px); } .f6 { transform: rotateY(180deg) translateZ(22px); } .f3 { transform: rotateY(90deg) translateZ(22px); } .f4 { transform: rotateY(-90deg) translateZ(22px); } .f2 { transform: rotateX(90deg) translateZ(22px); } .f5 { transform: rotateX(-90deg) translateZ(22px); }
  .dface { padding: 5px; } .dface i { width: 7px; height: 7px; } #side { width: 320px; } .side-open #camBtns { right: 344px; } #bottom { grid-template-columns: minmax(0, 1fr) auto; } #dicebox { grid-column: 1 / 3; justify-content: flex-end; }
}
@media (max-width: 900px) {
  :root { --bh: 190px; }
  #players { top: 56px; left: 8px; right: 8px; width: auto; flex-direction: row; overflow-x: auto; max-height: none; } #banner, .side-open #banner { left: 8px; right: 8px; }
  .pc { flex: none; min-width: 190px; } .pc.turn { transform: none; } #banner { top: 6px; } .bn { font-size: 14px; }
  #camBtns { top: auto; bottom: calc(var(--bh) + 24px); right: 10px; flex-direction: row; } .side-open #camBtns { right: 10px; }
  #side { width: min(360px, 92vw); top: 120px; } #bottom { left: 6px; right: 6px; bottom: 6px; grid-template-columns: 1fr; gap: 6px; } #build { overflow-x: auto; }
  #hand { flex-wrap: wrap; } .helpgrid { grid-template-columns: 1fr; } .card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* Punktestand: Plakette an der Oberkante der Handleiste */
#score { position: absolute; left: 26px; top: -30px; }
.sc { display: flex; align-items: baseline; gap: 6px; padding: 4px 16px 5px; border-radius: 14px 14px 0 0; background: var(--glass); border: 1px solid var(--line); border-bottom: 0; backdrop-filter: blur(14px); }
.sc b { font: 700 24px/1 var(--serif); color: var(--gold2); text-shadow: 0 0 12px rgba(232, 185, 90, .45); }
.sc span { font: 600 15px var(--serif); color: var(--muted); }
.sc small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.modal.m-help { width: min(780px, 94vw); }
.modal.m-chiphelp { width: min(440px, 94vw); }
.cost-t td:last-child { white-space: nowrap; }
#board.calm .tw, #board.calm .hex .wv, #board.calm .fo, #board.calm .fb, #board.calm .shimmer, #board.calm .q { animation: none; }

/* Während Ziehen/Zoomen (body.moving, siehe applyCam): Ambient-Animationen anhalten und Glas ohne Blur, das hält die Bildrate oben */
body.moving #world * { animation-play-state: paused; }
body.moving .glass, body.moving .ibtn, body.moving .bn, body.moving .pc, body.moving .sc { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Wellen-Pulse und treibender Schaum pro Feld sind ~230 Dauer-Animationen auf SVG (nicht compositor-fähig): statisch lassen */
.hex .wv, .fb { animation: none; }

/* Kartenanimation (fx.js): Rohstoffkarten fliegen von der Quelle zum Ziel */
#fxLayer { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.fxc { position: absolute; left: 0; top: 0; display: grid; place-items: center; border-radius: 8px; will-change: transform, opacity; opacity: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--rc, #888) 55%, #fff), var(--rc, #888)); border: 2px solid rgba(255, 255, 255, .75); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.fxc .ri { display: block; }
.fxc.mine { border-color: #fff3c4; box-shadow: 0 0 0 2px rgba(248, 220, 146, .9), 0 0 18px rgba(248, 220, 146, .85), 0 6px 14px rgba(0, 0, 0, .55); }
.fxc.back { background: repeating-linear-gradient(45deg, #27406b 0 5px, #1d3358 5px 10px); border-color: #9fb4d8; }
.fxc.back.mine { border-color: #fff3c4; }
.pc.fxpulse, #hand.fxpulse { animation: fxpulse .45s ease-out; }
@keyframes fxpulse { 0% { filter: brightness(1); } 40% { filter: brightness(1.45) drop-shadow(0 0 8px rgba(248, 220, 146, .9)); } 100% { filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { #fxLayer { display: none; } }
