* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}
body {
    font-family: "Fredoka", sans-serif;
    color:#292b42;
}
button,input {
    font: inherit;
}
button {
    border:0;
    cursor:pointer;
}
button:disabled {
    cursor:default;
}
.app {
    width:100%;
    max-width:650px;
    min-height:calc(100vh - 60px);
    margin:auto;
    padding:max(30px,env(safe-area-inset-top)) 30px max(30px,env(safe-area-inset-bottom)) 30px;
}
.footer{
    text-align: center;
}
.screen {
    display:none;
}
.screen.active {
    display:flex;
    flex-direction:column;
}
.hidden {
    display:none!important;
}
.header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:25px;
}
.logo {
    font-size:25px;
    font-weight:500;
    letter-spacing:1px;
    text-transform: uppercase;
}
.logo span {
    color:#ff4f81;
}
.round-badge {
    background: white;
    padding: 8px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight:500;
    box-shadow: 0 5px 20px rgba(50, 50, 90, .08);
    color: black;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.start-screen {
    align-items:center;
    text-align:center;
    padding-bottom:30px;
}
.logo-big {
    font-size:clamp(42px,12vw,70px);
    font-weight:500;
    line-height:.9;
    letter-spacing:-4px;
    margin-bottom:25px;
}
.logo-big .pink {
    color:#ff4f81;
}
.logo-big .purple {
    color:#6c63ff;
}
.speech {
    font-size:75px;
    margin-bottom:0;
}
.start-description {
    color:#777b91;
    line-height:1.6;
    max-width:420px;
    margin:0 auto 28px;
}
.home-actions {
    width:100%;
    max-width:430px;
    display:grid;
    gap:10px;
}
.primary-button {
    width:100%;
    background:linear-gradient(135deg,#6c63ff,#8b72ff);
    color:white;
    padding:18px 25px;
    border-radius:18px;
    font-size:18px;
    font-weight:500;
    box-shadow:0 12px 30px rgba(108,99,255,.28);
    transition:transform .15s,opacity .15s;
}
.primary-button:active {
    transform:scale(.97);
}
.primary-button:disabled {
    opacity:.45;
    box-shadow:none;
}
.secondary-button {
    width:100%;
    background:#ffffff2e;
    color:white;
    padding:16px 20px;
    border-radius:16px;
    font-size:16px;
    font-weight:500;
    box-shadow:0 7px 25px rgba(50,50,90,.08);
    transition:transform .15s;
}
.secondary-button:active {
    transform:scale(.98);
}
.back-button {
    margin-top:10px;
}
.lobby-title {
    text-align:center;
    margin-bottom:25px;
}
.lobby-title .emoji {
    font-size:55px;
}
.lobby-title h1 {
    margin:10px 0 5px;
    font-size:32px;
    letter-spacing:1px;
}
.lobby-title p {
    margin:0;
    color:#81859a;
    line-height:1.5;
}
.name-input-wrapper {
    display:flex;
    gap:10px;
    margin-bottom:20px;
}
.name-input-wrapper input {
    flex:1;
    min-width:0;
    background:white;
    border:2px solid transparent;
    padding:16px 17px;
    border-radius:16px;
    outline:none;
    box-shadow:0 7px 25px rgba(50,50,90,.08);
}
.name-input-wrapper input:focus {
    border-color:var(--zeu-mint);
}
.add-button {
    width:55px;
    flex-shrink:0;
    border-radius:16px;
    background:#65d6c7;
    color:white;
    font-size:28px;
    font-weight:500;
}
.players,.connected-players,.score-list {
    display:flex;
    flex-direction:column;
    gap:10px;
}
.players {
    margin-bottom:25px;
}
.player-row {
    display:flex;
    align-items:center;
    gap:12px;
    background:var(--zeu-orange);
    padding:12px 14px;
    border-radius:18px;
    box-shadow:0 7px 25px rgba(50,50,90,.07);
    animation:slideIn .2s ease;
}
.player-row .avatar {
    width:43px;
    height:43px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background: var(--zeu-coral);
    color:white;
    font-weight:500;
    font-size:17px;
}
.player-row strong {
    flex:1;
    font-weight:500;
    color: var(--zeu-text);
}
.player-row button {
    width:32px;
    height:32px;
    border-radius:50%;
    background:#fff0f4;
    color:#ff4f81;
    font-size:20px;
    font-weight:500;
}
.empty-players,.connected-players-empty {
    text-align:center;
    padding:25px 15px;
    color:#9699aa;
}
.start-game-wrapper {
    margin-top:auto;
}
.connection-lobby,.join-content {
    width:100%;
}
.host-qr-card,.scanner-card,.connected-players-card,.connected-card {
    background:white;
    border-radius:30px;
    box-shadow:0 15px 45px rgba(50,50,90,.10);
}
.host-qr-card {
    padding: 25px 20px;
    text-align: center;
    margin-bottom: 18px;
    background: transparent !important;
    box-shadow: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.host-qr-title {
    color:#6c63ff;
    font-size:15px;
    font-weight:500;
    margin-bottom:15px;
}
.host-qr {
    margin: 0 auto 15px;
    padding: 14px;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(8, 4, 35, .28);
    background: white;
}
.host-qr canvas,.host-qr img {
    display:block;
    width:min(62vw,280px)!important;
    height:min(62vw,280px)!important;
}
.game-code {
    color:white;
    font-size:12px;
    font-weight:500;
    letter-spacing:1px;
}
.game-code strong {
    display:block;
    color:var(--zeu-mint) !important;
    font-size:20px;
    letter-spacing:2px;
    margin-top:4px;
}
.connected-players-card {
    padding:18px;
    margin-bottom:18px;
    background: white !important;
}
.connected-players-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px;
}
.connected-players-header > div:first-child {
    display:flex;
    align-items:center;
    gap:8px;
}
.connected-players-header strong {
    font-size:17px;
}
.connected-players-header span {
    background:#f1efff;
    color:#6c63ff;
    padding:5px 9px;
    border-radius:20px;
    font-size:11px;
    font-weight:500;
}
#connectionStatus {
    color:black;
    font-size:11px;
    font-weight:500;
}
.zeu-lobby-count {
    color:#6c63ff;
    margin-bottom:10px;
}
.zeu-connected-list {
    display:flex;
    flex-direction:column;
    gap:8px;
}
.connected-player {
    display:flex;
    align-items:center;
    gap:9px;
    padding:10px 11px;
    background:white !important;
    border-radius:16px;
    border: 1px solid #d7d8e0;
}
.connected-player .dot {
    width:9px;
    height:9px;
    flex-shrink:0;
    border-radius:50%;
    background:#d7d8e0;
}
.connected-player.connected .dot {
    background:#65d6c7;
    box-shadow:0 0 0 4px rgba(101,214,199,.12);
}
.connected-player strong {
    flex:1;
    font-size:15px;
}
.connected-player .state {
    font-size:10px;
    font-weight:500;
    color:white;
}
.connected-player.connected .state {
    color:#42b9a9;
}
.scanner-card {
    padding:5px;
    text-align:center;
    margin-bottom:18px;
    border-radius: 23px !important;
}
.scanner-icon {
    font-size:50px;
}
.scanner-card h2 {
    margin:8px 0 6px;
    font-size:24px;
}
.scanner-card p {
    color:#85899b;
    line-height:1.5;
    margin:0 0 18px;
}
.scanner {
    width:100%;
    max-width:400px;
    min-height:250px;
    margin:0 auto;
    border-radius:20px;
    overflow:hidden;
    background:#f7f7fb;
}
#joinScanner video {
    border-radius:18px;
}
.zeu-player-selection {
    margin-top:0;
}
.zeu-player-selection > div {
    background:white;
    border-radius:30px;
    padding:25px 20px;
    text-align:center;
    box-shadow:0 15px 45px rgba(50,50,90,.10);
}
.zeu-player-selection h2 {
    margin:8px 0 5px;
    font-size:30px;
    color: var(--zeu-orange) !important;
}
.zeu-player-selection p {
    margin:0 0 18px;
    color: var(--zeu-text);
}
.zeu-wait-icon {
    font-size:55px;
    margin-bottom:8px;
    color: var(--zeu-orange);
}
.zeu-player-buttons {
    display:flex;
    flex-direction:column;
    gap:10px;
}
.player-select-button {
    width:100%;
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px;
    background:#f8f8fc;
    color:var(--zeu-text);
    border-radius:19px;
    text-align:left;
    font-size:17px;
    transition:transform .12s,background .12s;
    border: 2px solid var(--zeu-orange);
}
.player-select-button:active {
    transform:scale(.97);
}
.player-select-button:disabled {
    opacity:.5;
}
.player-select-button strong {
    flex:1;
}
.player-select-button:after {
    content:'›';
    color:black;
    font-size:25px;
}
.zeu-multi-card {
    background:white;
    border-radius:30px;
    padding:30px 20px;
    text-align:center;
    box-shadow:0 15px 45px rgba(50,50,90,.10);
}
.zeu-player-name {
    color:#6c63ff;
    font-size:40px;
    font-weight:500;
    letter-spacing:1px;
    margin:5px 0 20px;
}
.connected-content {
    min-height:calc(100vh - 40px);
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding-bottom:40px;
}
.connected-icon {
    font-size:65px;
    margin-bottom:20px;
}
.connected-label {
    color:white;
    font-size:11px;
    font-weight:500;
    letter-spacing:1px;
}
.connected-content h1 {
    color:var(--zeu-orange);
    font-size:clamp(38px,11vw,58px);
    letter-spacing:1px;
    margin:6px 0 25px;
}
.connected-card {
    width:100%;
    padding:25px 20px;
}
.connected-card .waiting-animation {
    font-size:35px;
    margin-bottom:10px;
}
.connected-card strong {
    display:block;
    font-size:18px;
}
.connected-card p {
    color:black;
    font-size:14px;
    margin:7px 0 0;
}
.game-screen {
    padding-bottom:10px;
}
.turn-banner {
    background: transparent !important;
    border-radius: 20px;
    box-shadow: none !important;
    padding: 14px 20px;
    text-align: center;
    box-shadow: 0 7px 25px rgba(50, 50, 90, .08);
}
.turn-banner small {
    display:block;
    color:white;
    font-size:15px;
    font-weight:500;
    letter-spacing:1px;
    margin-bottom:4px;
}
.turn-banner strong {
    color:var(--zeu-mint);
    font-size:30px;
}
.timer {
    margin-bottom:20px;
}
.timer-circle {
    width:105px;
    height:105px;
    margin:auto;
    border-radius:50%;
    background:white;
    border:7px solid #65d6c7;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:39px;
    font-weight:500;
    box-shadow:0 10px 35px rgba(50,50,90,.1);
}
.timer.warning .timer-circle {
    border-color:#ffb84d;
}
.timer.danger .timer-circle {
    border-color:#ff4f81;
    animation:timerPulse .8s infinite;
}
.word-card {
    background:white;
    border-radius:30px;
    padding:28px 20px;
    text-align:center;
    box-shadow:0 15px 45px rgba(50,50,90,.12);
    margin-bottom:18px;
}
.category {
    display:inline-block;
    padding:7px 12px;
    border-radius:30px;
    background:#f1efff;
    color:#6c63ff;
    font-size:11px;
    font-weight:500;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:12px;
}
.word-label {
    font-size:11px;
    font-weight:500;
    color:black;
    text-transform:uppercase;
    letter-spacing:1px;
}
.main-word {
    font-size:clamp(38px,11vw,55px);
    font-weight:500;
    letter-spacing:1px;
    margin:5px 0 15px;
}
.forbidden-box {
    background:#fff0f4;
    border-radius:20px;
    padding:17px;
}
.forbidden-title {
    color:#ff4f81;
    font-size:11px;
    font-weight:500;
    text-transform:uppercase;
    letter-spacing:1px;
    margin-bottom:10px;
}
.forbidden-list {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
}
.forbidden-word {
    background:white;
    color:#ff4f81;
    border-radius:30px;
    padding:8px 13px;
    font-size:15px;
    font-weight:500;
}
.score-screen {
    text-align:center;
}
.trophy {
    font-size:75px;
    margin-top:30px;
}
.score-screen h1 {
    font-size:36px;
    margin:10px 0 25px;
    letter-spacing:1px;
}
.score-row {
    display:flex;
    align-items:center;
    background:white;
    border-radius:20px;
    padding:14px 16px;
    box-shadow:0 7px 25px rgba(50,50,90,.07);
}
.score-row span {
    width:35px;
    font-size:20px;
    font-weight:500;
}
.score-row strong {
    flex:1;
    text-align:left;
    font-weight:500;
}
.score-row b {
    font-size:22px;
    color:#6c63ff;
}
.modal {
    position:fixed;
    inset:0;
    z-index:100;
    background:rgba(34,37,60,.78);
    display:none;
    align-items:center;
    justify-content:center;
    padding:25px;
}
.modal.show {
    display:flex;
}
.modal-box {
    width:100%;
    max-width:430px;
    background:white;
    border-radius:32px;
    padding:35px 25px;
    text-align:center;
    animation:modalPop .2s ease;
}
.modal-emoji {
    font-size:70px;
}
.modal-box h2 {
    margin:0 0 8px;
    font-size:34px;
}
.modal-box p {
    color:#777b90;
    margin:0;
}
.winner-name {
    color:#ff4f81;
    font-weight:500;
}
.modal-word {
    margin-top:20px;
    padding:14px;
    background:#fff0f4;
    border-radius:15px;
    color:#ff4f81;
    font-weight:500;
}
.toast {
    position:fixed;
    left:50%;
    bottom:100px;
    transform:translate(-50%,30px);
    background:#292b42;
    color:white;
    padding:13px 20px;
    border-radius:30px;
    font-size:14px;
    font-weight:500;
    opacity:0;
    pointer-events:none;
    transition:opacity .2s,transform .2s;
    z-index:300;
    white-space:nowrap;
    max-width:calc(100vw - 40px);
    overflow:hidden;
    text-overflow:ellipsis;
}
.toast.show {
    opacity:1;
    transform:translate(-50%,0);
}
@keyframes timerPulse {
    0%,100%{
        transform:scale(1)
    }
    50%{
        transform:scale(1.06)
    }
}
@keyframes modalPop {
    from{
        transform:scale(.8);
        opacity:0
    }
    to{
        transform:scale(1);
        opacity:1
    }
}
@keyframes slideIn {
    from{
        transform:translateY(8px);
        opacity:0
    }
    to{
        transform:translateY(0);
        opacity:1
    }
}
@media (min-width:600px) {
    .app{
        padding-left:30px;
        padding-right:30px;
    }
}

