:root {
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, 0.86);
    --bg: #251d3f;
    --bg-2: #443675;
    --bg-3: #1f1838;
    --pink: #ff5ab0;
    --deep-pink: #b4195c;
    --line: rgba(255, 255, 255, 0.14);
    --shadow: 0 24px 70px rgba(7, 3, 20, 0.32);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Avenir, "Avenir Next", Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.58;
}

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

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

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 20;
    padding: 8px 12px;
    color: #1d1633;
    background: #fff;
    border-radius: 999px;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 74px;
    display: grid;
    grid-template-columns: 220px auto 1fr;
    align-items: center;
    gap: 28px;
    padding: 14px max(24px, calc((100vw - 1180px) / 2));
    background: rgba(37, 29, 63, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.brand,
.site-nav,
.language {
    font-size: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    justify-self: start;
    color: #fff;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 35px;
    height: 17px;
    color: #df132e;
    font-family: Georgia, serif;
    font-size: 44px;
    font-weight: 700;
    line-height: 0.35;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0;
    color: rgba(255, 255, 255, 0.9);
}

.site-nav a {
    display: grid;
    place-items: center;
    min-width: 91px;
    height: 30px;
    line-height: 30px;
}

.site-nav a,
.footer a,
.text-link {
    transition: color 160ms ease, opacity 160ms ease;
}

.site-nav a:hover,
.footer a:hover,
.text-link:hover {
    color: #ff8ccd;
}

.language {
    justify-self: start;
    min-width: 86px;
    padding: 8px 13px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    cursor: default;
}

.account-security-label {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
}

.account-security-label svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.hero {
    position: relative;
    min-height: 760px;
    padding: 0 24px;
    overflow: hidden;
    background: var(--bg);
}

.hero-inner {
    width: min(1180px, 100%);
    min-height: 760px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(380px, 0.9fr) minmax(500px, 1.1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 86px);
    padding: 72px 0 64px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.app-icon {
    width: 96px;
    height: 96px;
    margin: 0 0 28px;
    border-radius: 23px;
    box-shadow: var(--shadow);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: 39px;
    line-height: 48.75px;
    font-weight: 800;
    letter-spacing: 0;
}

.eyebrow {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 30.06px;
}

.hero p:not(.eyebrow) {
    max-width: 460px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 24px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 40px;
    padding: 9px 21px;
    color: #29233b;
    background: #fff;
    border: 2px solid var(--pink);
    border-radius: 999px;
    box-shadow: 0 6px 0 rgba(255, 90, 176, 0.13);
    font-size: 15px;
    line-height: 1;
}

.primary-button:hover {
    color: #120b24;
    border-color: #fff;
}

.primary-button.slim {
    min-width: 168px;
    min-height: 54px;
    font-size: 19px;
}

.hero-art {
    justify-self: end;
    width: min(650px, 100%);
    min-width: 0;
    margin: 0;
    filter: drop-shadow(0 36px 54px rgba(6, 2, 14, 0.28));
}

.online-play {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 24%, rgba(70, 210, 229, 0.16), transparent 30%),
        linear-gradient(145deg, #392d61 0%, #241b42 58%, #1c1633 100%);
}

.online-play::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    left: -280px;
    bottom: -300px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
}

.online-play .section-inner {
    width: min(1160px, calc(100% - 48px));
    padding-block: 96px;
}

.online-play-layout {
    display: grid;
    grid-template-columns: minmax(330px, 0.9fr) minmax(440px, 1.1fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
}

.online-play-copy {
    position: relative;
    z-index: 2;
}

.feature-eyebrow {
    margin-bottom: 16px;
    color: #6ce6ef;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.online-play h2 {
    max-width: 570px;
    margin-bottom: 24px;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.02;
}

.online-play-intro {
    max-width: 560px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.online-play-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 520px;
    margin: 0 0 34px;
    padding: 0;
    list-style: none;
}

.online-play-features li {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 48px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 15px;
    font-weight: 700;
}

.online-play-features svg {
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #6ce6ef;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.online-play-gallery {
    position: relative;
    min-height: 650px;
}

.online-preview {
    position: absolute;
    width: min(280px, 56%);
    height: auto;
    border: 7px solid rgba(255, 255, 255, 0.13);
    border-radius: 34px;
    box-shadow: 0 28px 70px rgba(7, 3, 20, 0.48);
}

.online-preview-party {
    top: 20px;
    left: 0;
    transform: rotate(-5deg);
}

.online-preview-board {
    right: 0;
    bottom: 16px;
    transform: rotate(5deg);
}

.section-panel {
    background: var(--bg-2);
}

.section-inner {
    width: min(980px, calc(100% - 40px));
    margin-inline: auto;
    padding: 96px 0;
}

.centered {
    text-align: center;
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(44px, 6vw, 74px);
    line-height: 1.02;
    font-weight: 800;
}

.section-intro {
    max-width: 850px;
    margin: 0 auto 54px;
    color: var(--muted);
    font-size: clamp(22px, 2.5vw, 32px);
    line-height: 1.38;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(32px, 9vw, 118px);
    justify-items: center;
    margin: 32px auto 28px;
}

.download-option {
    display: grid;
    justify-items: center;
    gap: 18px;
    min-width: 170px;
}

.download-option img {
    width: 121px;
    height: 121px;
    object-fit: contain;
}

.download-option span {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.1;
}

.text-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.93);
    font-size: 18px;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.games {
    background: var(--bg);
}

.games .section-inner {
    width: min(995px, calc(100% - 8px));
    padding-top: 86px;
}

.games h2 {
    margin-left: 4px;
    margin-bottom: 52px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.games-lead {
    max-width: 620px;
    margin: -36px 4px 42px;
    color: var(--muted);
    font-size: 16px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 72px 8px;
}

.game-card {
    display: block;
    min-width: 0;
    text-align: center;
    border-radius: 18px;
    transition: transform 180ms ease, color 180ms ease;
}

.game-card:hover {
    color: #ff9bd2;
    transform: translateY(-6px);
}

.game-card:focus-visible {
    outline: 3px solid #ff9bd2;
    outline-offset: 6px;
}

.game-card-artwork {
    display: grid;
    aspect-ratio: 1;
    overflow: hidden;
    place-items: center;
    background: linear-gradient(145deg, #443675, #19122f);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(7, 3, 20, 0.2);
}

.game-card img,
.game-card-artwork > img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.game-card h2,
.game-card h3 {
    margin: 18px 4px 2px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}

.game-card p {
    margin: 0 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.game-image-fallback {
    display: grid;
    place-items: center;
    color: #ff6ab8;
    font-family: Georgia, serif;
    font-size: clamp(54px, 8vw, 92px);
    font-weight: 700;
}

.catalog-status {
    grid-column: 1 / -1;
    min-height: 240px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 16px;
    margin: 0;
    color: var(--muted);
    text-align: center;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ff6ab8;
    border-radius: 50%;
    animation: catalog-spin 750ms linear infinite;
}

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

.secondary-button {
    padding: 10px 20px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    font: inherit;
    cursor: pointer;
}

.secondary-button:hover {
    border-color: #ff9bd2;
}

.games .centered {
    margin: 56px 0 0;
}

.careers {
    background: var(--bg);
}

.careers-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    align-items: center;
    gap: 60px;
    min-height: 555px;
}

.careers h2 {
    margin-bottom: 14px;
}

.careers h3 {
    margin-bottom: 32px;
    font-size: 18px;
    font-weight: 700;
}

.careers p {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.45;
}

.language-tiles {
    display: grid;
    grid-template-columns: repeat(5, 96px);
    justify-content: end;
    gap: 10px;
}

.language-tiles span {
    display: grid;
    place-items: center;
    width: 96px;
    height: 95px;
    background: linear-gradient(145deg, #fff 0%, #f4edf8 100%);
    border: 5px solid #ff7abf;
    border-radius: 18px;
    color: #251d3f;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 12px 20px rgba(8, 3, 20, 0.22);
}

.footer {
    background: var(--bg-3);
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(980px, calc(100% - 40px));
    min-height: 571px;
    margin: 0 auto;
    padding: 82px 0 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 42px 90px;
}

.footer a,
.footer p {
    display: block;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
}

.footer-brand {
    margin-bottom: 44px !important;
    font-size: 20px !important;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 38px;
}

.socials a {
    margin: 0;
}

.socials img {
    width: 39px;
    height: 39px;
    object-fit: contain;
}

.copyright {
    grid-column: 1 / -1;
    align-self: end;
    margin-top: 80px !important;
}

.page-hero {
    background: var(--bg);
    padding: 104px 20px 88px;
}

.page-hero-inner {
    width: min(900px, 100%);
    margin: 0 auto;
}

.page-logo {
    width: 137px;
    height: 137px;
    margin: 0 auto 30px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.page-hero h1,
.policy-page h1 {
    margin-bottom: 24px;
    font-size: clamp(54px, 8vw, 88px);
    line-height: 1.02;
}

.page-hero p {
    max-width: 820px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(20px, 2.5vw, 30px);
    line-height: 1.45;
}

.download-list h2 {
    text-align: center;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 850px;
    margin-top: 46px;
    margin-inline: auto;
}

.store-card {
    display: grid;
    align-content: start;
    justify-items: center;
    min-height: 330px;
    padding: 34px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.store-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.store-card img {
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
    object-fit: contain;
    border-radius: 22px;
}

.store-card span {
    margin-bottom: 14px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
}

.store-card p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.45;
}

.policy-page {
    background: var(--bg);
    padding: 98px 20px 110px;
}

.policy-inner {
    width: min(880px, 100%);
    margin: 0 auto;
}

.policy-page section {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.policy-page h2 {
    margin-bottom: 18px;
    font-size: clamp(28px, 4vw, 44px);
}

.policy-page h3 {
    margin: 22px 0 10px;
    font-size: 22px;
}

.policy-page p,
.policy-page li {
    color: var(--muted);
    font-size: 18px;
}

.policy-page ul {
    margin: 0;
    padding-left: 23px;
}

.game-page {
    min-height: 70vh;
    padding: 70px max(20px, calc((100% - 1080px) / 2)) 110px;
    background:
        radial-gradient(circle at 85% 4%, rgba(255, 90, 176, 0.17), transparent 27rem),
        var(--bg);
}

.game-page-state {
    min-height: 440px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 20px;
    text-align: center;
}

.game-page-state h1 {
    font-size: clamp(38px, 7vw, 70px);
}

.game-page-state p {
    color: var(--muted);
}

.detail-back {
    display: inline-block;
    margin-bottom: 38px;
    color: var(--muted);
    font-size: 16px;
}

.detail-back:hover {
    color: #ff9bd2;
}

.game-detail-hero {
    display: grid;
    grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(44px, 8vw, 100px);
}

.game-detail-artwork {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    overflow: hidden;
    background: var(--bg-2);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.game-detail-copy h1,
.catalog-page-header h1 {
    margin-bottom: 20px;
    font-size: clamp(48px, 8vw, 88px);
    line-height: 0.98;
}

.detail-eyebrow {
    margin-bottom: 15px;
    color: #ff91cc;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.game-detail-subtitle,
.catalog-page-intro {
    max-width: 640px;
    color: var(--muted);
    font-size: clamp(20px, 2.5vw, 28px);
    line-height: 1.4;
}

.game-download-button {
    margin-top: 14px;
}

.game-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 70px 0 0;
    padding: 28px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.game-fact {
    min-width: 130px;
    padding: 4px 22px;
    border-right: 1px solid var(--line);
}

.game-fact-icon {
    display: block;
    width: 30px;
    height: 30px;
    margin-bottom: 13px;
    color: #ff91cc;
}

.game-fact:last-child {
    border-right: 0;
}

.game-fact span,
.game-fact strong {
    display: block;
}

.game-fact span {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.game-fact strong {
    margin-top: 2px;
    font-size: 20px;
}

.game-detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
    padding: 88px 0 44px;
}

.game-detail-content h2,
.decks-section h2,
.game-detail-cta h2 {
    margin-bottom: 18px;
    font-size: clamp(32px, 4vw, 50px);
}

.game-detail-content p,
.game-detail-cta p {
    color: var(--muted);
    white-space: pre-line;
}

.decks-section {
    padding: 70px 0;
}

.deck-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 38px;
}

.deck-card {
    position: relative;
    padding-bottom: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.deck-artwork {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--bg-2);
}

.deck-card h3,
.deck-card p {
    margin-inline: 18px;
}

.deck-card h3 {
    margin-top: 18px;
    margin-bottom: 7px;
    font-size: 18px;
}

.deck-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.deck-card .deck-card-meta {
    margin-bottom: 7px;
    color: #ff91cc;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.deck-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    color: #251d3f;
    background: #ffd166;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.empty-decks {
    grid-column: 1 / -1;
    color: var(--muted);
}

.game-detail-cta {
    padding: 66px clamp(28px, 6vw, 74px);
    text-align: center;
    background: linear-gradient(135deg, #49377c, #762659);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
}

.game-detail-cta p {
    max-width: 660px;
    margin: 0 auto 30px;
}

.catalog-page-header {
    max-width: 760px;
    margin-bottom: 64px;
}

.catalog-page-grid {
    grid-template-columns: repeat(5, 1fr);
}

.compact-footer .footer-inner {
    min-height: 280px;
}

.account-body {
    background:
        radial-gradient(circle at 78% 8%, rgba(255, 90, 176, 0.18), transparent 30rem),
        radial-gradient(circle at 12% 40%, rgba(108, 230, 239, 0.09), transparent 30rem),
        var(--bg);
}

.account-main {
    min-height: 75vh;
    padding: 88px 24px 120px;
}

.account-intro {
    width: min(1080px, 100%);
    margin: 0 auto 56px;
}

.account-intro h1 {
    max-width: 800px;
    margin-bottom: 22px;
    font-size: clamp(46px, 7vw, 82px);
    line-height: 0.98;
}

.account-intro > p:last-child {
    max-width: 720px;
    color: var(--muted);
    font-size: clamp(18px, 2.2vw, 24px);
}

.account-loading {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--muted);
}

.account-auth-layout,
.account-dashboard {
    width: min(1080px, 100%);
    margin-inline: auto;
}

.account-auth-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(400px, 1.2fr);
    align-items: start;
    gap: 26px;
}

.account-panel,
.profile-card,
.subscription-card,
.manage-card {
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 60px rgba(7, 3, 20, 0.2);
    backdrop-filter: blur(16px);
}

.account-panel {
    min-height: 570px;
    padding: clamp(28px, 4vw, 46px);
    border-radius: 28px;
}

.account-panel-heading h2,
.profile-card h2,
.subscription-card h2,
.manage-card h2 {
    margin-bottom: 12px;
    font-size: clamp(27px, 3.4vw, 38px);
    line-height: 1.1;
}

.account-panel-heading p,
.subscription-card > p,
.manage-card p {
    color: var(--muted);
    font-size: 16px;
}

.account-step {
    margin-bottom: 9px;
    color: #ff91cc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.qr-login-panel {
    text-align: center;
}

.qr-code {
    width: 220px;
    height: 220px;
    margin: 30px auto 18px;
    display: grid;
    place-items: center;
    padding: 14px;
    color: #251d3f;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(7, 3, 20, 0.22);
}

.qr-code svg { width: 100%; height: 100%; }

.qr-fallback-icon {
    font-family: Georgia, serif;
    font-size: 60px;
    font-weight: 800;
}

.qr-status {
    min-height: 29px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 14px;
}

.qr-help {
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
    text-align: left;
}

.qr-help summary { color: #fff; cursor: pointer; text-align: center; }
.qr-help p { margin: 12px 0 0; }

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 34px;
    padding: 5px;
    background: rgba(8, 3, 20, 0.26);
    border-radius: 999px;
}

.auth-tab {
    min-height: 46px;
    padding: 8px 16px;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.auth-tab.is-active { color: #251d3f; background: #fff; }

.account-form { display: grid; gap: 20px; }
.account-form > div { display: grid; gap: 7px; }

.account-form label:not(.privacy-check) {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
}

.account-form input[type="email"],
.account-form input[type="password"] {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    color: #fff;
    background: rgba(11, 6, 27, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font: inherit;
    font-size: 16px;
}

.account-form input:focus {
    border-color: #ff91cc;
    outline: 3px solid rgba(255, 145, 204, 0.16);
}

.account-form small { color: rgba(255, 255, 255, 0.62); font-size: 12px; }

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--muted);
    font-size: 13px;
}

.privacy-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--pink);
}

.privacy-check a { color: #ff9bd2; text-decoration: underline; }

.account-submit {
    width: 100%;
    margin-top: 2px;
    border: 0;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.account-form button:disabled,
.account-dashboard button:disabled { cursor: wait; opacity: 0.6; }

.form-message {
    min-height: 27px;
    margin: 22px 0 0;
    color: #8ff1dd;
    font-size: 14px;
}

.form-message.is-error { color: #ffb4c8; }

.profile-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    margin-bottom: 26px;
    padding: 28px 32px;
    border-radius: 24px;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    color: #251d3f;
    background: linear-gradient(145deg, #fff, #ffb5dd);
    border-radius: 20px;
    font-size: 30px;
    font-weight: 900;
}

.profile-card h2,
.profile-name,
.profile-email { margin: 0; }
.profile-name { color: #fff; font-size: 16px; }
.profile-email { color: var(--muted); font-size: 13px; }

.subscription-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 26px;
}

.subscription-card,
.manage-card {
    min-height: 410px;
    padding: clamp(30px, 5vw, 54px);
    border-radius: 28px;
}

.subscription-card {
    background:
        radial-gradient(circle at 90% 0, rgba(255, 90, 176, 0.22), transparent 17rem),
        rgba(255, 255, 255, 0.075);
}

.subscription-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 42px;
}

.subscription-icon,
.phone-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #ff91cc;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.subscription-icon svg,
.phone-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.plan-badge {
    padding: 7px 13px;
    color: #2c214a;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-badge[data-plan="premium"],
.plan-badge[data-plan="gift"],
.plan-badge[data-plan="staff"] {
    color: #37102c;
    background: linear-gradient(135deg, #ffd166, #ff91cc);
}

.plan-details { display: grid; gap: 10px; margin: 28px 0; }

.plan-details div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.plan-details dt { color: var(--muted); }
.plan-details dd { margin: 0; text-align: right; }

.manage-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.manage-card .phone-icon { margin-bottom: 38px; color: #6ce6ef; }
.manage-card .primary-button { margin-top: auto; }

@media (max-width: 1060px) {
    .hero-inner {
        grid-template-columns: minmax(330px, 0.85fr) minmax(420px, 1.15fr);
        gap: 28px;
    }

    .careers-layout {
        grid-template-columns: 1fr;
    }

    .language-tiles {
        justify-content: start;
    }

    .deck-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .catalog-page-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        padding: 64px 0 0;
    }

    .hero-copy {
        max-width: 620px;
    }

    .hero-art {
        justify-self: center;
        width: min(620px, 100%);
        margin-top: 36px;
    }

    .online-play-layout {
        grid-template-columns: 1fr;
    }

    .online-play-copy {
        max-width: 680px;
    }

    .online-play-gallery {
        width: min(620px, 100%);
        min-height: 640px;
        margin-inline: auto;
    }

    .account-auth-layout,
    .subscription-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .site-header {
        position: relative;
        display: block;
        padding: 18px 20px;
    }

    .language {
        display: none;
    }

    .account-security-label { display: none; }

    .brand {
        margin-bottom: 18px;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .hero {
        min-height: auto;
        padding: 0 20px;
    }

    .hero-inner {
        padding-top: 56px;
    }

    .app-icon {
        width: 86px;
        height: 86px;
        margin-bottom: 30px;
        border-radius: 20px;
    }

    .hero-art {
        margin-top: 30px;
    }

    .online-play .section-inner {
        width: min(100% - 40px, 600px);
        padding-block: 72px;
    }

    .online-play-intro {
        font-size: 18px;
    }

    .online-play-features {
        grid-template-columns: 1fr;
    }

    .online-play-gallery {
        min-height: 520px;
        margin-top: 4px;
    }

    .online-preview {
        width: min(245px, 58%);
        border-width: 5px;
        border-radius: 26px;
    }

    h1 {
        font-size: 48px;
    }

    .hero p:not(.eyebrow),
    .section-intro,
    .careers p {
        font-size: 21px;
    }

    .primary-button {
        min-width: 190px;
        min-height: 62px;
        font-size: 22px;
    }

    .download-options {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 42px 10px;
    }

    .games-lead {
        margin-top: -30px;
    }

    .game-page {
        padding-top: 46px;
    }

    .game-detail-hero,
    .game-detail-content {
        grid-template-columns: 1fr;
    }

    .game-detail-artwork {
        max-width: 460px;
    }

    .game-facts {
        padding: 20px 10px;
    }

    .game-fact {
        min-width: calc(50% - 6px);
        padding: 8px 14px;
        border-right: 0;
    }

    .game-detail-content {
        gap: 36px;
        padding-top: 64px;
    }

    .deck-grid,
    .catalog-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .language-tiles {
        grid-template-columns: repeat(3, 86px);
    }

    .language-tiles span {
        width: 86px;
        height: 84px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .store-grid {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .policy-page {
        padding-top: 64px;
    }

    .copyright {
        margin-top: 20px !important;
    }

    .account-main { padding: 64px 18px 88px; }
    .account-intro { margin-bottom: 40px; }
    .account-panel { min-height: auto; padding: 28px 22px; }

    .profile-card {
        grid-template-columns: auto 1fr;
        padding: 24px 20px;
    }

    .profile-logout { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 420px) {
    h1 {
        font-size: 40px;
    }

    .game-grid {
        grid-template-columns: 1fr;
    }

    .deck-grid,
    .catalog-page-grid {
        grid-template-columns: 1fr;
    }
}
