:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f1ea;
    color: #17201b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f5f1ea;
}

.shell {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 24px 18px;
}

.app-header,
.section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.section-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    font-size: 34px;
    line-height: 1.05;
}

h2 {
    font-size: 22px;
}

.app-header p,
.section-title p,
.hint {
    color: #5e675f;
    margin-top: 6px;
}

.panel {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid #ded8ce;
    border-radius: 8px;
    background: #fff;
}

.hidden {
    display: none;
}

label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfc7bb;
    border-radius: 8px;
    font-size: 16px;
    color: #17201b;
    background: #fff;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    font-weight: 700;
}

.check-row.hidden {
    display: none;
}

.check-row input {
    width: 20px;
    min-height: 20px;
}

.check-row span {
    flex: 1;
}

#gameCode {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

button {
    width: 100%;
    min-height: 46px;
    margin-top: 16px;
    border: 0;
    border-radius: 8px;
    background: #315b4b;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.actions button {
    margin-top: 16px;
}

.actions .hidden {
    display: none;
}

.segmented-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.segmented-actions button {
    min-height: 42px;
    margin-top: 0;
    padding: 10px;
    background: #e8dfd1;
    color: #17201b;
}

.segmented-actions button.active {
    background: #315b4b;
    color: #fff;
}

.secondary {
    background: #b65b3a;
}

.danger {
    background: #7f3328;
}

button:disabled {
    background: #a8aea9;
}

.status-pill {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 8px;
    background: #f0e7d8;
    color: #17201b;
    font-size: 13px;
    font-weight: 700;
}

.timer-pill {
    background: #b65b3a;
    color: #fff;
}

.timer-pill.urgent {
    background: #7f3328;
}

.phase-timer {
    padding: 9px 12px;
    border: 2px solid rgba(127, 51, 40, 0.24);
    box-shadow: 0 6px 14px rgba(182, 91, 58, 0.18);
    font-size: 15px;
}

.header-actions button.status-pill {
    width: auto;
    min-height: 0;
    margin: 0;
    border: 0;
    cursor: pointer;
}

.section-title button.status-pill {
    width: auto;
    min-height: 38px;
    margin: 0;
    border: 0;
    cursor: pointer;
}

.profile-button {
    background: #315b4b;
    color: #fff;
}

.admin-page-button,
.secondary-pill {
    background: #f0e7d8;
    color: #17201b;
}

.profile-logout {
    background: #b65b3a;
    color: #fff;
}

.error {
    min-height: 20px;
    margin-top: 10px;
    color: #b65b3a;
    font-weight: 700;
}

.players {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 8px;
}

.players li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f5ef;
}

.players li.inactive {
    opacity: 0.58;
}

.players li.sitting-out {
    background: #eee7dc;
}

.players li.drag-ready {
    cursor: grab;
}

.players li.current-turn {
    outline: 2px solid #315b4b;
    outline-offset: 2px;
    background: #edf5f0;
}

.players li.clickable {
    cursor: pointer;
}

.players li.clickable:hover,
.players li.vote-selected {
    outline: 2px solid #b65b3a;
    outline-offset: 2px;
}

.drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 22px;
    margin-right: 4px;
    border-radius: 6px;
    background: #e8dfd1;
    color: #5e675f;
    font-size: 12px;
    letter-spacing: 1px;
}

.round-summary {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    background: #17201b;
    color: #f8f5ef;
}

.news-panel {
    background: #17201b;
    border-color: #17201b;
    color: #f8f5ef;
}

.reconnect-panel {
    border-color: #315b4b;
    background: #edf5f0;
}

.news-panel .section-title p,
.news-panel .status-pill {
    color: #dad2c5;
}

.news-panel .status-pill {
    background: rgba(248, 245, 239, 0.12);
}

.rules-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding-left: 22px;
    color: #36413a;
    line-height: 1.45;
}

.rules-list li::marker {
    font-weight: 800;
    color: #b65b3a;
}

.rules-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.rules-tabs input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rules-tabs label {
    margin: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #e8dfd1;
    color: #17201b;
    text-align: center;
    cursor: pointer;
}

#rulesPlayersTab:checked + label,
#rulesHostTab:checked + label {
    background: #315b4b;
    color: #fff;
}

.rules-page {
    display: none;
    grid-column: 1 / -1;
}

#rulesPlayersTab:checked ~ .rules-players-page,
#rulesHostTab:checked ~ .rules-host-page {
    display: block;
}

.vote-reveal {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(248, 245, 239, 0.12);
}

