/* ==========================================================================
   TalentMatch — Game Kit
   Camada visual das salas, vagas, resultados e telão.
   Paleta oficial: esmeralda, petróleo, grafite, dourado e neutros claros.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Marca */
    --gk-primary: #087F5B;
    --gk-primary-dark: #065F46;
    --gk-primary-soft: #E4F2EC;
    --gk-secondary: #164E63;
    --gk-secondary-soft: #E4EEF2;
    --gk-accent: #C69B52;
    --gk-accent-soft: #F6EEDD;

    /* Base */
    --gk-ink: #17212B;
    --gk-ink-soft: #3D4B57;
    --gk-muted: #64748B;
    --gk-line: #DFE7E3;
    --gk-surface: #FFFFFF;
    --gk-surface-2: #EEF3F1;
    --gk-bg: #F7F9F8;

    /* Estado */
    --gk-success: #15803D;
    --gk-success-soft: #E3F4E9;
    --gk-warning: #D97706;
    --gk-warning-soft: #FBEEDB;
    --gk-danger: #DC2626;
    --gk-danger-soft: #FBE5E5;

    /* Gradientes estratégicos */
    --gk-gradient: linear-gradient(120deg, #065F46, #087F5B, #164E63);
    --gk-gradient-dark: linear-gradient(135deg, #17212B, #203B3C, #065F46);
    --gk-gradient-soft: linear-gradient(135deg, #EEF3F1, #E4F2EC);

    /* Sombras e raios */
    --gk-shadow-xs: 0 1px 2px rgba(23, 33, 43, .05);
    --gk-shadow-sm: 0 2px 8px rgba(23, 33, 43, .06);
    --gk-shadow: 0 10px 30px rgba(23, 33, 43, .08);
    --gk-shadow-lg: 0 20px 48px rgba(23, 33, 43, .12);
    --gk-radius-sm: 10px;
    --gk-radius: 16px;
    --gk-radius-lg: 22px;
    --gk-radius-pill: 999px;

    /* Tipografia e movimento */
    --gk-font-heading: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --gk-font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --gk-transition: 240ms cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Base e tipografia
   -------------------------------------------------------------------------- */
body {
    background-color: var(--gk-bg);
}

h1, h2, h3, h4 {
    font-family: var(--gk-font-heading);
    letter-spacing: -.02em;
}

.gk-title-xl {
    font-size: clamp(1.8rem, 4.2vw, 2.9rem);
    font-weight: 800;
    line-height: 1.08;
    margin: 0;
}

.gk-title-lg {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.gk-title-md {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.gk-subtitle {
    font-family: var(--gk-font-heading);
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--gk-ink);
    margin: 0 0 .75rem;
}

.gk-lead {
    font-size: 1.04rem;
    line-height: 1.65;
    color: var(--gk-ink-soft);
    margin: 0;
}

.gk-text-muted { color: var(--gk-muted); }
.gk-text-white { color: #fff; }

.gk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gk-primary-dark);
}

.gk-mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }

/* --------------------------------------------------------------------------
   3. Botões
   -------------------------------------------------------------------------- */
.gk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .82rem 1.3rem;
    border: 1px solid transparent;
    border-radius: var(--gk-radius-sm);
    background: var(--gk-surface);
    color: var(--gk-ink);
    font-family: var(--gk-font-body);
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--gk-shadow-xs);
    transition: transform var(--gk-transition), box-shadow var(--gk-transition),
                background-color var(--gk-transition), border-color var(--gk-transition),
                color var(--gk-transition);
    white-space: nowrap;
}

.gk-btn:hover { transform: translateY(-1px); box-shadow: var(--gk-shadow-sm); }
.gk-btn:active { transform: translateY(0); }

.gk-btn:focus-visible {
    outline: 3px solid rgba(8, 127, 91, .32);
    outline-offset: 2px;
}