.connected-player.connecting .connected-player-status {
    color: #8f91a2;
}

.connected-player.connecting .dot {
    background: #ffb84d;
    box-shadow: 0 0 0 4px rgba(255,184,77,.12);
    animation: connectionPulse 1.2s infinite;
}

.connected-player.connected .dot {
    background: #65d6c7;
    box-shadow: 0 0 0 4px rgba(101,214,199,.12);
}

.connected-player.connected .connected-player-status {
    color: #42b9a9;
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .35;
    }
}

#playerConnectionStatus {
    margin: 0 0 6px;
    font-weight:500;
}

#startGameButton.hidden {
    display: none;
}

.host-setup-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 35px rgba(50,50,90,.08);
    margin-bottom: 18px;
}

.setup-label {
    color: white;
    font-size: 10px;
    font-weight:500;
    letter-spacing: 1px;
    margin-bottom: 9px;
}

.host-setup-card .name-input-wrapper,
#addPlayersSetup .name-input-wrapper {
    margin-bottom: 0;
}

.selected-host {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgb(255 181 46);
    border-radius: 20px;
    padding: 12px 14px;
    margin-bottom: 25px;
}

.selected-host-avatar {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--zeu-purple);
    color: white;
    font-size: 18px;
    font-weight:500;
}

.selected-host div:nth-child(2) {
    flex: 1;
}

