:root {
    --cc-ink: #17213c;
    --cc-panel: #fffdf7;
    --cc-line: #d7ddda;
    --cc-red: #ec5a62;
    --cc-blue: #407ed8;
    --cc-green: #40a973;
    --cc-yellow: #e7b62e;
    --cc-violet: #7158bd;
}

.cc-page {
    color: var(--cc-ink);
}

.cc-page button,
.cc-page input,
.cc-page select {
    font: inherit;
}

.cc-hero {
    position: relative;
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 42px 48px;
    overflow: hidden;
    border: 1px solid #d8d5c8;
    border-radius: 30px;
    background:
        radial-gradient(circle at 76% 24%, rgba(247, 198, 63, .28), transparent 24%),
        radial-gradient(circle at 92% 80%, rgba(69, 127, 218, .19), transparent 28%),
        linear-gradient(135deg, #fffdf4, #ecf4e7);
    box-shadow: 0 24px 58px rgba(41, 55, 57, .12);
}

.cc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image:
        linear-gradient(rgba(42, 76, 68, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 76, 68, .08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.cc-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.cc-eyebrow,
.cc-kicker {
    margin: 0 0 6px;
    color: #617768;
    font: 800 .72rem/1.2 "Nunito", sans-serif;
    letter-spacing: .18em;
}

.cc-hero h1 {
    margin: 0;
    font: 900 clamp(2.5rem, 6vw, 5rem)/.92 "Nunito", sans-serif;
    letter-spacing: -.055em;
}

.cc-hero h1 span {
    color: var(--cc-red);
}

.cc-hero-copy > p:not(.cc-eyebrow) {
    max-width: 650px;
    margin: 18px 0 0;
    color: #59645f;
    font-size: 1rem;
    line-height: 1.8;
}

.cc-hero-tags,
.cc-room-meta,
.cc-rule-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cc-hero-tags {
    margin-top: 22px;
}

.cc-hero-tags span,
.cc-room-meta span,
.cc-rule-badges span {
    padding: 6px 10px;
    border: 1px solid rgba(72, 91, 80, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .64);
    color: #53635a;
    font-size: .75rem;
    font-weight: 800;
}

.cc-hero-cards {
    position: relative;
    z-index: 1;
    width: 270px;
    height: 175px;
    flex: none;
}

.cc-mini-card {
    position: absolute;
    display: grid;
    width: 98px;
    aspect-ratio: 2 / 3;
    place-items: center;
    border: 6px solid white;
    border-radius: 18px;
    box-shadow: 0 18px 28px rgba(34, 43, 56, .24);
    color: white;
    font: 900 1.35rem "Nunito", sans-serif;
    font-style: normal;
}

.cc-mini-card:nth-child(1) { left: 5px; top: 22px; transform: rotate(-16deg); }
.cc-mini-card:nth-child(2) { left: 86px; top: 0; z-index: 2; transform: rotate(3deg); }
.cc-mini-card:nth-child(3) { right: 0; top: 28px; transform: rotate(17deg); }
.cc-mini-card.cc-red { background: var(--cc-red); }
.cc-mini-card.cc-blue { background: var(--cc-blue); }
.cc-mini-card.cc-wild { background: conic-gradient(from 45deg, var(--cc-red) 0 25%, var(--cc-blue) 0 50%, var(--cc-green) 0 75%, var(--cc-yellow) 0); }

.cc-active {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 16px 20px;
    border: 1px solid #b7d6ca;
    border-radius: 18px;
    background: #ebf8f1;
}

.cc-active div {
    display: flex;
    flex-direction: column;
}

.cc-active span {
    color: #63746d;
    font-size: .82rem;
}

.cc-rules-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 18px 0;
}

.cc-rules-strip article {
    display: flex;
    min-height: 106px;
    flex-direction: column;
    justify-content: center;
    padding: 17px;
    border: 1px solid #daddd2;
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
}

.cc-rules-strip strong {
    color: var(--cc-violet);
    font: 900 1.1rem "Nunito", sans-serif;
}

.cc-rules-strip span {
    margin-top: 5px;
    color: #68726d;
    font-size: .78rem;
    line-height: 1.55;
}

.cc-lobby-grid,
.cc-room-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .88fr);
    gap: 18px;
}

