.white-elephant-intro{max-width:820px}.white-elephant-workspace{grid-template-columns:minmax(270px,.84fr) minmax(0,1.16fr)}.host-panel,.action-panel{min-width:0}
.field-error{min-height:26px;margin:-10px 0 10px;color:#9b1c31;font-size:14px;line-height:1.5}
.host-progress{display:grid;grid-template-columns:1fr auto;gap:4px 12px;margin:22px 0 16px;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--paper);font-size:14px;color:var(--muted)}
.host-progress strong{font-family:var(--font-display);font-size:22px;color:var(--ink)}.host-progress span:last-child{grid-column:1/-1}
.die-stage{display:grid;grid-template-columns:104px 1fr;align-items:center;gap:14px 18px}.die-stage .help{grid-column:1/-1;margin:0}
.large-die{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);place-items:center;width:104px;aspect-ratio:1;padding:16px;background:var(--surface);border:2px solid var(--primary);border-radius:22px;box-shadow:0 8px 20px #203c3716}
.large-die .pip{width:14px;height:14px;border-radius:50%;background:var(--primary);opacity:0}.large-die .die-placeholder{grid-area:1/1/4/4;font:700 32px/1 var(--font-display);color:var(--muted)}.large-die:not([data-face="0"]) .die-placeholder{display:none}
.large-die[data-face="1"] .pip:nth-child(5),.large-die[data-face="2"] .pip:nth-child(1),.large-die[data-face="2"] .pip:nth-child(9),.large-die[data-face="3"] .pip:nth-child(1),.large-die[data-face="3"] .pip:nth-child(5),.large-die[data-face="3"] .pip:nth-child(9),.large-die[data-face="4"] .pip:nth-child(1),.large-die[data-face="4"] .pip:nth-child(3),.large-die[data-face="4"] .pip:nth-child(7),.large-die[data-face="4"] .pip:nth-child(9),.large-die[data-face="5"] .pip:nth-child(1),.large-die[data-face="5"] .pip:nth-child(3),.large-die[data-face="5"] .pip:nth-child(5),.large-die[data-face="5"] .pip:nth-child(7),.large-die[data-face="5"] .pip:nth-child(9),.large-die[data-face="6"] .pip:nth-child(1),.large-die[data-face="6"] .pip:nth-child(3),.large-die[data-face="6"] .pip:nth-child(4),.large-die[data-face="6"] .pip:nth-child(6),.large-die[data-face="6"] .pip:nth-child(7),.large-die[data-face="6"] .pip:nth-child(9){opacity:1}
.roll-button{width:100%}.current-action{display:grid;grid-template-columns:76px 1fr;align-items:start;gap:18px;min-height:150px;margin-top:10px;padding:20px;background:var(--accent);border-radius:var(--radius-panel)}
.action-face{display:grid;place-items:center;width:76px;aspect-ratio:1;border:2px solid var(--primary);border-radius:18px;background:var(--surface);font:700 34px/1 var(--font-display);color:var(--primary)}
.current-action h2{margin:4px 0 8px;font-size:28px}.current-action p{margin:0;font-size:17px}.action-guidance{display:grid;grid-template-columns:140px 1fr;gap:8px 16px;padding:18px 4px 8px}
.action-guidance h3{margin:0;font:700 15px/1.5 var(--font-body);color:var(--muted)}.action-guidance p{margin:0 0 8px;font-size:16px}.action-buttons,.print-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.history-panel{margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.history-heading h3{margin:0;font-size:20px}.history-heading span{font-size:14px;color:var(--muted)}
#white-elephant-history{max-height:236px;overflow:auto;scrollbar-gutter:stable;margin:12px 0 0;padding:0;list-style:none}#white-elephant-history li{display:flex;justify-content:space-between;gap:14px;padding:8px 4px;border-bottom:1px solid var(--border);font-size:14px}#white-elephant-history li span{color:var(--muted)}#white-elephant-history li strong{text-align:right}#white-elephant-history .empty-history{display:block;color:var(--muted);border:0}
.action-reference,.print-section,.white-elephant-guide{margin-top:42px}.action-reference>h2,.print-section>h2{margin:8px 0 12px}.dice-action-grid,.print-action-list{padding:0;list-style:none}.dice-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:880px}
.dice-action{display:grid;grid-template-columns:46px 1fr;gap:12px;padding:16px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--surface)}.mini-die{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--primary);border-radius:10px;font:700 19px/1 var(--font-display);color:var(--primary);background:var(--surface)}
.dice-action strong{font-family:var(--font-display);font-size:19px}.dice-action p{margin:4px 0 0;font-size:15px;line-height:1.55}.action-fallback{color:var(--muted)}.action-fallback span{font-weight:700;color:var(--ink)}
.white-elephant-print-card{max-width:820px;margin:24px 0 44px;padding:28px;border:1px solid var(--border);border-radius:var(--radius-panel);background:var(--surface)}.print-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:0 0 14px;border-bottom:3px solid var(--primary)}
.print-card-header h2{margin:0}.print-card-header p{margin:0;font-size:14px;color:var(--muted)}.white-elephant-print-card>section h3,.print-card-columns h3{margin:14px 0 4px;font-size:19px}.white-elephant-print-card p{margin:0;font-size:15px;line-height:1.5}
.print-action-list{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.print-action-list li{display:grid;grid-template-columns:40px 1fr;gap:8px;padding:10px;background:var(--accent);border-radius:var(--radius-control);break-inside:avoid}.print-action-list .mini-die{width:36px;height:36px}.print-action-list strong{font-size:15px}.print-action-list p{font-size:13px;line-height:1.4}.print-action-list .action-fallback{margin-top:3px}
.print-card-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.print-card-footer{display:flex;justify-content:space-between;gap:20px;margin-top:16px;padding-top:8px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}.white-elephant-guide li{margin-bottom:8px}.white-elephant-guide h2{margin-top:34px}.white-elephant-guide h3{font-size:20px}
@media(max-width:799px){.white-elephant-workspace{grid-template-columns:1fr}.current-action{min-height:0}.dice-action-grid{grid-template-columns:1fr}.white-elephant-print-card{padding:20px}.print-action-list,.print-card-columns{grid-template-columns:1fr}}
@media(max-width:480px){.die-stage{grid-template-columns:88px 1fr}.large-die{width:88px;padding:13px;border-radius:18px}.large-die .pip{width:11px;height:11px}.current-action{grid-template-columns:56px 1fr;padding:16px;gap:12px}.action-face{width:56px;border-radius:14px;font-size:28px}.current-action h2{font-size:23px}.action-guidance{grid-template-columns:1fr;gap:2px}.action-guidance p{margin-bottom:12px}.action-buttons .button,.print-actions .button{width:100%}.white-elephant-print-card{margin-inline:-2px;padding:16px}.print-card-header,.print-card-footer{flex-direction:column;gap:6px}}
@media(max-width:340px){.die-stage{grid-template-columns:1fr}.large-die{margin-inline:auto}.roll-button{grid-row:2}.current-action{grid-template-columns:1fr}.action-face{width:52px}}
/* Enforce the user's reduced-motion preference over shared transition specificity. */
@media(prefers-reduced-motion:reduce){.large-die,.current-action{transition:none!important}}@media(forced-colors:active){.large-die,.action-face,.mini-die,.dice-action,.white-elephant-print-card{border-color:ButtonText}.large-die .pip{background:ButtonText}.current-action,.print-action-list li{background:Canvas}.field-error{color:CanvasText}}
.white-elephant-kit{max-width:860px;margin:24px auto 42px;padding:22px 24px;border:1px solid var(--border);border-radius:18px;background:var(--surface-result)}.white-elephant-kit h2{margin:.2rem 0 .65rem;font-size:clamp(1.3rem,3vw,1.75rem)}.white-elephant-kit p:last-child{margin-bottom:0}@media(max-width:520px){.white-elephant-kit{padding:18px;margin-top:18px}}
@page{size:Letter portrait;margin:.35in}
/* Print isolation intentionally overrides shared screen layout, color and site chrome. */
@media print{body{background:#fff!important;color:#000!important;font-size:10pt;line-height:1.3}body>.container{width:100%!important;max-width:none!important;margin:0!important}body>.container>header,body>.container>footer,main>:not(#white-elephant-print-card),.analytics-choice,#analytics-status{display:none!important}#white-elephant-print-card{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#000!important;background:#fff!important}.print-card-header{padding-bottom:6pt;border-color:#000!important}.print-card-header h2{font-size:20pt}.print-card-header p{font-size:8.5pt!important;color:#000!important}.white-elephant-print-card>section h3,.print-card-columns h3{margin:7pt 0 2pt;font-size:11pt}.white-elephant-print-card p{font-size:8.5pt;line-height:1.32}.print-action-list{grid-template-columns:1fr 1fr!important;gap:5pt;margin:7pt 0}.print-action-list li{grid-template-columns:28pt 1fr;gap:5pt;padding:5pt;border:1px solid #777;border-radius:4pt;background:#eef6f3!important;break-inside:avoid}.print-action-list .mini-die{width:25pt;height:25pt;border-color:#000;color:#000;font-size:12pt}.print-action-list strong{font-size:9pt}.print-action-list p{font-size:7.7pt;line-height:1.25}.print-card-columns{grid-template-columns:1fr 1fr!important;gap:10pt;break-inside:avoid}.print-card-footer{margin-top:7pt;padding-top:4pt;border-color:#000!important;color:#000!important;font-size:7.5pt;break-inside:avoid}body[data-print-ink="ink"] #white-elephant-print-card,body[data-print-ink="ink"] #white-elephant-print-card *{color:#000!important;background:#fff!important;border-color:#000!important}body[data-print-ink="ink"] .print-card-header{border-width:1px}}
