/* V2.1 extension: reuse the established olive, champagne, sage and warm red. */
.draw-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.draw-heading h2{margin:0}.draw-heading .eyebrow{margin-bottom:3px;font-size:11px;letter-spacing:1.8px;color:var(--muted)}
.draw-tabs{display:flex;padding:4px;background:var(--bg);border:1px solid var(--line-soft);border-radius:12px;gap:3px}
.draw-tabs button{min-height:40px;padding:7px 12px;border:0;border-radius:8px;background:transparent;color:var(--dim);font-size:14px;cursor:pointer;transition:background .2s,color .2s}
.draw-tabs button[aria-pressed=true]{background:#e5c68120;color:var(--gold);box-shadow:inset 0 0 0 1px #e5c68132}
.draw-legend{display:flex;align-items:center;gap:20px;margin-bottom:15px;font-variant-numeric:tabular-nums}
.draw-legend>span{display:flex;align-items:center;gap:8px}.draw-legend b{font-size:18px;font-weight:600}.draw-legend>small{margin-left:auto;font-size:13px;color:var(--muted)}
.draw-result{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;border-radius:50%;font-style:normal;font-size:15px;font-weight:700;flex:none}
.draw-result.warm,.road-cell.warm>span{background:#d99c8d;color:#352720}.draw-result.sage,.road-cell.sage>span{background:var(--sage,#b6d5a5);color:#243021}.draw-result.gold,.road-cell.gold>span{background:var(--gold);color:#332b1c}
.road-scroll{position:relative;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid var(--line-soft);border-radius:12px;background:#1b211a80;scrollbar-width:thin;scrollbar-color:#6a7656 #20271e;scroll-padding:8px}
.road-scroll:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.road-grid{display:grid;grid-template-columns:repeat(var(--road-columns),44px);grid-template-rows:repeat(6,44px);width:max-content;min-width:100%;background-image:linear-gradient(to right,#aab69f1d 1px,transparent 1px),linear-gradient(to bottom,#aab69f1d 1px,transparent 1px);background-size:44px 44px;background-position:-1px -1px}
.road-cell{display:flex;align-items:center;justify-content:center;width:44px;height:44px;background:none;border:0;border-radius:8px;padding:5px;cursor:pointer;position:relative;touch-action:pan-x pan-y}
.road-cell>span{width:31px;height:31px;display:flex;align-items:center;justify-content:center;border-radius:50%;font-size:17px;font-weight:700;transition:transform .18s,box-shadow .18s}
.road-cell:hover>span{transform:translateY(-2px);box-shadow:0 3px 12px #12180f75}.road-cell.is-selected{background:#e5c6811a;box-shadow:inset 0 0 0 1px #e5c681aa}.road-cell.is-latest>span{outline:1px solid var(--gold);outline-offset:3px}
.road-cell:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}
.road-cell.is-new>span{animation:draw-arrive .45s cubic-bezier(.16,1,.3,1)}
@keyframes draw-arrive{from{transform:scale(.5);opacity:.3}to{transform:scale(1);opacity:1}}
.draw-placeholder{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;text-align:center;padding:24px;color:var(--dim);font-size:15px;line-height:1.9}
.road-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.road-tools .text-btn{font-size:13px;min-height:40px}.road-detail{margin-top:10px;background:#1b211a55;border-radius:12px;border:1px solid var(--line-soft);padding:12px 14px;font-size:13px;color:var(--dim);min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.road-detail>span{display:flex;flex-direction:column;gap:1px}.road-detail b{font-size:14px;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums}.road-detail small{font-size:13px}.road-detail .text-btn{white-space:nowrap;font-size:13px}
.block-history .draw-heading{margin-bottom:10px}.block-history .draw-heading>.text-btn{min-height:44px;font-size:14px}
.history-status{font-size:13px;color:var(--muted);margin-bottom:16px}.history-status::before{content:"";width:6px;height:6px;display:inline-block;background:var(--sage,#b6d5a5);border-radius:50%;margin-right:8px;box-shadow:0 0 0 4px #b6d5a510}.history-status.is-stale{color:var(--gold)}.history-status.is-stale::before{background:var(--gold)}
.history-table-scroll{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#6a7656 #20271e;border:1px solid var(--line-soft);border-radius:12px}
.history-table{border-collapse:collapse;width:100%;min-width:365px;text-align:left;font-size:14px;font-variant-numeric:tabular-nums}
.history-table th{background:#1b211a85;color:var(--muted);font-size:12px;white-space:nowrap;font-weight:500;padding:12px 10px}
.history-table td{padding:13px 10px;border-top:1px solid var(--line-soft);vertical-align:middle;white-space:nowrap}
.history-table th:last-child,.history-table td:last-child{text-align:right}.history-table th:first-child,.history-table td:first-child{padding-left:14px}.history-table th:last-child,.history-table td:last-child{padding-right:14px}
.history-table tr:hover td{background:#e5c68105}.history-block{font-size:14px;font-family:var(--font-mono,monospace);color:var(--text)}.history-table td>small{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.hash-copy{color:var(--dim);background:none;border:0;padding:6px 0;font-size:13px;cursor:pointer;min-height:44px;text-align:left;letter-spacing:-.3px}
.hash-copy:hover{color:var(--text)}.hash-copy mark{color:var(--gold);background:#e5c68116;padding:2px 1px;border-radius:3px;font-weight:700}
.block-verify{display:inline-flex;align-items:center;justify-content:center;gap:5px;color:var(--gold);border:1px solid #e5c68145;background:#e5c6810b;min-height:40px;border-radius:9px;padding:6px 10px;font-size:13px;transition:background .2s,border-color .2s;text-decoration:none}
.block-verify:hover{border-color:var(--gold);background:#e5c68120}.block-verify:focus-visible,.hash-copy:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.history-footnote{font-size:12px;color:var(--muted);line-height:1.8;margin-top:13px}
.history-table caption.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.history-dialog{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:24px;max-width:850px;width:calc(100% - 40px);max-height:85dvh;padding:28px;box-shadow:0 30px 100px #080f08b3;margin:auto}
.history-dialog::backdrop{background:#0c130cc2;backdrop-filter:blur(5px)}
.history-dialog[open]{display:flex;flex-direction:column;animation:draw-arrive .2s ease-out}
.history-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.history-dialog-head h2{font-size:25px;margin:0}.history-dialog-head .icon-btn{font-size:30px;min-width:44px;height:44px}
.history-dialog-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:var(--dim);margin:15px 0}
.history-dialog-body{overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}.history-dialog-body .history-table-scroll{overflow:visible}.history-dialog-body .history-table th{position:sticky;top:0;background:#232c20;z-index:1}
.history-load-more{margin-top:18px;min-height:44px;flex:none}.history-load-more[hidden]{display:none}
@media(max-width:1000px){
  .game-layout>div>.draw-trend{order:1}.game-layout>.panel{order:2}.game-layout>div>.game-bets{order:3}.game-layout>div>.block-history{order:4}
}
@media(max-width:760px){
  .draw-heading{gap:12px}.draw-tabs{width:100%}.draw-tabs button{flex:1;min-height:44px;font-size:15px}.draw-heading .eyebrow{font-size:10px}.draw-legend{gap:18px}
  .road-grid{min-width:440px}.road-detail{font-size:13px}.block-history .draw-heading{flex-wrap:nowrap}.block-history .draw-heading h2{font-size:21px}
  .history-table{display:block;min-width:0}.history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .history-table tbody{display:block}.history-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:15px 14px;border-top:1px solid var(--line-soft)}.history-table tr:first-child{border-top:0}
  .history-table td,.history-table td:first-child,.history-table td:last-child{padding:0;border:0}.history-table td:nth-child(even){text-align:right;justify-self:end}.history-table td:nth-child(1){grid-column:1;grid-row:1}.history-table td:nth-child(2){grid-column:2;grid-row:1}.history-table td:nth-child(3){grid-column:1;grid-row:2}.history-table td:nth-child(4){grid-column:2;grid-row:2}
  .history-block{font-size:15px}.history-table td>small{font-size:12px}.hash-copy{font-size:14px}.block-verify{min-height:44px;padding:6px 11px}.history-footnote::after{content:"点击哈希可复制完整内容。";margin-left:4px}
  .history-dialog{width:calc(100% - 24px);padding:20px 14px;border-radius:20px;max-height:88dvh}.history-dialog-head h2{font-size:22px}.history-dialog-meta{font-size:12px;flex-wrap:wrap;gap:4px}.history-dialog .eyebrow{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.road-cell.is-new>span,.history-dialog[open]{animation:none}.road-cell>span,.draw-tabs button{transition:none}}