.vote-reveal.hidden {
    display: none;
}

.vote-reveal p {
    margin: 0 0 6px;
    color: #dad2c5;
}

.vote-reveal strong {
    color: #f8f5ef;
}

.news-article {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.news-article h3 {
    margin: 0;
    font-size: 18px;
}

.news-article p {
    color: #f8f5ef;
    line-height: 1.45;
}

.compact-select {
    width: auto;
    min-width: 126px;
    min-height: 38px;
    padding: 7px 10px;
    font-weight: 700;
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.ranking-list {
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: #f8f5ef;
}

.ranking-list h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.ranking-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 0;
    border-top: 1px solid #e5ded4;
}

.ranking-row:first-child {
    border-top: 0;
}

.ranking-player {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
    font-weight: 700;
}

.ranking-player strong {
    min-width: 24px;
    color: #5e675f;
}

.ranking-points {
    font-weight: 700;
    color: #b65b3a;
}

.empty-ranking {
    color: #5e675f;
    font-size: 13px;
}

.round-summary > span {
    color: #dad2c5;
    font-size: 13px;
    font-weight: 700;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.summary-grid div {
    min-width: 0;
}

.summary-grid small {
    display: block;
    color: #dad2c5;
    font-size: 12px;
}

.summary-grid strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
    font-size: 16px;
}

.winner-text {
    display: block;
    margin-top: 8px;
    font-size: 16px;
}

.final-score-list {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.final-score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    color: #f8f5ef;
}

.final-score-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
}

.place-badge {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(248, 245, 239, 0.12);
    color: #f8f5ef;
    font-size: 13px;
}

.winner-place .place-badge {
    animation: trophyBounce 900ms ease infinite alternate;
}

.host-settings {
    display: grid;
    grid-template-columns: 1fr 92px;
    align-items: end;
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f5ef;
}

.host-settings.hidden {
    display: none;
}

.settings-block {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f5ef;
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.account-grid input {
    margin: 0;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.profile-stat {
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: #f8f5ef;
}

.profile-stat span {
    display: block;
    color: #5e675f;
    font-size: 13px;
    font-weight: 700;
}

.profile-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 22px;
}

.profile-rank {
    color: #b65b3a;
}

.admin-create-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    margin-top: 14px;
}

.admin-create-grid input,
.admin-create-grid button {
    margin: 0;
}

.admin-create-grid button {
    width: auto;
    min-width: 116px;
}

.admin-account-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.admin-account-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    background: #f8f5ef;
}

.admin-account-main {
    min-width: 0;
}

.admin-account-main strong,
.admin-account-main span {
    display: block;
    overflow-wrap: anywhere;
}

.admin-account-main span {
    margin-top: 4px;
    color: #5e675f;
    font-size: 13px;
}

.admin-account-main small {
    display: block;
    margin-top: 6px;
    color: #5e675f;
    font-size: 12px;
}

.admin-account-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-account-actions button {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    font-size: 13px;
}

.settings-block.hidden,
.custom-fields.hidden,
.manual-impostor-fields.hidden {
    display: none;
}

.settings-block label {
    margin-top: 0;
}

.settings-block p {
    margin-top: 6px;
    color: #5e675f;
    font-size: 13px;
}

select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfc7bb;
    border-radius: 8px;
    font-size: 16px;
    color: #17201b;
    background: #fff;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.checkbox-row.hidden {
    display: none;
}

.checkbox-row input {
    width: 20px;
    min-height: 20px;
}

.custom-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.manual-impostor-fields {
    margin-top: 10px;
}

.manual-impostor-options {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.manual-impostor-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 10px;
    align-items: center;
    margin: 0;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
}

.manual-impostor-option input {
    width: 20px;
    min-height: 20px;
}

.manual-impostor-option span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
}

.manual-impostor-option small {
    grid-column: 2;
    color: #5e675f;
}

.manual-impostor-option.disabled-option {
    opacity: 0.62;
}

.host-settings label {
    margin-top: 0;
}

.host-settings p {
    margin-top: 4px;
    color: #5e675f;
    font-size: 13px;
}

.host-settings input {
    text-align: center;
    font-weight: 700;
}

.player-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
}

.player-rank {
    min-width: 24px;
    color: #5e675f;
}

.player-emoji {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #f0e7d8;
    font-size: 17px;
    line-height: 1;
}

.player-score {
    margin-left: auto;
    font-weight: 700;
    color: #17201b;
}

.ready {
    color: #315b4b;
    font-weight: 700;
}