.gk-btn[disabled],
.gk-btn.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.gk-btn--primary { background: var(--gk-gradient); color: #fff; box-shadow: var(--gk-shadow-sm); }
.gk-btn--primary:hover { color: #fff; box-shadow: var(--gk-shadow); }
.gk-btn--secondary { background: var(--gk-surface); border-color: var(--gk-line); color: var(--gk-ink); }
.gk-btn--secondary:hover { border-color: var(--gk-primary); color: var(--gk-primary-dark); background: var(--gk-primary-soft); }
.gk-btn--dark { background: var(--gk-ink); color: #fff; }
.gk-btn--dark:hover { background: #203B3C; color: #fff; }
.gk-btn--gold { background: var(--gk-accent); color: var(--gk-ink); }
.gk-btn--gold:hover { background: #B58A42; color: var(--gk-ink); }
.gk-btn--success { background: var(--gk-success); color: #fff; }
.gk-btn--danger,
.gk-btn--red { background: var(--gk-danger); color: #fff; }
.gk-btn--danger:hover,
.gk-btn--red:hover { background: #B91C1C; color: #fff; }
.gk-btn--blue { background: var(--gk-secondary); color: #fff; }
.gk-btn--green { background: var(--gk-success); color: #fff; }
.gk-btn--yellow { background: var(--gk-warning-soft); color: #8A5A00; border-color: #F2DCB8; }
.gk-btn--purple { background: var(--gk-secondary); color: #fff; }
.gk-btn--white { background: #fff; color: var(--gk-ink); border-color: var(--gk-line); }
.gk-btn--ghost { background: transparent; color: var(--gk-muted); box-shadow: none; }
.gk-btn--ghost:hover { background: var(--gk-surface-2); color: var(--gk-ink); box-shadow: none; }

.gk-btn--lg { padding: 1rem 1.7rem; font-size: 1.04rem; border-radius: 12px; }
.gk-btn--sm { padding: .5rem .85rem; font-size: .84rem; border-radius: 9px; }
.gk-btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   4. Cartões
   -------------------------------------------------------------------------- */
.gk-card {
    background: var(--gk-surface);
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius);
    box-shadow: var(--gk-shadow-xs);
    padding: 1.4rem;
    position: relative;
}

.gk-card--flat { box-shadow: none; }
.gk-card--pad-lg { padding: clamp(1.4rem, 3vw, 2rem); }

.gk-card--hover { transition: transform var(--gk-transition), box-shadow var(--gk-transition), border-color var(--gk-transition); }
.gk-card--hover:hover { transform: translateY(-3px); box-shadow: var(--gk-shadow); border-color: #CFE0D8; }

.gk-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.gk-card__title {
    font-size: 1.16rem;
    font-weight: 800;
    margin: 0;
}

.gk-card__subtitle {
    color: var(--gk-muted);
    font-size: .9rem;
    margin: .25rem 0 0;
}

.gk-step__num {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    font-family: var(--gk-font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: var(--gk-shadow-xs);
}

.gk-step__num .tm-icon { width: 23px; height: 23px; }

.gk-stat__label {
    display: block;
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--gk-muted);
    font-weight: 700;
    margin-top: .75rem;
}

.gk-stat__value {
    display: block;
    font-family: var(--gk-font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--gk-ink);
}

/* --------------------------------------------------------------------------
   5. Palco e banners
   -------------------------------------------------------------------------- */
.gk-stage {
    position: relative;
    background: var(--gk-gradient-dark);
    border-radius: var(--gk-radius-lg);
    color: #fff;
    padding: clamp(1.75rem, 4vw, 3rem);
    overflow: hidden;
}

.gk-stage::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -100px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 155, 82, .26), transparent 66%);
    pointer-events: none;
}

.gk-stage::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -80px;
    bottom: -100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 127, 91, .35), transparent 68%);
    pointer-events: none;
}

.gk-stage > * { position: relative; z-index: 1; }
.gk-stage h1, .gk-stage h2, .gk-stage h3 { color: #fff; }

.gk-banner {
    display: flex;
    align-items: center;
    gap: .85rem;
    border-radius: var(--gk-radius);
    padding: 1rem 1.15rem;
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    background: var(--gk-secondary);
    border: 1px solid rgba(255, 255, 255, .12);
}

.gk-banner--blue { background: var(--gk-secondary); }
.gk-banner--green { background: var(--gk-gradient); }
.gk-banner--yellow { background: var(--gk-accent-soft); color: #6B4E1E; border-color: #EADFC6; }
.gk-banner--red { background: var(--gk-danger); }
.gk-banner--ink { background: var(--gk-gradient-dark); }

.gk-banner__icon {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .18);
}

.gk-banner--yellow .gk-banner__icon { background: rgba(198, 155, 82, .2); }
.gk-banner__icon .tm-icon { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   6. Código da sala e QR Code
   -------------------------------------------------------------------------- */
.gk-room-code {
    font-family: var(--gk-font-heading);
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 3.3rem);
    letter-spacing: .18em;
    line-height: 1;
    color: var(--gk-ink);
    margin: 0;
}

.gk-room-code--light { color: #fff; }

.gk-qr {
    width: min(100%, 250px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    padding: 12px;
    background: #fff;
    border-radius: var(--gk-radius);
    box-shadow: var(--gk-shadow);
    display: grid;
    place-items: center;
    border: 1px solid var(--gk-line);
}

.gk-qr img, .gk-qr canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
}

.gk-qr--lg { width: min(100%, 320px); }

.gk-link-box {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--gk-surface-2);
    border: 1px dashed var(--gk-line);
    border-radius: var(--gk-radius-sm);
    padding: .65rem .8rem;
    font-size: .88rem;
    word-break: break-all;
}

.gk-link-box code {
    flex: 1;
    color: var(--gk-secondary);
    font-size: .82rem;
}

.gk-count {
    display: flex;
    align-items: baseline;
    gap: .4rem;
}

.gk-count__value {
    font-family: var(--gk-font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gk-ink);
}

.gk-count__label {
    font-size: .88rem;
    color: var(--gk-muted);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Avatares e tiles de participantes
   -------------------------------------------------------------------------- */
.gk-avatar {
    --gk-avatar-size: 44px;
    width: var(--gk-avatar-size);
    height: var(--gk-avatar-size);
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gk-avatar-bg, var(--gk-primary-soft));
    font-size: calc(var(--gk-avatar-size) * .56);
    line-height: 1;
    border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: var(--gk-shadow-sm);
}

.gk-avatar--sm { --gk-avatar-size: 32px; }
.gk-avatar--md { --gk-avatar-size: 44px; }
.gk-avatar--lg { --gk-avatar-size: 64px; }
.gk-avatar--xl { --gk-avatar-size: 92px; }

.gk-players {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: .75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gk-tile {
    --gk-tile-bg: var(--gk-primary);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 118px;
    padding: 1rem .7rem;
    border-radius: 15px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(23, 33, 43, .16)),
        var(--gk-tile-bg);
    color: #fff;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: var(--gk-shadow-sm);
    animation: gk-pop 300ms cubic-bezier(.2, .7, .3, 1) both;
}

.gk-tile__name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    font-size: .92rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.gk-tile__status,
.gk-tile__me {
    font-size: .64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    padding: .16rem .5rem;
    border-radius: var(--gk-radius-pill);
    background: rgba(255, 255, 255, .22);
}

.gk-tile__me { background: rgba(255, 255, 255, .92); color: var(--gk-ink); }

.gk-tile__avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    font-size: 1.55rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
}

.gk-tile--new { animation: gk-pop 380ms cubic-bezier(.2, .7, .3, 1) both, gk-wiggle 600ms 380ms ease-in-out; }

.gk-tile--me {
    box-shadow: var(--gk-shadow-sm), 0 0 0 2px #fff, 0 0 0 4px var(--gk-accent);
}

.gk-tile--empty {
    background: var(--gk-surface-2);
    color: var(--gk-muted);
    box-shadow: none;
    border: 1px dashed var(--gk-line);
    min-height: 150px;
}

.gk-tile--empty .gk-empty__icon { margin-bottom: .25rem; }

.gk-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gk-muted);
}

.gk-empty__icon {
    display: inline-grid;
    place-items: center;
    color: var(--gk-muted);
    margin-bottom: .4rem;
    animation: gk-float 3s ease-in-out infinite;
}

.gk-empty__icon svg { width: 30px; height: 30px; }

/* Seletor de avatar */
.gk-avatar-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    gap: .5rem;
}

.gk-avatar-option {
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--gk-surface-2);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform var(--gk-transition), border-color var(--gk-transition),
                background-color var(--gk-transition);
}

.gk-avatar-option:hover { transform: translateY(-2px); background: #E6F0EB; }
.gk-avatar-option.is-selected {
    border-color: var(--gk-primary);
    background: var(--gk-primary-soft);
    transform: scale(1.05);
}

/* Seletor de cor */
.gk-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.gk-color-option {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--gk-color, var(--gk-primary));
    box-shadow: 0 0 0 1px var(--gk-line);
    cursor: pointer;
    transition: transform var(--gk-transition), box-shadow var(--gk-transition);
}

.gk-color-option:hover { transform: scale(1.08); }
.gk-color-option.is-selected {
    box-shadow: 0 0 0 2px var(--gk-accent);
    transform: scale(1.12);
}

/* --------------------------------------------------------------------------
   8. Layout do lobby
   -------------------------------------------------------------------------- */
.gk-lobby {
    display: grid;
    grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.gk-lobby__side {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    position: sticky;
    top: 88px;
}

.gk-lobby__main {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-width: 0;
}

.gk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.gk-toolbar__actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}

.gk-split-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

/* --------------------------------------------------------------------------
   9. Fases da partida
   -------------------------------------------------------------------------- */
.gk-phases {
    display: flex;
    align-items: center;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: .7rem;
    background: var(--gk-surface);
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius);
    box-shadow: var(--gk-shadow-xs);
    overflow-x: auto;
}

.gk-phase {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .6rem;
    border-radius: var(--gk-radius-sm);
    color: var(--gk-muted);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.gk-phase__dot {
    width: 28px;
    height: 28px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gk-surface-2);
    color: var(--gk-muted);
    border: 1px solid var(--gk-line);
}

.gk-phase__dot .tm-icon { width: 15px; height: 15px; }

.gk-phase.is-active {
    background: var(--gk-primary-soft);
    color: var(--gk-primary-dark);
}

.gk-phase.is-active .gk-phase__dot {
    background: var(--gk-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 0 4px rgba(8, 127, 91, .12);
}

.gk-phase.is-done { color: var(--gk-success); }
.gk-phase.is-done .gk-phase__dot {
    background: var(--gk-success-soft);
    color: var(--gk-success);
    border-color: #BEE4CC;
}

.gk-phase__icon {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--gk-primary-soft);
    color: var(--gk-primary-dark);
}

/* --------------------------------------------------------------------------
   10. Formulários
   -------------------------------------------------------------------------- */
.gk-field { margin-bottom: 1rem; }

.gk-label {
    display: block;
    margin-bottom: .4rem;
    font-size: .84rem;
    font-weight: 700;
    color: var(--gk-ink);
}

.gk-input,
.gk-select,
.gk-textarea {
    width: 100%;
    padding: .78rem .9rem;
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius-sm);
    background: var(--gk-surface);
    color: var(--gk-ink);
    font-family: var(--gk-font-body);
    font-size: .95rem;
    transition: border-color var(--gk-transition), box-shadow var(--gk-transition);
}

.gk-textarea { min-height: 100px; resize: vertical; }

.gk-input:focus,
.gk-select:focus,
.gk-textarea:focus {
    outline: none;
    border-color: var(--gk-primary);
    box-shadow: 0 0 0 3px rgba(8, 127, 91, .14);
}

.gk-input::placeholder, .gk-textarea::placeholder { color: #9AA7B4; }

.gk-input.is-invalid, .gk-select.is-invalid, .gk-textarea.is-invalid {
    border-color: var(--gk-danger);
}

.gk-hint { font-size: .8rem; color: var(--gk-muted); margin-top: .3rem; }

.gk-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px auto;
    gap: .55rem;
    align-items: center;
    margin-bottom: .55rem;
}

.gk-row--stack {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: .9rem;
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius-sm);
    margin-bottom: .7rem;
    background: var(--gk-bg);
}

.gk-row--stack .gk-input { background: #fff; }

.gk-divider {
    height: 1px;
    background: var(--gk-line);
    border: 0;
    margin: 1.25rem 0;
}

.gk-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 1.25rem -1.5rem -1.5rem;
    padding: .85rem 1.5rem calc(.85rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--gk-line);
}

/* --------------------------------------------------------------------------
   11. Badges, chips e habilidades
   -------------------------------------------------------------------------- */
.gk-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border-radius: var(--gk-radius-pill);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.2;
    background: var(--gk-surface-2);
    color: var(--gk-ink-soft);
    border: 1px solid transparent;
    white-space: nowrap;
}