.cc-panel {
    padding: 24px;
    border: 1px solid #d7ddd6;
    border-radius: 22px;
    background: rgba(255, 253, 247, .88);
    box-shadow: 0 12px 32px rgba(48, 61, 56, .07);
}

.cc-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.cc-panel h2 {
    margin: 0;
    font-size: 1.25rem;
}

.cc-form {
    display: grid;
    gap: 14px;
}

.cc-form label {
    display: grid;
    gap: 7px;
}

.cc-form label > span {
    color: #54625a;
    font-size: .8rem;
    font-weight: 800;
}

.cc-form input[type="text"],
.cc-form input[type="password"],
.cc-form select,
.cc-choice-card select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #cfd7d0;
    border-radius: 12px;
    outline: none;
    background: white;
    color: var(--cc-ink);
}

.cc-form input:focus,
.cc-form select:focus,
.cc-choice-card select:focus {
    border-color: #7ea896;
    box-shadow: 0 0 0 3px rgba(75, 148, 114, .13);
}

.cc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cc-switch {
    display: flex !important;
    align-items: center;
    gap: 12px !important;
    padding: 11px 13px;
    border: 1px solid #d9dfd7;
    border-radius: 14px;
    background: #f8faf5;
    cursor: pointer;
}

.cc-switch input {
    width: 19px;
    height: 19px;
    accent-color: #4c9e75;
}

.cc-switch span {
    display: flex;
    flex-direction: column;
}

.cc-switch small {
    color: #78837c;
    font-size: .72rem;
    font-weight: 500;
}

.cc-wide-button {
    width: 100%;
    justify-content: center;
}

