#community-screen #clashLaunch{grid-column:1/-1;min-height:168px;border-color:#a88bd16b;background:linear-gradient(120deg,#3d3156,#27273d 65%,#243039);padding-right:135px}
#community-screen #clashLaunch:before{display:none}
#community-screen #clashLaunch:after{content:'HEAD TO HEAD';color:#e1ccff}
#clashLaunch .clash-card-art{position:absolute;right:18px;bottom:15px;width:95px;height:101px;transform:rotate(9deg);border:2px solid #d6bbf18c;border-radius:10px;display:grid;grid-template-columns:repeat(3,1fr);align-items:center;justify-items:center;background:repeating-linear-gradient(0deg,transparent 0 23px,#d6bbf12a 24px 25px),repeating-linear-gradient(90deg,transparent 0 23px,#d6bbf12a 24px 25px);color:#f2d08e;font-size:20px;box-shadow:0 8px 30px #0003}
.clash-dialog{box-sizing:border-box;width:min(490px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;padding:22px;border:1px solid #cdb5eb38;border-top:3px solid #cdb5eb;border-radius:20px;background:#171e1b;color:#f0edf4;box-shadow:0 25px 90px #0008;font-family:Inter,sans-serif}
.clash-dialog::backdrop{background:#080b0bdb;backdrop-filter:blur(5px)}
.clash-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.clash-heading small{font-size:9px;color:#cdb5eb;letter-spacing:.13em;font-weight:700}.clash-heading h3{font-size:29px;letter-spacing:-.055em;line-height:1.15;margin:7px 0}.clash-dialog h4{font-size:18px;letter-spacing:-.025em;margin:22px 0 10px}.clash-dialog p{font-size:13px;line-height:1.65}.clash-dialog button{font:inherit;cursor:pointer;touch-action:manipulation}.clash-dialog button:disabled{cursor:default}.clash-close{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;background:#cdb5eb0c;color:#d9c4ee;border:0;border-radius:11px;font-size:26px!important}.clash-status{padding:12px 14px;border-radius:11px;background:#cdb5eb0e;color:#dec8f5;min-height:20px}.clash-status:empty{display:none}.clash-button{width:100%;margin:12px 0 4px;min-height:46px;border:0;border-radius:11px;background:#cdb5eb;color:#282030;font-size:14px!important;font-weight:700!important;padding:12px 16px}.clash-button:disabled{opacity:.4}.clash-small{border:1px solid #cdb5eb36;border-radius:9px;background:#272333;color:#e0c9f5;padding:10px 12px;min-height:42px;font-size:12px!important}.clash-small[aria-pressed=true]{background:#cdb5eb;color:#282030}.clash-back{min-height:44px;padding:8px 0;border:0;background:transparent;color:#cdb5eb;font-size:12px!important;display:block}.clash-muted,.clash-lobby-intro p,.clash-how p{color:#b4c3ba}.clash-footnote{margin:20px 0 0;color:#99aaa0;text-align:center;font-size:11px!important}.clash-record{display:block;color:#dfc18b;font-size:12px;margin:14px 0}.clash-how{border-block:1px solid #ffffff14;padding:14px 0;margin:20px 0}.clash-how summary{font-size:13px;color:#dbc5ee;cursor:pointer;min-height:24px}.clash-search label{display:block;font-size:12px;color:#d9c4ee;margin-bottom:8px}.clash-search input{box-sizing:border-box;width:100%;font:inherit;font-size:16px;color:#eef3ee;background:#1e2823;border:1px solid #cdb5eb36;padding:13px;border-radius:11px}.clash-person{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #ffffff12;font-size:13px}.clash-person>span{min-width:0;overflow-wrap:anywhere}.clash-match{display:flex;align-items:center;gap:12px;background:transparent;border:0;border-bottom:1px solid #ffffff14;text-align:left;color:#eef0ed;width:100%;padding:16px 0}.clash-match>span:nth-child(2){flex:1;min-width:0}.clash-match strong,.clash-match small{display:block;overflow-wrap:anywhere}.clash-match strong{font-size:14px}.clash-match small{font-size:11px;color:#afc1b4;margin-top:5px}.clash-match>span:last-child{color:#cdb5eb}.clash-needs-turn small{color:#e6ce9c}.clash-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#393044;color:#eadbf7;font-size:12px;font-weight:700;overflow:hidden;text-transform:uppercase}.clash-avatar img{display:block;width:100%;height:100%;object-fit:cover}.clash-opponent{display:flex;align-items:center;gap:10px;margin:10px 0 18px}.clash-opponent strong{font-size:14px;overflow-wrap:anywhere}.clash-placement-tools{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.clash-placement-tools .clash-small{flex:1;white-space:nowrap;padding:9px 8px}.clash-placement-tools .clash-small:last-child{flex-basis:100%}.clash-board-wrap{padding:12px 8px 14px 2px;background:linear-gradient(150deg,#243c39,#1d2f30);border:1px solid #acd3c536;border-radius:15px;margin:16px 0}.clash-board{display:grid;grid-template-columns:16px repeat(8,minmax(0,1fr));gap:3px}.clash-coord{display:grid;place-items:center;color:#afc8bd;font-size:10px;min-height:18px}.clash-dialog .clash-cell{box-sizing:border-box;aspect-ratio:1;min-width:0;min-height:0;padding:0;border:1px solid #c0d9cd20;border-radius:5px;background:#ffffff05;color:#cbded0;font-size:18px;display:grid;place-items:center}.clash-dialog .clash-cell:not(:disabled):hover{background:#cdb5eb3a;border-color:#cdb5eb}.clash-dialog .clash-cell.racket{background:#cdb5eb29;color:#dac3f0;border-color:#cdb5eb70}.clash-dialog .clash-cell.hit{background:#eab28b33;color:#ffc69e;border-color:#eab28b80}.clash-dialog .clash-cell.miss{color:#9bb5b0;background:#ffffff03}.clash-score{display:flex;justify-content:space-between;gap:12px;color:#e6d1a6;font-size:12px;margin:15px 0}.clash-view-tabs{display:flex;gap:8px}.clash-view-tabs>*{flex:1}.clash-legend{font-size:11px!important;color:#b7cbbf;word-spacing:2px}.clash-confirm{padding:14px;border:1px solid #eab28b55;border-radius:12px;margin-top:10px}.clash-dialog :is(button,input):focus-visible{outline:2px solid #cdb5eb;outline-offset:3px}@media(max-width:360px){.clash-dialog{padding:16px}.clash-heading h3{font-size:26px}#community-screen #clashLaunch{padding-right:115px}.clash-dialog .clash-cell{font-size:15px}.clash-board{gap:2px}}

.clash-popup{position:fixed;z-index:10;top:50%;left:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:min(320px,calc(100vw - 60px));padding:24px 18px;text-align:center;background:#292334f5;border:1px solid #d6bcf5a0;border-radius:20px;box-shadow:0 20px 90px #000b;pointer-events:none;animation:clash-pop .2s ease-out;color:#f7f0ff}
.clash-popup[hidden]{display:none}.clash-popup strong,.clash-popup small{display:block}.clash-popup strong{font-size:22px;line-height:1.25;letter-spacing:-.035em}.clash-popup small{font-size:12px;line-height:1.6;color:#dac8e8;margin-top:10px}.clash-popup-icon{display:block;font-size:32px;margin-bottom:10px}.clash-popup-win{border-color:#edcd86;background:#302b24f7}.clash-popup-win strong{color:#ffe4a7}.clash-confetti{position:absolute;inset:-60px -15px;overflow:hidden;pointer-events:none}.clash-confetti i{position:absolute;left:calc(var(--i)*3.3%);top:-15px;width:7px;height:12px;background:#d0b7ff;animation:clash-fall 2s calc(var(--i)*-0.07s) ease-in infinite}.clash-confetti i:nth-child(3n){background:#f4d183}.clash-confetti i:nth-child(3n+1){background:#86dcff}.clash-dialog[data-turn=you] .clash-status{border-left:3px solid #e8ce8d;background:#e8ce8d14;color:#ffe1a0;font-weight:650}.clash-dialog[data-turn=opponent] .clash-status{border-left:3px solid #b6a2d5}.clash-board-wrap{animation:clash-court-in .25s ease-out}@keyframes clash-pop{from{opacity:0;transform:translate(-50%,-45%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}@keyframes clash-court-in{from{opacity:.5;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes clash-fall{to{transform:translate(18px,400px) rotate(360deg);opacity:0}}@media(prefers-reduced-motion:reduce){.clash-popup,.clash-board-wrap{animation:none}.clash-confetti i{animation:none;top:calc(var(--i)*3%);transform:rotate(25deg)}}

/* Clear, colourful lobby with one obvious invitation task. */
.clash-lobby{padding-top:5px}.clash-lobby .clash-lobby-intro{position:relative;padding:18px;border:1px solid #bda2e540;border-radius:16px;background:radial-gradient(ellipse at top right,#a57fe52a,transparent 80%),linear-gradient(120deg,#292435,#202c30);margin:4px 0 20px}.clash-lobby-kicker{font-size:9px;letter-spacing:.13em;font-weight:700;color:#d6bff3}.clash-dialog .clash-lobby h4{margin:9px 0 7px;font-size:22px;line-height:1.2;letter-spacing:-.045em}.clash-lobby .clash-lobby-intro>p{font-size:12px;line-height:1.6;color:#c5ced0;margin:0;max-width:260px}.clash-lobby .clash-record{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 0}.clash-record>div{display:flex;align-items:baseline;gap:8px;padding:10px 12px;border-radius:10px;background:#ffffff06;border:1px solid #ffffff09}.clash-record strong{font-size:23px;font-weight:750;line-height:1.1;color:#f3d18e}.clash-record>div:nth-child(2) strong{color:#95dbed}.clash-record small{font-size:11px;color:#c2c6d0}.clash-lobby .clash-search{margin:0 0 15px}.clash-lobby .clash-search label{font-size:16px;font-weight:700;color:#f2eafa;margin-bottom:5px}.clash-lobby .clash-search-hint{font-size:11px;color:#aebeb6;margin:0 0 10px}.clash-lobby .clash-search input{border-color:#bda2e549;background:#202827;padding:13px 14px}.clash-lobby .clash-search input::placeholder{color:#a4b4ac;font-size:14px}.clash-lobby .clash-person{background:#ffffff03;border:1px solid #cdb5eb22;border-radius:11px;margin-top:8px;padding:10px 12px}.clash-lobby .clash-person .clash-small{background:#cdb5eb;color:#282030;border:0;font-weight:700}.clash-lobby .clash-how{border:1px solid #8ed5e92d;border-radius:12px;padding:0;margin:0 0 22px;background:#8ed5e906}.clash-lobby .clash-how summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;padding:14px;font-size:13px;color:#addfec;font-weight:650;min-height:20px}.clash-how summary::-webkit-details-marker{display:none}.clash-how summary small{font-size:10px;color:#b0c6c7;font-weight:400}.clash-lobby .clash-how summary:after{content:'+';font-size:19px;color:#a6dfee}.clash-lobby .clash-how[open] summary:after{content:'−'}.clash-rules{padding:0 17px 4px 32px;margin:0}.clash-rules li{padding-left:2px;margin:0 0 12px;color:#c7d3cc;font-size:12px;line-height:1.7}.clash-rules li::marker{color:#9bdded}.clash-list-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.clash-dialog .clash-list-heading h4{font-size:17px;margin:0}.clash-list-heading>span{font-size:11px;border-radius:20px;padding:4px 9px;background:#cdb5eb13;color:#d7c0eb}.clash-lobby .clash-match{box-sizing:border-box;padding:13px;border:1px solid #ffffff12;border-radius:13px;background:#ffffff03;margin:0 0 9px;gap:11px}.clash-lobby .clash-match strong{font-size:13px}.clash-lobby .clash-match-status{display:inline-block;padding:4px 7px;border-radius:6px;font-size:10px;line-height:1.3;margin-top:7px;color:#bfcfc6;background:#ffffff07}.clash-lobby .clash-needs-turn{border-color:#f1ce8b4d;background:#f1ce8b07}.clash-lobby .clash-needs-turn .clash-match-status{color:#f4d69c;background:#f1ce8b12}.clash-lobby .clash-match[data-state=finished] .clash-match-status{color:#b3cce0;background:#8cbbe012}.clash-match-arrow{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#cdb5eb0c;flex-shrink:0}.clash-match-arrow svg{width:16px;height:16px}.clash-lobby .clash-match-list:empty{display:none}

/* Padel surface, glass, net and service boxes behind the guessing squares. */
.clash-board-wrap{background:linear-gradient(145deg,#143c58,#102c42);border:1px solid #85c3dc66;border-radius:16px;padding:13px 10px 14px 3px;box-shadow:inset 0 0 0 4px #8bcce008}.clash-court-caption{display:block;padding:0 0 10px 24px;font-size:8px;letter-spacing:.13em;font-weight:700;color:#c0e2ec}.clash-board{position:relative;isolation:isolate;gap:2px}.clash-court-markings{position:relative;z-index:0;pointer-events:none;border:2px solid #d9f2f58c;background:linear-gradient(90deg,#3a89aa1a,#55a3b01a);box-shadow:0 0 0 3px #86dcff10}.clash-net{position:absolute;left:-2px;right:-2px;top:50%;height:5px;transform:translateY(-50%);background:repeating-linear-gradient(90deg,#e7f5f9bb 0 1px,#0c2633 1px 4px);border-block:1px solid #e1f4fc;box-shadow:0 3px 6px #0005}.clash-service-line{position:absolute;left:0;right:0;height:1px;background:#d5eef080}.clash-service-line.near{top:25%}.clash-service-line.far{top:75%}.clash-centre-line{position:absolute;left:50%;top:25%;height:50%;width:1px;background:#d5eef080}.clash-dialog .clash-cell{position:relative;z-index:1;border:1px solid #e4f3ff15;border-radius:3px;background:#ffffff03;aspect-ratio:1}.clash-dialog .clash-cell.racket{background:#b9a0db13;border-color:#d6c3ed27}.clash-dialog .clash-cell.hit{background:#d5ef6018;border-color:#d5ef6055}.clash-dialog .clash-cell.miss{background:transparent;border-color:#e4f3ff0d}.clash-dialog .clash-cell:not(:disabled):hover{background:#9fdaff28;border-color:#b9edff}.clash-ball-marker{display:block;width:58%;aspect-ratio:1;position:relative;z-index:4;filter:drop-shadow(0 2px 2px #0007)}.clash-ball-marker svg{display:block;width:100%;height:100%}.clash-miss-marker{display:block;width:5px;height:5px;border:1px solid #c1d9e47a;border-radius:50%;position:relative;z-index:4}.clash-racket-art{z-index:2;pointer-events:none;display:block;margin:4px 2px;opacity:.95;filter:drop-shadow(0 2px 3px #0008)}.clash-racket-art svg{width:100%;height:100%;display:block}.clash-racket-art.smashed{opacity:.45;filter:sepia(.5) drop-shadow(0 1px 2px #0008)}.clash-coord{color:#b4d0e0}.clash-legend{font-size:10px!important;letter-spacing:0;word-spacing:0}
/* One swipeable mini-game row, with a glimpse of the next card. */
#community-screen .mini-games-grid{display:flex;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:12px;scroll-snap-type:x mandatory;scroll-padding-inline:2px;padding:3px 2px 12px;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#cdb5eb55 transparent}
#community-screen .mini-games-grid>.mini-game-launch{flex:0 0 clamp(210px,72%,260px);width:clamp(210px,72%,260px);min-height:233px;box-sizing:border-box;scroll-snap-align:start;scroll-snap-stop:normal}
#community-screen .mini-games-grid>#clashLaunch{grid-column:auto;min-height:233px;padding:18px 14px 14px;justify-content:flex-end}
#community-screen .mini-games-grid>#clashLaunch .clash-card-art{right:20px;top:33px;bottom:auto;width:95px;height:100px;z-index:-1;opacity:.8}
#community-screen .mini-games>.mini-games-swipe-hint{font-size:10px;letter-spacing:.04em;color:#b6a0ca;text-align:right;margin:3px 0 0}
@media(prefers-reduced-motion:reduce){#community-screen .mini-games-grid{scroll-behavior:auto}}
.clash-dialog .clash-cell{z-index:2}.clash-racket-art{z-index:1}

/* Compact rail: two complete cards and a preview of the third on phones. */
#community-screen .mini-games-grid{gap:9px}
#community-screen .mini-games-grid>.mini-game-launch{flex:0 0 calc((100% - 18px)/2.5);width:calc((100% - 18px)/2.5);min-height:172px;max-width:180px;padding:12px 10px 11px;border-radius:15px}
#community-screen .mini-games-grid>#clashLaunch{min-height:172px;padding:12px 10px 11px}
#community-screen .mini-games-grid .mini-game-name{font-size:15px;line-height:1.2;letter-spacing:-.035em;margin-top:5px}
#community-screen .mini-games-grid .mini-game-launch>small{font-size:9px;line-height:1.4;margin-top:5px}
#community-screen .mini-games-grid .arcade-play{font-size:10px;margin-top:9px;padding-top:7px}
#community-screen .mini-games-grid .mini-game-launch:before{width:105px;height:94px;top:6px;right:-10px}
#community-screen .mini-games-grid .mini-game-launch:after{top:11px;right:9px;font-size:6px;letter-spacing:.08em}
#community-screen .mini-games-grid .mini-game-icon{width:38px;height:38px;margin:20px 0 5px}
#community-screen .mini-games-grid .mini-game-icon img{width:38px;height:38px;object-fit:contain}
#community-screen .mini-games-grid>#clashLaunch .clash-card-art{width:57px;height:60px;top:26px;right:14px;font-size:13px}
.clash-computer-start{box-sizing:border-box;display:grid;grid-template-columns:36px 1fr;column-gap:12px;align-items:center;width:100%;padding:15px 14px;margin:0 0 20px;border:1px solid #8ed5e95c;border-radius:13px;background:linear-gradient(110deg,#244050,#24323b);text-align:left;color:#eaf7fc;font:inherit;cursor:pointer}.clash-computer-icon{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#8ed5e91a;color:#abe9ff;font-size:26px}.clash-computer-start strong{font-size:14px;line-height:1.4}.clash-computer-start small{font-size:10px;line-height:1.5;color:#b9d3dc;margin-top:4px}.clash-computer-start:hover{border-color:#a7e4f5}

.clash-heading-logo{width:40px;height:40px;border-radius:10px;flex-shrink:0;order:-1}.clash-heading>div{flex:1;min-width:0}.clash-heading h3{font-size:26px}#community-screen .mini-games-grid #clashLaunch .clash-brand-icon{display:block;position:relative;z-index:1}#community-screen .mini-games-grid #clashLaunch .clash-brand-icon img{border-radius:8px}

/* Shared logo row and compact opponent records. */
#community-screen .mini-games-grid>.mini-game-launch{height:180px;min-height:180px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end}
#community-screen .mini-games-grid>#clashLaunch{height:180px;min-height:180px;justify-content:flex-end}
#community-screen .mini-games-grid>.mini-game-launch .mini-game-icon,#community-screen .mini-games-grid>#clashLaunch .clash-brand-icon{position:absolute;top:30px;left:10px;margin:0;width:38px;height:38px;display:block}
#community-screen .mini-games-grid>.mini-game-launch .mini-game-name{margin-top:0;min-height:36px;display:flex;align-items:flex-end}
#community-screen .mini-games-grid .mini-game-launch>small{min-height:24px;margin-top:5px}
#community-screen .mini-games-grid .arcade-play{width:100%;box-sizing:border-box;min-height:27px;margin-top:7px;line-height:1.3}
.clash-lobby .clash-record{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.clash-record>div{padding:9px 10px;gap:6px}.clash-record>div:nth-child(2) strong{color:#e6a4a9}.clash-record>div:nth-child(3) strong{color:#95dbed}
.clash-head-to-head{display:block;margin-top:6px;font-size:10px;color:#b5c5be;line-height:1.5;white-space:normal}.clash-opponent>div{min-width:0;flex:1}.clash-lobby .clash-match[data-result=won]{border-left:3px solid #7fc7a3;background:#7fc7a30a}.clash-lobby .clash-match[data-result=lost]{border-left:3px solid #dc8d98;background:#dc8d9809}.clash-lobby .clash-match[data-result=won] .clash-match-status{color:#a4dfbf;background:#7fc7a314}.clash-lobby .clash-match[data-result=lost] .clash-match-status{color:#edb1b8;background:#dc8d9815}.clash-racket-art{margin:2px;opacity:1;filter:drop-shadow(0 2px 3px #0006)}.clash-racket-art.smashed{opacity:.55;filter:grayscale(.3)}

/* Inline feedback stays above the court and never covers a playable square. */
.clash-live-info{box-sizing:border-box;margin:8px 0 12px;padding:10px 12px;border:1px solid #cdb5eb22;border-radius:11px;background:#cdb5eb08;min-height:75px;overflow:hidden}.clash-live-turn{display:block;font-size:11px;line-height:1.5;font-weight:650;color:#d4c4e5;letter-spacing:.01em}.clash-dialog[data-turn=you] .clash-live-info{border-left:3px solid #e8ce8d}.clash-dialog[data-turn=you] .clash-live-turn{color:#f1d898}.clash-dialog[data-turn=opponent] .clash-live-info{border-left:3px solid #b6a2d5}.clash-dialog[data-phase=active]>.clash-status,.clash-dialog[data-phase=finished]>.clash-status{display:none}
.clash-live-info .clash-popup{position:relative;inset:auto;top:auto;left:auto;transform:none;z-index:auto;width:100%;min-height:29px;box-sizing:border-box;margin:4px 0 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left;animation:none;pointer-events:none;color:#bad8c8;overflow:hidden}.clash-live-info .clash-popup[hidden]{display:block;visibility:hidden}.clash-live-info .clash-popup strong{display:inline;font-size:11px;line-height:1.5;letter-spacing:0;font-weight:650;color:#bad8c8}.clash-live-info .clash-popup small{display:inline;font-size:10px;line-height:1.5;color:#a9c2b5;margin:0 0 0 6px}.clash-live-info .clash-popup-win strong{color:#f2d18e}.clash-live-info .clash-confetti{inset:0;opacity:.65}.clash-live-info .clash-confetti i{width:3px;height:5px;animation-duration:1.8s}
.clash-live-info .clash-popup{height:32px;min-height:32px}

/* Clear damage states and compact match feedback. */
.clash-racket-art.smashed{opacity:1;filter:drop-shadow(0 0 3px #f14b6370)}
.clash-dialog .clash-cell.hit{background:#ed536019;border-color:#f07c8555}
.clash-tube-scores{display:flex;justify-content:space-between;gap:12px;margin:10px 0}
.clash-tube-track{display:flex;align-items:center;gap:5px;flex-wrap:wrap;flex:1}
.clash-tube-track>small{flex-basis:100%;font-size:11px;color:#b8c8c0;margin-bottom:2px}
.clash-tube-token{position:relative;display:flex;align-items:center;gap:4px;font-size:11px;color:#d1d8d3;background:#ffffff06;border:1px solid #ffffff15;border-radius:6px;padding:3px 5px}
.clash-tube-token[data-cleared=true]{color:#ffb8bd;border-color:#f4718055;background:#e54d6315}
.clash-tube-icon{display:block;width:32px;height:14px}.clash-tube-icon svg{width:100%;height:100%}
.clash-live-info{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:0;height:36px;margin:8px 0;padding:5px 10px;border:0;border-left:3px solid #b6a2d5;border-radius:6px;overflow:visible}
.clash-live-turn{font-size:15px;line-height:1.4;white-space:nowrap}
.clash-live-info .clash-popup{width:auto;height:auto;min-height:0;margin:0;text-align:right;max-width:48%}
.clash-live-info .clash-popup[hidden]{display:none}.clash-live-info .clash-popup strong{font-size:11px}.clash-live-info .clash-popup small{display:none}
.clash-popup-result{position:fixed;z-index:20;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:auto;width:min(320px,calc(100vw - 60px));padding:26px 20px;background:#292334fa;border:1px solid #d6bcf5a0;border-radius:20px;text-align:center;box-shadow:0 20px 90px #000b}
.clash-popup-result .clash-button{margin-top:20px}.clash-popup-result .clash-confetti{pointer-events:none}
@media(max-width:380px){.clash-tube-token{padding:3px;gap:2px}.clash-tube-icon{width:24px}.clash-live-turn{font-size:14px}}

/* A full-screen, irregular confetti shower, independent of the result card. */
.clash-screen-confetti{position:fixed;inset:0;width:100vw;height:100dvh;z-index:19;overflow:hidden;pointer-events:none}
.clash-screen-confetti[hidden]{display:none}
.clash-screen-confetti i{position:absolute;left:var(--x);top:-20px;width:var(--size);height:calc(var(--size)*1.5);background:var(--colour);border-radius:1px;animation:clash-screen-fall var(--duration) var(--delay) linear infinite}
.clash-screen-confetti i:nth-child(3n){border-radius:50%;height:var(--size)}
.clash-screen-confetti i:nth-child(4n){animation-timing-function:ease-in}
@keyframes clash-screen-fall{0%{transform:translate3d(0,-3vh,0) rotate(0);opacity:1}85%{opacity:1}100%{transform:translate3d(var(--drift),105dvh,0) rotate(var(--spin));opacity:.25}}
.clash-tube-icon{flex:none;height:9px}.clash-tube-icon svg{display:block}
.clash-miss-marker{width:12px;height:12px;border:0;border-radius:0}
.clash-miss-marker:before,.clash-miss-marker:after{content:'';position:absolute;left:5px;top:0;width:2px;height:12px;border-radius:2px;background:#c4dce7;transform:rotate(45deg)}
.clash-miss-marker:after{transform:rotate(-45deg)}
@media(prefers-reduced-motion:reduce){.clash-screen-confetti i{animation:none;top:calc(var(--x));transform:rotate(25deg);opacity:.65}}

.clash-history-toggle{border:0;background:transparent;color:#d5bdef;font-size:11px!important;padding:8px 0 8px 10px;min-height:36px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}.clash-list-heading .clash-history-toggle{margin-left:auto}

.clash-player-start{border-color:#cdb5eb55;background:linear-gradient(110deg,#393044,#292735);margin-bottom:12px}.clash-player-start .clash-computer-icon{color:#ddc8f3;background:#cdb5eb16}.clash-player-start small{color:#c8bcd7}.clash-player-start:hover{border-color:#ddc8f3}.clash-search[hidden]{display:none}

.clash-search-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.clash-search-heading label{margin:0}
.clash-search-minimise,.clash-end-game{flex:none;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:8px;background:#cdb5eb0d;color:#ddc8f3;font-size:22px!important;line-height:1}
.clash-search-copy{flex:1;min-width:0}.clash-search-copy strong,.clash-search-copy small{display:block;overflow-wrap:anywhere}.clash-search-copy strong{font-size:13px}.clash-search-copy small{font-size:11px;color:#adbfb4;margin-top:4px}
.clash-person{gap:10px}.clash-person>.clash-avatar{flex:0 0 36px;width:36px;height:36px}
.clash-match-item{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.clash-match-item>.clash-match{flex:1;min-width:0}.clash-match-item>.clash-end-confirm{flex-basis:100%;box-sizing:border-box}.clash-end-game{color:#e4aab2;background:#dc8d980c}.clash-end-confirm .clash-small{color:#f3bdc4;border-color:#dc8d9855}.clash-opponent>.clash-end-game{margin-left:auto}

#clashDialog .clash-live-info{position:sticky;top:75px;z-index:12;margin:12px 0;padding:12px 14px;background:#080e0a;border:1px solid #b9ff2155;border-radius:10px;box-shadow:0 4px 14px #0004}
#clashDialog[data-turn=you] .clash-live-info{background:#b9ff21;color:#101909}
#clashDialog .clash-live-turn{color:inherit!important;font:750 15px Inter,sans-serif}
#clashDialog[data-turn=opponent] .clash-live-info{color:#d3e5c3}
#clashDialog .clash-sound{padding:8px;border:1px solid #b9ff2133;border-radius:8px;background:#b9ff2108;color:#cde3ba;font-size:10px;min-height:36px}
#clashDialog .clash-cell.clash-shot-hit{animation:clash-hit-flash .6s ease-out;border-color:#b9ff21;box-shadow:inset 0 0 0 2px #b9ff21}
#clashDialog .clash-cell.clash-shot-miss{animation:clash-miss-flash .6s ease-out;border-color:#9ddfff}
@keyframes clash-hit-flash{0%,45%{background:#b9ff21;transform:scale(1.13)}100%{transform:scale(1)}}
@keyframes clash-miss-flash{0%,45%{background:#87d9ff66}100%{background:transparent}}
@media(prefers-reduced-motion:reduce){#clashDialog .clash-cell{animation:none!important}}
