:root {
    --bg: #090b0f;
    --bg-soft: #0f1319;
    --surface: rgba(18, 22, 29, .84);
    --surface-solid: #131821;
    --surface-2: #171d27;
    --line: rgba(226, 202, 146, .14);
    --line-strong: rgba(226, 202, 146, .32);
    --text: #f4efe4;
    --muted: #a9abb0;
    --gold: #d7b66a;
    --gold-2: #f0d28c;
    --gold-dark: #9a7836;
    --danger: #e36c6c;
    --ok: #6bc497;
    --blue: #8eb4d8;
    --shadow: 0 20px 70px rgba(0, 0, 0, .42);
    --radius: 24px;
    --radius-sm: 15px;
    --max: 1280px;
    --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    background: var(--bg)
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden
}

button, input {
    font: inherit
}

button, a {
    -webkit-tap-highlight-color: transparent
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

[hidden] {
    display: none !important
}

::selection {
    background: rgba(215, 182, 106, .28);
    color: #fff
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    background: radial-gradient(circle at 15% 10%, rgba(43, 72, 103, .22), transparent 34%),
    radial-gradient(circle at 90% 15%, rgba(123, 88, 37, .10), transparent 28%),
    linear-gradient(180deg, #0c1016 0%, #090b0f 48%, #07090c 100%)
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E")
}

.ambient {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2
}

.ambient__moon {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    right: -110px;
    top: 42px;
    background: radial-gradient(circle at 42% 38%, #d9e2e9 0, #93a9bb 32%, #587287 56%, rgba(53, 75, 92, .12) 70%, transparent 72%);
    opacity: .18;
    filter: blur(.2px);
    box-shadow: 0 0 120px rgba(120, 163, 193, .2);
    animation: moonFloat 10s ease-in-out infinite
}

.ambient__fog {
    position: absolute;
    width: 900px;
    height: 220px;
    border-radius: 50%;
    background: rgba(166, 183, 195, .045);
    filter: blur(45px)
}

.ambient__fog--one {
    left: -25%;
    top: 28%;
    animation: fogDrift 24s linear infinite alternate
}

.ambient__fog--two {
    right: -35%;
    top: 60%;
    animation: fogDrift 31s linear infinite alternate-reverse
}

@keyframes moonFloat {
    50% {
        transform: translate3d(-10px, 7px, 0)
    }
}

@keyframes fogDrift {
    from {
        transform: translateX(-8%) scale(1)
    }
    to {
        transform: translateX(12%) scale(1.08)
    }
}

.topbar {
    width: min(calc(100% - 32px), var(--max));
    height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 20
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--serif);
    letter-spacing: .025em;
    font-size: 1.15rem
}

.brand__crest {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    color: var(--gold-2);
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .08), rgba(215, 182, 106, .04));
    box-shadow: inset 0 0 18px rgba(215, 182, 106, .09), 0 0 30px rgba(215, 182, 106, .06)
}

.brand__text strong {
    color: var(--gold-2);
    font-weight: 600
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px
}

.nav a {
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 10px;
    transition: .2s ease
}

.nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .04)
}

.nav-toggle {
    display: none;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 1.4rem;
    padding: 10px
}

.page-shell {
    width: min(calc(100% - 28px), var(--max));
    margin: 0 auto;
    padding: 42px 0 90px;
    min-height: calc(100vh - 150px)
}

.footer {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    padding: 25px 0 34px;
    border-top: 1px solid rgba(255, 255, 255, .05);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #73777d;
    font-size: .82rem
}

.footer a:hover {
    color: var(--gold-2)
}

.eyebrow {
    margin: 0 0 9px;
    color: var(--gold);
    font-size: .73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .19em
}

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -.015em;
    margin-top: 0
}

h1 {
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: .96;
    margin-bottom: 22px
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 9px
}

h3 {
    font-size: 1.04rem;
    color: var(--gold-2)
}

p {
    color: #b8bbc0;
    margin-top: 0
}

.hero {
    max-width: 960px;
    padding: 56px 0 44px
}

.hero h1 span {
    color: var(--gold-2);
    text-shadow: 0 0 40px rgba(215, 182, 106, .09)
}

.hero__lead {
    font-size: clamp(1.05rem, 2.3vw, 1.3rem);
    max-width: 760px;
    line-height: 1.65;
    color: #c6c8cc
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px
}

.hero__chips span, .room-pill, .round-pill, .live-dot {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    border: 1px solid var(--line);
    background: rgba(215, 182, 106, .05);
    color: #cfc3a4;
    border-radius: 999px;
    padding: 8px 11px
}

.home-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 18px
}

.panel {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(24, 29, 38, .9), rgba(13, 16, 22, .92));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    overflow: hidden
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(255, 255, 255, .035), transparent 22%, transparent 78%, rgba(215, 182, 106, .025))
}

