@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

:root {
    --bg: #f9f9f9;
    --panel: #ffffff;
    --panel2: #f0f2f5;
    --line: #ddd;
    --txt: #000000;
    --muted: #555555;
    --accent: #ffcc00;
    --accent-dark: #e6b800;
    --green: #4caf50;
    --red: #e60000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: "Manrope", sans-serif;
}

.cycle-game-plugin-container {
    background: var(--bg);
    color: var(--txt);
    padding: 24px 16px 80px;
}

.wrap {
    max-width: 880px;
    margin: 0 auto
}

header {
    text-align: center;
    margin-bottom: 8px
}

h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #000;
    text-transform: uppercase;
}

.tag {
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px
}

.sub {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
    text-align: center
}

.tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px
}

.tabs button {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer
}

.tabs button.on {
    background: #000;
    border-color: #000;
    color: var(--accent);
}

.searchbox {
    position: relative;
    width: 100%;
    flex-basis: 100%;
    max-width: 460px;
    margin: 4px auto 0
}

/* ── How to play / rules ── */
.rules {
    max-width: 760px;
    margin: 0 auto 22px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
    overflow: hidden;
    text-align: left;
}

.rules summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    gap: 8px
}

.rules summary::-webkit-details-marker {
    display: none
}

.rules summary .chev {
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    transition: transform .2s ease
}

.rules[open] summary .chev {
    transform: rotate(180deg)
}

.rules .body {
    padding: 0 18px 18px;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--txt)
}

.rules .body h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--accent);
    margin: 14px 0 6px;
    font-weight: 700
}

.rules .body p {
    margin: 0 0 8px;
    color: var(--muted)
}

.rules .body ul {
    margin: 0 0 8px 18px;
    padding: 0
}

.rules .body li {
    margin-bottom: 5px;
    color: var(--muted)
}

.rules .body b {
    color: var(--txt)
}

.rules .body .chip {
    display: inline-block;
    border-radius: 4px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    color: #fff
}

.rules .body .chip.green {
    background: var(--green)
}

.rules .body .chip.red {
    background: var(--red)
}

#guess {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    background: #fff;
    border: 2px solid #ccc;
    color: #000;
    outline: none;
    font-family: 'Manrope', sans-serif;
}

#guess:focus {
    border-color: var(--accent);
}

#guess:disabled {
    opacity: .5
}

.drop {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    z-index: 20;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .10);
}

.drop.show {
    display: block
}

.opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--line)
}

.opt:last-child {
    border-bottom: none
}

.opt:hover, .opt.active {
    background: var(--panel2)
}

.opt .nm {
    font-weight: 600
}

.opt .meta {
    color: var(--muted);
    font-size: 12px;
    margin-left: auto;
    text-align: right
}

.counter {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: 10px 0 18px
}

.legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
    font-size: 12px;
    color: var(--muted)
}

/* Scoreboard Page Styles */
.gc-scoreboard-page {
    max-width: 95%;
    width: 900px;
    margin: 20px auto;
    font-family: 'Manrope', sans-serif;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #ffcc00;
    box-sizing: border-box;
}
.gc-scoreboard-page h2, .gc-scoreboard-page h3 {
    text-align: center;
    color: #000;
    margin-bottom: 25px;
    font-weight: 800;
}
.gc-table {
    width: 100%;
    border-collapse: collapse;
}
.gc-table th, .gc-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.gc-table th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.gc-nav-link {
    text-decoration: none;
    color: #0066cc;
}
.gc-nav-link:hover {
    text-decoration: underline;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.sw {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block
}

.board {
    display: flex;
    flex-direction: column;
    gap: 10px
}

#rows {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.row {
    display: grid;
    gap: 10px
}

.head .cell {
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    min-height: auto;
    padding: 4px;
    box-shadow: none;
}

.cell {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 4px;
    font-size: 12.5px;
    font-weight: 600;
    animation: flip .5s ease both;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.g-green {
    background: var(--green);
    border-color: #27913b;
    color: #fff
}

.g-red {
    background: var(--red);
    border-color: #cf473c;
    color: #fff
}

@keyframes flip {
    from {
        transform: rotateX(90deg);
        opacity: 0
    }
    to {
        transform: rotateX(0);
        opacity: 1
    }
}

.win {
    text-align: center;
    margin: 0 auto 24px;
    max-width: 760px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: 14px;
    padding: 22px;
    display: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .10);
}