.gk-badge--primary { background: var(--gk-primary-soft); color: var(--gk-primary-dark); }
.gk-badge--secondary { background: var(--gk-secondary-soft); color: var(--gk-secondary); }
.gk-badge--gold { background: var(--gk-accent-soft); color: #7A5A24; }
.gk-badge--success,
.gk-badge--green { background: var(--gk-success-soft); color: var(--gk-success); }
.gk-badge--warning,
.gk-badge--yellow { background: var(--gk-warning-soft); color: #8A5A00; }
.gk-badge--danger,
.gk-badge--red { background: var(--gk-danger-soft); color: #B1122E; }
.gk-badge--blue { background: var(--gk-secondary-soft); color: var(--gk-secondary); }
.gk-badge--ink { background: var(--gk-ink); color: #fff; }
.gk-badge--white { background: rgba(255, 255, 255, .92); color: var(--gk-ink); }

.gk-badge .tm-icon { width: 14px; height: 14px; }

.gk-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .33rem .75rem;
    border-radius: var(--gk-radius-pill);
    background: var(--gk-surface-2);
    color: var(--gk-ink-soft);
    font-size: .82rem;
    font-weight: 600;
    border: 1px solid var(--gk-line);
}

.gk-chip .tm-icon { width: 14px; height: 14px; color: var(--gk-muted); }

.gk-chip--muted {
    background: transparent;
    border-style: dashed;
    color: var(--gk-muted);
}

.gk-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.gk-skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.gk-skill-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .72rem;
    border-radius: var(--gk-radius-pill);
    background: var(--gk-primary-soft);
    color: var(--gk-primary-dark);
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .84rem;
}

.gk-skill-chip .tm-icon { width: 13px; height: 13px; }
.gk-skill-chip--required { background: var(--gk-primary-soft); color: var(--gk-primary-dark); border-color: #C8E5D8; }
.gk-skill-chip--desirable { background: var(--gk-secondary-soft); color: var(--gk-secondary); border-color: #CFE0E6; }
.gk-skill-chip--missing { background: var(--gk-danger-soft); color: #B1122E; border-color: #F3C3CD; }
.gk-skill-chip--related { background: var(--gk-accent-soft); color: #6B4E1E; border-color: #EADFC6; }
.gk-skill-chip--benefit { background: var(--gk-accent-soft); color: #7A5A24; border-color: #EADFC6; }

.gk-skill-chip .gk-level {
    background: var(--gk-primary);
    color: #fff;
    padding: .08rem .42rem;
    border-radius: var(--gk-radius-pill);
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gk-mini-label {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gk-muted);
    margin: 0 0 .5rem;
}

.gk-mini-label .tm-icon { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   12. Progresso e alertas
   -------------------------------------------------------------------------- */
.gk-progress {
    height: 12px;
    border-radius: var(--gk-radius-pill);
    background: var(--gk-surface-2);
    overflow: hidden;
    border: 1px solid var(--gk-line);
}

.gk-progress--sm { height: 7px; }

.gk-progress__bar {
    height: 100%;
    border-radius: var(--gk-radius-pill);
    background: var(--gk-gradient);
    transition: width 420ms cubic-bezier(.2, .7, .3, 1);
}

.gk-progress__bar--indeterminate {
    width: 38%;
    animation: gk-indeterminate 1.5s ease-in-out infinite;
}

.gk-alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .85rem 1rem;
    border-radius: var(--gk-radius-sm);
    background: var(--gk-surface-2);
    border: 1px solid var(--gk-line);
    color: var(--gk-ink-soft);
    font-size: .92rem;
    line-height: 1.5;
}

.gk-alert .tm-icon { flex: none; margin-top: .1rem; }
.gk-alert--info { background: var(--gk-secondary-soft); border-color: #CFE0E6; color: var(--gk-secondary); }
.gk-alert--success { background: var(--gk-success-soft); border-color: #C7E8D3; color: var(--gk-success); }
.gk-alert--warning { background: var(--gk-warning-soft); border-color: #F2DCB8; color: #8A5A00; }
.gk-alert--danger { background: var(--gk-danger-soft); border-color: #F3CCCC; color: var(--gk-danger); }

.gk-generating {
    width: 74px;
    height: 74px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gk-primary-soft);
    color: var(--gk-primary-dark);
    animation: gk-breathe 2.4s ease-in-out infinite;
}

.gk-generating .tm-icon { width: 32px; height: 32px; }

/* --------------------------------------------------------------------------
   13. Vaga em apresentação (admin e participante)
   -------------------------------------------------------------------------- */
.gk-job-card { border-left: 3px solid var(--gk-accent); }

.gk-job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    padding-top: .25rem;
}

.gk-response-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.6fr);
    gap: .7rem;
}

.gk-response-stat {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .8rem .9rem;
    border-radius: var(--gk-radius-sm);
    background: var(--gk-surface-2);
    border: 1px solid var(--gk-line);
}

.gk-response-stat--wide { justify-content: center; }

.gk-response-stat__value {
    font-family: var(--gk-font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gk-ink);
}

.gk-response-stat__label {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .73rem;
    font-weight: 700;
    color: var(--gk-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Página do participante */
.gk-job-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gk-job-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, .85fr);
    background: var(--gk-surface);
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius-lg);
    box-shadow: var(--gk-shadow);
    overflow: hidden;
}

.gk-job-stage__body { padding: clamp(1.4rem, 3vw, 2.2rem); min-width: 0; }

.gk-job-company {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--gk-ink-soft);
    font-size: .95rem;
    margin: 0;
}

.gk-job-company .tm-icon { color: var(--gk-muted); }
.gk-job-company strong { color: var(--gk-ink); }

.gk-job-description { margin: 1.15rem 0; }
.gk-job-stage .gk-response-summary { margin-top: .25rem; }

.gk-response-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: var(--gk-gradient-soft);
    border-left: 1px solid var(--gk-line);
}

.gk-response-panel__title {
    font-family: var(--gk-font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin: .2rem 0 .35rem;
}

.gk-response-panel__hint {
    font-size: .88rem;
    color: var(--gk-muted);
    margin: 0 0 .9rem;
}

.gk-response-panel__legal {
    font-size: .74rem;
    line-height: 1.5;
    color: var(--gk-muted);
    margin: 1rem 0 0;
}

.gk-response-form {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.gk-answer-btn {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: .8rem;
    align-items: center;
    text-align: left;
    padding: .85rem .95rem;
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius);
    background: var(--gk-surface);
    color: var(--gk-ink);
    cursor: pointer;
    font-family: var(--gk-font-body);
    transition: transform var(--gk-transition), border-color var(--gk-transition),
                box-shadow var(--gk-transition), background-color var(--gk-transition);
}

.gk-answer-btn:hover { transform: translateY(-1px); box-shadow: var(--gk-shadow-sm); }

.gk-answer-btn__icon {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--gk-primary-soft);
    color: var(--gk-primary-dark);
}

.gk-answer-btn__label { font-weight: 800; font-size: .98rem; line-height: 1.2; }
.gk-answer-btn__hint { font-size: .76rem; color: var(--gk-muted); line-height: 1.35; }

.gk-answer-btn--apply:hover { border-color: var(--gk-primary); background: #F3FAF7; }
.gk-answer-btn--skip .gk-answer-btn__icon { background: var(--gk-surface-2); color: var(--gk-muted); }
.gk-answer-btn--skip:hover { border-color: #C3CFD8; background: #FAFCFB; }

.gk-answer-btn.is-selected {
    border-color: var(--gk-primary);
    box-shadow: 0 0 0 2px rgba(8, 127, 91, .16);
    background: #F3FAF7;
}

.gk-answer-btn--skip.is-selected {
    border-color: #94A3B8;
    box-shadow: 0 0 0 2px rgba(100, 116, 139, .16);
    background: var(--gk-surface-2);
}

.gk-answer-btn.is-selected .gk-answer-btn__icon {
    background: var(--gk-primary);
    color: #fff;
}

.gk-answer-btn--skip.is-selected .gk-answer-btn__icon {
    background: var(--gk-muted);
    color: #fff;
}

.gk-answer-btn:focus-visible,
.gk-answer-btn__icon:focus-visible {
    outline: 3px solid rgba(8, 127, 91, .3);
    outline-offset: 2px;
}

.gk-response-feedback {
    display: none;
    align-items: center;
    gap: .4rem;
    margin-top: .75rem;
    padding: .6rem .8rem;
    border-radius: var(--gk-radius-sm);
    background: var(--gk-success-soft);
    color: var(--gk-success);
    font-size: .84rem;
    font-weight: 600;
}

.gk-response-feedback.is-visible { display: flex; }
.gk-response-panel.is-answered .gk-response-panel__hint { color: var(--gk-primary-dark); }

.gk-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.15rem;
}

.gk-detail-card {
    background: var(--gk-surface);
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius);
    box-shadow: var(--gk-shadow-xs);
    padding: 1.35rem;
}

.gk-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.gk-check-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .9rem;
    color: var(--gk-ink-soft);
    line-height: 1.45;
}

.gk-check-list .tm-icon { flex: none; margin-top: .15rem; color: var(--gk-success); }

.gk-job-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    text-align: center;
    font-size: .78rem;
    font-weight: 600;
    color: var(--gk-muted);
    margin: 0;
}

.gk-job-notice .tm-icon { color: var(--gk-warning); }

/* --------------------------------------------------------------------------
   14. Resultados
   -------------------------------------------------------------------------- */
.gk-results-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gk-result-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.5rem, 3.5vw, 2.4rem);
    border-radius: var(--gk-radius-lg);
    background: var(--gk-gradient-dark);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--gk-shadow);
}

.gk-result-hero::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -110px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 155, 82, .3), transparent 66%);
    pointer-events: none;
}

.gk-result-hero > * { position: relative; z-index: 1; }
.gk-result-hero__body { min-width: 0; }
.gk-result-hero .gk-title-xl { color: #fff; }
.gk-result-hero .gk-job-company { color: rgba(247, 250, 249, .82); }
.gk-result-hero .gk-job-company strong { color: #fff; }
.gk-result-hero__meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }

.gk-result-hero .gk-chip {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.gk-result-hero .gk-chip .tm-icon { color: rgba(255, 255, 255, .7); }

.gk-result-hero__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    text-align: center;
}

.gk-score-ring {
    --gk-score: 0%;
    position: relative;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--gk-accent) var(--gk-score), rgba(255, 255, 255, .14) 0);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}

.gk-score-ring::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 50%;
    background: #17212B;
}

.gk-score-ring__value {
    position: relative;
    z-index: 1;
    font-family: var(--gk-font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.gk-score-ring__label {
    position: relative;
    z-index: 1;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255, 255, 255, .65);
}

.gk-result-hero__score-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255, 255, 255, .6);
}

.gk-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
    gap: 1.15rem;
    align-items: start;
}