.selected-host small {
    display: block;
    color: white;
    font-size: 9px;
    font-weight:500;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.selected-host strong {
    font-size: 16px;
    color: var(--zeu-text);
    font-weight: 500;
}

.selected-host-check {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #65d6c7;
    color: white;
    font-weight:500;
}

.other-players-label {
    margin-top: 2px;
}

#addPlayersSetup .players {
    margin-top: 10px;
}

.uh-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 82px;
    margin: 0 0 10px;
    border: 0;
    border-radius: 24px;
    color: #fff;
    font-size: 26px;
    font-weight:500;
    box-shadow: 0 12px 30px rgba(255,23,68,.25);
    transition: transform .1s, box-shadow .15s;
}
.uh-button:active {
    transform: scale(.96);
}
.uh-button:disabled {
    opacity: .45;
}

.countdown {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: var(--zeu-mint);    
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.countdown.show {
    display: flex;
}
.countdown-number {
    font-size: clamp(110px,30vw,180px);
    line-height: .9;
    font-weight:500;
    letter-spacing: -8px;
}
.countdown-player {
    margin-top: 20px;
    font-size: 25px;
    font-weight: 850;
}

.connected-players-card {
    padding: 20px;
    border: 1px solid rgba(108,99,255,.06);
}
.connected-players-header {
    margin-bottom: 16px;
}
.connected-players-header > div:first-child {
    gap: 10px;
}
.connected-players-header strong {
    font-size: 18px;
}
.connected-players-header span {
    min-width: 48px;
    text-align: center;
    padding: 6px 10px;
}
#connectionStatus {
    padding: 7px 10px;
    border-radius: 20px;
    background: #f8f8fc;
}
.connected-players {
    gap: 9px;
}
.connected-player {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #f0eff8;
    border-radius: 19px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.connected-player.connected {
    background: white;
    border-color: #42b9a9;
}
.connected-player.connecting {
    background: #fffdf8;
    border-color: rgba(255,184,77,.18);
}
.connected-player-avatar {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: bold;
    color: white;
    border-radius: 50%;
    background: linear-gradient(135deg,#6c63ff,#8b72ff);
    box-shadow: 0 6px 14px rgba(108,99,255,.16);
}
.connected-player-name {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight:500;
}
.connected-player-name small {
    margin-top: 2px;
    color: #8d87df;
    font-size: 9px;
    font-weight:500;
    letter-spacing: 1px;
}
.connected-player-status {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(50,50,90,.05);
    white-space: nowrap;
}
.connected-player-status .dot {
    width: 8px;
    height: 8px;
}
.connected-players-empty {
    padding: 25px 15px;
    background: #f8f8fc;
    border-radius: 18px;
}

#waitingScreen .connected-content {
    padding: 20px;
}
#waitingScreen .connected-icon {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 15px 40px rgba(50,50,90,.10);
    font-size: 42px;
    margin-bottom: 22px;
}
#waitingScreen .connected-card {
    max-width: 430px;
    padding: 28px 22px;
    border: 1px solid rgba(108,99,255,.06);
}
#waitingScreen #playerConnectionStatus {
    display: inline-block;
    padding: 8px 12px;
    margin-top: 12px;
    border-radius: 20px;
    background: #f1efff;
    color: #6c63ff;
}
.game-screen .uh-button {
    width: 100%;
    min-height: 78px;
    margin: 4px 0 0;
    border-radius: 24px;
    font-size: 25px;
    letter-spacing: .2px;
    box-shadow: 0 12px 30px rgba(255,23,68,.28);
    border: 3px solid white;
}
.game-screen .uh-button:active {
    transform: scale(.97);
}
.game-screen .uh-button.uh-disabled {
    opacity: .45;
    cursor: not-allowed;
}