.action-card {
    padding: 30px;
    min-height: 420px
}

.action-card--primary {
    border-color: rgba(215, 182, 106, .24);
    background: linear-gradient(145deg, rgba(38, 33, 24, .78), rgba(14, 17, 22, .94))
}

.panel__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 26px;
    color: var(--gold-2);
    font-size: 1.2rem;
    border: 1px solid var(--line);
    background: rgba(215, 182, 106, .06)
}

.panel__icon--large {
    width: 62px;
    height: 62px;
    font-size: 1.6rem;
    margin-inline: auto
}

.form-stack {
    display: grid;
    gap: 15px;
    margin-top: 24px
}

.field {
    display: grid;
    gap: 7px
}

.field > span {
    font-size: .78rem;
    color: #b9b5ab;
    font-weight: 700;
    letter-spacing: .02em
}

.field input, .search-field input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .09);
    background: #0c1016;
    color: var(--text);
    outline: none;
    transition: .2s ease
}

.field input {
    height: 52px;
    border-radius: 13px;
    padding: 0 15px
}

.field input:focus, .search-field:focus-within {
    border-color: rgba(215, 182, 106, .45);
    box-shadow: 0 0 0 4px rgba(215, 182, 106, .07)
}

.room-code-input {
    text-align: center;
    font-weight: 800;
    letter-spacing: .35em;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums
}

.choice-row {
    display: grid;
    grid-template-columns:24px 1fr;
    column-gap: 11px;
    align-items: start;
    cursor: pointer;
    padding: 12px 0
}

.choice-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.choice-row__visual {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: #0d1117;
    position: relative;
    margin-top: 2px;
    transition: .2s
}

.choice-row input:checked + .choice-row__visual {
    border-color: var(--gold);
    background: var(--gold)
}

.choice-row input:checked + .choice-row__visual::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #111;
    font-size: .75rem;
    font-weight: 900
}

.choice-row > span:last-child {
    display: grid;
    gap: 3px;
    color: #e6e1d7;
    font-size: .9rem
}

.choice-row small {
    color: #8e9299;
    line-height: 1.45
}

.btn {
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 13px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 750;
    letter-spacing: .01em;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
    color: var(--text)
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px)
}

.btn:active:not(:disabled) {
    transform: translateY(0) scale(.99)
}

.btn:disabled {
    opacity: .4;
    cursor: not-allowed
}

.btn--full {
    width: 100%
}

.btn--gold {
    color: #1a150d;
    background: linear-gradient(180deg, #e7c779, #c9a553);
    border-color: #efcf83;
    box-shadow: 0 8px 28px rgba(187, 146, 61, .18), inset 0 1px rgba(255, 255, 255, .45)
}

.btn--gold:hover:not(:disabled) {
    background: linear-gradient(180deg, #f0d38e, #d2ae5b);
    box-shadow: 0 10px 34px rgba(187, 146, 61, .25)
}

.btn--ghost {
    background: rgba(255, 255, 255, .025);
    border-color: rgba(255, 255, 255, .11)
}

.btn--ghost:hover:not(:disabled), .btn--soft:hover:not(:disabled) {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .17)
}

.btn--soft {
    background: rgba(215, 182, 106, .065);
    border-color: var(--line-strong);
    color: var(--gold-2)
}

.btn--danger-ghost {
    background: rgba(227, 108, 108, .045);
    border-color: rgba(227, 108, 108, .22);
    color: #e7a1a1
}

.btn--danger-ghost:hover:not(:disabled) {
    background: rgba(227, 108, 108, .1);
    border-color: rgba(227, 108, 108, .4)
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 8px;
    color: #6f737a;
    font-size: .75rem
}

.divider::before, .divider::after {
    content: "";
    height: 1px;
    background: rgba(255, 255, 255, .06);
    flex: 1
}

.micro-copy {
    font-size: .82rem;
    color: #80858d;
    line-height: 1.55
}

.feature-strip {
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    overflow: hidden;
    background: rgba(255, 255, 255, .015)
}

.feature-strip > div {
    padding: 22px 20px;
    display: grid;
    gap: 5px;
    border-right: 1px solid rgba(255, 255, 255, .05)
}

.feature-strip > div:last-child {
    border-right: 0
}

.feature-strip strong {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--gold-dark)
}

.feature-strip span {
    font-size: .84rem;
    color: #a5a8ad
}

.narrow-wrap {
    max-width: 600px;
    margin: 60px auto
}

.join-panel, .error-panel {
    padding: 34px;
    text-align: center
}

.join-panel h1, .error-panel h1 {
    font-size: clamp(2.2rem, 7vw, 3.7rem)
}

.join-panel .form-stack {
    text-align: left
}

.status-banner {
    padding: 14px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    font-size: .9rem;
    margin-top: 20px
}