.win.show {
    display: block
}

.win h2 {
    color: var(--accent);
    margin-bottom: 6px
}

.win p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 14px
}

.embed {
    margin: 6px auto 16px;
    display: flex;
    justify-content: center
}

button.again, .giveup {
    background: #000 !important;
    color: var(--accent) !important;
    border: none !important;
    padding: 12px 25px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}

button.again:hover, .giveup:hover {
    background: #222 !important;
    transform: translateY(-2px);
}

/* ── Mode tabs (primary choice) ── */
.modetabs {
    display: flex;
    gap: 6px;
    max-width: 460px;
    margin: 0 auto 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04)
}

.modetab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, color .15s ease
}

.modetab .mt-ico {
    font-size: 15px;
    line-height: 1
}

.modetab:hover {
    color: var(--txt)
}

.modetab.on {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(214, 35, 42, .28)
}

/* ── Shared settings card ── */
.settings {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    align-items: flex-end;
    max-width: 560px;
    margin: 0 auto 18px;
    padding: 14px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04)
}

.setgroup {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: center
}

.setlabel {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--muted)
}

/* ── Segmented toggle ── */
.segmented {
    display: inline-flex;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 3px;
    gap: 2px
}

.seg {
    background: transparent;
    border: none;
    color: var(--muted);
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease
}

.seg:hover {
    color: var(--txt)
}

.seg.on {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12)
}

.err {
    text-align: center;
    color: var(--red);
    font-size: 14px;
    margin-top: 30px
}

.streak {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    margin-bottom: 14px
}

.streak .flame {
    font-size: 15px
}

.streak .lab {
    color: var(--muted);
    font-weight: 600
}

.mode {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 14px
}

.mode button {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer
}

.mode button.on {
    background: #000;
    border-color: #000;
    color: var(--accent)
}

.boards {
    max-width: 100%;
    margin: 4px auto 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    text-align: left
}

.scoreboard {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 280px;
}

.scoreboard h3 {
    font-size: 14px;
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 1px solid #ddd;
    display: flex;
    margin-top: 2px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #000;
    text-align: left;
}

.scoreboard h3 .sub2 {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px
}

.sbrow {
    display: grid;
    align-items: center;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 13px
}

.sbrow:last-child {
    border-bottom: none
}

.sbrow.gen {
    grid-template-columns:28px 1fr auto auto;
    gap: 12px
}

.sbrow.day {
    grid-template-columns:28px 1fr auto;
    gap: 12px
}

.sbrow.head2 {
    background: var(--accent);
    color: #000;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700;
    padding: 8px 18px
}

.sbrow.me {
    background: #fff9e6;
    font-weight: 700
}

.rank {
    font-weight: 700;
    color: var(--muted);
    text-align: center
}

.rank.top {
    color: #000;
    font-weight: 800;
}

.sbname {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.sbname-group {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sbcat {
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sbval {
    font-weight: 700;
    text-align: right;
    min-width: 36px
}

.sbval .u {
    font-weight: 500;
    color: var(--muted);
    font-size: 11px
}

.sbflame {
    color: var(--accent);
    font-weight: 700;
    text-align: right;
    min-width: 44px
}

.giveup {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 7px 18px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer
}

.giveup:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.giveup[disabled] {
    opacity: .4;
    cursor: default
}

.giveup.hide {
    display: none
}

/* ── Hint system ── */
.hints-container {
    max-width: 460px;
    margin: 12px auto;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.hint {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 4px solid var(--muted);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--txt);
    animation: hintIn .4s ease both;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06)
}

.hint b {
    font-weight: 700
}

.hint ul {
    margin: 6px 0 0 18px;
    padding: 0;
    list-style: disc
}

.hint ul li {
    margin-bottom: 3px;
    line-height: 1.4
}

.hint-victories {
    border-left-color: #000;
}

.hint-results {
    border-left-color: var(--green);
}

.hint-teams {
    border-left-color: #5b8def
}

.hint .team-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 6px
}

.hint .team-chip {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap
}

.hint .team-arrow {
    color: var(--muted);
    font-size: 11px
}

@keyframes hintIn {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ── Hint progress bar ── */
#hintProgress {
    text-align: center;
    margin: 8px auto;
    max-width: 460px
}

.hp-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px
}