.gk-breakdown {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.gk-breakdown--compact { gap: .45rem; margin: .9rem 0; }

.gk-breakdown__row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(70px, 1.4fr) auto;
    align-items: center;
    gap: .75rem;
}

.gk-breakdown__label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--gk-ink-soft);
}

.gk-breakdown__bar {
    height: 9px;
    border-radius: var(--gk-radius-pill);
    background: var(--gk-surface-2);
    overflow: hidden;
    border: 1px solid var(--gk-line);
}

.gk-breakdown--compact .gk-breakdown__bar { height: 7px; }

.gk-breakdown__fill {
    display: block;
    height: 100%;
    border-radius: var(--gk-radius-pill);
    background: var(--gk-gradient);
    transition: width 500ms cubic-bezier(.2, .7, .3, 1);
}

.gk-breakdown__row.is-desirable .gk-breakdown__fill { background: linear-gradient(90deg, #164E63, #0D9488); }
.gk-breakdown__row.is-experience .gk-breakdown__fill { background: linear-gradient(90deg, #C69B52, #D9B878); }
.gk-breakdown__row.is-education .gk-breakdown__fill { background: linear-gradient(90deg, #15803D, #37A05B); }
.gk-breakdown__row.is-area .gk-breakdown__fill { background: linear-gradient(90deg, #D97706, #F4B740); }

.gk-breakdown__value {
    font-family: var(--gk-font-heading);
    font-size: .88rem;
    font-weight: 800;
    color: var(--gk-ink);
    text-align: right;
    min-width: 54px;
}

.gk-breakdown__value small { color: var(--gk-muted); font-weight: 600; }

.gk-result-skills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--gk-line);
}

.gk-rank-list { display: flex; flex-direction: column; gap: .45rem; }

.gk-rank {
    display: grid;
    grid-template-columns: 36px auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    padding: .6rem .75rem;
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius-sm);
    background: var(--gk-surface);
    transition: transform var(--gk-transition), box-shadow var(--gk-transition);
}

.gk-rank:hover { transform: translateX(2px); box-shadow: var(--gk-shadow-xs); }

.gk-rank__pos {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--gk-surface-2);
    color: var(--gk-muted);
    font-family: var(--gk-font-heading);
    font-weight: 800;
    font-size: .82rem;
}

.gk-rank--top1 { background: linear-gradient(120deg, #FBF6EA, #fff); border-color: #E8D9B8; }
.gk-rank--top2 { background: linear-gradient(120deg, #F2F6F8, #fff); border-color: #D8E2E6; }
.gk-rank--top3 { background: linear-gradient(120deg, #FBF3EC, #fff); border-color: #E9D7C8; }
.gk-rank--top1 .gk-rank__pos { background: var(--gk-accent); color: #fff; }
.gk-rank--top2 .gk-rank__pos { background: #8AA0AD; color: #fff; }
.gk-rank--top3 .gk-rank__pos { background: #C08457; color: #fff; }
.gk-rank.is-me { box-shadow: 0 0 0 2px rgba(8, 127, 91, .22); }

.gk-rank__main { display: flex; flex-direction: column; min-width: 0; }
.gk-rank__main strong { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gk-rank__meta { font-size: .75rem; color: var(--gk-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gk-rank__score {
    font-family: var(--gk-font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: var(--gk-primary-dark);
    white-space: nowrap;
}

.gk-rank__score small { font-size: .66rem; color: var(--gk-muted); font-weight: 600; margin-left: .1rem; }

.gk-winner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .8rem;
}

.gk-winner {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: .9rem;
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius-sm);
    background: var(--gk-bg);
}

.gk-winner .gk-badge { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.gk-winner__company { font-size: .76rem; color: var(--gk-muted); }
.gk-winner__person { display: flex; align-items: center; gap: .45rem; margin-top: .25rem; flex-wrap: wrap; }
.gk-winner__person strong { font-size: .88rem; }
.gk-winner__score { margin-left: auto; font-family: var(--gk-font-heading); font-weight: 800; font-size: .82rem; color: var(--gk-primary-dark); }

.gk-result-list { display: flex; flex-direction: column; gap: .8rem; }

.gk-result-card {
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius);
    background: var(--gk-surface);
    padding: 1rem 1.1rem;
    transition: border-color var(--gk-transition), box-shadow var(--gk-transition);
}

.gk-result-card:hover { box-shadow: var(--gk-shadow-sm); }
.gk-result-card.is-best { border-color: #D9C79E; background: linear-gradient(135deg, #FCF8EF, #fff); }

.gk-result-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
}

.gk-result-card__pos {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--gk-surface-2);
    color: var(--gk-muted);
    font-family: var(--gk-font-heading);
    font-weight: 800;
    font-size: .78rem;
}

.gk-result-card.is-best .gk-result-card__pos { background: var(--gk-accent); color: #fff; }
.gk-result-card__main { display: flex; flex-direction: column; min-width: 0; }
.gk-result-card__main strong { font-size: .95rem; }
.gk-result-card__score { text-align: right; line-height: 1; }
.gk-result-card__score strong { font-family: var(--gk-font-heading); font-size: 1.25rem; color: var(--gk-primary-dark); }
.gk-result-card__score span { display: block; font-size: .66rem; color: var(--gk-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.gk-result-card__foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .8rem;
    padding-top: .6rem;
    border-top: 1px solid var(--gk-line);
}

.gk-answer-list { display: flex; flex-direction: column; gap: .45rem; }

.gk-answer-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .7rem;
    border: 1px solid var(--gk-line);
    border-radius: var(--gk-radius-sm);
    background: var(--gk-surface);
}

.gk-answer-item__icon {
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--gk-success-soft);
    color: var(--gk-success);
}

.gk-answer-item.is-skip .gk-answer-item__icon { background: var(--gk-surface-2); color: var(--gk-muted); }
.gk-answer-item__main { display: flex; flex-direction: column; min-width: 0; }
.gk-answer-item__main strong { font-size: .88rem; }
.gk-answer-item .gk-badge { margin-left: auto; }

.gk-empty-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    text-align: center;
    padding: 2.2rem 1rem;
    border: 1px dashed var(--gk-line);
    border-radius: var(--gk-radius);
    background: var(--gk-bg);
    color: var(--gk-muted);
}

.gk-empty-block__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gk-surface-2);
    color: var(--gk-muted);
    margin-bottom: .35rem;
}

/* --------------------------------------------------------------------------
   15. Eventos
   -------------------------------------------------------------------------- */
.gk-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.gk-event {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--gk-line);
    font-size: .84rem;
}

.gk-event:last-child { border-bottom: 0; }

.gk-event__dot {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--gk-primary);
}

.gk-event__label { flex: 1; color: var(--gk-ink-soft); }
.gk-event__time { color: var(--gk-muted); font-size: .74rem; white-space: nowrap; }

/* --------------------------------------------------------------------------
   16. Animações
   -------------------------------------------------------------------------- */
@keyframes gk-pop {
    from { opacity: 0; transform: scale(.94) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes gk-slide-up {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gk-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2.5deg); }
    75% { transform: rotate(2.5deg); }
}

@keyframes gk-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes gk-breathe {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(8, 127, 91, .18); }
    50% { transform: scale(1.04); box-shadow: 0 0 0 14px rgba(8, 127, 91, 0); }
}

@keyframes gk-indeterminate {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(310%); }
}

@keyframes gk-spin {
    to { transform: rotate(360deg); }
}

.gk-anim-pop { animation: gk-pop 340ms cubic-bezier(.2, .7, .3, 1) both; }
.gk-anim-slide { animation: gk-slide-up 380ms cubic-bezier(.2, .7, .3, 1) both; }
.gk-delay-1 { animation-delay: 60ms; }
.gk-delay-2 { animation-delay: 120ms; }
.gk-delay-3 { animation-delay: 180ms; }

/* --------------------------------------------------------------------------
   17. Utilidades
   -------------------------------------------------------------------------- */
.gk-flex { display: flex; }
.gk-flex-between { display: flex; align-items: center; justify-content: space-between; }
.gk-flex-center { display: flex; align-items: center; }
.gk-flex-col { display: flex; flex-direction: column; }
.gk-gap-sm { gap: .5rem; }
.gk-gap { gap: 1rem; }
.gk-gap-lg { gap: 1.5rem; }
.gk-wrap { flex-wrap: wrap; }
.gk-center { text-align: center; }
.gk-mt-0 { margin-top: 0; }
.gk-mt-1 { margin-top: .5rem; }
.gk-mt-2 { margin-top: 1rem; }
.gk-mt-3 { margin-top: 1.5rem; }
.gk-mb-0 { margin-bottom: 0; }
.gk-mb-1 { margin-bottom: .5rem; }
.gk-mb-2 { margin-bottom: 1rem; }
.gk-mb-3 { margin-bottom: 1.5rem; }
.gk-w-100 { width: 100%; }
.gk-hidden { display: none !important; }
.gk-text-sm { font-size: .86rem; }

/* Entrada do participante */
.gk-join {
    padding: clamp(1rem, 3vw, 2.75rem) 0;
    background:
        radial-gradient(55% 55% at 20% 10%, rgba(8, 127, 91, .08), transparent 70%),
        radial-gradient(45% 45% at 90% 90%, rgba(22, 78, 99, .08), transparent 70%);
    border-radius: var(--gk-radius-lg);
    margin-top: 1rem;
}

/* Entrada pelo código da sala */
.gk-join-code {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.gk-join-code__form {
    display: flex;
    align-items: flex-end;
    gap: .6rem;
    flex-wrap: wrap;
}

.gk-join-code__form .gk-field {
    flex: 1 1 220px;
    margin-bottom: 0;
}

.gk-join-code__form .gk-btn { flex: 0 0 auto; }

.gk-input--code {
    min-height: 58px;
    font-family: var(--gk-font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: .3em;
    text-indent: .3em;
    text-align: center;
    text-transform: uppercase;
}

.gk-join-code__message {
    margin: 0;
    min-height: 1.2em;
    font-size: .88rem;
    font-weight: 600;
    color: var(--gk-muted);
}

.gk-join-code__message.is-info { color: var(--gk-secondary); }
.gk-join-code__message.is-success { color: var(--gk-success); }
.gk-join-code__message.is-warning { color: var(--gk-warning); }
.gk-join-code__message.is-danger { color: var(--gk-danger); }

.gk-join-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 1.6rem;
    align-items: center;
}

.gk-join-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.gk-join-steps li {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .9rem;
    border-radius: var(--gk-radius);
    background: var(--gk-surface-2);
    border: 1px solid var(--gk-line);
    font-size: .92rem;
    font-weight: 600;
    color: var(--gk-ink-soft);
}

.gk-join-steps__num {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--gk-primary-soft);
    color: var(--gk-primary-dark);
    font-family: var(--gk-font-heading);
    font-weight: 800;
    font-size: .85rem;
}

/* Caixa de geração com IA (Puter.js) */
.gk-ai-box {
    margin-top: .6rem;
    padding: 1rem;
    border-radius: var(--gk-radius);
    border: 1px solid var(--gk-line);
    background: var(--gk-surface-2);
}

.gk-ai-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .6rem;
}

.gk-ai-box__status {
    min-height: 1.2em;
    margin: .45rem 0 0;
    font-size: .84rem;
    font-weight: 600;
    color: var(--gk-muted);
}

.gk-ai-box__status.is-info { color: var(--gk-secondary); }
.gk-ai-box__status.is-success { color: var(--gk-success); }
.gk-ai-box__status.is-danger { color: var(--gk-danger); }

/* Puter — login e uso da IA no navegador (admin/puter.php) */
.gk-ai-status {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .75rem;
    border-radius: var(--gk-radius-sm);
    border: 1px solid var(--gk-line);
    background: var(--gk-surface-2);
    font-weight: 600;
    color: var(--gk-secondary);
}

.gk-ai-status__dot {
    flex: 0 0 auto;
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: var(--gk-muted);
}

.gk-ai-status.is-loading { color: var(--gk-secondary); }
.gk-ai-status.is-loading .gk-ai-status__dot { background: var(--gk-secondary); animation: gk-pulse 1.1s ease-in-out infinite; }

.gk-ai-status.is-connected { color: var(--gk-success); border-color: var(--gk-success-soft, var(--gk-line)); }
.gk-ai-status.is-connected .gk-ai-status__dot { background: var(--gk-success); }

.gk-ai-status.is-disconnected { color: var(--gk-secondary); }
.gk-ai-status.is-disconnected .gk-ai-status__dot { background: var(--gk-muted); }

.gk-ai-status.is-error { color: var(--gk-danger); }
.gk-ai-status.is-error .gk-ai-status__dot { background: var(--gk-danger); }

@keyframes gk-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .25; }
}

.gk-ai-user {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border-radius: var(--gk-radius-sm);
    border: 1px solid var(--gk-success-soft, var(--gk-line));
    background: var(--gk-primary-soft);
}

.gk-ai-user__avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #fff;
    font-size: 1.4rem;
}

.gk-ai-user__name { font-weight: 800; color: var(--gk-primary-dark); }
.gk-ai-user__meta { font-size: .8rem; color: var(--gk-secondary); }

.gk-ai-output {
    max-height: 16rem;
    overflow: auto;
    margin: 0;
    padding: .75rem;
    border-radius: var(--gk-radius-sm);
    border: 1px solid var(--gk-line);
    background: #0F1A17;
    color: #B7F2CF;
    font-family: var(--gk-font-mono, ui-monospace, monospace);
    font-size: .74rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.gk-ai-output.is-error { color: #FFB4A2; background: #24110D; border-color: var(--gk-danger); }

/* Aviso de avanço automático */
.gk-auto-advance {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: .9rem;
    padding: .8rem 1rem;
    border-radius: var(--gk-radius);
    background: linear-gradient(120deg, rgba(8, 127, 91, .12), rgba(22, 78, 99, .1));
    border: 1px solid rgba(8, 127, 91, .28);
    color: var(--gk-primary-dark);
    font-size: .9rem;
    line-height: 1.45;
}

.gk-auto-advance[hidden] { display: none; }
.gk-auto-advance strong { font-weight: 800; }
.gk-auto-advance .tm-icon { flex: 0 0 auto; color: var(--gk-primary); }

.gk-telao__auto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    margin-top: 1.2rem;
    padding: 1rem 1.4rem;
    border-radius: var(--gk-radius-lg);
    background: rgba(198, 155, 82, .16);
    border: 1px solid rgba(198, 155, 82, .5);
    color: #fff;
    font-family: var(--gk-font-heading);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 800;
}

.gk-telao__auto[hidden] { display: none; }

/* Match por vaga (resultado do participante) */
.gk-job-ranking {
    margin-top: .9rem;
    padding-top: .9rem;
    border-top: 1px dashed var(--gk-line);
}

.gk-job-ranking .gk-rank-list { margin-top: .5rem; }

.gk-rank.is-me {
    border-color: var(--gk-primary);
    box-shadow: 0 0 0 2px rgba(8, 127, 91, .18);
    background: var(--gk-primary-soft);
}

/* Match de cada vaga (telão) */
.gk-telao__matches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(.4rem, .9vw, .8rem);
    min-height: 0;
    overflow: hidden;
}

.gk-telao__match {
    padding: clamp(.45rem, 1vh, .8rem) clamp(.55rem, 1vw, .9rem);
    border-radius: var(--gk-radius);
    background: var(--gk-surface-2);
    border: 1px solid var(--gk-line);
    min-height: 0;
}

.gk-telao__match-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .45rem;
}

.gk-telao__match-company {
    font-size: clamp(.72rem, 1.1vw, .9rem);
    font-weight: 700;
    color: var(--gk-ink-soft);
}

.gk-telao__match-count {
    margin-left: auto;
    font-size: clamp(.6rem, .9vw, .72rem);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gk-muted);
}

.gk-telao__match-top {
    display: inline-block;
    margin-left: .3rem;
    padding: .05rem .35rem;
    border-radius: 999px;
    background: var(--gk-accent-soft);
    color: #6B4E14;
    font-size: .9em;
    letter-spacing: .04em;
}

/* Linhas dentro do bloco de cada vaga: fundo branco sobre o card cinza */
.gk-telao__match .gk-telao__row {
    background: var(--gk-surface);
    border-color: var(--gk-line);
}

.gk-telao__match .gk-telao__row-pos {
    background: var(--gk-surface-2);
}

.gk-telao__match .gk-telao__row--top .gk-telao__row-pos {
    background: var(--gk-accent-soft);
}

.gk-telao__progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    margin-top: 1.4rem;
    padding: .9rem 1.6rem;
    border-radius: var(--gk-radius-lg);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
}