.waiting {
    color: #b65b3a;
    font-weight: 700;
}

.inactive-status {
    color: #5e675f;
    font-weight: 700;
}

.card-panel {
    background: #17201b;
    border-color: #17201b;
    color: #f8f5ef;
}

.card-panel .hint {
    color: #dad2c5;
}

.game-card {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    background: #f8f5ef;
    color: #17201b;
}

.game-card span {
    color: #5e675f;
}

.game-card strong {
    font-size: 28px;
}

.game-card .word {
    color: #b65b3a;
    font-size: 34px;
}

#votingCard {
    margin-bottom: 16px;
}

.turn-panel {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    background: #f8f5ef;
    color: #17201b;
}

.turn-list {
    display: grid;
    gap: 8px;
}

.turn-circle {
    position: relative;
    width: min(100%, 430px);
    aspect-ratio: 1;
    margin: 4px auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(49, 91, 75, 0.12) 0 34%, transparent 35%),
        radial-gradient(circle at center, transparent 0 61%, rgba(49, 91, 75, 0.18) 62% 64%, transparent 65%);
}

.turn-avatar {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 94px;
    min-height: 94px;
    margin: 0;
    padding: 8px;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    gap: 3px;
    border: 3px solid #e8dfd1;
    border-radius: 50%;
    background: #fffaf1;
    color: #17201b;
    box-shadow: 0 8px 18px rgba(23, 32, 27, 0.12);
    cursor: pointer;
}

.turn-avatar.current-turn {
    border-color: #2f8f5b;
    box-shadow: 0 0 0 5px rgba(47, 143, 91, 0.18), 0 8px 18px rgba(23, 32, 27, 0.12);
}

.turn-avatar.selected-turn {
    background: #edf5f0;
}

.turn-avatar-icon {
    font-size: 26px;
    line-height: 1;
}

.turn-avatar-name {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 900;
}

.turn-details {
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background: #fffaf1;
}

.turn-details > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.turn-details > div:first-child > span {
    color: #5e675f;
    font-size: 13px;
    font-weight: 800;
}

.turn-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #fffaf1;
}

.turn-row.current-turn {
    outline: 2px solid #315b4b;
    background: #edf5f0;
}

.turn-player {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}

.turn-words {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.turn-word {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #315b4b;
    color: #fff;
    font-weight: 800;
}

.turn-word small {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 900;
}

.turn-word.empty,
.turn-word.pending {
    background: #e8dfd1;
    color: #5e675f;
}

.turn-word.empty small,
.turn-word.pending small {
    color: #7b837d;
}

.turn-input-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.turn-input-panel input {
    min-width: 0;
}

#leaveButton {
    background: #b65b3a;
}

.round-table-panel {
    margin-top: 16px;
    padding: 14px;
    border-radius: 8px;
    background: #f8f5ef;
    color: #17201b;
}

.round-table-panel.hidden,
.vote-options.hidden {
    display: none;
}

.round-table {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(49, 91, 75, 0.14) 0 32%, transparent 33%),
        radial-gradient(circle at center, transparent 0 59%, rgba(49, 91, 75, 0.18) 60% 62%, transparent 63%);
}

.round-table-seat {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 138px;
    min-height: 118px;
    transform: translate(-50%, -50%);
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 10px;
    border: 2px solid #e8dfd1;
    border-radius: 8px;
    background: #fffaf1;
    box-shadow: 0 8px 18px rgba(23, 32, 27, 0.12);
}

.round-table.compact-grid {
    width: 100%;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    border-radius: 0;
    background: transparent;
}

.round-table.compact-grid .round-table-seat {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-height: 114px;
    transform: none;
}

.round-table-seat.impostor-seat {
    border-color: #b65b3a;
}

.round-table-seat.voted-seat {
    border-color: #2f8f5b;
    box-shadow: 0 0 0 3px rgba(47, 143, 91, 0.16), 0 8px 18px rgba(23, 32, 27, 0.12);
}

.round-table-seat.waiting-vote-seat {
    border-color: #f0c84b;
    box-shadow: 0 0 0 3px rgba(240, 200, 75, 0.2), 0 8px 18px rgba(23, 32, 27, 0.12);
}

.round-table-player {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding-right: 26px;
}

.round-table-player strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.round-table-emoji {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
}