.status-banner--danger {
    background: rgba(227, 108, 108, .07);
    border-color: rgba(227, 108, 108, .18);
    color: #eab0b0
}

.room-layout, .admin-app {
    display: grid;
    gap: 18px
}

.room-heading, .admin-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 10px
}

.room-heading h1, .admin-hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    margin-bottom: 10px
}

.room-heading p:last-child, .admin-hero p:last-child {
    margin-bottom: 0
}

.connection-pill {
    border: 1px solid rgba(107, 196, 151, .18);
    background: rgba(107, 196, 151, .05);
    border-radius: 999px;
    color: #a4c9b5;
    padding: 8px 11px;
    font-size: .76rem;
    display: flex;
    gap: 7px;
    align-items: center
}

.connection-pill span, .presence-dot, .live-dot::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 12px rgba(107, 196, 151, .65)
}

.player-main-grid {
    display: grid;
    grid-template-columns:minmax(0, 1.4fr) minmax(290px, .6fr);
    gap: 18px
}

.card-stage-panel, .lobby-panel, .roster-panel, .invite-panel, .role-config, .admin-own-card, .admin-round-controls {
    padding: 24px
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px
}

.section-head h2 {
    margin-bottom: 0
}

.count-badge {
    min-width: 43px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
    color: #c7c8c9;
    font-size: .8rem
}

.card-flip-wrap {
    width: min(100%, 390px);
    margin: 20px auto;
    perspective: 1500px;
    aspect-ratio: 2/3;
    filter: drop-shadow(0 25px 30px rgba(0, 0, 0, .4))
}

.mini-card-flip-wrap {
    width: min(200px, 42vw);
    perspective: 1500px;
    aspect-ratio: 2/3
}

.card-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .78s cubic-bezier(.18, .74, .25, 1.02)
}

.card-flip.is-flipped {
    transform: rotateY(180deg)
}

.card-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 3.5%;
    overflow: hidden;
    background: #10151d;
    display: grid;
    place-items: center;
    border: 1px solid rgba(215, 182, 106, .15)
}

.card-face--front {
    transform: rotateY(180deg)
}

.card-face img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.card-placeholder {
    position: absolute;
    left: 50%;
    bottom: 7%;
    transform: translateX(-50%);
    background: rgba(9, 11, 15, .78);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .72rem;
    color: #b6b9be;
    backdrop-filter: blur(8px)
}

.card-actions {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto
}

.card-actions .btn:first-child:last-child, .card-actions .btn--full:first-child {
    grid-column: 1/-1
}

.card-actions--compact {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    justify-content: flex-start
}

.card-actions--compact .btn {
    width: auto
}

.privacy-note {
    text-align: center;
    font-size: .75rem;
    color: #777c84;
    margin: 14px 0 0
}

.player-list {
    display: grid;
    gap: 8px;
    max-height: 430px;
    overflow: auto;
    padding-right: 3px
}

.player-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, .055);
    background: rgba(255, 255, 255, .018);
    border-radius: 12px;
    transition: .2s
}

.player-row:hover {
    background: rgba(255, 255, 255, .03)
}

.player-row__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0
}

.player-row__identity strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .9rem
}

.player-row__identity small {
    color: #6f737b;
    display: block
}

.presence-dot {
    flex: 0 0 auto
}

.presence-dot.is-offline {
    background: #59606a;
    box-shadow: none
}

.player-row__actions {
    display: flex;
    gap: 6px
}

.icon-btn {
    width: 33px;
    height: 33px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    color: #9da1a8;
    cursor: pointer;
    display: grid;
    place-items: center
}

.icon-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06)
}

.icon-btn--danger:hover {
    color: #f3aaaa;
    border-color: rgba(227, 108, 108, .25);
    background: rgba(227, 108, 108, .07)
}

.expiry-box {
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding-top: 14px;
    color: #757a82;
    font-size: .77rem
}

.expiry-box strong {
    color: #b9ab89
}

.admin-hero {
    align-items: center
}

.admin-hero h1 span {
    color: var(--gold-2)
}

.admin-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end
}

.admin-top-grid {
    display: grid;
    grid-template-columns:minmax(280px, .78fr) minmax(0, 1.22fr);
    gap: 18px
}

.invite-content {
    display: grid;
    grid-template-columns:1fr 150px;
    align-items: center;
    gap: 18px
}

.big-room-code {
    font-family: var(--serif);
    font-size: clamp(2.9rem, 8vw, 5.5rem);
    letter-spacing: .12em;
    color: var(--gold-2);
    font-variant-numeric: tabular-nums;
    line-height: 1
}

.qr-image {
    width: 150px;
    aspect-ratio: 1;
    border-radius: 14px;
    padding: 8px;
    background: #f0dfb8;
    border: 1px solid rgba(255, 255, 255, .08)
}