.gk-telao__progress-value {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    font-family: var(--gk-font-heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
}

.gk-telao__progress-label {
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(247, 250, 249, .68);
}

/* Checklist de prontidão do ambiente */
.gk-checklist {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.gk-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .6rem .75rem;
    border-radius: var(--gk-radius-sm);
    background: var(--gk-surface-2);
    border: 1px solid var(--gk-line);
}

.gk-checklist__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gk-surface);
    color: var(--gk-muted);
}

.gk-checklist__item.is-ok .gk-checklist__icon { color: var(--gk-success); }
.gk-checklist__item.is-warn .gk-checklist__icon { color: var(--gk-warning); }
.gk-checklist__item.is-error .gk-checklist__icon { color: var(--gk-danger); }

.gk-checklist__main {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.gk-checklist__main strong { font-size: .9rem; }
.gk-checklist__value { font-size: .84rem; color: var(--gk-ink-soft); }
.gk-checklist__hint { font-size: .8rem; color: var(--gk-muted); }

/* QR Code */
.gk-qr__fallback {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    text-align: center;
    padding: .8rem;
    font-size: .78rem;
    color: var(--gk-muted);
}

.gk-qr__fallback strong {
    font-size: .9rem;
    color: var(--gk-ink-soft);
}

.gk-qr.is-error { border-style: dashed; }

/* --------------------------------------------------------------------------
   18. Ajustes no painel administrativo
   -------------------------------------------------------------------------- */
.tm-shell { background: var(--gk-bg); }

.tm-sidebar {
    background: var(--gk-gradient-dark);
}

.tm-card {
    border-radius: var(--gk-radius);
    box-shadow: var(--gk-shadow-xs);
    border-color: var(--gk-line);
}

.tm-appbar {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(10px);
    box-shadow: none;
}

.tm-content { padding: 1.6rem 1.5rem 3rem; }

.tm-auth { background: var(--gk-gradient-dark); }
.tm-auth__card {
    border-radius: var(--gk-radius-lg);
    box-shadow: var(--gk-shadow-lg);
    border: 0;
}

.gk-card .tm-btn,
.gk-lobby .tm-btn {
    border-radius: var(--gk-radius-sm);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   19. Telão
   -------------------------------------------------------------------------- */
.tm-body-telao { background: var(--gk-gradient-dark); }

.gk-telao {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: clamp(.5rem, 1.1vh, 1rem);
    overflow: hidden;
    flex-direction: column;
    padding: clamp(.6rem, 1.4vw, 1.4rem);
    background:
        radial-gradient(50% 40% at 85% 5%, rgba(198, 155, 82, .16), transparent 70%),
        radial-gradient(55% 45% at 5% 95%, rgba(8, 127, 91, .28), transparent 70%),
        var(--gk-gradient-dark);
    color: #fff;
}

.gk-telao__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #fff;
    flex-wrap: wrap;
}

.gk-telao__brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--gk-font-heading);
    font-weight: 800;
    font-size: 1.25rem;
}

