/**
 * Enchanted Ivy tracker.
 * Scoped under .ei-tracker.
 *
 * Styled off the printed components rather than the site's usual dark panels,
 * because the point of this tracker is that it reads like the book:
 *
 *   - parchment pages with a warm mottled tint
 *   - brown table furniture, cream lettering on the header and TOTAL bands
 *   - the sage green of the box, reused for the guest letter badges
 *   - the books' teal dashed keyline just inside the page edge
 *
 * Colours are sampled from Enchanted_Ivy_rulebook_v6.pdf and the two
 * storybooks. The scoring table geometry (8 columns, guest rows, then Ivy,
 * Door and TOTAL under heavier rules) is a direct copy of the storybook
 * scoring page, which is the page this tracker replaces.
 */

.ei-tracker {
    /* paper */
    --ei-paper: #f7e3c0;
    --ei-paper-lit: #fcf0d8;
    --ei-paper-dim: #eed3a8;
    /* ink and furniture */
    --ei-brown: #7d4f33;
    --ei-brown-deep: #5e3620;
    --ei-rule: #b98a5f;
    --ei-ink: #4a2f1e;
    --ei-ink-soft: #8a6446;
    /* accents from the box */
    --ei-green: #6d9d4c;
    --ei-green-deep: #4f7d33;
    --ei-red: #c3423f;

    position: relative;
    background: var(--ei-paper);
    background-image:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .55), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(190, 140, 90, .18), transparent 50%);
    color: var(--ei-ink);
    border: 3px solid var(--ei-red);
    border-radius: 4px;
    padding: 18px;
    font-family: 'Barlow Semi Condensed', 'Segoe UI', sans-serif;
    line-height: 1.35;
}

/* The teal dashed keyline the books draw just inside every page edge. */
.ei-tracker::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px dashed #3fa08c;
    border-radius: 3px;
    pointer-events: none;
    opacity: .5;
    z-index: 0;
}

/* ===== Panels ===== */

.ei-panel {
    position: relative;
    z-index: 1;
    background: var(--ei-paper-lit);
    border: 1px solid var(--ei-rule);
    border-radius: 3px;
    padding: 14px 16px 16px;
    margin-bottom: 16px;
}

.ei-panel-title {
    margin: 0 0 2px;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ei-brown-deep);
}

.ei-panel-sub {
    margin: 0 0 12px;
    font-size: 13.5px;
    color: var(--ei-ink-soft);
}

/* ===== Summary strip ===== */

.ei-summary {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: var(--ei-rule);
    border: 1px solid var(--ei-rule);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
}

.ei-stat {
    flex: 1 1 110px;
    background: var(--ei-paper-lit);
    padding: 10px 14px 9px;
}

.ei-stat-hero { background: var(--ei-green); }
.ei-stat-hero .ei-stat-num,
.ei-stat-hero .ei-stat-label { color: #fff; }
.ei-stat-hero .ei-stat-of { color: rgba(255, 255, 255, .72); }

.ei-stat-num {
    display: block;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: var(--ei-brown-deep);
}

.ei-stat-of {
    font-size: 15px;
    font-weight: 700;
    color: var(--ei-ink-soft);
}

.ei-stat-label {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ei-ink-soft);
}

/* ===== Boards ===== */

/* Both boards are roughly 2:1, so a pair sits side by side without either
   getting squashed. They drop to one column before the stickers get too
   small to make out. */
.ei-boards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

/* A board is the real photographed component with stickers laid on top.
   Slots are positioned in % of the image, so the whole thing scales. */
.ei-board {
    position: relative;
    border: 3px solid var(--ei-brown-deep);
    border-radius: 4px;
    overflow: hidden;
    background: var(--ei-paper-dim);
}

.ei-board-art {
    display: block;
    width: 100%;
    height: auto;
}

.ei-slot {
    position: absolute;
    aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%) rotate(var(--ei-tilt, 0deg));
}

/* The white die-cut border a real sticker is cut with. A border property
   cannot do this: these are irregular shapes, so the outline has to follow
   the alpha channel. Four chained drop-shadows do that. Each one applies to
   the result of the last, so the corners fill in and 4 is enough for a clean
   ring. The dark shadow goes last so it falls outside the white. */
.ei-slot.is-earned,
.ei-sticker,
.ei-tracker.ei-preview .ei-slot {
    filter:
        drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff)
        drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)
        drop-shadow(0 2px 3px rgba(74, 47, 30, .5));
}

/* An unearned slot is a hint, not a box. Enough to read as "one goes here"
   without hiding the printed slot underneath it. */