.round-table-words {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.round-table-words .turn-word {
    font-size: 11px;
}

.round-table-corner {
    position: absolute;
    top: 6px;
    right: 6px;
}

.vote-corner {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0;
    border-radius: 7px;
    background: #17201b;
    cursor: pointer;
}

.vote-corner input {
    position: absolute;
    opacity: 0;
}

.vote-corner span {
    width: 18px;
    height: 18px;
    border: 2px solid #f8f5ef;
    border-radius: 5px;
}

.vote-corner input:checked + span {
    background: #2f8f5b;
    box-shadow: inset 0 0 0 3px #17201b;
}

.vote-corner input:disabled + span {
    opacity: 0.45;
}

.self-corner,
.score-corner {
    display: inline-grid;
    place-items: center;
    min-width: 30px;
    min-height: 26px;
    padding: 3px 6px;
    border-radius: 7px;
    background: #e8dfd1;
    color: #17201b;
    font-size: 12px;
    font-weight: 900;
}

.score-corner.positive {
    background: #2f8f5b;
    color: #fff;
}

.score-corner.negative {
    background: #b65b3a;
    color: #fff;
}

.round-table-score {
    margin-top: auto;
    color: #5e675f;
    font-size: 12px;
    font-weight: 900;
}

.vote-status.voted {
    color: #2f8f5b;
}

.vote-status.waiting {
    color: #9a6d00;
}

.vote-options {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.vote-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    margin: 0;
    padding: 12px;
    border-radius: 8px;
    background: #f8f5ef;
}

.vote-option input {
    width: 20px;
    min-height: 20px;
}

.vote-option span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 700;
}

.result-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.result-overlay.hidden {
    display: none;
}

.result-burst {
    position: relative;
    width: 260px;
    height: 220px;
    display: grid;
    place-items: center;
}

.trophy-pop,
.cry-face {
    position: relative;
    z-index: 2;
    font-size: 72px;
    animation: resultPop 780ms ease both;
}

.cry-face {
    animation: cryWobble 950ms ease both;
}

.confetti-piece {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 14px;
    border-radius: 3px;
    background: #b65b3a;
    animation: confettiFly 1100ms ease-out var(--d) both;
}

.confetti-piece:nth-child(3n) {
    background: #315b4b;
}

.confetti-piece:nth-child(4n) {
    background: #f0c84b;
}

.confetti-piece:nth-child(5n) {
    background: #5c7fb8;
}

@keyframes confettiFly {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translate(calc(-50% + var(--x)), -150px) rotate(var(--r));
        opacity: 0;
    }
}

@keyframes resultPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    45% {
        transform: scale(1.16);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes cryWobble {
    0% {
        transform: scale(0.5) rotate(-8deg);
        opacity: 0;
    }
    35% {
        transform: scale(1.12) rotate(6deg);
        opacity: 1;
    }
    70% {
        transform: rotate(-4deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 0;
    }
}

@keyframes trophyBounce {
    from {
        transform: translateY(0) rotate(-4deg);
    }
    to {
        transform: translateY(-4px) rotate(4deg);
    }
}

@media (max-width: 420px) {
    .app-header,
    .section-title {
        display: block;
    }

    .header-actions {
        justify-content: flex-start;
        margin-top: 12px;
    }

    .status-pill {
        display: inline-block;
        margin-top: 12px;
    }

    .header-actions .status-pill {
        margin-top: 0;
    }

    .actions,
    .segmented-actions,
    .host-settings,
    .account-grid,
    .profile-stats,
    .admin-create-grid,
    .admin-account-row,
    .custom-fields,
    .summary-grid,
    .rankings-grid {
        grid-template-columns: 1fr;
    }

    .admin-create-grid button,
    .admin-account-actions button {
        width: 100%;
    }

    .compact-select {
        width: 100%;
    }

    .turn-row,
    .turn-input-panel {
        grid-template-columns: 1fr;
    }

    .turn-words {
        justify-content: flex-start;
    }

    .turn-circle {
        width: min(100%, 320px);
    }

    .turn-avatar {
        width: 78px;
        min-height: 78px;
        padding: 6px;
    }

    .turn-avatar-icon {
        font-size: 22px;
    }

    .turn-avatar-name {
        max-width: 62px;
        font-size: 11px;
    }

    .round-table {
        width: min(100%, 360px);
    }

    .round-table.compact-grid {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .round-table-seat {
        width: 108px;
        min-height: 104px;
        padding: 8px;
    }

    .round-table.compact-grid .round-table-seat {
        width: auto;
    }

    .round-table-player strong {
        font-size: 11px;
    }

    .round-table-emoji {
        font-size: 18px;
    }

    .round-table-words .turn-word {
        padding: 3px 5px;
        font-size: 10px;
    }
}