/* ルーム進行ガイド: 初回プレイでも現在地と次の操作が分かる。 */
.cc-flow {
    margin: 0 0 14px;
    padding: 13px 16px;
    border: 1px solid #d6ddd5;
    border-radius: 18px;
    background: rgba(255, 253, 247, .94);
    box-shadow: 0 10px 28px rgba(48, 61, 56, .06);
}
.cc-flow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.cc-flow-step {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    padding: 8px 9px;
    border-radius: 12px;
    color: #79847e;
    transition: color .25s ease, background .25s ease, transform .25s ease;
}
.cc-flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -7px;
    width: 7px;
    height: 2px;
    background: #cfd7d0;
}
.cc-flow-step i {
    grid-row: 1 / 3;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 2px solid #cbd4cc;
    border-radius: 50%;
    font-size: .68rem;
    font-style: normal;
    font-weight: 900;
}
.cc-flow-step b { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.cc-flow-step small { overflow: hidden; font-size: .64rem; text-overflow: ellipsis; white-space: nowrap; }
.cc-flow-step.is-done { color: #4d8b6a; background: #eef8f1; }
.cc-flow-step.is-done i { border-color: #64aa82; background: #64aa82; color: #fff; }
.cc-flow-step.is-current {
    color: #294c40;
    background: #e1f4e8;
    transform: translateY(-2px);
}
.cc-flow-step.is-current i {
    border-color: #3f9d70;
    background: #fff;
    color: #2c805a;
    animation: cc-flow-pulse 1.6s ease-in-out infinite;
}
.cc-flow > p { margin: 8px 4px 0; color: #5a6961; font-size: .78rem; line-height: 1.55; }
@keyframes cc-flow-pulse {
    50% { box-shadow: 0 0 0 7px rgba(63, 157, 112, .12); transform: scale(1.06); }
}

.cc-refresh {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #d2dad3;
    border-radius: 50%;
    background: white;
    color: #4f675a;
    font-size: 1.3rem;
    cursor: pointer;
}

.cc-refresh.is-loading {
    animation: cc-spin .8s linear infinite;
}

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

.cc-room-list {
    display: grid;
    gap: 12px;
}

.cc-room-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid #dde1db;
    border-radius: 17px;
    background: white;
}

.cc-room-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cc-room-main h3 {
    overflow: hidden;
    margin: 0;
    font-size: .98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-room-main p {
    margin: 3px 0 0;
    color: #78827d;
    font-size: .73rem;
}

.cc-room-lock {
    min-width: 51px;
    padding: 6px 7px;
    border: 1px solid #ccd6ce;
    border-radius: 8px;
    color: #607268;
    font: 900 .62rem "Nunito", sans-serif;
    text-align: center;
}

.cc-room-meta {
    grid-column: 1 / -1;
}

.cc-room-card > .btn,
.cc-join-form {
    grid-column: 2;
    grid-row: 1;
}

.cc-join-form {
    display: flex;
    gap: 7px;
}

.cc-join-form input {
    max-width: 130px;
    padding: 8px 10px;
    border: 1px solid #d1d9d2;
    border-radius: 10px;
}

.cc-empty {
    padding: 44px 20px;
    border: 1px dashed #cfd8d0;
    border-radius: 16px;
    color: #77817b;
    text-align: center;
}

.cc-rulebook {
    margin-top: 18px;
    border: 1px solid #d6ddd6;
    border-radius: 18px;
    background: rgba(255, 255, 255, .7);
}

.cc-rulebook summary {
    padding: 17px 20px;
    cursor: pointer;
    font-weight: 800;
}

.cc-rulebook > div {
    padding: 0 22px 22px;
    color: #59655e;
    font-size: .84rem;
    line-height: 1.7;
}

.cc-rulebook dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 8px 14px;
    margin-bottom: 0;
}

.cc-rulebook dt {
    color: var(--cc-violet);
    font-weight: 900;
}

.cc-rulebook dd {
    margin: 0;
}

/* Room */
.cc-room-page {
    max-width: 1480px;
}

.cc-room-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.cc-back {
    color: #708078;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
}

.cc-room-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.cc-room-title h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.cc-status,
.cc-access {
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8eee9;
    color: #5d6c63;
    font: 900 .65rem "Nunito", sans-serif;
}

.cc-status.is-playing {
    background: #ddf4e8;
    color: #217b4d;
}

.cc-status.is-result {
    background: #fff0c7;
    color: #8d6515;
}

.cc-table-shell {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border: 1px solid #314064;
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 50% 43%, rgba(60, 119, 92, .88) 0 27%, transparent 28%),
        radial-gradient(ellipse at 50% 43%, #233755 0 49%, #18243b 50% 100%);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .055), 0 24px 45px rgba(25, 37, 54, .22);
}

.cc-table-topbar {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: rgba(10, 19, 37, .54);
    color: white;
}

.cc-turn-copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cc-turn-copy span {
    color: #d9e6df;
    font-size: .82rem;
    font-weight: 800;
}

.cc-turn-copy strong {
    min-width: 54px;
    color: #ffdb62;
    font: 900 1.55rem "Nunito", sans-serif;
    text-align: right;
}

.cc-turn-copy strong.is-low {
    color: #ff7f79;
    animation: cc-pulse .7s ease-in-out infinite alternate;
}

@keyframes cc-pulse { to { transform: scale(1.08); } }

.cc-rule-badges {
    justify-content: flex-end;
}

.cc-rule-badges span {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #d6e1de;
}

#ccPendingDraw {
    border-color: rgba(255, 177, 86, .35);
    background: rgba(211, 80, 70, .25);
    color: #ffd9a5;
}

.cc-opponents {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 8px;
    padding: 13px 16px;
}

.cc-opponents.is-crowded {
    grid-template-columns: repeat(8, minmax(105px, 1fr));
}

.cc-opponents.is-crowded .cc-player {
    grid-template-columns: 31px minmax(0, 1fr);
    padding: 7px 8px;
}

.cc-opponents.is-crowded .cc-player-avatar {
    width: 31px;
    height: 31px;
}

.cc-opponents.is-crowded .cc-card-fan {
    display: none;
}

.cc-player {
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr);
    gap: 3px 9px;
    align-items: center;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
    background: rgba(12, 21, 40, .56);
    color: white;
    transition: .2s;
}

.cc-player.is-current {
    border-color: #f7d665;
    box-shadow: 0 0 0 2px rgba(247, 214, 101, .18);
    transform: translateY(2px);
}

.cc-player.is-away {
    opacity: .55;
}

.cc-player-avatar {
    display: grid;
    width: 37px;
    height: 37px;
    grid-row: 1 / 3;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
    background: var(--avatar);
    color: white;
    font-weight: 900;
}

.cc-player-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.cc-player-copy strong {
    overflow: hidden;
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cc-player-copy em {
    color: #f7d665;
    font: 900 .51rem "Nunito", sans-serif;
    font-style: normal;
}

.cc-player-copy > span {
    color: #afc2bb;
    font-size: .66rem;
}

.cc-player-copy small {
    color: #e9b2a9;
}

.cc-last-badge {
    color: #ffdb62;
}

.cc-card-fan {
    display: flex;
    grid-column: 1 / -1;
    height: 13px;
    padding-left: 4px;
}

.cc-card-fan i {
    width: 10px;
    height: 13px;
    margin-left: -3px;
    border: 1px solid #d6e5e0;
    border-radius: 2px;
    background: #293d65;
    transform: rotate(-5deg);
}

.cc-card-fan b {
    margin-left: 4px;
    color: #d9e4e1;
    font-size: .58rem;
}

.cc-board {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    min-height: 285px;
    align-items: center;
    gap: 22px;
    padding: 20px 8%;
}

.cc-deck-zone,
.cc-play-zone,
.cc-action-zone {
    display: grid;
    place-items: center;
    color: #d9e6df;
    text-align: center;
}

.cc-deck-zone p,
.cc-action-zone p {
    max-width: 220px;
    margin: 9px 0 0;
    color: #b9cbc4;
    font-size: .7rem;
    line-height: 1.5;
}

.cc-deck {
    display: grid;
    width: 102px;
    aspect-ratio: 2 / 3;
    place-items: center;
    border: 6px solid #e8ece5;
    border-radius: 16px;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 5px, transparent 5px 10px),
        #263f71;
    box-shadow: 0 9px 0 #14223f, 0 16px 26px rgba(0, 0, 0, .32);
    color: white;
    cursor: pointer;
    transition: transform .16s, filter .16s;
}

.cc-deck:not(:disabled):hover,
.cc-deck.is-hot {
    filter: brightness(1.14);
    transform: translateY(-5px);
}

.cc-deck:disabled {
    cursor: default;
    opacity: .65;
}

.cc-deck span {
    font: 900 .8rem/1.1 "Nunito", sans-serif;
    letter-spacing: .06em;
}

.cc-deck small {
    color: #cad8f2;
    font-size: .65rem;
}

.cc-play-zone {
    position: relative;
}

.cc-active-color {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(12, 21, 35, .48);
    font-size: .68rem;
    font-weight: 800;
}

.cc-active-color i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #89958f;
}