.live-dot {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #8ec2a6;
    background: rgba(107, 196, 151, .04);
    border-color: rgba(107, 196, 151, .16)
}

.role-config {
    display: grid;
    gap: 18px
}

.role-config__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px
}

.role-total {
    text-align: right;
    display: flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap
}

.role-total strong {
    font-family: var(--serif);
    font-size: 2.4rem;
    color: var(--gold-2)
}

.role-total span {
    font-size: .8rem;
    color: #777c83
}

.preset-bar {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 10px
}

.preset-btn {
    position: relative;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .07);
    background: rgba(255, 255, 255, .018);
    border-radius: 14px;
    padding: 15px 14px;
    color: var(--text);
    cursor: pointer;
    display: grid;
    gap: 3px;
    transition: .2s
}

.preset-btn:hover {
    border-color: var(--line-strong);
    background: rgba(215, 182, 106, .035);
    transform: translateY(-1px)
}

.preset-btn strong {
    font-family: var(--serif);
    font-size: 1.02rem;
    font-weight: 500
}

.preset-btn span {
    font-size: .72rem;
    color: #7f848b
}

.preset-btn em {
    position: absolute;
    right: 9px;
    top: 9px;
    font-style: normal;
    text-transform: uppercase;
    font-size: .58rem;
    letter-spacing: .09em;
    color: var(--gold);
    border: 1px solid var(--line);
    padding: 3px 5px;
    border-radius: 999px
}

.role-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center
}

.search-field {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0c1016;
    border-radius: 12px;
    min-width: 260px;
    transition: .2s
}

.search-field span {
    padding-left: 13px;
    color: #727780;
    font-size: 1.2rem
}

.search-field input {
    border: 0;
    height: 43px;
    padding: 0 12px;
    background: transparent
}

.team-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap
}

.filter-chip {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    color: #90949a;
    border-radius: 999px;
    height: 38px;
    padding: 0 13px;
    cursor: pointer;
    font-size: .76rem;
    transition: .2s
}

.filter-chip:hover, .filter-chip.is-active {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(215, 182, 106, .06)
}

.role-selector {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 8px
}

.role-item {
    display: grid;
    grid-template-columns:58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, .055);
    background: rgba(255, 255, 255, .015);
    border-radius: 13px;
    transition: .2s
}

.role-item:hover {
    background: rgba(255, 255, 255, .026);
    border-color: rgba(255, 255, 255, .09)
}

.role-item.is-selected {
    border-color: rgba(215, 182, 106, .25);
    background: rgba(215, 182, 106, .035)
}

.role-item[hidden] {
    display: none !important
}

.role-thumb {
    width: 58px;
    aspect-ratio: 2/3;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0b0e13
}

.role-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.role-item__copy {
    min-width: 0
}

.role-item__copy strong {
    display: block;
    font-size: .87rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.role-item__copy small {
    display: block;
    color: #747982;
    font-size: .69rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px
}

.team-tag {
    display: inline-flex !important;
    width: auto;
    font-size: .58rem !important;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #a99a77 !important;
    margin-top: 4px !important
}

.stepper {
    display: flex;
    align-items: center;
    gap: 4px
}

.stepper button {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: #0d1117;
    color: #c8c9cb;
    cursor: pointer
}

.stepper button:hover {
    border-color: var(--line-strong);
    color: var(--gold-2)
}

.stepper output {
    min-width: 28px;
    text-align: center;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: .85rem
}

.distribution-bar {
    position: sticky;
    bottom: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 12px 13px;
    background: rgba(12, 15, 20, .93);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .34)
}

.distribution-status {
    display: block;
    font-size: .84rem;
    color: #c9c4ba
}

.distribution-bar small {
    color: #70757c
}

.admin-own-card__body {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap
}

.admin-round-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.admin-round-controls p {
    margin-bottom: 0;
    max-width: 680px
}

.admin-round-controls__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.skeleton-list {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 8px
}

.skeleton-list span {
    height: 80px;
    border-radius: 13px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
    background-size: 200% 100%;
    animation: shimmer 1.4s linear infinite
}

@keyframes shimmer {
    to {
        background-position: -200% 0
    }
}

.rules-hero {
    max-width: 860px;
    padding: 42px 0 28px
}

.rules-hero h1 {
    font-size: clamp(2.7rem, 7vw, 5.1rem)
}

.rules-intro {
    padding: 28px;
    margin-bottom: 18px
}

.rules-intro p {
    max-width: 920px;
    line-height: 1.72
}

.rules-note {
    margin-top: 18px;
    border-left: 2px solid var(--gold-dark);
    padding: 10px 14px;
    background: rgba(215, 182, 106, .035);
    color: #a9a08d;
    font-size: .84rem
}

.rules-layout {
    display: grid;
    grid-template-columns:290px minmax(0, 1fr);
    gap: 18px;
    align-items: start
}