.ei-slot:not(.is-earned) {
    border: 2px dashed rgba(255, 255, 255, .8);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(74, 47, 30, .22);
    opacity: .5;
}

/* Earned, or being previewed: paint the sticker this slot holds. Same
   mechanism either way, which is what lets a saved score stick one live. */
.ei-slot.is-earned,
.ei-tracker.ei-preview .ei-slot {
    background-image: var(--ei-preview);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-color: transparent;
    box-shadow: none;
    opacity: 1;
}

/* A previewed sticker sits a touch back, so it never passes for an earned one. */
.ei-tracker.ei-preview .ei-slot:not(.is-earned) { opacity: .85; }

/* Landing on the board after a score is saved. */
@keyframes ei-stick {
    0%   { transform: translate(-50%, -50%) rotate(var(--ei-tilt, 0deg)) scale(1.5); opacity: 0; }
    60%  { transform: translate(-50%, -50%) rotate(var(--ei-tilt, 0deg)) scale(.94); opacity: 1; }
    100% { transform: translate(-50%, -50%) rotate(var(--ei-tilt, 0deg)) scale(1); opacity: 1; }
}

.ei-slot.just-earned { animation: ei-stick .45s ease-out; }

@media (prefers-reduced-motion: reduce) {
    .ei-slot.just-earned { animation: none; }
}

/* ----- Admin "show all stickers" preview ----- */

.ei-boardtools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ei-showall {
    padding: 6px 14px;
    background: var(--ei-brown);
    border: 1px solid var(--ei-brown-deep);
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}

.ei-showall:hover { background: var(--ei-brown-deep); }

.ei-tracker.ei-preview .ei-showall {
    background: var(--ei-green-deep);
    border-color: var(--ei-green-deep);
}

.ei-boardtools-note {
    font-size: 12px;
    font-style: italic;
    color: var(--ei-ink-soft);
}

/* The six secret doors, read off the shelves rather than tracked separately. */
.ei-doorstrip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.ei-doorcell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 7px 4px;
    background: var(--ei-paper);
    border: 1px solid var(--ei-rule);
    border-radius: 3px;
    text-align: center;
}

.ei-doorcell.is-unlocked {
    background: #e8f1da;
    border-color: var(--ei-green);
}

.ei-doorcell-letter {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    line-height: 1;
    color: var(--ei-brown-deep);
}

.ei-doorcell.is-unlocked .ei-doorcell-letter { color: var(--ei-green-deep); }

.ei-doorcell-count {
    font-size: 12px;
    font-weight: 800;
    color: var(--ei-ink);
}

.ei-doorcell-state {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ei-ink-soft);
}

.ei-warn {
    margin: 10px 0 0;
    padding: 8px 10px;
    background: #f6dcd8;
    border: 1px solid var(--ei-red);
    border-radius: 3px;
    font-size: 12.5px;
    color: #7a2422;
}

/* Inline stickers in the campaign list. Same earned-is-a-class model as the
   board slots, so one saved score lights both up the same way. */
.ei-sticker {
    display: inline-block;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
}

.ei-sticker:not(.is-earned) {
    border: 2px dashed var(--ei-rule);
    border-radius: 50%;
    opacity: .5;
    filter: none;
}

.ei-sticker.is-earned {
    background-image: var(--ei-preview);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.ei-sticker.just-earned { animation: ei-pop .45s ease-out; }

@keyframes ei-pop {
    0%   { transform: scale(1.6); opacity: 0; }
    60%  { transform: scale(.92); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ei-sticker.just-earned { animation: none; }
}

/* ----- Saving the scorepad ----- */

.ei-pad-help {
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--ei-ink-soft);
}

.ei-pad-help kbd {
    padding: 1px 5px;
    background: var(--ei-paper-dim);
    border: 1px solid var(--ei-rule);
    border-radius: 3px;
    font-size: 11px;
    font-family: inherit;
}

.ei-pad-status {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--ei-green);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity .15s;
}

.ei-pad-status.is-on { opacity: 1; }
.ei-pad-status.is-bad { background: var(--ei-red); }

.ei-garden-letter {
    margin: 10px 0 0;
    font-size: 12.5px;
    font-style: italic;
    color: var(--ei-ink-soft);
}

/* ===== Campaign ===== */

.ei-scenarios {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ei-scenario {
    background: var(--ei-paper);
    border: 1px solid var(--ei-rule);
    border-radius: 3px;
    overflow: hidden;
}

.ei-scenario.is-beaten { border-color: var(--ei-green); }

.ei-sc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    background: var(--ei-brown);
    color: #fbeed9;
}

.ei-sc-act,
.ei-sc-label {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(251, 238, 217, .74);
}