.gk-telao__brand .tm-brand__mark { background: rgba(255, 255, 255, .14); box-shadow: none; }
.gk-telao__meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.gk-telao__stage {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    justify-content: center;
    overflow: hidden;
}

.gk-telao__grid {
    display: grid;
    grid-template-columns: minmax(300px, 410px) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
    height: 100%;
    min-height: 0;
}

/* Faixa de indicadores do telão */
.gk-telao__stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(.35rem, .8vw, .7rem);
}

.gk-telao__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .1rem;
    padding: clamp(.35rem, .9vh, .7rem) .5rem;
    border-radius: var(--gk-radius);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    text-align: center;
}

.gk-telao__stat-value {
    font-family: var(--gk-font-heading);
    font-size: clamp(1.1rem, 2.6vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
}

.gk-telao__stat-label {
    font-size: clamp(.58rem, 1vw, .74rem);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(247, 250, 249, .68);
}

.gk-telao__stat.is-good .gk-telao__stat-value { color: #7EE3B8; }
.gk-telao__stat.is-muted .gk-telao__stat-value { color: rgba(247, 250, 249, .75); }
.gk-telao__stat.is-gold .gk-telao__stat-value { color: #F0D09A; }

.gk-telao__grid--center { align-items: center; }
.gk-players--telao { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

/* Cartões do telão: cabem na tela sem rolagem */
.gk-telao .gk-card {
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--gk-ink);
}

.gk-telao .gk-card__head { flex: 0 0 auto; }
.gk-telao .gk-players { overflow: hidden; align-content: start; }

/* Dentro dos cartões claros o texto volta para a cor de tinta */
.gk-telao .gk-card .gk-rank__main strong { color: var(--gk-ink); }
.gk-telao .gk-card .gk-rank__meta { color: var(--gk-muted); }
.gk-telao .gk-card .gk-text-muted { color: var(--gk-muted); }
.gk-telao .gk-card .gk-telao__muted { color: var(--gk-muted); }
.gk-telao .gk-card .gk-subtitle { color: var(--gk-ink-soft); }
.gk-telao .gk-card .gk-mini-label { color: var(--gk-muted); }
.gk-telao .gk-card .gk-empty__icon { color: var(--gk-muted); }

.gk-telao__job {
    padding: clamp(1.5rem, 3.5vw, 2.6rem);
    border-radius: var(--gk-radius-lg);
    background: var(--gk-surface);
    color: var(--gk-ink);
    box-shadow: var(--gk-shadow-lg);
    border: 1px solid var(--gk-line);
}

.gk-telao__job-title {
    font-family: var(--gk-font-heading);
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.03em;
    margin: .25rem 0 .6rem;
}

.gk-telao__job-company {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--gk-ink-soft);
    margin: 0;
}

.gk-telao__chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.25rem; }
.gk-telao__chips .gk-chip { font-size: .95rem; padding: .45rem .9rem; }

.gk-telao__responses {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .8rem;
}

.gk-telao__response {
    padding: .55rem .5rem;
    border-radius: var(--gk-radius);
    background: var(--gk-surface-2);
    border: 1px solid var(--gk-line);
    text-align: center;
    min-width: 0;
}

.gk-telao__response-value {
    display: block;
    font-family: var(--gk-font-heading);
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.05;
    color: var(--gk-primary-dark);
}

.gk-telao__response-label {
    display: block;
    font-size: clamp(.52rem, .8vw, .66rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.15;
    color: var(--gk-muted);
    text-align: center;
}

.gk-telao__ranking { display: flex; flex-direction: column; gap: .55rem; }
.gk-telao__ranking .gk-rank { padding: .8rem .95rem; }
.gk-telao__ranking .gk-rank__main strong { font-size: clamp(1rem, 1.5vw, 1.2rem); }
.gk-telao__ranking .gk-rank__meta { font-size: .84rem; }
.gk-telao__ranking .gk-rank__score { font-size: clamp(1.05rem, 1.8vw, 1.4rem); }
.gk-telao__ranking .gk-rank__pos { width: 38px; height: 38px; font-size: .92rem; }

/* ==========================================================================
   21. Pódio telão — ouro, prata e bronze
   ========================================================================== */
.gk-telao__podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.35rem, .8vw, .7rem);
    align-items: end;
    align-content: end;
    min-height: 0;
    padding-bottom: .55rem;
    position: relative;
}

/* Cada bloco tem a altura do próprio conteúdo: o degrau do 1º lugar vem do
   preenchimento extra — assim NADA é cortado (lugar, avatar, nome e nota). */
.gk-podium__item {
    --pod-top: #21333A;
    --pod-bottom: #16242A;
    --pod-line: rgba(255, 255, 255, .16);
    --pod-ink: #FFFFFF;
    --pod-soft: rgba(247, 250, 249, .72);
    --pod-shadow: rgba(0, 0, 0, .32);
    --pod-medal-top: #F6EEDD;
    --pod-medal-bottom: #C69B52;
    --pod-glow: rgba(198, 155, 82, 0);

    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: .25rem;
    text-align: center;
    padding: .6rem .35rem .7rem;
    border-radius: var(--gk-radius-lg);
    background: linear-gradient(165deg, var(--pod-top), var(--pod-bottom));
    border: 1px solid var(--pod-line);
    color: var(--pod-ink);
    min-width: 0;
    overflow: hidden;
    box-shadow: 0 14px 28px var(--pod-shadow), 0 0 0 0 var(--pod-glow);
    animation: gk-podium-in 520ms cubic-bezier(.2, .8, .25, 1) both;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gk-podium__item::after {
    content: "";
    position: absolute;
    left: 9%;
    right: 9%;
    bottom: 0;
    height: 7px;
    border-radius: 0 0 8px 8px;
    background: rgba(0, 0, 0, .22);
}

.gk-podium__item:hover {
    transform: translateY(-3px);
}

/* --- 1º lugar: ouro, com brilho e leve flutuação ------------------------ */
.gk-podium__item--1 {
    --pod-top: #FBEFC8;
    --pod-bottom: #C69B52;
    --pod-line: rgba(255, 255, 255, .65);
    --pod-ink: #2C2210;
    --pod-soft: rgba(44, 34, 16, .72);
    --pod-shadow: rgba(150, 112, 43, .40);
    --pod-medal-top: #FFF3D2;
    --pod-medal-bottom: #B8862B;
    --pod-glow: rgba(198, 155, 82, .35);
    padding-top: 1.5rem;
    z-index: 3;
    animation: gk-podium-in 620ms cubic-bezier(.2, .8, .25, 1) both,
        gk-podium-float 4.2s ease-in-out 700ms infinite;
    box-shadow: 0 18px 34px var(--pod-shadow), 0 0 22px var(--pod-glow);
}

.gk-podium__item--1::before {
    content: "";
    position: absolute;
    top: -60%;
    left: -40%;
    width: 45%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: rotate(18deg);
    animation: gk-podium-shine 4.6s ease-in-out 900ms infinite;
    pointer-events: none;
}

.gk-podium__item--1:hover {
    box-shadow: 0 22px 40px var(--pod-shadow), 0 0 34px var(--pod-glow);
}

/* --- 2º lugar: prata ---------------------------------------------------- */
.gk-podium__item--2 {
    --pod-top: #F2F6F8;
    --pod-bottom: #A8B3BD;
    --pod-line: rgba(255, 255, 255, .7);
    --pod-ink: #1B2328;
    --pod-soft: rgba(27, 35, 40, .72);
    --pod-shadow: rgba(120, 136, 150, .32);
    --pod-medal-top: #FFFFFF;
    --pod-medal-bottom: #8E9AA5;
    padding-top: 1rem;
    animation-delay: 120ms;
    z-index: 2;
}

/* --- 3º lugar: bronze --------------------------------------------------- */
.gk-podium__item--3 {
    --pod-top: #F4CFA6;
    --pod-bottom: #B4733D;
    --pod-line: rgba(255, 255, 255, .45);
    --pod-ink: #2B1A0C;
    --pod-soft: rgba(43, 26, 12, .74);
    --pod-shadow: rgba(150, 92, 42, .32);
    --pod-medal-top: #F8DAB7;
    --pod-medal-bottom: #8E5426;
    padding-top: .55rem;
    animation-delay: 240ms;
}

/* Selo do lugar (medalha metálica) */
.gk-podium__place {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .18rem .5rem .18rem .2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .65);
    font-family: var(--gk-font-heading);
    font-size: clamp(.58rem, .95vw, .74rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--pod-ink);
    white-space: nowrap;
}

