.name-game, .name-game-results { box-sizing: border-box; position: relative; }
.name-game *, .name-game-results * { box-sizing: border-box; }
.name-game__status { display: flex; font-weight: 700; justify-content: space-around; line-height: 1.1; margin: 0 0 20px; text-align: center; }
.name-game__status > div { width: 50%; }
.name-game__status strong { color: inherit; display: block; font-size: 2em; font-weight: 800; }
.name-game__play-area { position: relative; }
.name-game__board { display: flex; flex-direction: column; gap: 4px; padding: 0 40px; }
.name-game__board-row { display: grid; gap: 8px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.name-game__tile { background: #fff; border: 1px solid #d3d6da; border-radius: 3px; color: #111; display: grid; font-size: clamp(1rem, 4vw, 1.5rem); font-weight: 700; grid-template-areas: "tile"; line-height: 1; min-height: 0; min-width: 0; overflow: hidden; padding: 0 !important; text-transform: uppercase; }
.name-game__tile::before { content: ""; grid-area: tile; padding-top: 100%; }
.name-game__tile > span { align-self: center; grid-area: tile; justify-self: center; line-height: 1; }
.name-game__tile--filler { background: var(--name-game-tile) url("https://www.zerotackle.com/images/tile-bkgd-feature.png?updated") left top / 30% no-repeat; border-color: var(--name-game-tile); box-shadow: inset 0 -3px 3px rgba(0, 0, 0, .75); }
.name-game__progress { background: #e0dd28; font-size: 1.25em; font-weight: 800; margin: 10px 40px; margin-bottom: 10px !important; min-height: 45px; padding: 9px 10px; text-align: center; text-transform: uppercase; }
.name-game__keyboard { margin: 0 auto; width: calc(100% - 80px); }
.name-game__keyboard-row { display: flex; gap: 10px; justify-content: center; margin: 0 0 8px; }
.name-game__keyboard-row:last-child { margin-bottom: 0; }
.name-game__keyboard button { aspect-ratio: 1 / 1; background: #d3d6da; border: 0; border-radius: 6px; color: #000; cursor: pointer; flex: 0 1 8%; font-size: 1.25em; font-weight: 800; min-height: 0; padding: 6px 2px; }
.name-game__keyboard button:disabled { opacity: .25; cursor: default; }
.name-game__modal { align-items: center; background: var(--name-game-background) var(--name-game-dark) right top / contain no-repeat; border-radius: 38px; bottom: 0; box-shadow: 0 8px 25px rgba(0,0,0,.35); color: #fff; display: flex; flex-direction: column; justify-content: center; left: 0; min-height: 100%; padding: 40px 28px; position: absolute; right: 0; text-align: center; top: 0; width: 100%; z-index: 5; }
.name-game__modal[hidden], .name-game__keyboard[hidden] { display: none; }
.name-game__modal h2 { color: #fff; font-size: clamp(42px, 4vw, 56px); font-weight: 800; line-height: 1; margin: 0 0 42px; text-transform: uppercase; }
.name-game__modal p { color: #fff; font-weight: 800; text-align: center; text-transform: uppercase; }
.name-game__complete-intro { font-size: clamp(17px, 1.5vw, 22px); margin-bottom: 28px; }
.name-game__complete-score { align-items: baseline; display: flex; justify-content: center; margin: 0 0 34px; }
.name-game__complete-score strong { font-size: clamp(36px, 3.2vw, 48px); line-height: 1; }
.name-game__complete-score span { font-size: clamp(16px, 1.4vw, 20px); margin-left: 8px; }
.name-game__complete-prompt { font-size: clamp(17px, 1.5vw, 22px); margin-bottom: 24px; }
.name-game__complete-prompt em { color: #e0dd28; font-style: normal; }
.name-game__close { background: none; border: 0; color: #e0dd28; cursor: pointer; font-size: 58px; font-weight: 800; line-height: 1; position: absolute; right: 28px; top: 18px; }
.name-game__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.name-game__button { background: var(--name-game-colour); border: 3px solid #fff; border-radius: 28px; color: #fff !important; cursor: pointer; display: inline-block; font-size: 18px; font-weight: 800; padding: 10px 22px; text-decoration: none; text-transform: uppercase; }
.name-game__after-game[hidden] { display: none; }
.name-game__after-game { margin: 30px 40px 0; text-align: center; }
.name-game__after-game h2 { color: var(--name-game-colour); font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin: 0 0 20px; text-transform: uppercase; }
.name-game__missed-game { align-items: center; background: var(--name-game-colour); color: #fff !important; display: flex; gap: 30px; justify-content: space-between; padding: 30px; text-align: left; text-decoration: none; }
.name-game__missed-game > span:first-child { font-size: 20px; font-weight: 700; line-height: 1.15; max-width: 48%; }
.name-game__missed-game strong { display: block; font-size: 28px; text-transform: uppercase; }
.name-game__missed-game-button { background: transparent; border: 3px solid #fff; border-radius: 28px; color: #fff !important; flex: 0 1 42%; font-size: 28px; font-weight: 800; padding: 10px 22px; text-align: center; text-transform: uppercase; }
.name-game--embed { background: #fff; margin: 30px 0; padding: 20px; }
.name-game__embed-label { background: var(--name-game-colour); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .12em; margin: -20px -20px 20px; padding: 10px 20px; text-align: center; text-transform: uppercase; }
.name-game--embed .name-game__board { padding: 0 10px; }
.name-game--embed .name-game__progress { margin-left: 10px; margin-right: 10px; }
.name-game--embed .name-game__keyboard { width: calc(100% - 20px); }
.name-game--embed .name-game__modal { border-radius: 20px; padding: 24px 18px; }
.name-game--embed .name-game__modal h2 { font-size: 40px; margin-bottom: 28px; }
.name-game--embed .name-game__complete-intro { font-size: 18px; margin-bottom: 18px; }
.name-game--embed .name-game__complete-score { margin-bottom: 24px; }
.name-game--embed .name-game__complete-score strong { font-size: 42px; }
.name-game--embed .name-game__complete-score span { font-size: 16px; }
.name-game--embed .name-game__complete-prompt { font-size: 17px; margin-bottom: 18px; }
.name-game--embed .name-game__after-game { margin-left: 10px; margin-right: 10px; }
.name-game-results > h2 { font-size: 30px; font-weight: 800; margin-bottom: 16px; text-align: center; text-transform: uppercase; }
.name-game-results > h2 a { color: var(--name-game-colour); text-decoration: none; }
.name-game-results__play { margin-bottom: 24px; text-align: center; }
.name-game-results__stats { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin: 20px 0; text-align: center; text-transform: uppercase; }
.name-game-results__stats > div { background: var(--name-game-colour); border: 1px solid #000; color: #fff; font-weight: 700; padding: 14px 8px; }
.name-game-results__stats strong { color: #fff; display: block; font-size: 56px; font-weight: 800; line-height: 1; margin-top: 5px; }
.name-game-results__table-wrap { border: 1px solid #ddd; max-height: 420px; overflow: auto; }
.name-game-results__table { border-collapse: collapse; margin: 0; width: 100%; }
.name-game-results__table th, .name-game-results__table td { border-bottom: 1px solid #ddd; padding: 11px 9px; text-align: center; }
.name-game-results__table th { background: var(--name-game-colour); color: #fff; font-weight: 800; position: sticky; text-transform: uppercase; top: 0; z-index: 1; }
.name-game-results__table tbody tr:nth-child(even) { background: rgba(204, 204, 204, .2); }
.name-game-results__table a { color: var(--name-game-colour); font-weight: 800; text-transform: uppercase; }
@media (max-width: 600px) {
    .name-game__status { margin-bottom: 20px; }
    .name-game__play-area { left: 50%; margin-left: -49vw; margin-right: -49vw; width: 98vw; }
    .name-game__board { gap: 3px; padding: 0 10px; }
    .name-game__board-row { gap: 3px; }
    .name-game__tile--filler { background-size: 50%; box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .75); }
    .name-game__progress { font-size: 1em; margin: 10px; min-height: 38px; padding: 7px 5px; }
    .name-game__keyboard-row { gap: 3px; margin-bottom: 3px; }
    .name-game__keyboard { width: calc(100% - 20px); }
    .name-game__keyboard button { border-radius: 3px; flex-basis: 9.5%; font-size: 14px; }
    .name-game__modal { border-radius: 20px; min-height: 100%; padding: 24px 18px 16px; width: 100%; }
    .name-game__modal h2 { font-size: 2.5rem; margin: 4px 0 18px; }
    .name-game__complete-intro { font-size: 1rem; margin-bottom: 12px; }
    .name-game__complete-score { margin-bottom: 18px; }
    .name-game__complete-score strong { font-size: 3.2rem; }
    .name-game__complete-score span { font-size: 1.1rem; }
    .name-game__complete-prompt { font-size: 1rem; margin-bottom: 16px; }
    .name-game__close { font-size: 40px; right: 16px; top: 12px; }
    .name-game__button { border-width: 2px; font-size: 1rem; padding: 9px 15px; }
    .name-game__after-game { margin: 30px 10px 0; }
    .name-game__after-game h2 { font-size: 24px; margin-bottom: 20px; }
    .name-game__missed-game { align-items: stretch; flex-direction: column; gap: 18px; padding: 30px; text-align: center; }
    .name-game__missed-game > span:first-child { font-size: 16px; max-width: none; }
    .name-game__missed-game strong { font-size: 22px; }
    .name-game__missed-game-button { flex-basis: auto; font-size: 18px; width: 100%; }
    .name-game-results > h2 { font-size: 24px; }
    .name-game-results__stats { gap: 8px; grid-template-columns: 1fr; }
    .name-game-results__stats strong { font-size: 42px; }
    .name-game--embed { padding: 20px 0; }
    .name-game--embed .name-game__embed-label { margin-right: 0; margin-left: 0; }
    .name-game--embed .name-game__play-area { left: auto; margin-left: 0; margin-right: 0; width: 100%; }
    .name-game--embed .name-game__modal h2 { font-size: 32px; margin-bottom: 18px; }
    .name-game--embed .name-game__complete-score strong { font-size: 36px; }
    .name-game--embed .name-game__complete-prompt { font-size: 15px; margin-bottom: 14px; }
}