.action-order-panel {
    padding: 22px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow: auto
}

.action-order-panel h3 {
    margin: 22px 0 10px
}

.order-list {
    margin: 0;
    padding-left: 25px;
    display: grid;
    gap: 7px;
    color: #92969d;
    font-size: .81rem
}

.order-list li::marker {
    color: var(--gold-dark);
    font-weight: 700
}

.rules-catalogue {
    min-width: 0
}

.role-toolbar--rules {
    margin-bottom: 18px
}

.rule-group {
    margin-bottom: 28px
}

.rule-group__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px
}

.rule-group__head h2 {
    margin: 0
}

.rule-group__head span {
    font-size: .74rem;
    color: #71767d
}

.rule-card-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 10px
}

.rule-card {
    min-width: 0
}

.rule-card__button {
    width: 100%;
    height: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 15px;
    padding: 0;
    background: rgba(255, 255, 255, .016);
    color: var(--text);
    cursor: pointer;
    overflow: hidden;
    transition: .22s
}

.rule-card__button:hover {
    transform: translateY(-3px);
    border-color: rgba(215, 182, 106, .24);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .2)
}

.rule-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: #10151d
}

.rule-card__meta {
    display: grid;
    gap: 3px;
    padding: 12px
}

.rule-card__meta strong {
    font-family: var(--serif);
    font-weight: 500
}

.rule-card__meta small {
    font-size: .69rem;
    color: #7c8188;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden
}

.steps-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 12px
}

.step-card {
    padding: 24px;
    min-height: 220px
}

.step-card > span {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--gold-dark)
}

.step-card h2 {
    margin-top: 25px
}

.step-card p {
    font-size: .88rem;
    line-height: 1.65
}

.local-guide {
    padding: 28px;
    margin-top: 18px
}

.local-guide code {
    background: #0b0f14;
    border: 1px solid rgba(255, 255, 255, .07);
    padding: 2px 6px;
    border-radius: 6px;
    color: #d6c6a2
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(3, 5, 8, .78);
    backdrop-filter: blur(10px);
    cursor: default;
    animation: modalFade .18s ease
}

.modal__panel {
    position: relative;
    width: min(100%, 760px);
    max-height: min(86vh, 860px);
    overflow: auto;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: linear-gradient(145deg, #171c24, #0f1319);
    box-shadow: 0 35px 100px rgba(0, 0, 0, .62);
    padding: 24px;
    animation: modalRise .22s ease
}

.modal__close {
    position: sticky;
    top: 0;
    float: right;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: #11161d;
    color: #d7d9dc;
    cursor: pointer;
    font-size: 1.3rem;
    z-index: 2
}

.role-detail {
    display: grid;
    grid-template-columns:210px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-top: 10px
}

.role-detail__card img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35)
}

.role-detail__body h2 {
    font-size: 2.1rem;
    margin-bottom: 4px
}

.role-detail__summary {
    color: var(--gold-2);
    font-family: var(--serif);
    font-size: 1.05rem;
    margin: 12px 0 16px
}

.role-detail__description {
    color: #c0c2c6;
    line-height: 1.7
}

.role-detail__facts {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 8px;
    margin-top: 18px
}

.fact {
    border: 1px solid rgba(255, 255, 255, .065);
    background: rgba(255, 255, 255, .018);
    border-radius: 11px;
    padding: 10px
}

.fact span {
    display: block;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: #6f747c;
    margin-bottom: 4px
}

.fact strong {
    font-size: .82rem;
    color: #d6d4cf
}

.assignments {
    display: grid;
    gap: 7px;
    margin-top: 18px
}

.assignment-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 11px;
    background: rgba(255, 255, 255, .018)
}

.assignment-row span:last-child {
    color: var(--gold-2);
    font-family: var(--serif)
}

.toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 140;
    width: min(360px, calc(100% - 36px));
    display: grid;
    gap: 8px
}

.toast {
    padding: 12px 13px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(17, 22, 29, .96);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .4);
    color: #d8d9db;
    font-size: .84rem;
    animation: toastIn .22s ease;
    display: flex;
    gap: 9px;
    align-items: flex-start
}

.toast::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    margin-top: 6px;
    flex: 0 0 auto
}

.toast--error::before {
    background: var(--danger)
}

.toast--success::before {
    background: var(--ok)
}

.toast.is-leaving {
    animation: toastOut .2s ease forwards
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98)
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(8px) scale(.98)
    }
}

@keyframes modalFade {
    from {
        opacity: 0
    }
}

@keyframes modalRise {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985)
    }
}

.reveal-on-load {
    opacity: 0;
    transform: translateY(12px);
    animation: reveal .65s cubic-bezier(.2, .7, .2, 1) forwards
}

.reveal-delay-1 {
    animation-delay: .08s
}