.countdown {
    padding: 30px;
}
.countdown::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    animation: countdownRing 2s ease-out infinite;
}
.countdown > div {
    position: relative;
    z-index: 1;
}
.countdown-number {
    text-shadow: 0 12px 35px rgba(0,0,0,.18);
    animation: countdownPop .8s ease;
}
.countdown-player {
    max-width: 90vw;
    padding: 10px 18px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    font-size: 25px;
}
@keyframes countdownRing {
    from{
        transform:scale(.6);
        opacity:.5
    }
    to{
        transform:scale(1.35);
        opacity:0
    }
}

@media (max-width: 420px) {
    .connected-player {
        padding: 10px;
    }
    .connected-player-status {
        padding: 5px 7px;
        font-size: 9px;
    }
    .connected-player-avatar {
        width: 41px;
        height: 41px;
    }
    .game-screen .uh-button {
        min-height: 74px;
    }
}

.score-screen {
    padding-bottom: 30px;
}
.score-subtitle {
    margin: -15px auto 22px;
    color: white;
    font-size: 14px;
    font-weight:500;
}
.score-row {
    transition: transform .15s;
}
#scoreList{
    margin-bottom: 25px;
}
.score-row.score-leader {
    background: rgb(255 181 46);
}
.score-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.score-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.score-actions .secondary-button {
    background: #ffffff2e;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}
.icon-button {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    color: #555a72;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(50,50,90,.08);
}
.icon-button:active {
    transform: scale(.94);
}
.icon-button.stop-button {
    color: white;
    background: var(--zeu-pink);
}
#waitingScreen .header,
#scoreScreen .header {
    width: 100%;
}