.cc-active-color.is-red i { background: var(--cc-red); }
.cc-active-color.is-blue i { background: var(--cc-blue); }
.cc-active-color.is-green i { background: var(--cc-green); }
.cc-active-color.is-yellow i { background: var(--cc-yellow); }

.cc-last-button {
    display: grid;
    min-width: 125px;
    padding: 12px 18px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-radius: 15px;
    background: rgba(13, 23, 42, .55);
    color: #c7d4cf;
    cursor: pointer;
    transition: .16s;
}

.cc-last-button span {
    font: 900 1.35rem "Nunito", sans-serif;
    letter-spacing: .1em;
}

.cc-last-button small {
    font-size: .6rem;
}

.cc-last-button:not(:disabled):hover,
.cc-last-button.is-armed {
    border-color: #ffdb62;
    background: #866c20;
    color: white;
    transform: scale(1.04);
}

.cc-last-button:disabled {
    cursor: default;
    opacity: .48;
}

.cc-hand-area {
    min-height: 215px;
    padding: 12px 18px 17px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: rgba(7, 14, 28, .5);
}

.cc-hand-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: white;
}

.cc-hand-heading div {
    display: flex;
    align-items: baseline;
    gap: 9px;
}

.cc-hand-heading span {
    color: #aebeb8;
    font: 900 .62rem "Nunito", sans-serif;
    letter-spacing: .16em;
}