.reveal-delay-2 {
    animation-delay: .15s
}

.reveal-delay-3 {
    animation-delay: .22s
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: none
    }
}

.error-panel .btn {
    margin-top: 14px
}

.empty-state {
    padding: 24px;
    text-align: center;
    color: #757a82;
    border: 1px dashed rgba(255, 255, 255, .07);
    border-radius: 12px
}

@media (max-width: 1000px) {
    .admin-top-grid {
        grid-template-columns:1fr
    }

    .rules-layout {
        grid-template-columns:1fr
    }

    .action-order-panel {
        position: relative;
        top: auto;
        max-height: none
    }

    .rule-card-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .steps-grid {
        grid-template-columns:repeat(2, 1fr)
    }
}

@media (max-width: 800px) {
    .topbar {
        height: 68px;
        width: min(calc(100% - 24px), var(--max))
    }

    .nav-toggle {
        display: block
    }

    .nav {
        position: absolute;
        right: 0;
        top: 60px;
        display: none;
        min-width: 190px;
        padding: 8px;
        border: 1px solid var(--line);
        background: rgba(15, 19, 25, .96);
        backdrop-filter: blur(18px);
        border-radius: 14px;
        box-shadow: var(--shadow)
    }

    .nav.is-open {
        display: grid
    }

    .page-shell {
        padding-top: 18px;
        width: min(calc(100% - 20px), var(--max))
    }

    .home-grid, .player-main-grid {
        grid-template-columns:1fr
    }

    .feature-strip {
        grid-template-columns:1fr 1fr
    }

    .feature-strip > div:nth-child(2) {
        border-right: 0
    }

    .feature-strip > div:nth-child(-n+2) {
        border-bottom: 1px solid rgba(255, 255, 255, .05)
    }

    .room-heading, .admin-hero {
        align-items: flex-start;
        flex-direction: column
    }

    .admin-hero__actions {
        justify-content: flex-start
    }

    .preset-bar {
        grid-template-columns:1fr
    }

    .role-toolbar {
        align-items: stretch;
        flex-direction: column
    }

    .search-field {
        min-width: 0;
        width: 100%
    }

    .role-selector {
        grid-template-columns:1fr
    }

    .distribution-bar {
        align-items: stretch;
        flex-direction: column;
        bottom: 7px
    }

    .distribution-bar .btn {
        width: 100%
    }

    .admin-round-controls {
        align-items: flex-start;
        flex-direction: column
    }

    .admin-round-controls__actions {
        justify-content: flex-start
    }
}

@media (max-width: 600px) {
    .page-shell {
        padding-bottom: 64px
    }

    h1 {
        font-size: clamp(2.4rem, 14vw, 4.5rem)
    }

    .hero {
        padding: 34px 0 26px
    }

    .hero__lead {
        font-size: 1rem
    }

    .action-card, .card-stage-panel, .lobby-panel, .roster-panel, .invite-panel, .role-config, .admin-own-card, .admin-round-controls, .rules-intro, .local-guide {
        padding: 18px
    }

    .feature-strip {
        grid-template-columns:1fr
    }

    .feature-strip > div {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .05) !important
    }

    .feature-strip > div:last-child {
        border-bottom: 0 !important
    }

    .invite-content {
        grid-template-columns:1fr;
        justify-items: center;
        text-align: center
    }

    .big-room-code {
        font-size: 3.5rem
    }

    .role-config__header {
        align-items: flex-start
    }

    .role-total strong {
        font-size: 2rem
    }

    .role-item {
        grid-template-columns:49px minmax(0, 1fr) auto
    }

    .role-thumb {
        width: 49px
    }

    .card-actions {
        grid-template-columns:1fr
    }

    .card-actions .btn {
        grid-column: 1
    }

    .rule-card-grid {
        grid-template-columns:1fr 1fr;
        gap: 7px
    }

    .rule-card__meta {
        padding: 9px
    }

    .rule-card__meta strong {
        font-size: .86rem
    }

    .steps-grid {
        grid-template-columns:1fr
    }

    .role-detail {
        grid-template-columns:1fr
    }

    .role-detail__card {
        width: min(240px, 70vw);
        margin: 0 auto
    }

    .role-detail__facts {
        grid-template-columns:1fr
    }

    .modal__panel {
        padding: 17px
    }

    .footer {
        flex-direction: column
    }
}

@media (max-width: 420px) {
    .rule-card-grid {
        grid-template-columns:1fr
    }

    .team-filters {
        overflow: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px
    }

    .filter-chip {
        white-space: nowrap
    }

    .admin-hero__actions, .admin-round-controls__actions {
        width: 100%
    }

    .admin-hero__actions .btn, .admin-round-controls__actions .btn {
        flex: 1
    }

    .role-config__header {
        flex-direction: column
    }

    .role-total {
        text-align: left
    }
}

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