.gk-podium__item--1 .gk-podium__place {
    background: rgba(255, 255, 255, .78);
}

.gk-podium__medal {
    display: grid;
    place-items: center;
    width: 1.35em;
    height: 1.35em;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--pod-medal-top), var(--pod-medal-bottom));
    color: #fff;
    font-size: .82em;
    font-weight: 800;
    letter-spacing: 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

.gk-podium__name {
    font-family: var(--gk-font-heading);
    font-size: clamp(.82rem, 1.3vw, 1.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--pod-ink);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-podium__job {
    font-size: clamp(.56rem, .82vw, .72rem);
    color: var(--pod-soft);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-podium__score {
    font-family: var(--gk-font-heading);
    font-size: clamp(.95rem, 1.6vw, 1.6rem);
    font-weight: 800;
    color: var(--pod-ink);
}

.gk-podium__score small {
    font-size: .58em;
    font-weight: 700;
    color: var(--pod-soft);
    margin-left: .12rem;
}

.gk-telao__section-title {
    font-family: var(--gk-font-heading);
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.gk-telao__muted { color: rgba(247, 250, 249, .68); }

.gk-telao__generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    text-align: center;
    padding: clamp(2rem, 6vw, 4rem);
}

.gk-telao__generating .gk-generating {
    width: 104px;
    height: 104px;
    background: rgba(255, 255, 255, .1);
    color: var(--gk-accent);
}

.gk-telao__generating .tm-icon { width: 46px; height: 46px; animation: gk-spin 3.2s linear infinite; }

.gk-telao__waiting-code {
    font-family: var(--gk-font-heading);
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--gk-accent);
    margin: 0;
}

.gk-telao .gk-card { box-shadow: var(--gk-shadow-lg); }

.gk-telao__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    text-align: center;
    color: rgba(247, 250, 249, .72);
    padding: clamp(1.5rem, 4vw, 3rem);
}

.gk-telao__empty .gk-empty__icon { color: rgba(247, 250, 249, .65); }

.gk-chip--dark {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .18);
    color: rgba(247, 250, 249, .9);
}

.gk-chip--dark strong { color: #fff; letter-spacing: .08em; }
.gk-chip--dark .tm-icon { color: var(--gk-accent); }

.gk-telao__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gk-accent);
}

.gk-telao__grid--job {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    align-items: stretch;
}

/* O cartão da vaga ocupa a coluna inteira (nada de espaço vazio no telão) */
.gk-telao__grid--job .gk-telao__job {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.gk-telao__aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gk-telao__aside .gk-card { padding: 1.15rem 1.25rem; }

.gk-telao__job-desc {
    margin: 1.15rem 0 0;
    font-size: clamp(.95rem, 1.35vw, 1.1rem);
    line-height: 1.6;
    color: var(--gk-ink-soft);
}

.gk-telao__results {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.gk-telao__results {
    display: flex;
    flex-direction: column;
    gap: clamp(.5rem, 1.2vh, .9rem);
    height: 100%;
    min-height: 0;
}

.gk-telao__results-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(.5rem, 1vw, .9rem);
    align-items: stretch;
    flex: 1;
    min-height: 0;
}

.gk-telao__results-side {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(.5rem, 1vw, .9rem);
    min-height: 0;
}

.gk-telao__results-side .gk-card { min-height: 0; position: relative; z-index: 1; }
.gk-telao__results-side .gk-card:first-child { overflow: visible; }
.gk-telao__results-side .gk-telao__podium {
    min-height: 0;
    align-items: end;
    align-content: end;
}

/* Itens mostram todo o conteúdo (avatar, nome e nota) sem corte. */
.gk-telao__results-side .gk-podium__item {
    min-height: 0;
    overflow: visible;
}

.gk-telao__results-side .gk-telao__ranking {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    align-content: start;
}

.gk-telao__results-side .gk-telao__ranking .gk-rank__meta { display: none; }

/* Linhas compactas: o ranking inteiro cabe na tela */
.gk-telao__results-side .gk-telao__ranking .gk-rank { padding: .3rem .45rem; }
.gk-telao__results-side .gk-telao__ranking .gk-rank__pos { width: 22px; height: 22px; font-size: .66rem; }
.gk-telao__results-side .gk-telao__ranking .gk-avatar--sm { width: 24px; height: 24px; font-size: .85rem; }
.gk-telao__results-side .gk-telao__ranking .gk-rank__main strong { font-size: .82rem; }
.gk-telao__results-side .gk-telao__ranking .gk-rank__score { font-size: .88rem; }

/* --------------------------------------------------------------------------
    Linhas do telão (match de cada vaga e top 5) — layout próprio, sem cortes
   -------------------------------------------------------------------------- */
.gk-telao__row {
    display: grid;
    grid-template-columns: 24px 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: .45rem;
    padding: .3rem .45rem;
    border-radius: var(--gk-radius);
    background: var(--gk-surface-2);
    border: 1px solid var(--gk-line);
    min-width: 0;
}

.gk-telao__row-pos {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gk-surface);
    border: 1px solid var(--gk-line);
    font-family: var(--gk-font-heading);
    font-size: .7rem;
    font-weight: 800;
    color: var(--gk-ink-soft);
}