.cc-hand-heading strong {
    font-size: .78rem;
}

.cc-hand-heading p {
    margin: 0;
    color: #91a59e;
    font-size: .68rem;
    font-weight: 800;
}

.cc-hand-heading p.is-active {
    color: #ffda63;
}

.cc-hand {
    display: flex;
    min-height: 164px;
    align-items: flex-end;
    justify-content: center;
    padding: 10px 38px 0;
}

.cc-hand .cc-card {
    margin-left: -27px;
    transform: rotate(var(--cc-tilt, 0deg));
    transform-origin: 50% 120%;
}

.cc-hand .cc-card:first-child {
    margin-left: 0;
}

.cc-hand .cc-card:nth-child(4n+1) { --cc-tilt: -2.5deg; }
.cc-hand .cc-card:nth-child(4n+2) { --cc-tilt: 1deg; }
.cc-hand .cc-card:nth-child(4n+3) { --cc-tilt: -1deg; }
.cc-hand .cc-card:nth-child(4n) { --cc-tilt: 2.5deg; }

.cc-hand .cc-card.is-playable:hover,
.cc-hand .cc-card.is-playable:focus-visible {
    z-index: 20;
    outline: none;
    box-shadow: 0 0 0 4px #ffdc61, 0 18px 28px rgba(0, 0, 0, .36);
    transform: translateY(-22px) rotate(0);
}

.cc-hand .cc-card.is-blocked {
    filter: saturate(.52) brightness(.73);
    cursor: not-allowed;
}

.cc-hand-empty {
    align-self: center;
    color: #aebdb8;
    font-size: .82rem;
}

.cc-card {
    position: relative;
    display: grid;
    width: 98px;
    aspect-ratio: 2 / 3;
    flex: none;
    place-items: center;
    overflow: hidden;
    border: 6px solid #f5f4ec;
    border-radius: 16px;
    background: #607084;
    box-shadow: 0 9px 18px rgba(0, 0, 0, .28);
    color: white;
    transition: .16s;
}

button.cc-card {
    cursor: pointer;
}

.cc-card::before {
    content: "";
    position: absolute;
    width: 70%;
    height: 74%;
    border-radius: 50%;
    background: rgba(255, 255, 255, .19);
    transform: rotate(27deg);
}

.cc-card small,
.cc-card i,
.cc-card b {
    position: relative;
    z-index: 1;
    font-family: "Nunito", sans-serif;
    font-style: normal;
}

.cc-card b {
    font-size: 1.55rem;
    font-weight: 900;
    text-shadow: 0 2px 2px rgba(0, 0, 0, .18);
}

.cc-card small,
.cc-card i {
    position: absolute;
    font-size: .58rem;
    font-weight: 900;
}

