[hidden] {
    display: none !important;
}

html,
body {
    height: 100%;
}

body {
    overflow: hidden;
}

.app {
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gtn-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) clamp(360px, 34vw, 520px);
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.gtn-grid.chat-on {
    grid-template-columns: minmax(0, 1fr) clamp(340px, 26vw, 420px) clamp(360px, 34vw, 520px);
}

@media (max-width: 980px) {

    .gtn-grid,
    .gtn-grid.chat-on {
        grid-template-columns: 1fr;
    }
}

.gtn-left {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gtn-leftHead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.gtn-leftHeadTxt {
    min-width: 0;
}

.gtn-chatToggle {
    height: 34px;
    line-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    align-self: flex-start;
}

.gtn-label {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e5e5e5;
    font-weight: 900;
    opacity: 0.9;
}

.gtn-title {
    font-weight: 950;
    font-size: clamp(22px, 3vw, 30px);
    margin-top: 6px;
    line-height: 1.1;
}

.gtn-sub {
    margin-top: 6px;
}

.gtn-controlCard {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: color-mix(in oklab, var(--panel-2) 88%, black 12%);
    box-shadow: var(--shadow-1);
}

.gtn-controlTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel) 72%, black 28%);
}

.gtn-controlKicker {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 950;
    color: rgba(238, 247, 251, 0.92);
}

.gtn-controlMeta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.gtn-chip {
    height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel-2) 86%, black 14%);
    font-weight: 850;
    font-size: 12px;
    color: rgba(238, 247, 251, 0.9);
}

.gtn-chipMuted {
    opacity: 0.75;
    font-weight: 800;
}

.gtn-miniBtn {
    height: 34px;
    line-height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 900;
}

.gtn-controlBody {
    padding: 12px;
    display: grid;
    gap: 12px;
}

.gtn-secretBlock {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel-2) 90%, black 10%);
}

.gtn-secretHdr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.gtn-secretTitle {
    font-weight: 950;
    letter-spacing: 0.01em;
    font-size: 14px;
    color: #fff;
}

.gtn-secretSub {
    font-size: 12px;
}

.gtn-secretHdrBtns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gtn-secretMain {
    display: grid;
    gap: 10px;
}

.gtn-secretInputRow {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.gtn-secretInputWrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel) 68%, black 32%);
}

.gtn-secretIcon {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel-2) 86%, black 14%);
    opacity: 0.9;
}

#secretInput {
    width: 100%;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--text);
    outline: none;
    font-weight: 850;
    letter-spacing: 0.01em;
    font-size: 14px;
}

#secretInput::placeholder {
    color: color-mix(in oklab, var(--muted) 92%, #fff 8%);
}

.gtn-setBtn {
    height: 42px;
    border-radius: 12px;
    padding: 0 14px;
    font-weight: 950;
}

.gtn-secretSetRow {
    display: grid;
    gap: 8px;
}

.gtn-secretDisplay {
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel) 68%, black 32%);
}

.gtn-secretDots {
    font-size: 16px;
    letter-spacing: 0.18em;
    font-weight: 950;
    opacity: 0.95;
}

.gtn-secretValue {
    font-size: 16px;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.gtn-secretHint {
    font-size: 12px;
    text-align: left;
    opacity: 0.85;
}

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

@media (max-width: 520px) {
    .gtn-actions {
        grid-template-columns: 1fr;
    }
}

.gtn-actionBtn {
    height: 42px;
    border-radius: 12px;
    font-weight: 950;
}

.gtn-advanced {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: color-mix(in oklab, var(--panel-2) 90%, black 10%);
}

.gtn-advToggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border: 0;
    cursor: pointer;
    color: rgba(238, 247, 251, 0.92);
    background: color-mix(in oklab, var(--panel) 72%, black 28%);
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 12px;
}

.gtn-advChevron {
    font-size: 14px;
    opacity: 0.85;
}

.gtn-advBody {
    padding: 12px;
    display: grid;
    gap: 12px;
}

.gtn-limitRow {
    display: grid;
    gap: 8px;
}

.gtn-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-weight: 850;
    color: rgba(238, 247, 251, 0.9);
}

.gtn-check input {
    width: 18px;
    height: 18px;
}

.gtn-limitInputs input[type="number"] {
    width: 100%;
    max-width: 280px;
}

.gtn-advHint {
    font-size: 12px;
    opacity: 0.8;
}

.gtn-card {
    background: color-mix(in oklab, var(--panel-2) 88%, black 12%);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.gtn-winnerCard {
    border: 1px solid rgba(100, 173, 203, 0.28);
}

.gtn-winnerHdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 0;
}

.gtn-winnerTag {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 950;
    color: rgba(238, 247, 251, 0.92);
}

.gtn-winnerLine {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 6px;
}

.gtn-avatarLg {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 2px solid var(--line);
    background: var(--panel);
    object-fit: cover;
    flex-shrink: 0;
}

.gtn-winnerName {
    margin: 0;
    font-size: clamp(22px, 4vw, 36px);
    line-height: 1.1;
}

#winnerGuess {
    padding: 0 12px 8px;
}

.gtn-logHdr {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
}

.gtn-winnerLog {
    padding: 0 12px 12px;
    overflow: auto;
    max-height: 260px;
}

.gtn-feedPanel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.gtn-feedHdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    flex: 0 0 auto;
}

.gtn-feedList {
    padding: 12px 14px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    max-height: none !important;
}

.gtn-midChat {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.gtn-midHdr {
    padding-bottom: 10px;
}

.gtn-midBody {
    flex: 1;
    min-height: 0;
    display: grid;
}

.gtn-chatFrame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.gtn-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    line-height: 1.25;
}

.gtn-avatarSm {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    object-fit: cover;
    flex-shrink: 0;
}

.gtn-msg-badges {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    line-height: 1;
}

.gtn-msg-badges img,
.chat-badge {
    display: block;
    height: 18px;
    width: auto;
}

.gtn-msg-user {
    font-weight: 850;
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    line-height: 1.25;
}

.gtn-msg-body {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    font-weight: 650;
    text-align: left;
    display: inline-flex;
    align-items: center;
    line-height: 1.25;
}

.gtn-msg-ts {
    flex-shrink: 0;
    margin-left: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.gtn-winnerLog .gtn-msg,
.gtn-feedList .gtn-msg {
    align-items: center;
}

.gtn-feedList .gtn-avatarSm {
    display: none !important;
}

.gtn-feedList .gtn-msg {
    gap: 8px;
}

.gtn-feedList .gtn-msg-user {
    max-width: 170px;
}

.gtn-winnerLog .gtn-msg-user {
    max-width: 190px;
}

.gtn-msg-body b {
    margin-left: 6px;
    display: inline-block;
}