.gk-telao__row--top .gk-telao__row-pos {
    background: var(--gk-accent-soft, #F3E7CE);
    border-color: rgba(198, 155, 82, .5);
    color: #6B4E14;
}

.gk-telao__row-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.gk-telao__row-main strong {
    font-size: clamp(.78rem, 1.05vw, .95rem);
    color: var(--gk-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-telao__row-meta {
    font-size: clamp(.56rem, .78vw, .68rem);
    color: var(--gk-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gk-telao__row-score {
    display: flex;
    align-items: baseline;
    gap: .1rem;
    font-family: var(--gk-font-heading);
    font-size: clamp(.88rem, 1.35vw, 1.15rem);
    font-weight: 800;
    color: var(--gk-primary);
    white-space: nowrap;
}

.gk-telao__row-score small {
    font-size: .58em;
    font-weight: 700;
    color: var(--gk-muted);
}

.gk-telao__ranking {
    display: flex;
    flex-direction: column;
    gap: .28rem;
    min-width: 0;
}

.gk-podium__avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    font-size: 1.45rem;
    flex: 0 0 auto;
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, .85),
        0 8px 18px rgba(0, 0, 0, .22);
}

.gk-podium__item--1 .gk-podium__avatar {
    width: 58px;
    height: 58px;
    font-size: 1.9rem;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .9),
        0 10px 22px rgba(0, 0, 0, .25);
}

@keyframes gk-podium-in {
    from { opacity: 0; transform: translateY(18px) scale(.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gk-podium-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes gk-podium-shine {
    0%, 55% { left: -45%; }
    100% { left: 115%; }
}

.gk-podium__score small {
    font-size: .58em;
    font-weight: 700;
    color: var(--pod-soft);
    margin-left: .12rem;
}

.gk-tile--ready .gk-tile__status {
    background: rgba(255, 255, 255, .92);
    color: var(--gk-primary-dark);
}

/* --------------------------------------------------------------------------
   22. Efeitos do telão (brilho, medalhas e movimento)
   -------------------------------------------------------------------------- */

/* --- Faixa de indicadores ------------------------------------------------ */
.gk-telao__stat {
    position: relative;
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.gk-telao__stat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(198, 155, 82, .85), transparent);
    opacity: .7;
}

.gk-telao__stat:hover {
    transform: translateY(-2px);
    border-color: rgba(198, 155, 82, .45);
    background: rgba(255, 255, 255, .11);
}

.gk-telao__stat.is-good .gk-telao__stat-value { color: #7EE3B8; }
.gk-telao__stat.is-gold .gk-telao__stat-value {
    background: linear-gradient(120deg, #F7E3B0, #C69B52);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Blocos do match de cada vaga ---------------------------------------- */
.gk-telao__match {
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.gk-telao__match:hover {
    transform: translateY(-2px);
    border-color: rgba(8, 127, 91, .35);
    box-shadow: 0 10px 22px rgba(16, 40, 32, .10);
}

/* --- Linhas com medalha (1º, 2º e 3º lugar) ------------------------------ */
.gk-telao__row {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gk-telao__row:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 14px rgba(16, 40, 32, .10);
}

.gk-telao__row--p1 {
    background: linear-gradient(90deg, rgba(198, 155, 82, .18), var(--gk-surface) 62%);
    border-color: rgba(198, 155, 82, .42);
}

.gk-telao__row--p1 .gk-telao__row-pos {
    background: linear-gradient(160deg, #FBEFC8, #C69B52);
    border-color: rgba(198, 155, 82, .8);
    color: #2C2210;
}

.gk-telao__row--p2 .gk-telao__row-pos {
    background: linear-gradient(160deg, #F2F6F8, #A8B3BD);
    border-color: rgba(140, 155, 168, .75);
    color: #1B2328;
}

.gk-telao__row--p3 .gk-telao__row-pos {
    background: linear-gradient(160deg, #F4CFA6, #B4733D);
    border-color: rgba(180, 115, 61, .75);
    color: #2B1A0C;
}

/* --- Títulos com acento -------------------------------------------------- */
.gk-telao__section-title {
    position: relative;
    padding-bottom: .3rem;
}

.gk-telao__section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3.2rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gk-accent), rgba(198, 155, 82, 0));
}

/* --- Jogadores (telão) ---------------------------------------------------- */
.gk-telao .gk-tile {
    transition: transform .2s ease, box-shadow .2s ease;
}

.gk-telao .gk-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .28);
}

/* --------------------------------------------------------------------------
   20. Responsividade
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .gk-lobby { grid-template-columns: minmax(290px, 350px) minmax(0, 1fr); }
}

@media (max-width: 980px) {
    .gk-lobby { grid-template-columns: 1fr; }
    .gk-lobby__side { position: static; }
    .gk-split-2 { grid-template-columns: 1fr; }
    .gk-join-panel { grid-template-columns: 1fr; gap: 1.2rem; }
    .gk-result-grid { grid-template-columns: 1fr; }
    .gk-job-stage { grid-template-columns: 1fr; }
    .gk-response-panel { border-left: 0; border-top: 1px solid var(--gk-line); }
    .gk-result-hero { grid-template-columns: 1fr; }
    .gk-result-hero__score { flex-direction: row; justify-content: flex-start; text-align: left; gap: .9rem; flex-wrap: wrap; }
    .gk-telao__grid,
    .gk-telao__grid--job { grid-template-columns: 1fr; }
    .gk-telao__results-grid { grid-template-columns: 1fr; }
    .gk-telao__results-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .gk-telao__matches { grid-template-columns: 1fr; }
    .gk-telao__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gk-players--telao { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
}

@media (max-width: 720px) {
    .gk-job-grid { grid-template-columns: 1fr; }
    .gk-result-skills { grid-template-columns: 1fr; }
    .gk-response-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gk-response-stat--wide { grid-column: 1 / -1; }
    .gk-telao__responses { grid-template-columns: 1fr; }
    .gk-telao__podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
    .gk-telao__results-side { grid-template-columns: 1fr; }
    .gk-telao__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gk-podium__item { padding: .45rem .25rem .55rem; }
    .gk-podium__avatar { width: 38px; height: 38px; font-size: 1.15rem; }
    .gk-podium__item--1 .gk-podium__avatar { width: 46px; height: 46px; font-size: 1.45rem; }
    .gk-podium__name { font-size: .78rem; }
    .gk-podium__score { font-size: .9rem; }
    .gk-breakdown__row { grid-template-columns: minmax(90px, 1fr) minmax(50px, 1.2fr) auto; gap: .5rem; }
}

@media (max-width: 560px) {
    .gk-telao__podium { grid-template-columns: 1fr; }
    .gk-podium__item--1, .gk-podium__item--2, .gk-podium__item--3 { padding-top: .7rem; }
    .gk-telao__matches { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .gk-card { padding: 1.1rem; border-radius: 14px; }
    .gk-card--pad-lg { padding: 1.3rem; }
    .gk-row { grid-template-columns: 1fr; }
    .gk-row .gk-btn { width: 100%; }
    .gk-players { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .55rem; }
    .gk-tile { min-height: 104px; padding: .8rem .5rem; }
    .gk-tile__avatar { width: 42px; height: 42px; font-size: 1.35rem; }
    .gk-btn { width: 100%; }
    .gk-btn--sm { width: auto; }
    .gk-toolbar { align-items: stretch; flex-direction: column; }
    .gk-toolbar__actions { justify-content: stretch; }
    .gk-toolbar__actions .gk-btn { flex: 1; }
    .gk-room-code { letter-spacing: .12em; }
    .gk-action-bar { margin: 1rem -1.1rem -1.1rem; padding: .8rem 1.1rem calc(.8rem + env(safe-area-inset-bottom, 0px)); }
    .gk-phases { padding: .55rem; }
    .gk-phase { flex: 0 0 auto; font-size: .76rem; }
    .gk-phase__label { display: none; }
    .gk-phase.is-active .gk-phase__label { display: inline; }
    .gk-answer-btn { grid-template-columns: 38px minmax(0, 1fr); }
    .gk-answer-btn__icon { width: 38px; height: 38px; }
    .gk-result-card__head { grid-template-columns: auto minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* ==========================================================================
   Reveal com suspense â€” "GERANDO RESULTADOS!!!"
   Overlay dramÃ¡tico exibido na revelaÃ§Ã£o dos resultados (telÃ£o, painel e
   resultado individual). Sai de cena sozinho apÃ³s ~4,5 s; o telao usa
   sessionStorage para nÃ£o repetir a animaÃ§Ã£o a cada atualizaÃ§Ã£o ao vivo.
   ========================================================================== */
.gk-reveal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(1000px 600px at 50% 18%, rgba(198, 155, 82, .28), transparent 60%),
        radial-gradient(900px 700px at 50% 118%, rgba(8, 127, 91, .32), transparent 62%),
        linear-gradient(180deg, #0B1524 0%, #131F33 55%, #0B1524 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}
.gk-reveal.is-playing {
    opacity: 1;
    pointer-events: auto;
}
.gk-reveal.is-done {
    opacity: 0;
    pointer-events: none;
}

.gk-reveal__inner {
    position: relative;
    text-align: center;
    color: #FDF6E3;
    max-width: min(92vw, 760px);
}

.gk-reveal__sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFE27A;
    box-shadow: 0 0 14px 2px rgba(255, 226, 122, .8);
    opacity: 0;
    animation: gk-reveal-float 2.6s ease-in-out infinite;
    animation-delay: var(--d, 0s);
    left: var(--x, 50%);
    top: var(--y, 50%);
}

@keyframes gk-reveal-float {
    0%, 100% { opacity: 0; transform: translateY(20px) scale(.6); }
    25% { opacity: 1; }
    50% { transform: translateY(-40px) scale(1.15); }
    75% { opacity: 1; }
}

.gk-reveal__eyebrow {
    display: block;
    font-family: var(--gk-font-heading, inherit);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: #C69B52;
    margin-bottom: 1rem;
    animation: gk-reveal-blink 1.05s steps(2, jump-none) infinite;
}

@keyframes gk-reveal-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.gk-reveal__title {
    font-family: var(--gk-font-heading, inherit);
    font-weight: 800;
    font-size: clamp(2.4rem, 9vw, 5rem);
    line-height: .98;
    letter-spacing: .04em;
    margin: 0;
    color: #FFFFFF;
    text-shadow:
        0 0 30px rgba(255, 226, 122, .35),
        0 6px 0 rgba(0, 0, 0, .35);
    animation: gk-reveal-title 1.15s ease-in-out infinite alternate;
}

@keyframes gk-reveal-title {
    from { transform: scale(1); }
    to { transform: scale(1.045); }
}

.gk-reveal__bang {
    display: inline-block;
    color: #FFD84D;
    animation: gk-reveal-bang .38s ease-in-out infinite alternate;
}

@keyframes gk-reveal-bang {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-.18em) scale(1.18); }
}

.gk-reveal__line {
    min-height: 1.5em;
    margin: 1.1rem 0 .8rem;
    font-size: clamp(1rem, 2.4vw, 1.3rem);
    color: #BEE8D6;
    font-weight: 600;
}

.gk-reveal__bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    overflow: hidden;
    width: min(82vw, 430px);
    margin: .3rem auto 0;
}

.gk-reveal__bar span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 38%;
    border-radius: inherit;
    background: linear-gradient(90deg, #C69B52, #FFE27A, #C69B52);
    background-size: 200% 100%;
    animation: gk-reveal-slide 1.4s linear infinite;
}

@keyframes gk-reveal-slide {
    from { transform: translateX(-120%); background-position: 0% 0; }
    to { transform: translateX(320%); background-position: 120% 0; }
}

.gk-reveal__dots {
    display: flex;
    justify-content: center;
    gap: .55rem;
    margin-top: 1.4rem;
}

.gk-reveal__dots span {
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: #FFE27A;
    animation: gk-reveal-dot 1.2s ease-in-out infinite;
}
.gk-reveal__dots span:nth-child(2) { animation-delay: .18s; }
.gk-reveal__dots span:nth-child(3) { animation-delay: .36s; }

@keyframes gk-reveal-dot {
    0%, 100% { transform: scale(.7); opacity: .4; }
    50% { transform: scale(1.35); opacity: 1; }
}
/* --- Cartões e vaga (polimento visual) ----------------------------------- */
.gk-telao .gk-card {
    backdrop-filter: blur(2px);
    box-shadow: 0 10px 24px rgba(9, 20, 16, .12);
    transition: transform .22s ease, box-shadow .22s ease;
}

.gk-telao .gk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(9, 20, 16, .16);
}

.gk-telao__job-title {
    text-shadow: 0 10px 28px rgba(8, 127, 91, .18);
}

.gk-telao .gk-progress__bar {
    background: linear-gradient(90deg, #087F5B, #2FA56A, #C69B52);
}

.gk-telao__job-company {
    padding-bottom: .2rem;
    border-bottom: 1px solid rgba(223, 231, 227, .8);
}