/* ---- SEO home + single-phone mode ---- */
.footer__links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.hero--seo {
    max-width: 1040px
}

.hero--seo h1 span, .single-phone-hero h1 span {
    color: var(--gold-2);
    text-shadow: 0 0 40px rgba(215, 182, 106, .09)
}

.mode-grid {
    display: grid;
    grid-template-columns:minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 18px;
    scroll-margin-top: 90px
}

.mode-card {
    padding: 28px;
    min-height: 100%
}

.mode-card--multi {
    border-color: rgba(215, 182, 106, .23)
}

.mode-card__heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px
}

.mode-card__heading .panel__icon {
    flex: 0 0 auto;
    margin-bottom: 0
}

.mode-card__heading h2, .mode-card__single-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.45rem)
}

.multi-phone-actions {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}

.mode-action-box {
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 17px;
    padding: 17px;
    background: rgba(255, 255, 255, .014)
}

.mode-action-box > div:first-child {
    display: grid;
    gap: 2px
}

.mode-action-box > div:first-child strong {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500
}

.mode-action-box > div:first-child small {
    color: #777c83;
    font-size: .72rem
}

.mode-card__single-content {
    height: 100%;
    display: flex;
    flex-direction: column
}

.mode-card__single-content .panel__icon {
    margin-bottom: 22px
}

.mode-card__single-content .btn {
    margin-top: auto
}

.clean-checks {
    list-style: none;
    margin: 10px 0 26px;
    padding: 0;
    display: grid;
    gap: 9px;
    color: #aeb1b6;
    font-size: .84rem
}

.clean-checks li {
    position: relative;
    padding-left: 22px
}

.clean-checks li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold)
}

.seo-content-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 18px;
    margin-top: 18px
}

.seo-copy-card {
    padding: 28px
}

.seo-copy-card p {
    line-height: 1.72
}

.text-link {
    display: inline-flex;
    margin-top: 4px;
    color: var(--gold-2);
    font-weight: 700;
    font-size: .84rem
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px
}

.hero-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px
}

.seo-longform {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 14px
}

.faq-copy {
    padding: 28px;
    margin-top: 18px
}

.faq-list {
    display: grid;
    gap: 9px;
    margin-top: 18px
}

.faq-list details {
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 13px;
    background: rgba(255, 255, 255, .014);
    padding: 14px 16px
}

.faq-list summary {
    cursor: pointer;
    font-family: var(--serif);
    color: #e1ddd3
}

.faq-list p {
    margin: 10px 0 0;
    line-height: 1.65;
    font-size: .88rem
}

.seo-bottom-cta {
    text-align: center;
    max-width: 760px;
    margin: 54px auto 0
}

.seo-bottom-cta .hero-cta-row {
    justify-content: center
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #7f848b;
    font-size: .78rem;
    margin: 4px 0 26px
}

.breadcrumbs a:hover {
    color: var(--gold-2)
}

.role-seo-layout {
    display: grid;
    grid-template-columns:minmax(250px, 360px) minmax(0, 1fr);
    gap: 38px;
    align-items: start
}

.role-seo-card img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
    border: 1px solid rgba(215, 182, 106, .12)
}

.role-seo-copy {
    padding-top: 16px;
    max-width: 760px
}

.role-seo-copy h1 {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    margin-bottom: 10px
}

.role-seo-lead {
    font-family: var(--serif);
    font-size: 1.25rem;
    color: var(--gold-2)
}

.role-seo-copy > p:not(.eyebrow):not(.role-seo-lead) {
    line-height: 1.75
}

.role-seo-facts {
    max-width: 560px
}

.role-seo-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 24px
}

.role-source-note {
    padding: 24px;
    margin-top: 28px
}

.rule-card__seo-link {
    display: block;
    font-size: .69rem;
    color: #988d74;
    padding: 8px 10px 10px;
    border: 1px solid rgba(255, 255, 255, .04);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: rgba(255, 255, 255, .01)
}

.rule-card__seo-link:hover {
    color: var(--gold-2)
}

.guide-mode-head {
    margin: 12px 0 14px
}

.guide-mode-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem)
}

.single-phone-shell {
    display: grid;
    gap: 18px
}

.single-phone-hero {
    margin-bottom: -4px
}

.single-stepper {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 4px
}

.single-stepper span {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .055);
    background: rgba(255, 255, 255, .014);
    border-radius: 13px;
    padding: 10px 12px;
    color: #696f77;
    font-size: .78rem;
    transition: .2s
}

.single-stepper b {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #11161d;
    border: 1px solid rgba(255, 255, 255, .07);
    font-size: .7rem
}

.single-stepper span.is-active {
    color: #e5dfd3;
    border-color: rgba(215, 182, 106, .25);
    background: rgba(215, 182, 106, .04)
}

