:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#21352d;background:#f0f4ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer}button:disabled{cursor:default}.shell{width:min(1180px,100%);margin:auto;padding:20px 16px 48px}header{display:flex;justify-content:space-between;gap:15px;align-items:center;padding-bottom:15px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:56px;height:56px;display:grid;place-items:center;background:#17654d;color:white;border-radius:14px;font-size:32px}h1{font-family:Georgia,serif;font-size:30px;margin:0}header p{margin:2px 0;color:#64746b;font-size:13px}.header-actions{display:flex;gap:8px;flex-wrap:wrap}header button,.actionbar button{background:#fff;border:1px solid #cbd5cc;padding:10px 14px;border-radius:9px}.actionbar .primary{background:#216f51;color:#fff;border-color:#216f51}.summary{display:flex;gap:10px 24px;flex-wrap:wrap;background:#fff;padding:12px 16px;border:1px solid #dce6dd;border-radius:12px;margin-bottom:15px;color:#485b4d;font-size:14px}.table{background:radial-gradient(ellipse at 50% 35%,#217b5b,#11523e);box-shadow:0 15px 35px #0d493027;color:white;border-radius:24px;padding:20px;min-height:710px}.side-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:6px 0 10px}.side-title span{opacity:.8;font-size:13px}.opponent-hand,.hand{display:flex;justify-content:center;gap:5px;overflow-x:auto;min-height:56px;padding:3px}.opponent-hand{max-width:780px;margin:0 auto 10px}.mini-back,.back-card{display:flex;align-items:center;justify-content:center;border-radius:6px;background:repeating-linear-gradient(35deg,#e9f1e9,#e9f1e9 5px,#d9e7dc 5px,#d9e7dc 10px);border:2px solid #fff;color:#568a70}.mini-back{min-width:23px;height:38px}.public{text-align:center;font-size:13px;margin-bottom:12px}.public small{opacity:.75}.public>div{display:flex;gap:3px;flex-wrap:wrap;justify-content:center;margin-top:5px;min-height:25px}.muted{opacity:.7}.packets{display:flex;justify-content:center;gap:22px;flex-wrap:wrap}.packet{text-align:center;min-width:93px}.stack{height:90px;display:grid;place-items:center}.packet-caption{font-size:12px;opacity:.8;margin-top:4px}.back-card{height:78px;width:59px}.empty-stack{font-size:12px;opacity:.55}.playing-card,.display-card{background:#fffaf2;color:#22332c;border:1px solid #d7d6c8;border-radius:8px;width:63px;height:89px;position:relative;display:flex;justify-content:center;align-items:center;flex-shrink:0;box-shadow:0 3px 6px #0001}.playing-card.red,.display-card.red{color:#b22e29}.playing-card.trump,.display-card.trump{background:#fffbef}.playing-card.legal{border:3px solid #f1c66e;transform:translateY(-3px);box-shadow:0 5px 12px #0003}.playing-card.legal:hover{transform:translateY(-9px);border-color:#f8e7a4}.playing-card.forbidden{opacity:.66}.big-label{font-size:20px;font-weight:700}.small-corner{font-size:9px;position:absolute;top:5px;left:5px}.bottom{top:auto;left:auto;bottom:5px;right:5px;transform:rotate(180deg)}.display-card{height:52px;width:40px;font-size:12px;font-weight:700}.trick-zone{border-top:1px solid #ffffff30;border-bottom:1px solid #ffffff30;padding:14px 10px;text-align:center;margin:16px auto;max-width:550px;min-height:148px}.trick-caption{font-size:12px;opacity:.75}.active-trick{display:flex;align-items:center;justify-content:center;gap:20px;min-height:70px}.active-trick>div{display:grid;gap:4px;justify-items:center}.active-trick small{opacity:.75}.empty-trick{font-size:14px;opacity:.65}.last-trick{font-size:12px;opacity:.8;margin-top:10px}.hand{justify-content:flex-start;min-height:110px;margin-top:12px;padding:10px 6px 4px}.hand>.playing-card{width:57px;height:87px}.actionbar{margin-top:14px;background:white;border:1px solid #dce6dd;border-radius:12px;padding:12px 18px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.actionbar span{margin-right:auto}.result{background:white;border:1px solid #dce6dd;border-radius:12px;padding:18px;margin-top:12px}.result h2{margin-top:0}.result-total{font-size:20px;font-weight:700}.help{background:#fff8e7;border:1px solid #eadab7;border-radius:12px;padding:5px 17px;margin-bottom:14px}.help h2{font-size:18px}.help p{font-size:14px}footer{text-align:center;color:#708278;font-size:12px;padding:20px}@media(max-width:600px){h1{font-size:22px}.brand-mark{height:42px;width:42px;font-size:24px}header{align-items:flex-start}.header-actions{justify-content:flex-end}.header button{padding:6px 8px;font-size:12px}.shell{padding:12px 8px 40px}.table{padding:12px 4px;border-radius:14px}.packets{gap:10px}.packet{min-width:75px}.playing-card{width:55px;height:80px}.summary{font-size:12px;gap:7px 13px}.hand>.playing-card{width:48px;min-width:48px;height:76px}.hand>.playing-card .big-label{font-size:15px}.side-title{margin-left:9px;margin-right:9px}}