.hp-bar {
    height: 6px;
    background: var(--line);
    border-radius: 3px;
    overflow: hidden;
    max-width: 300px;
    margin: 0 auto
}

.hp-fill {
    height: 100%;
    background: #000;
    border-radius: 3px;
    transition: width .4s ease
}

.hp-done {
    font-size: 11px;
    color: var(--green);
    font-weight: 600
}

#gc-outer-wrapper {
    max-width: 100%;
    margin: 10px auto;
}

#gc-user-bar {
    text-align: right;
    font-size: 14px;
    margin-bottom: 5px;
    padding-right: 5px;
}

#gc-user-bar a {
    color: #e60000;
    text-decoration: none;
    font-weight: bold;
}

#gc-game-container {
    background: #f9f9f9;
    border: 3px solid #ffcc00;
    padding: 25px;
    border-radius: 15px;
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Manrope', sans-serif;
}

#gc-auth-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 25px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

#gc-auth-tabs button {
    flex: 1;
    padding: 15px;
    border: none;
    background: #eee;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
}

#gc-auth-tabs button.active {
    background: #ffcc00;
    color: #000;
    border-bottom: 3px solid #000;
}

.gc-login-box {
    text-align: left;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.gc-login-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.gc-login-box input[type="text"],
.gc-login-box input[type="password"],
.gc-login-box input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

.gc-login-box input[type="submit"],
.gc-button {
    background: #000 !important;
    color: #ffcc00 !important;
    border: none !important;
    padding: 15px !important;
    font-weight: bold !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    width: 100% !important;
    font-size: 16px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
    font-family: 'Manrope', sans-serif;
    display: inline-block;
    text-align: center;
}

.gc-button:hover,
.gc-login-box input[type="submit"]:hover {
    background: #222 !important;
    transform: translateY(-2px);
}

.gc-button:hover,
.gc-login-box input[type="submit"]:hover {
    background: #222 !important;
    transform: translateY(-2px);
}

.gc-text-center {
    text-align: center;
}

.gc-mt-15 {
    margin-top: 15px;
}

.gc-w-100 {
    width: 100%;
}

.gc-success-msg {
    color: green;
}

.gc-error-msg {
    color: red;
    font-weight: bold;
}

.gc-lost-password-link {
    color: #000;
    font-size: 13px;
    text-decoration: none;
}

.gc-hidden, .auth-view.gc-hidden {
    display: none !important;
}

/* Scoreboard links container */
.g-scoreboard-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.g-back-link-container {
    text-align: center;
    margin-top: 30px;
}

.g-back-link {
    background: #000;
    color: #ffcc00;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    transition: 0.3s;
}
@media (max-width: 600px) {
    #gc-user-bar {
        margin: 0 0 10px 0 !important;
        width: 100% !important;
        box-sizing: border-box;
        padding: 10px;
        border-radius: 0;
    }

    #gc-game-container {
        padding: 15px 10px !important;
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    #gc-outer-wrapper {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Mobiele optimalisaties voor de grid */
    .boards {
        display: flex;
        flex-direction: column;
    }

    .scoreboard {
        width: 100%;
    }

    .board, #rows {
        gap: 4px;
    }

    .row {
        gap: 4px;
    }

    .cell {
        min-height: 48px;
        font-size: 10px;
        padding: 4px 2px;
        border-radius: 6px;
        word-break: break-word; /* Zorg dat lange woorden afbreken */
        line-height: 1.2;
    }

    .head .cell {
        font-size: 9px;
        letter-spacing: 0;
        padding: 2px;
        background: #eee;
        color: #000;
        border-bottom: 2px solid #ccc;
    }

    .sbrow.gen {
        grid-template-columns: 24px 1fr auto auto;
        gap: 6px;
        font-size: 11px;
        padding: 8px 10px;
    }

    .sbrow.day {
        grid-template-columns: 24px 1fr auto;
        gap: 6px;
        font-size: 11px;
        padding: 8px 10px;
    }

    .scoreboard h3 {
        font-size: 12px;
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scoreboard h3 .sub2 {
        font-size: 9px;
    }

    .gc-scoreboard-page {
        width: 100% !important;      /* Volledige breedte op mobiel */
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 15px 10px !important;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .gc-scoreboard-page h2, .gc-scoreboard-page h3 {
        font-size: 20px;
    }
}