.single-stepper span.is-active b {
    background: var(--gold);
    color: #16120b;
    border-color: var(--gold)
}

.single-stepper span.is-complete {
    color: #9cbca9;
    border-color: rgba(107, 196, 151, .15)
}

.single-stepper span.is-complete b {
    background: rgba(107, 196, 151, .16);
    color: #a7d8bd;
    border-color: rgba(107, 196, 151, .22)
}

.single-panel, .single-handoff-panel, .single-card-panel, .single-finish-panel {
    padding: 28px;
    max-width: 980px;
    width: 100%;
    margin: 0 auto
}

.single-count-form {
    display: grid;
    grid-template-columns:minmax(160px, 260px) auto;
    gap: 10px;
    align-items: end;
    max-width: 520px;
    margin-top: 20px
}

.single-name-form {
    display: grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    max-width: 680px;
    margin-top: 18px
}

.single-name-list {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0
}

.single-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    padding: 10px 11px;
    background: rgba(255, 255, 255, .015)
}

.single-name-row > span {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0
}

.single-name-row b {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(215, 182, 106, .08);
    color: var(--gold);
    font-size: .7rem
}

.single-name-row strong {
    font-size: .86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.single-name-row button {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .07);
    background: transparent;
    color: #858a91;
    cursor: pointer
}

.single-name-row button:hover {
    color: #efa3a3;
    border-color: rgba(227, 108, 108, .25)
}

.single-panel-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px
}

.single-role-config {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto
}

.single-back-row {
    display: flex;
    justify-content: flex-start
}

.single-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px
}

.single-progress {
    height: 7px;
    background: #0b0f14;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 999px;
    overflow: hidden;
    margin: 15px 0 36px
}

.single-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-2));
    transition: width .45s ease
}

.single-handoff-panel {
    text-align: center;
    max-width: 700px;
    padding: 34px
}

.single-handoff-panel .single-progress-head {
    text-align: left
}

.single-handoff-icon {
    width: 92px;
    height: 92px;
    margin: 6px auto 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 2.8rem;
    color: var(--gold-2);
    border: 1px solid var(--line-strong);
    background: radial-gradient(circle, rgba(215, 182, 106, .1), rgba(15, 19, 25, .2));
    box-shadow: 0 0 50px rgba(215, 182, 106, .08);
    animation: handoffPulse 3s ease-in-out infinite
}

@keyframes handoffPulse {
    50% {
        transform: scale(1.025);
        box-shadow: 0 0 70px rgba(215, 182, 106, .12)
    }
}

.single-handoff-panel > p {
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.7
}

.single-main-btn {
    max-width: 520px;
    margin: 0 auto
}

.single-card-panel {
    max-width: 760px
}

.single-card-flip-wrap {
    width: min(100%, 360px)
}

.single-card-actions {
    max-width: 620px
}

.single-finish-panel {
    text-align: center;
    max-width: 760px;
    padding: 38px
}

.single-finish-mark {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: #b8e3ca;
    background: rgba(107, 196, 151, .08);
    border: 1px solid rgba(107, 196, 151, .22)
}

.single-finish-actions {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 9px;
    margin-top: 24px
}

.single-seo-note {
    max-width: 900px;
    margin: 24px auto 0;
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, .05)
}

.single-seo-note p {
    line-height: 1.75
}

@media (max-width: 1000px) {
    .mode-grid {
        grid-template-columns:1fr
    }

    .seo-longform {
        grid-template-columns:1fr
    }

    .role-seo-layout {
        grid-template-columns:minmax(220px, 300px) 1fr;
        gap: 26px
    }
}

@media (max-width: 800px) {
    .multi-phone-actions, .seo-content-grid {
        grid-template-columns:1fr
    }

    .role-seo-layout {
        grid-template-columns:1fr
    }

    .role-seo-card {
        width: min(310px, 82vw);
        margin: 0 auto
    }

    .single-name-list {
        grid-template-columns:1fr
    }
}

@media (max-width: 600px) {
    .mode-card {
        padding: 18px
    }

    .mode-card__heading {
        display: block
    }

    .mode-card__heading .panel__icon {
        margin-bottom: 18px
    }

    .single-panel, .single-handoff-panel, .single-card-panel, .single-finish-panel {
        padding: 18px
    }

    .single-count-form, .single-name-form {
        grid-template-columns:1fr
    }

    .single-count-form .btn, .single-name-form .btn {
        width: 100%
    }

    .single-stepper span {
        padding: 8px;
        justify-content: center
    }

    .single-stepper span b {
        display: none
    }

    .single-section-head, .single-progress-head {
        align-items: flex-start
    }

    .single-finish-actions {
        grid-template-columns:1fr
    }

    .hero-cta-row .btn, .role-seo-actions .btn {
        width: 100%
    }

    .footer__links {
        justify-content: flex-start
    }
}