/* 0.2: The response card remains on the table before the trick is collected. */
.trick-zone{min-height:193px;transition:background .15s,border-color .15s}
.trick-zone.is-showdown{background:#ffffff12;border:1px solid #e4dbab80;border-radius:13px}
.active-trick{min-height:96px;gap:35px;margin-top:7px}
.trick-play{display:grid;justify-items:center;gap:7px;animation:card-enter .23s ease-out}
.trick-play small{font-size:12px;color:#f0f6e9}
.display-card.trick-card{width:72px;height:98px;font-size:21px;border-radius:10px;box-shadow:0 8px 20px #0005}
.trick-winner{display:inline-flex;margin-top:8px;padding:7px 13px;border-radius:40px;background:#eff7dc;color:#245437;font-size:14px;font-weight:750}
.showdown-message{border-color:#c6d9aa;background:#f4f8e9;color:#275b3e}
@keyframes card-enter{from{transform:translateY(-14px);opacity:.2}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.trick-play{animation:none}.trick-zone{transition:none}}

/* 0.2: Breakdown starts with the winner, then explains points, premiums and units. */
.result{padding:22px 24px;max-width:860px;margin:18px auto 0;box-shadow:0 7px 24px #0b40220d}
.result-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:15px}
.result-heading h2{font-size:24px;line-height:1.3;margin:6px 0;color:#193d2b}
.eyebrow{font-size:12px;letter-spacing:.08em;font-weight:800;text-transform:uppercase;color:#63796b}
.result-explain{font-size:13px;color:#596c60;margin:0;line-height:1.6}
.result-delta{min-width:80px;border-radius:12px;padding:10px 14px;text-align:center;font-size:24px;font-weight:850;white-space:nowrap}
.result-delta.positive{background:#e3f4e7}.result-delta.negative{background:#fde8e7}.result-delta.neutral{background:#ecf0ee}
.point-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0 18px}
.point-box{border:1px solid #dfebe1;background:#f5f8f5;border-radius:11px;padding:12px 16px;display:grid;gap:4px}
.point-box.point-winner{border-color:#7eb998;background:#edf8ed}
.point-box span{font-size:12px;color:#526c5e}
.point-box strong{font-size:26px;font-variant-numeric:tabular-nums}
.result-section{border-top:1px solid #e4ebe4;padding:13px 0 10px}
.result-section h3{font-size:15px;margin:0 0 8px;color:#254633}
.bill-row{display:flex;justify-content:space-between;gap:15px;align-items:baseline;padding:7px 0;font-size:14px}
.bill-row>div{display:grid;gap:3px}
.bill-row small,.result-muted{color:#6e7a71;font-size:12px}
.bill-row b{white-space:nowrap;font-variant-numeric:tabular-nums}
.bill-row.subtotal{border-top:1px dashed #dbe4db;margin-top:6px;font-weight:750}
.positive{color:#187648}.negative{color:#b33a37}.neutral{color:#54665a}
.result-final{background:#f3f8f3;border-radius:11px;border:1px solid #dce9db;padding:12px 14px;margin:5px 0 15px}
.result-final h3{margin-bottom:5px}.result-final .bill-row{font-weight:700}
.series-grid{display:grid;grid-template-columns:1fr auto;gap:9px 20px;font-size:14px;padding:6px 0}
.series-grid strong{text-align:right;font-variant-numeric:tabular-nums}
.provisional-note{background:#fff9eb;border-radius:8px;border:1px solid #eadfb9;color:#6c5d3f;font-size:12px;padding:10px 12px;margin:12px 0 0;line-height:1.6}
@media(max-width:600px){.result{padding:16px 14px}.result-heading h2{font-size:19px}.result-delta{font-size:18px;min-width:61px;padding:9px}.point-box strong{font-size:23px}.bill-row{font-size:13px}.display-card.trick-card{width:67px;height:91px}.active-trick{gap:24px}}

/* 0.3 – show the strawmen physically revealing and moving cards into hands. */
.packet{position:relative;transition:filter .18s}
.packet-active{filter:drop-shadow(0 0 9px #f7e4a4)}
.stack{position:relative;isolation:isolate;height:101px;min-width:72px}
.stack>*{z-index:2}
.stack-under{position:absolute;z-index:1;width:59px;height:78px;border:2px solid #fff;border-radius:6px;background:repeating-linear-gradient(35deg,#e9f1e9,#e9f1e9 5px,#d9e7dc 5px,#d9e7dc 10px);color:#568a70;display:grid;place-items:center;transform:translate(calc(var(--layer)*3px),calc(var(--layer)*4px))}
.flip-stage{width:63px;height:89px;display:block;perspective:650px;position:relative}
.flip-inner{width:100%;height:100%;position:relative;display:block;transform-style:preserve-3d;animation:packet-flip .3s ease-in-out forwards}
.flip-back,.flip-front{position:absolute;inset:0;backface-visibility:hidden;display:grid;place-items:center;border-radius:8px}
.flip-back{border:2px solid white;color:#568a70;background:repeating-linear-gradient(35deg,#e9f1e9,#e9f1e9 5px,#d9e7dc 5px,#d9e7dc 10px)}
.flip-front{transform:rotateY(180deg)}
.flip-front .display-card{height:89px;width:63px;font-size:20px}
@keyframes packet-flip{0%{transform:rotateY(0)}100%{transform:rotateY(180deg)}}
.flip-stage.is-picking-up{opacity:0}
.floating-pickup{position:fixed;z-index:9999;display:grid;place-items:center;border:1px solid #d7d6c8;background:#fffaf2;color:#22332c;border-radius:8px;font-size:20px;font-weight:800;pointer-events:none;box-shadow:0 8px 22px #0005}
.floating-pickup.red{color:#b22e29}
.reveal-message{border-color:#e8dfb5;background:#fffbeb;color:#284b36;min-height:54px}
.reveal-progress{font-size:12px;color:#6e7666;white-space:nowrap}
.table-revealing .packets{transition:opacity .12s}
@media(prefers-reduced-motion:reduce){.flip-inner{animation-duration:.001ms}.packet{transition:none}.table-revealing .packets{transition:none}}

.packet .stack > .display-card{width:63px;height:89px;font-size:20px}

/* 0.5: nonintrusive bug reports and version label. */
.feedback-panel{background:#fff;border:1px solid #dce6dd;border-radius:12px;margin-top:14px;padding:18px 20px}
.feedback-panel h2{font-size:19px;margin:0 0 8px}.feedback-panel p{font-size:14px;line-height:1.5;color:#445d4d}
.feedback-panel label{display:block;font-size:13px;font-weight:750;margin:12px 0 6px}
.feedback-panel textarea{box-sizing:border-box;width:100%;border:1px solid #bfcfc2;border-radius:9px;padding:12px;font:inherit;resize:vertical}
.feedback-panel textarea:focus-visible{outline:3px solid #8db9a6}
.feedback-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}
.feedback-actions button{background:#fff;border:1px solid #bfcfc2;border-radius:9px;padding:10px 14px;cursor:pointer}
.feedback-actions button:first-child{background:#216f51;border-color:#216f51;color:#fff}
.feedback-panel small{display:block;margin-top:10px;color:#65786a;line-height:1.5}
.feedback-status{min-height:1em;margin:8px 0!important}
@media(max-width:600px){.header-actions{gap:5px}.header-actions button{font-size:11px;padding:7px}.feedback-panel{padding:14px}}
