@import url('/shared/room.css');
:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#263d37;background:#f7f8f2;font-synthesis:none;font-size:16px;--ink:#263d37;--green:#25765d;--muted:#74837a;--line:#dce4da;--paper:#fffefa;--gold:#d5b568}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}header{max-width:1140px;margin:auto;padding:22px 30px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-size:23px;font-weight:850;letter-spacing:-.045em;color:var(--green);text-decoration:none}.header-tools,.languages{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.languages button{font-size:12px;padding:7px 10px;min-height:34px}.languages [aria-pressed=true]{background:var(--ink);color:white}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid #cdd9cd;background:var(--paper);color:var(--ink);border-radius:12px;padding:11px 16px;min-height:44px;font-weight:650;text-decoration:none;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #3078ce;outline-offset:4px}.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 3px 0 #18533f}.primary:hover:not(:disabled){background:#1c654e}.primary:active:not(:disabled){transform:translateY(1px);box-shadow:0 2px 0 #18533f}.quiet{background:transparent;box-shadow:none}main{max-width:1040px;padding:22px 30px 190px;margin:auto}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(34px,5.5vw,58px);letter-spacing:-.055em;line-height:1.2}h2{font-size:23px;letter-spacing:-.035em}p{line-height:1.85;color:#677a6f}.eyebrow{font-size:11px;letter-spacing:.19em;font-weight:800;color:var(--green);margin-bottom:12px}.pill{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:700;background:#e7eee2;color:#3c6a50;border:1px solid #dbe5d3;padding:7px 12px;border-radius:25px;white-space:nowrap}.hero{display:grid;grid-template-columns:1.25fr 1fr;align-items:center;gap:32px;padding:28px 0 48px}.hero-copy h1{margin:22px 0}.hero-copy>p:not(.eyebrow){max-width:490px;font-size:15px}.hero .button{margin-top:10px;padding:14px 22px}.hero-art{position:relative;aspect-ratio:1;overflow:hidden;border-radius:36px;background:#e8eee2;background-image:radial-gradient(#c6d2bc 1px,transparent 1px);background-size:13px 13px}.art-orbit{position:absolute;inset:12%;border:1px solid #d2dec9;border-radius:50%;box-shadow:0 0 0 32px #e2eadb77}.art-card{position:absolute;width:41%;height:59%;filter:drop-shadow(0 14px 13px #31452e20)}.art-card .playing-card{width:100%;height:100%}.art-card.first{left:14%;top:19%;transform:rotate(-16deg)}.art-card.second{left:43%;top:25%;transform:rotate(13deg)}.art-chip{position:absolute;bottom:15%;left:13%;border-radius:30px;padding:9px 17px;background:var(--green);color:#f4f8ec;font-size:12px;font-weight:800;letter-spacing:.08em;box-shadow:0 6px 16px #174c3530}.panel{background:var(--paper);border:1px solid var(--line);border-radius:23px;padding:26px;margin:14px 0;box-shadow:0 3px 18px #31452e03}.rules ol{padding-left:22px;margin-bottom:0}.rules li{padding:7px 0;font-size:13px;color:#677a6f;line-height:1.9}.rules-toggle{margin-top:24px}.rules-toggle summary{cursor:pointer;font-size:14px;font-weight:700;padding:8px 0}.entry-panel{max-width:660px;margin:32px auto}.entry-panel h1{font-size:42px}.entry-panel>p:not(.eyebrow){font-size:14px}#direct-entry{display:flex;align-items:end;gap:12px;margin:22px 0}#direct-entry label{flex:1}.room-heading,.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}.room-heading{margin:8px 0 24px}.room-heading h1{font-size:32px;margin:0 0 8px}.room-heading .eyebrow{margin-bottom:6px}.code{font:650 12px ui-monospace,monospace;letter-spacing:.08em;color:var(--muted)}.section-heading h2{margin:0}.muted-symbol{color:#a9b8a3;letter-spacing:.18em;font-size:19px}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}label{display:grid;gap:8px;font-size:12px;font-weight:600;color:#677a6f}input,select{width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid #d6dfd3;border-radius:10px;background:#f8faf4;color:var(--ink)}input:disabled,select:disabled{opacity:.65}.roster{display:grid;gap:9px;margin:20px 0}.member{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #e4e9de;border-radius:14px;min-width:0}.member.self{background:#f0f5e9;border-color:#c8d8bb}.member-name{min-width:0;flex:1;overflow-wrap:anywhere}.member-name strong{display:block;font-size:14px}.member small{display:block;margin-top:4px;font-size:10px;color:#829078}.member .name-form{display:flex;align-items:center;gap:6px;flex:1;min-width:0}.name-form input{min-height:36px;padding:7px}.name-form button{min-height:36px;padding:6px 9px;font-size:11px}.member label{width:95px;flex-shrink:0;gap:4px}.member label select{padding:7px;min-height:36px}.badge{font-size:10px;text-align:right;max-width:95px;color:#8b9785}.is-ready{color:var(--green);font-weight:700}.check{display:flex;align-items:center;gap:10px;font-size:13px}.check input{width:19px;height:19px;min-height:0;accent-color:var(--green)}.actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px}.note{font-size:11px;line-height:1.8;margin:12px 0;color:#829078}.error{padding:12px;border-radius:10px;background:#fff0eb;color:#a64737;font-size:12px;overflow-wrap:anywhere}.error:empty{display:none}#connection{font-size:11px;margin:14px 0;display:flex;gap:7px;align-items:center;flex-wrap:wrap;color:#829078}#connection button{font-size:11px;min-height:32px;padding:5px 10px}.status-dot{width:6px;height:6px;border-radius:50%;background:#6d9a72;display:inline-block}.match-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.match-top .eyebrow{margin-bottom:5px}.match-top h1{font-size:26px;margin:0}.hp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.hp-side{border:1px solid var(--line);border-radius:15px;background:var(--paper);padding:13px;min-width:0}.hp-side.active{border-color:#619a6c;box-shadow:0 0 0 2px #c9dfb7}.hp-side.own{background:#f1f6e9}.hp-side.eliminated{opacity:.5}.hp-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0}.hp-heading>strong{font-size:12px;overflow-wrap:anywhere;min-width:0}.hp-number{white-space:nowrap;font-size:19px;font-weight:800;font-variant-numeric:tabular-nums;letter-spacing:-.05em}.hp-number small{font-size:10px;font-weight:500;color:#829078;letter-spacing:0}.hp-track{height:5px;border-radius:4px;background:#e2e8dc;overflow:hidden;margin-top:10px}.hp-track span{height:100%;display:block;background:#72a06b;border-radius:4px;transition:width .3s ease}.hp-track .danger{background:#cc785d}.hp-side p{font-size:10px;line-height:1.5;margin:7px 0 0;overflow-wrap:anywhere;min-height:15px}.eliminated-tag{color:#986a59}.table-topline{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#83937e;letter-spacing:.03em;padding:21px 4px 11px}.table-topline b{font-size:12px;color:#516c54;font-variant-numeric:tabular-nums}.card-table{background:#eaf0e3;background-image:radial-gradient(ellipse at center,#f1f5e9,#e7eedf);border:1px solid #dce6d3;border-radius:25px;padding:21px 16px 24px}.turn-heading{display:flex;justify-content:center;align-items:center;gap:8px;margin-bottom:20px}.turn-heading h2{font-size:14px;letter-spacing:0;margin:0;overflow-wrap:anywhere;max-width:90%;text-align:center}.turn-indicator{width:6px;height:6px;border-radius:50%;background:#acbba1;flex-shrink:0}.turn-indicator.mine{background:var(--green);box-shadow:0 0 0 4px #ccddbd}.card-lane{display:flex;align-items:center;justify-content:center;gap:25px}.card-slot{display:grid;justify-items:center;gap:10px;min-width:0}.card-slot>span{font-size:10px;color:#7d9075}.card-slot>small{font:650 11px ui-monospace,monospace;color:#829078;min-height:15px}.card-direction{color:#91a583;font-size:24px;align-self:center}.playing-card{width:120px;height:168px;background:#fffefa;border:1px solid #d7ddcf;border-radius:12px;position:relative;color:#30443b;box-shadow:0 6px 9px #31452e0c;user-select:none;flex-shrink:0}.playing-card.red{color:#c8624f}.card-corner{position:absolute;left:11px;top:10px;font:750 23px ui-serif,Georgia,serif;line-height:1;text-align:center}.card-corner small{display:block;font-size:14px;line-height:1.2}.card-corner.bottom{top:auto;left:auto;right:11px;bottom:10px;transform:rotate(180deg)}.card-suit{position:absolute;inset:0;display:grid;place-items:center;font:58px ui-serif,Georgia,serif}.card-back{background:#427b60;border:6px solid #fffefa;outline:1px solid #d7ddcf;background-image:repeating-linear-gradient(45deg,transparent,transparent 5px,#ffffff0c 5px,#ffffff0c 6px),repeating-linear-gradient(-45deg,transparent,transparent 5px,#ffffff0c 5px,#ffffff0c 6px);display:grid;place-items:center}.card-back span{font:40px ui-serif,Georgia,serif;border:1px solid #d7e2bd70;border-radius:50%;width:58px;height:58px;display:grid;place-items:center;color:#e4e9cf}.ability-banner{display:flex;align-items:center;gap:13px;background:#fffefa;border:1px solid var(--line);border-radius:15px;padding:15px 17px;margin-top:13px}.ability-icon{width:42px;height:42px;display:grid;place-items:center;flex-shrink:0;border-radius:12px;background:#edf1e8;color:#76906d;font-size:22px;font-weight:800}.ability-banner h3{font-size:14px;margin:2px 0 4px}.ability-caption{font-size:9px;color:#8b9783}.ability-banner p{font-size:11px;line-height:1.7;margin:0}.ability-attack .ability-icon{color:#b06a42;background:#faebd8}.ability-shield .ability-icon{color:#4f8d8c;background:#e8f1ec}.ability-double .ability-icon{color:#8a7499;background:#f0eaf3}.prediction-form{display:grid;grid-template-columns:1fr;gap:15px;margin-top:18px}.prediction-form:has(fieldset:nth-of-type(2)){grid-template-columns:1fr 1fr}.prediction-choice{min-width:0;margin:0;padding:0;border:0}.prediction-choice legend{font-size:11px;color:#829078;margin-bottom:9px}.prediction-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.predict-option{position:relative;cursor:pointer}.predict-option input{position:absolute;width:1px;height:1px;opacity:0;min-height:0}.predict-option>span{display:grid;justify-items:center;gap:2px;background:var(--paper);border:1px solid #d6dfd0;border-radius:14px;padding:15px 10px;transition:background .15s,border-color .15s;color:#6c8362}.predict-option b{font-size:23px;line-height:1;margin-bottom:6px}.predict-option strong{font-size:15px}.predict-option small{font-size:9px;font-weight:400;color:#8c9b82}.predict-option input:checked+span{background:#e7efdc;border-color:#6e9a58;box-shadow:0 0 0 1px #6e9a58;color:#386244}.predict-option input:focus-visible+span{outline:3px solid #3078ce;outline-offset:3px}.predict-option input:disabled+span{opacity:.5;cursor:default}.prediction-form:has(fieldset:nth-of-type(2)) .double-note{grid-column:1/-1}.double-note{text-align:center;margin:0}.prediction-choice .note{font-size:10px;margin-bottom:0}.waiting-turn{text-align:center;font-size:12px;padding:22px;margin:0;color:#7a8c70}.turn-history{margin-top:27px}.turn-history h2{font-size:17px}.turn-history>ol{list-style:none;margin:13px 0 0;padding:0;display:grid;gap:9px}.turn-history>ol>li{border:1px solid var(--line);border-radius:15px;padding:15px 17px;background:#fffefa}.history-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.history-heading strong{font-size:12px;overflow-wrap:anywhere;min-width:0}.history-heading>span{font-size:9px;color:#94a087;white-space:nowrap}.history-comparisons{display:flex;align-items:center;flex-wrap:wrap;gap:22px;margin-top:12px}.history-pair{display:flex;align-items:center;gap:10px}.playing-card.compact{width:35px;height:47px;border-radius:5px;box-shadow:none}.compact .card-corner{left:5px;top:5px;font-size:12px}.compact .card-corner small{font-size:9px}.compact .card-corner.bottom,.compact .card-suit{display:none}.comparison{display:grid;justify-items:center;font-size:8px;min-width:36px;color:#8b9c81;line-height:1.2;gap:2px}.comparison>b{font-size:14px}.comparison small{font-size:8px;font-variant-numeric:tabular-nums}.comparison.hit{color:#548154}.comparison.miss{color:#b36c50}.comparison.tie{color:#9d9277}.history-damage{font-size:10px;margin:9px 0 0;color:#8b9980;display:flex;align-items:center;gap:7px;flex-wrap:wrap}.damage-negative{font-weight:750;color:#b36c50}.damage-attack{font-weight:650;color:#b37d3d;border-left:1px solid #e5e9df;padding-left:9px}.history-empty{font-size:12px;padding:20px;text-align:center;border:1px dashed #d4dfcb;border-radius:14px;margin:13px 0 0}.match-membership{margin-top:20px;padding:19px}.match-membership .note{margin:9px 0 12px}.match-membership button{font-size:11px;min-height:36px;padding:6px 11px}.result-panel h1{font-size:34px}.result-panel>h2{font-size:16px;margin:22px 0 12px}.result-banner{padding:25px 18px;border:1px solid #dce6cf;border-radius:18px;background:#ecf2e2;text-align:center}.result-suit{font-size:33px;color:#8aab6d;display:block;line-height:1;margin-bottom:14px}.result-banner p{font-size:11px;color:#819174;margin:6px 0}.result-banner strong{display:block;color:#3c6f46;font-size:29px;letter-spacing:-.04em;overflow-wrap:anywhere}footer{padding:0}
@media(min-width:900px){.hp-grid:has(.hp-side:nth-child(5)){grid-template-columns:repeat(4,minmax(0,1fr))}.match-screen{max-width:860px;margin:auto}}
@media(max-width:600px){header{padding:16px;align-items:flex-start}.brand{font-size:19px;padding-top:6px}.header-tools{justify-content:flex-end;max-width:190px}main{padding:14px 16px 190px}.hero{grid-template-columns:1fr;gap:22px;padding:16px 0 27px}.hero h1{font-size:37px}.hero-art{aspect-ratio:1.65;border-radius:25px}.art-card{width:29%;height:77%;max-height:220px}.art-card.first{left:27%;top:7%}.art-card.second{left:49%;top:15%}.art-orbit{inset:-20% 14%}.art-chip{left:14%;bottom:15%;font-size:10px}.panel{padding:19px;border-radius:18px}.entry-panel{margin:18px auto}.entry-panel h1{font-size:34px}#direct-entry{flex-wrap:wrap}#direct-entry label{min-width:100%}.room-heading{margin-bottom:18px}.room-heading h1{font-size:27px}.settings-grid{grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.settings-grid label:first-child{grid-column:1/-1}.member{flex-wrap:wrap;gap:8px;padding:11px}.member-name{flex-basis:45%}.member .name-form{flex-basis:100%;order:3}.member label{width:85px}.member .badge{font-size:9px;max-width:80px}.actions button{font-size:12px}.match-top h1{font-size:23px}.match-top{margin-bottom:15px}.hp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hp-side{padding:10px;border-radius:12px}.hp-heading>strong{font-size:11px}.hp-number{font-size:17px}.hp-number small{font-size:9px}.hp-side p{font-size:9px}.table-topline{padding-top:17px}.card-table{padding:18px 12px 18px;border-radius:20px}.card-lane{gap:14px}.playing-card{width:96px;height:135px;border-radius:10px}.card-corner{font-size:20px;left:9px;top:9px}.card-corner.bottom{right:9px;bottom:9px}.card-suit{font-size:47px}.card-back{border-width:5px}.card-back span{font-size:32px;width:49px;height:49px}.card-lane:has(.card-slot:nth-of-type(3)){gap:9px}.card-lane:has(.card-slot:nth-of-type(3)) .playing-card{width:76px;height:107px}.card-lane:has(.card-slot:nth-of-type(3)) .card-direction{font-size:17px}.card-lane:has(.card-slot:nth-of-type(3)) .card-suit{font-size:37px}.card-lane:has(.card-slot:nth-of-type(3)) .card-corner{font-size:16px;left:6px;top:7px}.card-lane:has(.card-slot:nth-of-type(3)) .card-corner.bottom{left:auto;right:6px;top:auto;bottom:7px}.card-lane:has(.card-slot:nth-of-type(3)) .card-corner small{font-size:10px}.card-lane:has(.card-slot:nth-of-type(3)) .card-back span{width:38px;height:38px;font-size:25px}.card-slot{gap:8px}.card-slot>span{font-size:9px}.card-slot>small{font-size:10px}.ability-banner{padding:12px;gap:10px}.ability-banner h3{font-size:13px}.ability-banner p{font-size:10px}.ability-icon{width:36px;height:36px;font-size:20px}.predict-option>span{padding:12px 8px}.predict-option strong{font-size:14px}.prediction-form:has(fieldset:nth-of-type(2)){gap:10px}.prediction-form:has(fieldset:nth-of-type(2)) .prediction-options{gap:7px}.prediction-form:has(fieldset:nth-of-type(2)) .predict-option>span{padding:12px 5px}.prediction-form:has(fieldset:nth-of-type(2)) .predict-option small{font-size:8px}.prediction-form:has(fieldset:nth-of-type(2)) .predict-option strong{font-size:12px}.prediction-choice legend{font-size:10px}.prediction-choice .note{font-size:9px}.history-heading{align-items:flex-start;gap:8px}.history-heading>span{font-size:8px;white-space:normal;text-align:right}.turn-history>ol>li{padding:13px}.history-comparisons{gap:13px}.history-pair{gap:8px}.result-panel h1{font-size:30px}.result-banner strong{font-size:26px}}
@media(max-width:360px){main{padding:12px 12px 250px}.card-lane:has(.card-slot:nth-of-type(3)){gap:6px}.card-lane:has(.card-slot:nth-of-type(3)) .playing-card{width:65px;height:94px}.deck-cycle{display:none}.hp-heading{flex-wrap:wrap}.card-direction{font-size:18px}.card-slot>span{font-size:8px}.history-comparisons{gap:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.invite-panel label{display:block;margin-bottom:8px;font-weight:700}.invite-panel input{width:100%;min-width:0;font-size:14px}
.participation-choices{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.participation-choices button[aria-pressed=true]{background:#e7efdc;border-color:#6e9a58;color:#386244;box-shadow:inset 0 0 0 1px #6e9a58}.participation-choices button[aria-pressed=true]::before{content:'✓';font-weight:850}
.member .force-spectate{font-size:12px;padding:7px 10px;white-space:nowrap}.name-form button{flex-shrink:0;white-space:nowrap}
.lobby-result{border-color:#c9dabb;background:#f0f5e9}.lobby-result h2{font-size:18px}.previous-winner{font-size:25px;font-weight:800;color:var(--green);margin:14px 0;overflow-wrap:anywhere}.previous-hp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px}.previous-hp-grid>div{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:10px;background:#fffefa;padding:10px}.previous-hp-grid span{font-size:12px;overflow-wrap:anywhere;min-width:0}.previous-hp-grid strong{font-size:17px;white-space:nowrap}.previous-hp-grid small{font-size:10px;font-weight:500;color:var(--muted)}

/* Special turns and the shared reveal shown to players and spectators. */
.ability-banner:not(.ability-none){--ability-accent:#8854ac;border:2px solid var(--ability-accent);background:linear-gradient(110deg,#f3eaff,#fffefa 80%);box-shadow:0 4px 18px #8854ac18;position:relative;overflow:hidden;padding:17px 20px}
.ability-banner.ability-attack{--ability-accent:#c46632;background:linear-gradient(110deg,#ffead5,#fffefa 80%)}
.ability-banner.ability-shield{--ability-accent:#288b92;background:linear-gradient(110deg,#dff6f3,#fffefa 80%)}
.ability-banner:not(.ability-none) .ability-caption{color:var(--ability-accent);font-size:10px;font-weight:850;letter-spacing:.14em}
.ability-banner:not(.ability-none) h3{font-size:21px;color:var(--ability-accent);margin:4px 0}
.ability-banner:not(.ability-none) .ability-icon{width:56px;height:56px;font-size:30px;border:1px solid currentColor;box-shadow:0 0 0 5px #ffffff80;animation:ability-arrive .45s ease-out}
.match-screen>.ability-banner{margin:0 0 16px}.reveal-table{margin-top:15px;overflow:hidden;position:relative;padding-top:16px;padding-bottom:16px}
.reveal-table .turn-heading{margin-bottom:14px}.reveal-screen .hp-side{padding:10px}.reveal-screen .hp-side p{display:none}.reveal-screen .hp-track{margin-top:7px}
.flip-card{width:120px;height:168px;perspective:900px;flex-shrink:0}
.flip-inner{width:100%;height:100%;position:relative;transform-style:preserve-3d}
.flip-front,.flip-back{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.flip-front{transform:rotateY(180deg)}.flip-card .playing-card{width:100%;height:100%}
.is-flipping .flip-inner{animation:card-flip .48s cubic-bezier(.4,0,.2,1) both}
.is-revealed .flip-inner{transform:rotateY(180deg)}
.current-prediction{font-weight:900;color:var(--green);background:#d3e3c8;border-radius:50%;width:35px;height:35px;display:grid;place-items:center;flex-shrink:0}
.reveal-outcome{min-height:90px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;padding:15px 4px 0;position:relative;color:var(--muted)}
.reveal-outcome.show{animation:outcome-pop .38s ease-out;color:#267c50}.reveal-outcome strong{font-size:clamp(25px,5vw,38px);letter-spacing:-.04em;z-index:1}
.outcome-icon{font-size:33px}.outcome-detail{font-size:14px;font-weight:800;flex-basis:100%;text-align:center;z-index:1}
.reveal-outcome.damage{color:#bd493d}.reveal-outcome.attack{color:#bb6127}.reveal-outcome.shield{color:#227d8d}.reveal-outcome.tie{color:#897f65}
.outcome-hit{box-shadow:inset 0 0 35px #a1d28260}.outcome-attack{box-shadow:inset 0 0 35px #f3b16e60}.outcome-damage{animation:table-damage .45s ease-out}
.hit-sparks{position:absolute;inset:0;display:grid;place-items:center;font-size:55px;letter-spacing:35px;color:#a1c66866;pointer-events:none;animation:hit-spark .8s ease-out both}
.hp-side{position:relative}.hp-side.taking-damage{animation:hp-damage .5s ease-out;border-color:#ce6959;background:#fff0e8;opacity:1}
.damage-float{position:absolute;z-index:3;right:8px;top:-27px;font-size:25px;font-weight:950;color:#b83e32;background:#fffefa;border:2px solid #e78672;border-radius:10px;padding:3px 9px;text-shadow:0 1px white;box-shadow:0 3px 12px #b83e3220;animation:damage-rise 1.45s ease-out both;pointer-events:none}
.reveal-wait{text-align:center;font-size:12px;padding:15px;margin:0}
@keyframes card-flip{0%{transform:rotateY(0)}45%{transform:rotateY(82deg) translateY(-6px)}100%{transform:rotateY(180deg)}}
@keyframes outcome-pop{0%{transform:scale(.78);opacity:0}65%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
@keyframes hp-damage{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
@keyframes table-damage{0%,100%{background-color:#eaf0e3}30%{background:#f5d6c9}}
@keyframes damage-rise{0%{transform:translateY(8px) scale(.8);opacity:0}15%,75%{opacity:1}100%{transform:translateY(-16px);opacity:.9}}
@keyframes hit-spark{0%{transform:scale(.4);opacity:0}30%{opacity:1}100%{transform:scale(1.3);opacity:0}}
@keyframes ability-arrive{0%{transform:scale(.8) rotate(-8deg)}70%{transform:scale(1.1)}100%{transform:scale(1)}}
@media(max-width:600px){.flip-card{width:96px;height:135px}.card-lane:has(.card-slot:nth-of-type(3)) .flip-card{width:76px;height:107px}.current-prediction{width:24px;height:24px;font-size:18px}.ability-banner:not(.ability-none){padding:13px 14px}.ability-banner:not(.ability-none) h3{font-size:18px}.ability-banner:not(.ability-none) .ability-icon{width:46px;height:46px;font-size:26px}.damage-float{font-size:20px;right:4px;padding:3px 6px}.hit-sparks{font-size:38px;letter-spacing:16px}}
@media(max-width:360px){.card-lane:has(.card-slot:nth-of-type(3)) .flip-card{width:65px;height:94px}.current-prediction{width:19px;height:24px}}
@media(prefers-reduced-motion:reduce){.is-flipping .flip-inner{transform:rotateY(180deg)}}