.cc-card small { left: 7px; top: 7px; }
.cc-card i { right: 7px; bottom: 7px; transform: rotate(180deg); }
.cc-card-link {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 23px;
    height: 28px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .9);
    background: #203047;
    color: #fff;
    font-size: .68rem;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(19, 32, 49, .28);
    transform: translateY(-50%);
}
.cc-card-link.is-in {
    left: 3px;
    border-radius: 12px 4px 4px 12px;
}
.cc-card-link.is-out {
    right: 3px;
    border-radius: 4px 12px 12px 4px;
}
.cc-card--red { background: var(--cc-red); }
.cc-card--blue { background: var(--cc-blue); }
.cc-card--green { background: var(--cc-green); }
.cc-card--yellow { background: var(--cc-yellow); color: #303623; }
.cc-card--wild {
    background: conic-gradient(from 45deg, var(--cc-red) 0 25%, var(--cc-blue) 0 50%, var(--cc-green) 0 75%, var(--cc-yellow) 0);
}
.cc-card--kind-swap,
.cc-card--kind-purge,
.cc-card--kind-mix,
.cc-card--kind-guard,
.cc-card--kind-wild,
.cc-card--kind-draw4 {
    color: white;
}
.cc-card--kind-swap b,
.cc-card--kind-purge b,
.cc-card--kind-guard b {
    font-size: 1rem;
}
.cc-card--back {
    background: repeating-linear-gradient(45deg, #314c80 0 9px, #243962 9px 18px);
}

.cc-waiting,
.cc-result {
    position: absolute;
    z-index: 30;
    inset: 66px 0 0;
    display: grid;
    place-items: center;
    padding: 25px;
    background: rgba(11, 20, 38, .78);
    color: white;
    text-align: center;
    backdrop-filter: blur(8px);
}

.cc-waiting h2 {
    margin: 5px 0 7px;
}

.cc-waiting p:not(.cc-kicker) {
    margin: 0;
    color: #c0d0ca;
}

.cc-result-card {
    width: min(520px, 100%);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 24px;
    background: #fffdf6;
    box-shadow: 0 26px 64px rgba(0, 0, 0, .42);
    color: var(--cc-ink);
}

.cc-result-card h2 {
    margin: 5px 0 18px;
    font-size: 1.8rem;
}

#ccResultPlayers {
    display: grid;
    gap: 8px;
    max-height: min(48vh, 420px);
    margin-bottom: 18px;
    padding-right: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#ccResultPlayers div {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f0f3eb;
    text-align: left;
}

#ccResultPlayers div > b {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: #405674;
    color: white;
    font-size: .72rem;
}

.cc-room-lower {
    margin-top: 18px;
}

.cc-event-panel {
    min-height: 260px;
}

.cc-events {
    display: grid;
    max-height: 240px;
    gap: 8px;
    overflow: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cc-events li {
    padding: 9px 12px;
    border-left: 3px solid #86a794;
    border-radius: 4px 10px 10px 4px;
    background: #f3f6f0;
    color: #5e6a63;
    font-size: .78rem;
}

.cc-host-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.cc-notice {
    min-height: 24px;
    margin: 12px 0 0;
    color: #397557;
    font-size: .8rem;
    font-weight: 800;
    text-align: center;
}

.cc-notice.is-error {
    color: #bd4c4f;
}

.cc-choice-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(12, 18, 31, .7);
    backdrop-filter: blur(6px);
}

.cc-choice-card {
    position: relative;
    width: min(480px, 100%);
    padding: 27px;
    border-radius: 24px;
    background: #fffdf7;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .4);
}

.cc-choice-card h2 {
    margin: 4px 0 19px;
}

.cc-choice-close {
    position: absolute;
    right: 15px;
    top: 13px;
    border: 0;
    background: transparent;
    color: #748078;
    font-size: 1.5rem;
    cursor: pointer;
}

.cc-color-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 17px;
}

.cc-color-choice button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid #dce2dc;
    border-radius: 12px;
    background: white;
    color: #536159;
    font: 900 .76rem "Nunito", sans-serif;
    cursor: pointer;
}

.cc-color-choice button.is-selected {
    border-color: #253753;
    box-shadow: 0 0 0 3px rgba(37, 55, 83, .13);
}

.cc-color-choice i {
    width: 17px;
    height: 17px;
    border-radius: 50%;
}

.cc-color-choice [data-color="red"] i { background: var(--cc-red); }
.cc-color-choice [data-color="blue"] i { background: var(--cc-blue); }
.cc-color-choice [data-color="green"] i { background: var(--cc-green); }
.cc-color-choice [data-color="yellow"] i { background: var(--cc-yellow); }

#ccTargetField {
    display: grid;
    gap: 7px;
    margin-bottom: 17px;
}

#ccTargetField span {
    color: #59665f;
    font-size: .78rem;
    font-weight: 800;
}

.cc-mobile-actions {
    display: none;
}