@media (max-width: 420px) {
    .icon-button {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }
    .top-actions {
        gap: 5px;
    }
}

.offline-banner {
    position: fixed;
    top: max(8px, env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    padding: 9px 15px;
    border-radius: 30px;
    background: #292b42;
    color: #fff;
    font-size: 12px;
    font-weight:500;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.home-actions {
    gap: 12px;
}
.home-choice {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    text-align: left;
    background: #fff;
    color: #292b42;
    box-shadow: 0 10px 30px rgba(50,50,90,.09);
    transition: transform .12s, box-shadow .12s;
}
.home-choice:active {
    transform: scale(.98);
}
.home-choice-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:17px;
    font-size:26px;
    background:#f1efff;
}
.home-choice-content {
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.home-choice-content strong {
    font-size:19px;
    font-weight:500;
    color: white;
}
.home-choice-content small {
    font-size:10px;
    font-weight:500;
    color:white;
    text-transform:uppercase;
}
.home-choice-content em {
    font-style:normal;
    font-size:12px;
    color:white;
    line-height:1.35;
}
.home-choice-arrow {
    font-size:30px;
    color:white;
}
.game-counter {
    margin-top:18px;
    color:#85899d;
    font-size:12px;
    font-weight:500;
}
.game-counter strong {
    color:#6c63ff;
}
.score-screen.round-ended .trophy {
    animation: winnerBounce .7s ease;
}
.score-screen.round-ended .score-row {
    animation: scoreIn .35s ease both;
}
.score-screen.round-ended .score-row:nth-child(2) {
    animation-delay:.06s;
}
.score-screen.round-ended .score-row:nth-child(3) {
    animation-delay:.12s;
}
.score-screen.round-ended .score-row:nth-child(4) {
    animation-delay:.18s;
}
.uh-button:not(.uh-disabled) {
    animation: uhReady 1.8s ease-in-out infinite;
}
@keyframes uhReady {
    0%,100% {
        box-shadow:0 12px 30px rgba(255,23,68,.28);
    }
    50% {
        box-shadow:0 16px 36px rgba(255,23,68,.42);
    }
}
@keyframes winnerBounce {
    0%{
        transform:scale(.75);
        opacity:.2
    }
    60%{
        transform:scale(1.12)
    }
    100%{
        transform:scale(1);
        opacity:1
    }
}
@keyframes scoreIn {
    from{
        transform:translateY(10px);
        opacity:0
    }
    to{
        transform:translateY(0);
        opacity:1
    }
}
@media (max-width:420px) {
    .home-choice {
        padding:14px;
    }
    .home-choice-icon{
        width:48px;
        height:48px;
        flex-basis:48px;
    }
    .home-choice-content strong{
        font-size:17px;
    }
}

.game-statistics {
    width:100%;
    max-width:520px;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:9px;
    margin:28px auto 0;
    padding-bottom:4px;
}
.stat-item {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-width:0;
    padding:11px 7px;
    border-radius:16px;
    background:#11153d1c;
    color:#777b91;
    font-size:11px;
    box-shadow:0 5px 20px rgba(50,50,90,.05);
}
.stat-icon {
    font-size:16px;
    flex-shrink:0;
}
.stat-item strong {
    color:#292b42;
    font-size:14px;
    font-weight:500;
}

:root {
    --zeu-pink: #ff2851;
    --zeu-coral: #ff8240;
    --zeu-orange: #ffb52e;
    --zeu-purple: #5b2b86;
    --zeu-purple-dark: #17113b;
    --zeu-navy: #11153d;
    --zeu-mint: #37c6b1;
    --zeu-text: #171735;
    --ad-height: 60px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:url('../img/game-background.png');
    background-size:cover;
    background-attachment: fixed;
}
body.qr-scanning:before{
    background: transparent !important;
}
body {
    position: relative;
    color: var(--zeu-text);
}
.app {
    position: relative;
    z-index: 1;
    margin-bottom: var(--ad-height);
}

.logo-big {
    text-shadow: -2px 3px 1px rgb(255 255 255);
}
.logo {
    color: var(--zeu-coral);
    text-shadow: -2px 2px 0px rgb(255 255 255);
}
.logo span {
    color: var(--zeu-pink);
}
.logo-big .pink {
    color: var(--zeu-orange);
}
.logo-big .purple {
    color: var(--zeu-pink);
}
.logo-big {
    text-transform: uppercase;
}
.speech {
    color: var(--zeu-pink);
}

.start-description, .lobby-title p, .small {
    color: white;
}
.start-screen .start-description {
    color: white;
}

.home-choice, .host-setup-card, .host-qr-card, .connected-players-card, .scanner-card, .connected-card, .zeu-player-selection > div, .zeu-multi-card, .word-card, .turn-banner, .score-row, .modal-box {
    box-shadow: 0 18px 50px rgba(8,4,35,.28);
}
.home-choice {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.home-choice.host-choice {
    background: var(--zeu-pink);
    color: #28152b;
}
.home-choice.player-choice {
    background: var(--zeu-purple);
    color: #fff;
}
.home-choice-content small {
    opacity: .78;
}
.home-choice-content em {
    opacity: .75;
}
.home-choice-icon, .host-choice .home-choice-icon {
    background: transparent;
    color: #fff;
}
.home-choice-arrow {
    background: transparent;
}

.primary-button {
    background: var(--zeu-pink);
    box-shadow: 0 12px 30px rgba(255,40,81,.28);
}
.secondary-button {
    background: #ffffff5c;
}
.add-button {
    background: var(--zeu-orange);
}
.name-input-wrapper input {
    background: rgba(255,255,255,.97);
}

.header {
    color: #fff;
}
.round-badge, .icon-button {
    background: var(--zeu-mint);
    color: white;
}
.icon-button.stop-button {
    color: white;
}

.lobby-title h1, .score-screen h1, .scanner-card h2 {
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.zeu-player-selection h2{
    color: var(--zeu-orange);
    text-shadow: none;
}
.lobby-title .emoji, .scanner-icon, .connected-icon, .trophy, .modal-emoji {
    color: var(--zeu-orange);
}

.host-setup-card, .host-qr-card, .connected-players-card, .scanner-card, .connected-card, .zeu-player-selection > div, .zeu-multi-card, .word-card, .turn-banner, .score-row, .modal-box {
    background: rgba(255,255,255,.94);
}
.selected-host {
    background: var(--zeu-mint);
}
.player-row-avatar, .connected-player-avatar {
    background: var(--zeu-orange);
}

.connected-host .connected-player-avatar {
    background: var(--zeu-purple);
}

.host-qr-title, .game-code strong, .zeu-player-name {
    color: var(--zeu-purple);
}
.category {
    background: rgba(91,43,134,.10);
    color: var(--zeu-purple);
}
.forbidden-box {
    background: rgba(255,40,81,.08);
}
.forbidden-title, .forbidden-word {
    color: var(--zeu-pink);
}
.forbidden-word {
    background: #fff;
}

.timer-circle {
    border-color: var(--zeu-orange);
}
.timer.warning .timer-circle {
    border-color: var(--zeu-coral);
}
.timer.danger .timer-circle {
    border-color: var(--zeu-pink);
}
.turn-banner strong {
    color: var(--zeu-pink);
}

.uh-button {
    background: var(--zeu-pink);
    box-shadow: 0 14px 34px rgba(255,40,81,.34);
}
.game-statistics {
    background: transparent;
    border-radius: 24px;
    padding: 10px;
}
.stat-item {
    background: #ffffff1f;
    color: white;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
}
.stat-item strong {
    color: #fff;
}
.stat-item:nth-child(1) .stat-icon {
    color: green;
}
.stat-item:nth-child(2) .stat-icon {
    color: var(--zeu-purple);
}
.stat-item:nth-child(4) .stat-icon {
    color: var(--zeu-pink);
}
.stat-item:nth-child(3) .stat-icon {
    color: var(--zeu-orange);
}

.fa-solid, .fa-regular {
    line-height: 1;
}
.speech i {
    font-size: 1em;
}
.home-choice-icon i {
    font-size: 28px;
}
.game-statistics .stat-icon i {
    font-size: 17px;
}
.icon-button i {
    font-size: 17px;
}
.uh-button {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}
.uh-button i {
    font-size: 22px;
}
.connected-player-status i, #connectionStatus i, #playerConnectionStatus i {
    margin-right: 5px;
}

@media (max-width: 599px) {
    body {
        background-attachment: scroll;
    }
    .logo-big {
        letter-spacing: -2.5px;
    }
    .game-statistics {
        gap: 8px;
    }
}
/* V8 countdown content */
.countdown-panel {
    width: min(92vw, 430px);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}
.countdown-label {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: .8;
}
.countdown-category {
    display: inline-flex;
    margin-top: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.countdown-word {
    margin-top: 8px;
    font-size: clamp(30px, 9vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
}
.countdown-forbidden-title {
    margin-top: 14px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    opacity: .75;
}
.countdown-forbidden {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 7px;
}
.countdown-forbidden span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 13px;
    font-weight: 800;
}

#ads {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 50px;
    height: var(--ad-height);
    background: black;
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: sans-serif;
}