.ei-sc-act {
    padding: 1px 6px;
    margin-right: 6px;
    border: 1px solid rgba(251, 238, 217, .4);
    border-radius: 2px;
}

.ei-sc-title {
    margin: 2px 0 0;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: .02em;
    color: #fff;
}

.ei-sc-best {
    flex: 0 0 auto;
    text-align: right;
}

.ei-sc-best-num {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    color: #ffd894;
}

.ei-sc-best-num.ei-unplayed { color: rgba(251, 238, 217, .45); }

.ei-sc-best-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(251, 238, 217, .65);
}

/* ===== What a scenario can earn you =====
   A score goal and a challenge are the same thing: a sticker with a condition
   attached. So they are one tile in one row, not two stacked full-width
   blocks. Tiles share the row evenly and wrap when there is no space, which
   puts a typical scenario's four (Success, High Score, two challenges) side by
   side and drops them to two-up, then one-up, as the card narrows. */

.ei-sc-stickers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 10px 12px 0;
}

/* Basis 0 so the tiles divide the row evenly instead of claiming a width each
   and wrapping. min-width is the point past which sharing stops being
   readable; only then do they wrap. */
.ei-tile {
    flex: 1 1 0;
    min-width: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 8px 12px;
    background: var(--ei-paper-lit);
    border: 1px solid var(--ei-rule);
    border-radius: 3px;
    text-align: center;
}

/* The Prologue has one goal and nothing else. Left to grow it would be a
   card-wide bar, which is the thing this layout exists to avoid. */
.ei-sc-stickers > .ei-tile:only-child {
    flex: 0 0 170px;
}

.ei-tile.is-met,
.ei-tile.is-done {
    background: #e8f1da;
    border-color: var(--ei-green);
}

/* The sticker is the point of the tile, so it gets the room. */
.ei-tile .ei-sticker {
    width: 52px;
    height: 52px;
}

.ei-tile-title {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ei-brown-deep);
}

.ei-tile.is-met .ei-tile-title,
.ei-tile.is-done .ei-tile-title { color: var(--ei-green-deep); }

.ei-tile-note {
    font-size: 12px;
    line-height: 1.3;
    color: var(--ei-ink-soft);
}

/* The goal number reads as the headline; the word beside it is the caption. */
.ei-goal .ei-tile-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--ei-ink-soft);
}

.ei-goal-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    color: var(--ei-brown-deep);
}

.ei-goal.is-met .ei-goal-num { color: var(--ei-green-deep); }

/* ===== The scoring table, copied from the storybook page ===== */

.ei-pad {
    margin: 12px 12px 0;
    overflow-x: auto;          /* 8 columns must never widen the page */
}

.ei-pad-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ei-paper-lit);
    border: 1px solid var(--ei-brown);
    font-variant-numeric: tabular-nums;
}

.ei-pad-table th,
.ei-pad-table td {
    border: 1px solid var(--ei-rule);
    text-align: center;
    padding: 0;
}

/* Column heads and the scenario name: cream on brown, like the printed band. */
.ei-pad-table thead th {
    background: var(--ei-brown);
    color: #fbeed9;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .05em;
    padding: 5px 4px;
    border-color: var(--ei-brown-deep);
}

.ei-pad-table thead .ei-pad-name {
    text-align: center;
    font-size: 16px;
    background: var(--ei-brown);
    color: #fbeed9;
}

/* Label column: a shade darker than the page, as in the book. */
.ei-pad-name {
    width: 70px;
    min-width: 70px;
    background: var(--ei-paper-dim);
    color: var(--ei-brown);
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 6px;
}

.ei-guest-icon {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    object-fit: contain;
}

/* Ivy sits below the guests behind a heavier rule, and TOTAL below another,
   exactly as printed. */
.ei-pad-sub th,
.ei-pad-sub td,
.ei-pad-table tfoot th,
.ei-pad-table tfoot td { border-top: 3px solid var(--ei-brown-deep); }

.ei-pad-total {
    background: var(--ei-brown);
    color: #fff;
    font-size: 15px;
}

.ei-cell {
    min-width: 42px;
    height: 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ei-ink);
}

.ei-total {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 19px;
    font-weight: 900;
    color: var(--ei-brown-deep);
}

.ei-total.is-pass {
    background: #e8f1da;
    color: var(--ei-green-deep);
}

/* Admin entry: the square itself is the input, so the table never reflows
   between the read-only and the editable render. */
.ei-in {
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--ei-ink);
}

.ei-in:focus {
    outline: 2px solid var(--ei-green);
    outline-offset: -2px;
    background: #fff;
}

