/* Custom packs share the Tabletop Club paper, felt, and honest progress cues. */
.host-tools {
  --host-ink: #0b3028;
  --host-muted: #455a4a;
  --host-soft: #dbe0be;
  --host-border: #bdb08f;
  --host-button: #0b3028;
  --host-paper: #f7ecd3;
  --host-accent: #d8a624;
  color: var(--host-ink);
  font-family: 'Nunito Sans', ui-sans-serif, sans-serif;
}
.host-tools.host-accent-coral { --host-soft: #f0d9c5; --host-button: #783c29; --host-accent: #bb5e3d; }
.host-tools.host-accent-violet { --host-soft: #e2dce9; --host-button: #51406b; --host-accent: #76608f; }
.host-tools * { box-sizing: border-box; min-width: 0; }
.host-tools h1, .host-tools h2, .host-tools legend, .host-tools .host-result-score { font-family: 'Fredoka', ui-rounded, sans-serif; font-weight: 550; }
.host-tools .host-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 25px; color: var(--cream, #f7ecd3); font-size: 14px; font-weight: 750; }
.host-tools .host-nav a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; }
.host-tools .host-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.host-tools .host-nav span { color: #e6d9bc; font-size: 10px; letter-spacing: 1.5px; }
.host-tools .host-heading { max-width: 850px; margin: 0 0 30px; color: var(--cream, #f7ecd3); }
.host-tools .host-heading .eyebrow { color: #e6d9bc; font-size: 10px; line-height: 1.7; letter-spacing: 1.7px; overflow-wrap: anywhere; }
.host-tools .host-heading h1 { margin: 10px 0 14px; font-size: clamp(34px, 4.8vw, 60px); line-height: 1.08; letter-spacing: -.7px; overflow-wrap: anywhere; text-wrap: balance; text-shadow: 0 3px 0 #08271e; }
.host-tools .host-heading > p:not(.eyebrow) { max-width: 61ch; color: #efe4ca; font-size: 15px; line-height: 1.7; }
.host-tools .host-panel, .host-tools .host-play-status, .host-tools .host-slot, .host-tools .host-share-panel {
  color: var(--host-ink);
  background-color: var(--host-paper);
  background-image: url('/public/tabletop/paper-texture.webp');
  background-size: 540px;
  border: 1px solid var(--host-border);
  box-shadow: 0 3px 0 #b4a27b, 0 6px 0 #173b2cbf, 0 12px 24px #041c1861;
}
.host-tools .host-panel { padding: 30px; border-radius: 18px; }
.host-tools .host-panel h2 { margin: 8px 0 14px; font-size: 29px; line-height: 1.15; letter-spacing: -.3px; overflow-wrap: anywhere; }
.host-tools .host-panel > p { color: var(--host-muted); font-size: 14px; line-height: 1.75; }
.host-tools .host-panel .eyebrow { color: var(--host-muted); font-size: 10px; letter-spacing: 1.8px; }
.host-tools .host-editor-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr); align-items: start; gap: 28px; }
.host-tools fieldset { margin: 0 0 26px; padding: 0 0 26px; border: 0; border-bottom: 1px solid var(--host-border); }
.host-tools fieldset:last-of-type { margin-bottom: 8px; border-bottom: 0; }
.host-tools legend { margin: 0 0 22px; padding: 0; font-size: 23px; letter-spacing: 0; }
.host-tools .host-field { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; font-size: 14px; line-height: 1.5; font-weight: 750; }
.host-tools .host-field input, .host-tools .host-field select { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #9d9c7e; border-radius: 9px; outline-offset: 4px; background: #fffaf0; color: var(--host-ink); font: inherit; font-size: 16px; font-weight: 550; box-shadow: inset 0 2px 2px #3c39250b; }
.host-tools .host-field input[aria-invalid=true], .host-tools .host-field select[aria-invalid=true] { border: 2px solid #963b27; background: #fff1e8; }
.host-tools .host-field small, .host-tools .host-helper { margin: 0; color: var(--host-muted); font-size: 12px; line-height: 1.75; font-weight: 550; }
.host-tools .host-field-error { color: #843523; font-size: 12px; line-height: 1.6; font-weight: 750; }
.host-tools .host-field-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.host-tools .host-item-rows { margin-top: 22px; }
.host-tools .host-item-row { display: grid; grid-template-columns: 27px minmax(0, 1fr) minmax(94px, .4fr); align-items: start; gap: 12px; }
.host-tools .host-item-index { padding-top: 39px; color: var(--host-muted); font-size: 12px; font-weight: 800; }
.host-tools .host-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.host-tools .host-actions > .button, .host-tools .host-stack > .button { min-height: 48px; font-size: 14px; line-height: 1.4; text-align: center; justify-content: center; white-space: normal; }
.host-tools .button-green { background: var(--host-button); color: #fff2d7; border-color: var(--host-button); box-shadow: 0 3px 0 #061c17; }
.host-tools .button-outline { background: #f8eed7; border-color: #877e60; color: var(--host-ink); box-shadow: 0 2px 0 #b8a780; }
.host-tools .text-button { min-height: 44px; color: var(--host-ink); font-size: 13px; line-height: 1.5; font-weight: 800; white-space: normal; }
.host-tools .host-sidebar { display: grid; gap: 25px; }
.host-tools .host-stack { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 20px 0 14px; }
.host-tools .host-stack > .text-button { text-align: left; justify-content: flex-start; }
.host-tools .host-disclosure { margin: 24px 0 20px; padding: 18px 20px; border: 1px solid #aab69c; border-radius: 12px; background: #e1e5cf; color: #344e3e; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.host-tools .host-disclosure strong { display: block; margin-bottom: 5px; color: var(--host-ink); font-size: 13px; }
.host-tools .host-file-label { display: block; padding: 13px; border: 1px dashed #8a9074; border-radius: 9px; font-size: 13px; font-weight: 750; line-height: 1.6; }
.host-tools .host-file-label input { display: block; width: 100%; margin-top: 10px; color: var(--host-muted); font-size: 12px; }
.host-tools .host-file-label input::file-selector-button { min-height: 44px; margin-right: 9px; padding: 9px 11px; border: 1px solid #9b9a7b; border-radius: 7px; background: #f8eed7; color: var(--host-ink); font: inherit; font-weight: 750; }
.host-tools .host-paste-import { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--host-border); font-size: 13px; line-height: 1.8; }
.host-tools .host-paste-import summary { min-height: 44px; font-weight: 800; cursor: pointer; }
.host-tools .host-paste-import > label { display: block; margin-bottom: 8px; font-weight: 750; }
.host-tools .host-paste-import textarea { display: block; width: 100%; max-width: 100%; padding: 12px; border: 1px solid #9d9c7e; border-radius: 8px; resize: vertical; background: #fffaf0; color: var(--host-ink); font: inherit; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.host-tools .host-paste-import > .button { min-height: 44px; margin-top: 12px; font-size: 13px; text-align: center; justify-content: center; }
.host-tools .host-alert, .host-tools .host-notice { margin: 16px 0; padding: 15px 18px; border-radius: 11px; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.host-tools .host-notice { background: #e1e5cf; border: 1px solid #aab69c; color: var(--host-ink); }
.host-tools .host-alert { background: #fff0df; border: 1px solid #ce997c; color: #793b26; }
.host-tools .host-confirm { margin-top: 18px; padding: 18px; border: 1px solid #c2a679; border-radius: 11px; background: #f8e8c8; }
.host-tools .host-confirm p { margin: 0 0 12px; color: var(--host-ink); font-size: 13px; line-height: 1.75; }
.host-tools .host-confirm .button { min-height: 44px; font-size: 13px; }
.host-tools .host-preview { max-width: 800px; margin: 0 auto; padding: 40px; }
.host-tools .host-brief { max-width: 590px; margin: 0 auto; text-align: center; }
.host-tools .host-session { display: inline-block; padding: 8px 16px; border: 1px solid #aab69c; border-radius: 30px; background: #e1e5cf; font-size: 12px; font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }
.host-tools .host-brief h2 { margin: 20px 0 14px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.4px; }
.host-tools .host-brief > p { font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.host-tools .host-brief > .host-helper { max-width: 48ch; margin: 16px auto 0; font-size: 12px; }
.host-tools .host-order { display: inline-block; margin: 14px 0 0; padding-bottom: 5px; border-bottom: 2px solid var(--host-accent); font-size: 13px; font-weight: 800; }
.host-tools .host-pack-art { width: min(100%, 310px); height: auto; margin: 20px auto; }
.host-tools .host-preview > .host-actions { justify-content: center; }
.host-tools .host-import-items { margin: 26px 0 18px; padding-top: 18px; border-top: 1px solid var(--host-border); font-size: 14px; line-height: 1.8; }
.host-tools .host-import-items summary { min-height: 44px; cursor: pointer; font-weight: 800; }
.host-tools .host-import-items ol { padding-left: 22px; }
.host-tools .host-import-items li { padding: 9px 0; overflow-wrap: anywhere; }
.host-tools .host-import-items li b { display: block; color: var(--host-muted); font-size: 12px; }
.host-tools.host-mode-play .host-heading { max-width: none; margin-bottom: 26px; text-align: center; }
.host-tools.host-mode-play .host-heading > p { margin-left: auto; margin-right: auto; }
.host-tools .host-play-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; margin: 0 0 34px; padding: 21px 25px; border-radius: 15px; }
.host-tools .host-status-copy { flex: 1 1 240px; display: grid; gap: 4px; }
.host-tools .host-status-copy strong { font-size: 18px; font-weight: 850; line-height: 1.35; overflow-wrap: anywhere; }
.host-tools .host-status-copy > span { color: var(--host-muted); font-size: 13px; overflow-wrap: anywhere; }
.host-tools .host-progress { display: grid; gap: 10px; padding: 0 25px; border-left: 1px solid var(--host-border); }
.host-tools .host-progress > strong { font-size: 13px; line-height: 1.3; font-weight: 800; }
.host-tools .host-progress-pips { display: flex; gap: 10px; }
.host-tools .host-progress-pips i { width: 18px; height: 18px; border: 1px solid #a99a77; border-radius: 50%; background: #eadfc4; }
.host-tools .host-progress-pips i.is-placed { background: var(--host-accent); border-color: #9a7622; box-shadow: inset 0 1px 0 #fff3ce87; }
.host-tools .host-play-status > .button { min-height: 48px; font-size: 14px; text-align: center; }
.host-tools .host-play-layout { display: grid; grid-template-columns: minmax(250px, .9fr) minmax(0, 1.2fr); align-items: start; gap: 42px; margin-top: 24px; }
.host-tools .host-reveal { padding: 30px 28px; text-align: center; box-shadow: 0 4px 0 #d6c299, 0 7px 0 #9e8b65, 0 11px 0 #182a1ee6, 0 18px 24px #041c1861; animation: host-card-arrive 180ms ease-out; }
.host-tools .host-reveal h2 { margin: 17px 0 14px; font-size: clamp(30px, 3vw, 39px); line-height: 1.15; letter-spacing: -.5px; }
.host-tools .host-reveal > p { font-size: 14px; line-height: 1.75; }
.host-tools .host-reveal > .eyebrow { margin: 2px 0 5px; font-size: 10px; letter-spacing: 2.5px; }
.host-tools .host-reveal-art { width: min(100%, 280px); height: 175px; object-fit: contain; margin: 10px auto 17px; }
.host-tools .host-reveal-badge { display: inline-block; border: 1px solid #a89a77; border-radius: 30px; padding: 6px 15px; font-size: 11px; line-height: 1.5; font-weight: 850; letter-spacing: 1.8px; }
.host-tools .host-play-brief { margin: 24px 0 10px; padding: 18px 0 0; border-top: 1px solid var(--host-border); text-align: left; font-size: 14px; overflow-wrap: anywhere; }
.host-tools .host-play-brief p { margin: 8px 0 0; color: var(--host-muted); font-size: 12px; line-height: 1.75; }
.host-tools .host-lineup-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 18px; color: var(--cream, #f7ecd3); }
.host-tools .host-lineup-title h2 { margin: 0; font-size: 28px; letter-spacing: -.1px; }
.host-tools .host-lineup-title > span { font-size: 12px; color: #e7dabd; }
.host-tools .host-slot { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 88px; margin-bottom: 14px; padding: 17px 21px; border-radius: 14px; outline: 1px dashed #a99c7e; outline-offset: -8px; text-align: left; font: inherit; font-size: 15px; line-height: 1.5; }
.host-tools button.host-slot { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.host-tools button.host-slot:hover { background-color: #fff3d7; transform: translateY(-2px); outline-color: var(--host-ink); box-shadow: 0 5px 0 #b4a27b, 0 8px 0 #173b2cbf, 0 14px 25px #041c1861; }
.host-tools .host-slot-number { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid #bdb08f; border-radius: 50%; background: #e9ddc0; color: var(--host-ink); font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.host-tools .host-slot > b:last-child { margin-left: auto; color: #74694b; font-size: 30px; font-weight: 500; }
.host-tools .host-slot-locked { background-color: var(--host-soft); outline-color: #869276; border-color: #b4be9b; }
.host-tools .host-slot-locked.is-latest { animation: host-lock-in 200ms ease-out; }
.host-tools .host-slot-locked strong { flex: 1 1 100px; font-size: 15px; line-height: 1.4; font-weight: 850; overflow-wrap: anywhere; }
.host-tools .host-slot-locked .host-slot-number { background: #c7cda7; border-color: #a3ad8a; }
.host-tools .host-slot-value { flex: 0 1 105px; margin-left: auto; text-align: right; font-size: 12px; line-height: 1.5; font-weight: 750; overflow-wrap: anywhere; }
.host-tools .host-lock-stamp { flex-shrink: 0; padding: 3px 6px; border: 2px solid #9e4d32; border-radius: 5px; color: #884128; font-size: 10px; line-height: 1.4; font-weight: 950; text-transform: uppercase; letter-spacing: .6px; transform: rotate(-8deg); }
.host-tools .host-ideal { margin: 23px 0 0; padding: 0 0 0 22px; text-align: left; }
.host-tools .host-ideal li { padding: 12px 0 12px 5px; border-bottom: 1px solid var(--host-border); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.host-tools .host-ideal li::marker { color: var(--host-muted); font-weight: 800; }
.host-tools .host-ideal b { display: block; color: var(--host-muted); font-size: 12px; font-weight: 650; }
.host-tools .host-result { margin-bottom: 34px; text-align: center; }
.host-tools .host-result .eyebrow { margin: 0 0 17px; }
.host-tools .host-result-score { display: inline-block; font-size: clamp(64px, 8vw, 96px); line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.host-tools .host-result h2 { margin: 15px 0 12px; font-size: 34px; }
.host-tools .host-result > .host-actions { justify-content: center; }
.host-tools .host-self-reported { display: block; margin-top: 8px; color: var(--host-muted); font-size: 12px; line-height: 1.75; }
.host-tools .host-play-actions > .text-button { color: var(--cream, #f7ecd3); }
.host-tools .host-play-actions > .text-button:hover { color: #f1c565; }
.host-tools .host-share-panel { margin: 28px 0 0; padding: 26px; border-radius: 15px; }
.host-tools .host-share-panel > label { display: block; margin-bottom: 12px; font-size: 14px; font-weight: 850; }
.host-tools .host-share-panel textarea { display: block; width: 100%; max-width: 100%; min-height: 120px; padding: 13px; border: 1px solid #9d9c7e; border-radius: 8px; resize: vertical; background: #fffaf0; color: var(--host-ink); font: inherit; font-size: 13px; line-height: 1.7; word-break: break-all; outline-offset: 4px; }
.host-tools .host-share-panel > p { margin: 0; color: var(--host-muted); font-size: 12px; line-height: 1.8; }
.host-tools .host-link-error { max-width: 620px; margin: 30px auto; }
.host-tools .host-link-error h1 { margin: 12px 0 18px; font-size: 36px; line-height: 1.15; letter-spacing: -.3px; }
.host-tools :focus-visible { outline: 3px solid #dcac31; outline-offset: 5px; }
.host-tools .host-slot:focus-visible { outline: 3px solid #efc754; outline-offset: 4px; }
.host-tools #host-lineup-title:focus { outline: none; }
@keyframes host-card-arrive { from { opacity: .7; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes host-lock-in { from { transform: scale(.98); } to { transform: none; } }
@media (max-width: 1050px) {
  .host-tools .host-editor-layout { grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 23px; }
  .host-tools .host-panel { padding: 25px; }
  .host-tools .host-play-layout { gap: 28px; }
  .host-tools .host-play-status > .button { flex: 1 1 100%; }
  .host-tools .host-progress { margin-left: auto; }
  .host-tools .host-slot { gap: 12px; padding: 16px 17px; }
  .host-tools .host-slot-locked { flex-wrap: wrap; }
  .host-tools .host-slot-value { flex-basis: 90px; }
  .host-tools .host-lock-stamp { margin-left: auto; }
}
@media (max-width: 900px) {
  .host-tools .host-editor-layout { grid-template-columns: minmax(0, 1fr); }
  .host-tools .host-sidebar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .host-tools .host-play-layout, .host-tools .host-sidebar { grid-template-columns: minmax(0, 1fr); }
  .host-tools .host-panel, .host-tools .host-preview { padding: 23px 19px; }
  .host-tools .host-nav { margin-bottom: 24px; font-size: 13px; }
  .host-tools .host-nav span { font-size: 9px; }
  .host-tools .host-heading { margin-bottom: 25px; }
  .host-tools .host-heading h1 { font-size: clamp(32px, 8.5vw, 44px); }
  .host-tools .host-heading > p:not(.eyebrow) { font-size: 14px; }
  .host-tools .host-field-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .host-tools legend { font-size: 21px; }
  .host-tools .host-item-row { grid-template-columns: 22px minmax(0, 1fr); gap: 0 9px; margin-bottom: 17px; }
  .host-tools .host-item-row .host-field:last-child { grid-column: 2; margin-bottom: 0; }
  .host-tools .host-item-row .host-field:nth-child(2) { margin-bottom: 10px; }
  .host-tools .host-item-index { grid-row: 1 / 3; padding-top: 39px; }
  .host-tools .host-actions { gap: 12px; }
  .host-tools .host-actions > .button { flex: 1 1 170px; }
  .host-tools .host-brief h2 { font-size: 31px; }
  .host-tools .host-play-status { gap: 17px; padding: 19px; margin-bottom: 28px; }
  .host-tools .host-status-copy { flex-basis: 100%; }
  .host-tools .host-status-copy strong { font-size: 16px; }
  .host-tools .host-progress { grid-template-columns: 1fr auto; align-items: center; width: 100%; margin: 0; padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--host-border); gap: 12px; }
  .host-tools .host-progress-pips { gap: 7px; }
  .host-tools .host-progress-pips i { width: 15px; height: 15px; }
  .host-tools .host-play-status > .button { width: 100%; font-size: 13px; }
  .host-tools .host-reveal { padding: 24px 20px; }
  .host-tools .host-reveal-art { height: 135px; margin: 4px auto 10px; }
  .host-tools .host-reveal h2 { margin: 13px 0 10px; font-size: 31px; }
  .host-tools .host-play-brief { margin-top: 19px; }
  .host-tools .host-lineup-title { padding-top: 5px; }
  .host-tools .host-lineup-title h2 { font-size: 27px; }
  .host-tools .host-slot { gap: 11px; min-height: 81px; padding: 15px; font-size: 14px; border-radius: 12px; }
  .host-tools .host-slot-number { flex-basis: 34px; height: 34px; font-size: 21px; }
  .host-tools .host-slot-locked strong { flex-basis: calc(100% - 46px); font-size: 14px; }
  .host-tools .host-slot-value { margin: 0 0 0 45px; text-align: left; flex: 1 1 100px; }
  .host-tools .host-lock-stamp { font-size: 10px; margin-left: 0; }
  .host-tools .host-result h2 { font-size: 30px; }
  .host-tools .host-disclosure { padding: 16px; font-size: 12px; }
  .host-tools .host-share-panel { padding: 21px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .host-tools *, .host-tools *::before, .host-tools *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .host-tools button.host-slot:hover { transform: none; }
}
/* Host-defined criteria can be a single long word in a valid shared pack. */
.host-tools .host-heading > p:not(.eyebrow){overflow-wrap:anywhere}
