.cell.marked {
  background-image: linear-gradient(#17213d30, #17213d30);
  border-color: #fff;
}

@media (max-width: 600px), (max-height: 500px) and (max-width: 1000px) {
  body.game-active {
    height: 100dvh;
    overflow: hidden;
  }

  body.game-active .shell {
    max-width: none;
    height: 100dvh;
    overflow: hidden;
    padding: 4px 5px 42px;
  }

  body.game-active .top,
  body.game-active .gamehead,
  body.game-active .layout > aside,
  body.game-active .layout > .stack > .card:nth-child(2) > h2,
  body.game-active .layout > .stack > .card:nth-child(2) > p:last-child,
  body.game-active .layout > .stack > .card:nth-child(2) > .tabs,
  body.game-active .board-note,
  body.game-active .board-swipe,
  body.game-active .footer {
    display: none;
  }

  body.game-active .layout,
  body.game-active .layout > .stack {
    min-height: 0;
  }

  body.game-active .layout .card {
    min-width: 0;
    padding: 6px;
    border-radius: 9px;
    box-shadow: none;
  }

  body.game-active .board-wrap {
    margin: 0;
    padding: 4px;
    overflow: visible;
  }

  body.game-active .board {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    gap: 2px;
  }

  body.game-active .cell {
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
    border-radius: 2px;
  }

  body.game-active .col,
  body.game-active .points {
    padding: 2px 0;
    border-radius: 2px;
    font-size: 10px;
  }

  body.game-active .points small { font-size: 8px; }
  body.game-active .cell.star::before { font-size: 15px; }
  body.game-active .cell.marked::after { font-size: 15px; }
  body.game-active .cell.marked.star::before { font-size: 10px; }

  body.game-active .score-details {
    display: block;
    position: fixed;
    left: 5px;
    right: 5px;
    bottom: 4px;
    z-index: 20;
    max-height: 78dvh;
    overflow-y: auto;
    margin: 0;
    border: 1px solid #dcd6c9;
    border-radius: 9px;
    background: #f8f4e9;
    box-shadow: 0 -3px 14px #17213b33;
  }

  body.game-active .score-details > summary {
    display: list-item;
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 7px 12px;
    background: #f8f4e9;
    color: #26334d;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }

  body.game-active .score-details > summary::-webkit-details-marker { display: none; }

  body.game-active .score-details > summary::before {
    content: '⌃';
    margin-right: 8px;
  }

  body.game-active .score-details[open] > summary::before { content: '⌄'; }
  body.game-active .score-details .gamehead { display: flex; margin: 7px; }
  body.game-active .score-details .tabs { display: flex; margin: 7px; }
  body.game-active .score-details > aside { display: grid; margin: 7px; }
  body.game-active .score-details .mobile-scoreboard { display: block; }
}

@media (min-width: 601px) and (max-width: 1000px) and (max-height: 500px) {
  body.game-active .layout {
    display: block;
    height: 100%;
  }

  body.game-active .layout > .stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    align-items: start;
  }

  body.game-active .layout > .stack > .card:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  body.game-active .layout > .stack > .card:first-child h2,
  body.game-active .turn-context { display: none; }
  body.game-active .dice-group > strong { display: none; }
  body.game-active .roll-dice-grid { display: flex; gap: 10px; }
  body.game-active .dice { gap: 4px; margin: 0; }
  body.game-active .die { width: 38px; height: 38px; font-size: 17px; }
  body.game-active .layout > .stack > .card:first-child > strong { display: none; }
  body.game-active .layout > .stack > .card:first-child > .chips { gap: 3px; margin: 0; }
  body.game-active .layout > .stack > .card:first-child > .chips .chip { padding: 5px; font-size: 11px; }
  body.game-active .layout > .stack > .card:first-child > .muted { display: none; }
  body.game-active .move-actions { justify-content: flex-end; margin-left: auto; }
  body.game-active .move-actions .btn {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    padding: 0;
    font-size: 24px;
  }
  body.game-active .move-actions #submit { background: #37a34f; }
  body.game-active .move-actions #pass { background: #d94745; color: #fff; }
  body.game-active .action-word { display: none; }
  body.game-active .action-icon { display: block; }
  body.game-active .board { gap: 2px; }
  body.game-active .cell { aspect-ratio: auto; height: 27px; }
  body.game-active .cell.star::before { font-size: 17px; }
  body.game-active .cell.marked::after { font-size: 17px; }
  body.game-active .cell.marked.star::before { font-size: 11px; }
}