.ei-in.is-saving { background: #fff6dc; }

.ei-in.is-error {
    background: #f8dcd9;
    outline: 2px solid var(--ei-red);
    outline-offset: -2px;
}

.ei-challenge-shelf {
    align-self: center;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ei-green);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

/* ----- Ticking a challenge off (admins only) ----- */

/* The site's reset (base/reset-typography.css) makes every input, select and
   textarea a full-width dark pill, and every button a padded dark block. Both
   of the controls below have to opt out of that by hand, property by property,
   or the select eats the whole row. Hover states included: the site's
   `button:hover` is more specific than a bare class. */

/* The circle is the button, so the button is only the circle: no padding, no
   box, nothing that would push the row around. */
.ei-challenge-toggle,
.ei-challenge-toggle:hover,
.ei-challenge-toggle:focus {
    flex: 0 0 auto;
    display: block;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    line-height: 0;
    cursor: pointer;
    transition: none;
}

.ei-challenge-toggle:hover .ei-sticker:not(.is-earned) {
    border-color: var(--ei-green-deep);
    opacity: .85;
}

.ei-challenge-toggle:focus-visible {
    outline: 2px solid var(--ei-green-deep);
    outline-offset: 2px;
    border-radius: 50%;
}

.ei-challenge.is-busy {
    opacity: .55;
    pointer-events: none;
}

/* A letter chip, not a form field. Out of the flow until the keepsake exists,
   so an untouched row is spaced exactly as it was before any of this. */
.ei-challenge-shelf-pick {
    flex: 0 0 auto;
    align-self: center;
    width: auto;
    min-width: 0;
    height: 22px;
    margin: 0;
    padding: 0 2px 0 6px;
    background: var(--ei-green);
    color: #fff;
    border: 0;
    border-radius: 11px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.ei-challenge-shelf-pick:focus {
    outline: 2px solid var(--ei-green-deep);
    outline-offset: 2px;
}

.ei-challenge:not(.is-done) .ei-challenge-shelf-pick { display: none; }

/* Visible to screen readers only. */
.ei-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.ei-sc-note {
    margin: 12px 12px 0;
    font-size: 12.5px;
    font-style: italic;
    color: var(--ei-ink-soft);
}

.ei-sc-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding: 7px 12px;
    background: var(--ei-paper-dim);
    border-top: 1px solid var(--ei-rule);
    font-size: 11.5px;
    color: var(--ei-ink-soft);
}

.ei-sc-rank {
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ei-green-deep);
}

/* Present but empty until a score is recorded, so JS can fill it in place. */
.ei-sc-rank:empty {
    display: none;
}

.ei-sc-errata {
    margin: 0;
    padding: 5px 12px;
    background: #f6e0b8;
    border-top: 1px solid var(--ei-rule);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #a4622a;
}

/* ===== Innkeeper ranks ===== */

.ei-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 6px;
}

.ei-rank {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 9px;
    background: var(--ei-paper);
    border: 1px solid var(--ei-rule);
    border-radius: 3px;
}

.ei-rank.is-here {
    background: var(--ei-green);
    border-color: var(--ei-green-deep);
}

.ei-rank.is-here .ei-rank-band,
.ei-rank.is-here .ei-rank-title { color: #fff; }

.ei-rank-band {
    flex: 0 0 auto;
    min-width: 46px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    font-weight: 900;
    color: var(--ei-brown-deep);
}

.ei-rank-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ei-ink);
}

/* Which scenarios earned this rank. A band with nobody in it stays plain. */
.ei-rank-who {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.ei-rank-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 1px 7px;
    background: var(--ei-paper-lit);
    border: 1px solid var(--ei-brown-deep);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ei-brown-deep);
    white-space: nowrap;
}

.ei-rank-chip em {
    font-style: normal;
    font-weight: 700;
    color: var(--ei-ink-soft);
}

/* ===== Errata ===== */

.ei-errata { background: #f6e0b8; }
.ei-errata ul { margin: 0; padding-left: 18px; }
.ei-errata li { font-size: 13px; color: var(--ei-ink); margin-bottom: 4px; }

/* ===== Responsive ===== */

/* Below this the two boards get too small to read the stickers on. */
@media (max-width: 1000px) {
    .ei-boards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
    .ei-tracker { padding: 12px; }
    .ei-stat { flex-basis: 88px; padding: 8px 10px 7px; }
    .ei-stat-num { font-size: 22px; }
    .ei-sc-head { flex-wrap: wrap; }
    .ei-pad-name { width: 60px; min-width: 60px; font-size: 12px; }
    .ei-cell { min-width: 38px; }
    /* Six door cells across a phone is unreadable; two rows of three. */
    .ei-doorstrip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ei-board { border-width: 2px; }
}