@media (max-width: 1050px) {
    .cc-rules-strip {
        grid-template-columns: 1fr 1fr;
    }
    .cc-opponents {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
    .cc-opponents.is-crowded {
        grid-template-columns: repeat(4, minmax(120px, 1fr));
    }
    .cc-table-shell {
        min-height: 720px;
    }
}

@media (max-width: 820px) {
    .cc-flow-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cc-flow-step:nth-child(2)::after { display: none; }
    .cc-hero {
        padding: 32px 26px;
    }
    .cc-hero-cards {
        display: none;
    }
    .cc-lobby-grid,
    .cc-room-lower {
        grid-template-columns: 1fr;
    }
    .cc-board {
        grid-template-columns: 1fr 1fr;
        padding-inline: 5%;
    }
    .cc-action-zone {
        grid-column: 1 / -1;
    }
    .cc-table-shell {
        min-height: 830px;
    }
    .cc-hand {
        justify-content: flex-start;
        overflow-x: auto;
        padding-inline: 30px;
    }
    .cc-mobile-actions {
        position: sticky;
        z-index: 20;
        bottom: calc(10px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: min(100% - 20px, 620px);
        margin: 4px auto 14px;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 18px;
        background: rgba(20, 31, 48, .92);
        box-shadow: 0 12px 32px rgba(10, 18, 29, .3);
        backdrop-filter: blur(12px);
    }
    .cc-mobile-action {
        min-height: 52px;
        padding: 10px 12px;
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 13px;
        background: #f7fbff;
        color: #243447;
        font: 800 .92rem/1.2 var(--font-body);
        cursor: pointer;
        touch-action: manipulation;
    }
    .cc-mobile-action.is-draw.is-hot,
    .cc-mobile-action.is-last.is-armed {
        border-color: var(--cc-yellow);
        background: #fff4bd;
        color: #3f3210;
    }
    .cc-mobile-action:disabled {
        opacity: .45;
        cursor: default;
    }
}

@media (max-width: 580px) {
    .cc-page {
        padding-inline: 10px;
    }
    .cc-hero {
        min-height: 230px;
        padding: 27px 20px;
        border-radius: 22px;
    }
    .cc-hero h1 {
        font-size: 2.55rem;
    }
    .cc-rules-strip {
        grid-template-columns: 1fr;
    }
    .cc-rules-strip article {
        min-height: 78px;
    }
    .cc-form-grid {
        grid-template-columns: 1fr;
    }
    .cc-room-card {
        grid-template-columns: 1fr;
    }
    .cc-room-card > .btn,
    .cc-room-card > .cc-join-form {
        grid-column: 1;
        grid-row: auto;
    }
    .cc-join-form {
        flex-direction: column;
    }
    .cc-join-form input {
        max-width: none;
    }
    .cc-rulebook dl {
        grid-template-columns: 1fr;
    }
    .cc-rulebook dd {
        margin-bottom: 7px;
    }
    .cc-room-header {
        align-items: center;
    }
    .cc-table-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .cc-rule-badges {
        justify-content: flex-start;
    }
    .cc-waiting,
    .cc-result {
        inset-block-start: 112px;
    }
    .cc-opponents {
        grid-template-columns: 1fr 1fr;
        padding-inline: 8px;
    }
    .cc-opponents.is-crowded {
        grid-template-columns: 1fr 1fr;
    }
    .cc-player {
        grid-template-columns: 31px minmax(0, 1fr);
        padding: 7px;
    }
    .cc-player-avatar {
        width: 31px;
        height: 31px;
    }
    .cc-card-fan {
        display: none;
    }
    .cc-board {
        min-height: 300px;
        gap: 12px;
        padding-inline: 12px;
    }
    .cc-card,
    .cc-deck {
        width: 82px;
        border-width: 5px;
        border-radius: 14px;
    }
    .cc-hand {
        min-height: 145px;
        padding-inline: 18px;
    }
    .cc-hand .cc-card {
        margin-left: -22px;
    }
    .cc-table-shell {
        min-height: 800px;
        border-radius: 19px;
    }
    .cc-host-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-page *,
    .cc-page *::before,
    .cc-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
