@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --screen-width: 500px;
    --pink: #fb0043;
    --violet: #5721ea;
    --purple: #673edc;
    --bottom-nav-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    background: #14121d;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kitty-app {
    --bg-offset-ratio: -15.47%;
    --hero-top: 152px;
    width: min(100vw, var(--screen-width));
    height: 100vh;
    height: 100dvh;
    min-height: 640px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: clamp(0px, calc((100vw - 499px) * 30), 30px);
    background: linear-gradient(180deg, #fe87a3 0%, #fe87a3 55%, #fb7fa0 100%);
    color: #000;
}

.kitty-bg {
    position: absolute;
    z-index: -3;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transform: translateY(var(--bg-offset-ratio));
    object-fit: contain;
}

.kitty-bg-fade {
    position: absolute;
    z-index: -2;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 810 / 1440;
    transform: translateY(var(--bg-offset-ratio));
    background: linear-gradient(180deg, rgba(254, 135, 163, 0) 78%, rgba(254, 135, 163, 0.65) 88%, #fe87a3 100%);
}

.topbar {
    position: relative;
    z-index: 4;
    height: 72px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: #fff;
    object-fit: cover;
}

.profile-copy {
    width: 120px;
    display: grid;
    gap: 4px;
    color: #fff;
    line-height: 1;
    text-shadow: 0 1px 1px rgba(65, 68, 147, 0.18);
}

.profile-copy strong {
    font-size: 13px;
}

.profile-copy span {
    font-size: 13px;
    font-weight: 400;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-button {
    width: 32px;
    height: 32px;
    border: 1px solid #fff;
    border-radius: 8px;
    display: grid;
    place-items: center;
    gap: 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.4);
}

.menu-button span {
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(104, 147, 248, 0.35);
}

.home-back-button {
    width: 32px;
    height: 32px;
    border: 1px solid #fff;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.4);
}

.home-back-button span {
    width: 12px;
    height: 12px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: translateX(2px) rotate(45deg);
    filter: drop-shadow(0 0 1px rgba(104, 147, 248, 0.6));
}

.play-top-stats {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 8px;
}

.play-top-chip {
    height: 32px;
    border: 1px solid #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.45);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    text-shadow: 0 1px 1px rgba(65, 68, 147, 0.2);
}

.play-top-chip img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.play-top-chip b {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #673edc;
    font-size: 18px;
    line-height: 1;
}

.kitty-app.is-play-screen .profile-copy {
    width: 92px;
}

.kitty-app.is-play-screen .play-top-stats {
    display: flex;
}

.kitty-app.is-play-screen .home-screen {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.kitty-app.is-winner-screen {
    --bg-offset-ratio: -15.47%;
}

.stats-shell {
    position: relative;
    z-index: 4;
    margin: 0 16px;
    height: 80px;
    overflow: visible;
}

.stats-card {
    height: 80px;
    border: 1px solid #fff;
    border-radius: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
    gap: 0;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
}

.stat-item {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 12px;
}

.stat-item p {
    margin-bottom: 1px;
    font-size: 13px;
    font-weight: 700;
}

.stat-item strong {
    display: block;
    font-size: 25px;
    line-height: 1.05;
    font-weight: 900;
}

.points {
    color: #ff7900;
    text-shadow: 0 1px 0 #ffbd00;
}

.turns {
    color: var(--violet);
}

.stat-icon {
    margin: auto;
    object-fit: contain;
}

.stat-icon.coin {
    width: 46px;
    height: 46px;
    filter: drop-shadow(0 0 4px #fec606);
}

.stat-icon.ticket {
    width: 52px;
    height: 41px;
    filter: drop-shadow(0 0 5px #7933fb);
}

.stat-divider {
    width: 100%;
    height: 60px;
    background: transparent;
}

.hero {
    position: absolute;
    z-index: 1;
    left: 0;
    top: var(--hero-top);
    width: 100%;
    height: 360px;
    overflow: visible;
    pointer-events: none;
}

.kitty-logo {
    position: absolute;
    z-index: 1;
    top: -40px;
    left: 50%;
    width: 260px;
    transform: translateX(calc(-50% - 3px)) rotate(3.7deg);
}

.kitty-cat {
    position: absolute;
    z-index: 2;
    top: 56px;
    left: 50%;
    width: 271px;
    height: 299px;
    object-fit: contain;
    transform: translateX(calc(-50% + 5.5px));
    filter: drop-shadow(0 0 15px rgba(255, 101, 241, 0.7));
}

.play-button {
    position: absolute;
    z-index: 5;
    top: calc(var(--hero-top) + 314px);
    left: 50%;
    width: 200px;
    height: 48px;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255, 101, 241, 0.9) 0%, rgba(211, 0, 192, 0.9) 100%);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.45);
    color: #fff;
    text-transform: uppercase;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

.play-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
}

.play-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.package-shell {
    position: absolute;
    z-index: 4;
    left: 16px;
    right: 16px;
    bottom: calc(32px + var(--bottom-nav-height));
    height: 100px;
    overflow: visible;
}

.package-card {
    height: 100px;
    border: 1px solid #fff;
    border-radius: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 143px;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
}

.package-icon {
    position: absolute;
    top: 5.5px;
    left: 4.5px;
    width: 43px;
    height: 43px;
    object-fit: contain;
    transform: rotate(-7deg);
    transform-origin: center bottom;
    animation: gift-box-wiggle 0.8s ease-in-out infinite;
    will-change: transform;
}

@keyframes gift-box-wiggle {
    0%, 100% { transform: rotate(-7deg) translateY(0); }
    25% { transform: rotate(-15deg) translateY(-1px); }
    50% { transform: rotate(1deg) translateY(0); }
    75% { transform: rotate(-13deg) translateY(-1px); }
}

.package-copy {
    width: 182px;
}

.package-title {
    height: 28px;
    display: flex;
    align-items: center;
    padding-left: 34px;
    margin-bottom: 4px;
}

.package-title h2 {
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
    color: #311384;
}

.package-title span {
    color: #e344ab;
}

.package-copy p {
    font-size: 13px;
    line-height: 1.35;
}

.package-action {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.package-action p {
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.package-action strong {
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
    color: #673edc;
}

.package-action button {
    width: 143px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(151deg, rgba(86, 43, 219, 0.95) 30%, rgba(46, 23, 117, 0.95) 70%);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.bottom-nav-shell {
    position: absolute;
    z-index: 5;
    left: 16px;
    right: 16px;
    bottom: 16px;
    height: 60px;
    overflow: visible;
}

@media (min-width: 501px) {
    .bottom-nav-shell {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: 16px;
        width: calc(var(--screen-width) - 32px);
        transform: translateX(-50%);
    }
}

.scale-floor {
    --scale-floor-width: 368px;
    --scale-floor-scale: 1;
    --scale-floor-height: 60px;
}

.scale-floor-inner {
    position: absolute;
    top: 0;
    left: 50%;
    width: max(100%, var(--scale-floor-width));
    transform: translateX(-50%) scale(var(--scale-floor-scale));
    transform-origin: center top;
}

.bottom-nav {
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    background: #fff;
    overflow: hidden;
}

.bottom-nav a {
    min-width: 64px;
    flex: 1 1 0;
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}

.bottom-nav a.active {
    color: var(--pink);
}

.bottom-nav img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.bottom-nav a:first-child img {
    width: 45px;
    height: 30px;
    object-fit: cover;
    transform: translateY(-1px) rotate(-7.2deg);
}

.bottom-nav a:nth-child(4) img,
.bottom-nav a:nth-child(5) img {
    width: 27px;
}

.bottom-nav a:nth-child(5) img {
    height: 29px;
}

.winner-screen {
    position: absolute;
    z-index: 3;
    inset: 0 0 calc(16px + var(--bottom-nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px 0 37px;
    overflow: hidden;
    overscroll-behavior: contain;
    pointer-events: none;
}

.winner-screen::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.winner-content {
    width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, calc(100dvh - 700px), 20px);
    pointer-events: auto;
}

.winner-hero {
    width: 400px;
    height: clamp(168px, calc(100dvh - 478px), 242px);
    max-width: 100%;
    object-fit: contain;
    flex: 0 1 auto;
}

.winner-cards {
    min-height: 0;
    width: min(calc(100% - 64px), 336px);
    flex: 0 1 auto;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.winner-cards::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.winner-card + .winner-card {
    margin-top: 8px;
}

.winner-card {
    --winner-color: #ff3e77;
    --winner-button: #ff4f93;
    border: 2px solid var(--winner-color);
    border-radius: 16px;
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 3px 0 rgba(104, 35, 104, 0.25);
    overflow: hidden;
}

.winner-card.is-monthly {
    --winner-color: #8b39ff;
    --winner-button: #8b39ff;
}

.winner-card-image {
    width: 104px;
    height: 104px;
    align-self: center;
    border-radius: 12px;
    object-fit: cover;
}

.winner-card-copy {
    min-width: 0;
    padding-top: 5px;
}

.winner-card-copy h2 {
    height: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--winner-color);
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.winner-card-copy h2 span {
    width: 14px;
    height: 14px;
    display: block;
    position: relative;
    flex: 0 0 14px;
}

.winner-card-copy h2 span::before {
    content: "";
    position: absolute;
    left: 4px;
    bottom: 1px;
    width: 6px;
    height: 6px;
    border-radius: 55% 55% 48% 48%;
    background: var(--winner-color);
}

.winner-card-copy h2 span::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 5.5px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--winner-color);
    box-shadow:
        -4px 3px 0 var(--winner-color),
        4px 3px 0 var(--winner-color);
}

.winner-card-copy p {
    width: 176px;
    margin-top: 4px;
    color: #000;
    font-size: 10px;
    line-height: 1.18;
    font-weight: 800;
}

.winner-table-head {
    width: 176px;
    height: 12px;
    margin-top: 5px;
    display: grid;
    grid-template-columns: 1fr 42px 42px;
    align-items: center;
    color: #000;
    font-size: 8px;
    line-height: 1;
}

.winner-card.is-monthly .winner-table-head {
    grid-template-columns: 48px 62px 1fr;
}

.winner-table-head span:nth-child(2),
.winner-table-head span:nth-child(3) {
    text-align: center;
}

.winner-divider {
    width: 176px;
    height: 4px;
    margin-top: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.winner-card-button {
    width: 176px;
    height: 32px;
    margin-top: 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    background: var(--winner-button);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.winner-card-button b {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #fff;
}

@media (max-width: 399px) {
    .winner-cards {
        width: calc(100% - 32px);
    }
}

.daily-winner-screen {
    position: absolute;
    z-index: 3;
    inset: 72px 0 calc(32px + var(--bottom-nav-height));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: contain;
}

.daily-winner-screen::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.daily-winner-content {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.daily-title {
    position: relative;
    width: 320px;
    height: clamp(62px, 10vh, 75px);
    flex: 0 0 auto;
}

.daily-title img {
    width: 320px;
    height: 100%;
    object-fit: contain;
}

.daily-title-text {
    position: absolute;
    inset: 0;
    width: 320px;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    filter: drop-shadow(0 2px 1px rgba(143, 40, 86, 0.35));
}

.daily-title-text text {
    fill: #fff;
    font-size: 23px;
    font-weight: 900;
    text-transform: uppercase;
}

.daily-title-paw {
    position: absolute;
    top: 34px;
    width: 18px;
    height: 18px;
    transform: rotate(-18deg);
}

.daily-title-paw-left {
    left: 20px;
}

.daily-title-paw-right {
    right: 20px;
    transform: rotate(18deg);
}

.daily-title-paw::before {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 2px;
    width: 8px;
    height: 8px;
    border-radius: 55% 55% 48% 48%;
    background: rgba(255, 168, 176, 0.95);
}

.daily-title-paw::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 7px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 168, 176, 0.95);
    box-shadow:
        -5px 4px 0 rgba(255, 168, 176, 0.95),
        5px 4px 0 rgba(255, 168, 176, 0.95);
}

.winner-date-picker {
    position: relative;
    z-index: 1;
    width: 153px;
    height: 28px;
    border: 0;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 22px 1fr 16px;
    align-items: center;
    padding: 6px 10px;
    margin-top: -10px;
    background: rgba(255, 255, 255, 0.9);
    color: #ff2b6e;
    flex: 0 0 auto;
    cursor: pointer;
}

.winner-date-picker strong {
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.date-calendar {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.date-chevron {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.daily-calendar-popover {
    position: absolute;
    z-index: 30;
    width: 268px;
    border: 3px solid #ff2b8a;
    border-radius: 18px;
    padding: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 236, 247, 0.96) 100%),
        #ffd7eb;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.92),
        0 8px 0 rgba(255, 75, 148, 0.35),
        0 16px 28px rgba(79, 23, 93, 0.24);
    overflow: hidden;
}

.daily-calendar-popover::before,
.daily-calendar-popover::after {
    content: "";
    position: absolute;
    top: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 145, 191, 0.42);
}

.daily-calendar-popover::before {
    left: 14px;
    box-shadow: 10px 8px 0 rgba(255, 145, 191, 0.26);
}

.daily-calendar-popover::after {
    right: 14px;
    box-shadow: -10px 8px 0 rgba(255, 145, 191, 0.26);
}

.daily-calendar-head {
    position: relative;
    z-index: 1;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ff62a6 0%, #ff2875 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 2px 0 rgba(154, 25, 82, 0.28);
    box-shadow: 0 3px 0 rgba(172, 34, 96, 0.24);
}

.daily-calendar-week,
.daily-calendar-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.daily-calendar-week {
    margin: 11px 0 6px;
    color: #ff2670;
    font-size: 9px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.daily-calendar-grid button {
    width: 29px;
    height: 29px;
    border: 1px solid #ff9fcb;
    border-radius: 9px;
    background: linear-gradient(180deg, #fff 0%, #ffe8f4 100%);
    color: #5d27bd;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 2px 0 rgba(255, 96, 165, 0.2);
}

.daily-calendar-grid button.is-selected {
    border-color: #ff1f70;
    background: linear-gradient(180deg, #ff9a22 0%, #ff6c05 100%);
    color: #fff;
    box-shadow: 0 3px 0 rgba(173, 71, 0, 0.34), 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.daily-calendar-grid button:not(:disabled):hover {
    border-color: #ff2670;
    background: linear-gradient(180deg, #ff5aa0 0%, #ff2670 100%);
    color: #fff;
}

.daily-calendar-grid button:disabled {
    border-color: transparent;
    background: rgba(255, 255, 255, 0.42);
    color: rgba(255, 43, 112, 0.34);
    box-shadow: none;
}

.monthly-calendar-popover {
    width: 292px;
}

.monthly-calendar-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.monthly-calendar-grid button {
    height: 38px;
    border: 1px solid #ff9fcb;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff 0%, #ffe8f4 100%);
    color: #5d27bd;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 2px 0 rgba(255, 96, 165, 0.2);
}

.monthly-calendar-grid button.is-selected {
    border-color: #ff1f70;
    background: linear-gradient(180deg, #ff9a22 0%, #ff6c05 100%);
    color: #fff;
    box-shadow: 0 3px 0 rgba(173, 71, 0, 0.34), 0 0 0 2px rgba(255, 255, 255, 0.9);
}

.monthly-calendar-grid button:hover {
    border-color: #ff2670;
    background: linear-gradient(180deg, #ff5aa0 0%, #ff2670 100%);
    color: #fff;
}

.daily-table-shell {
    width: calc(100% - 16px);
    height: auto;
    min-height: 260px;
    max-height: none;
    flex: 1 1 auto;
    margin-top: 12px;
    border: 1px solid #fff;
    border-radius: 16px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 4px 0 rgba(147, 47, 111, 0.3);
    overflow: hidden;
}

.daily-table {
    height: 100%;
    display: grid;
    grid-template-rows: 32px minmax(0, 1fr);
    gap: 6px;
}

.daily-table-body {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 2px;
}

.daily-table-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.daily-table-head,
.daily-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 78px 98px;
    align-items: center;
}

.daily-table-head {
    height: 32px;
    border-radius: 11px;
    background: #ff2b6e;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-align: center;
}

.daily-row {
    height: 42px;
    border: 1px solid #ff6f9e;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    color: #000;
    font-size: 10px;
    line-height: 1;
}

.daily-row > span {
    text-align: center;
}

.daily-row > span:first-child {
    color: #fb0043;
    font-size: 13px;
    font-weight: 900;
}

.daily-empty {
    min-height: 42px;
    border: 1px solid #ff6f9e;
    border-radius: 10px;
    display: grid;
    place-items: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.5);
    color: #fb0043;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.reward-pill {
    width: 84px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: 16px 12px;
    align-items: center;
    padding: 3px 6px 3px 4px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.18);
}

.reward-pill img {
    grid-row: 1 / 3;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.reward-pill b {
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
}

.reward-pill small {
    color: #000;
    font-size: 8px;
    line-height: 1;
    font-weight: 400;
}

.reward-pill.is-data b {
    color: #3767df;
}

.reward-pill.is-points b {
    color: #4ca423;
}

.reward-pill.is-score b {
    color: #ff7900;
}

@media (max-width: 399px) {
    .daily-table-shell {
        width: calc(100% - 16px);
        padding: 8px;
    }

    .daily-table-head,
    .daily-row {
        grid-template-columns: 32px 1fr 64px 86px;
    }

    .daily-row {
        font-size: 9px;
    }

    .reward-pill {
        width: 82px;
    }
}

.monthly-winner-screen {
    position: absolute;
    z-index: 3;
    inset: 72px 0 calc(16px + var(--bottom-nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.monthly-winner-content {
    width: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.monthly-hero {
    width: 400px;
    height: 171px;
    max-width: 100%;
    object-fit: contain;
    flex: 0 0 auto;
}

.monthly-date-picker {
    width: 133px;
    margin-top: 4px;
}

.monthly-prize-list {
    width: min(calc(100% - 32px), 368px);
    min-height: 220px;
    height: auto;
    max-height: 340px;
    flex: 1 1 340px;
    margin-top: 8px;
    display: grid;
    align-content: start;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.monthly-prize-list::after {
    content: "";
    height: 72px;
}

.monthly-prize-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.monthly-empty {
    min-height: 108px;
    border: 2px solid #ff2b8a;
    border-radius: 14px;
    display: grid;
    place-items: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 3px 0 rgba(104, 35, 104, 0.25);
    color: #fb0043;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
}

.monthly-prize-card {
    --monthly-border: #d7e56c;
    --monthly-phone: #9b0017;
    width: 100%;
    height: 108px;
    border: 2px solid var(--monthly-border);
    border-radius: 14px;
    display: grid;
    grid-template-columns: 84px 1fr 84px;
    gap: 10px;
    align-items: center;
    padding: 10px 10px 10px 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 3px 0 rgba(104, 35, 104, 0.25);
    overflow: hidden;
}

.monthly-prize-card.is-second {
    --monthly-border: #436dff;
    --monthly-phone: #003280;
    background: rgba(214, 229, 255, 0.82);
}

.monthly-prize-card.is-third {
    --monthly-border: #ff8b35;
    --monthly-phone: #7c2700;
    background: rgba(255, 226, 202, 0.86);
}

.monthly-medal {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.monthly-prize-copy {
    min-width: 0;
    display: grid;
    justify-items: center;
}

.monthly-prize-copy h2 {
    margin-bottom: 2px;
    color: #000;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.monthly-prize-copy strong {
    color: var(--monthly-phone);
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.monthly-prize-copy p {
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 2px;
    color: #000;
    font-size: 9px;
    line-height: 1;
}

.monthly-time-icon {
    width: 9px;
    height: 9px;
    border: 1px solid #fb0043;
    border-radius: 50%;
    position: relative;
}

.monthly-time-icon::before,
.monthly-time-icon::after {
    content: "";
    position: absolute;
    left: 3.5px;
    bottom: 3.5px;
    width: 1px;
    background: #fb0043;
    transform-origin: bottom center;
}

.monthly-time-icon::before {
    height: 3px;
}

.monthly-time-icon::after {
    height: 2.5px;
    transform: rotate(90deg);
}

.monthly-reward {
    width: 84px;
    height: 84px;
    position: relative;
    display: grid;
    place-items: center;
}

.monthly-reward img {
    width: 96px;
    height: 88px;
    object-fit: contain;
}

.monthly-reward span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 7px;
    color: #fff;
    font-size: 10px;
    line-height: 0.95;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.leaderboard-screen {
    position: absolute;
    z-index: 3;
    inset: 52px 0 calc(32px + var(--bottom-nav-height));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.leaderboard-content {
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leaderboard-hero {
    width: min(353px, calc(100% - 47px));
    height: clamp(92px, 19vh, 140px);
    object-fit: contain;
    flex: 0 0 auto;
}

.leaderboard-panel {
    width: calc(100% - 16px);
    min-height: 280px;
    max-height: none;
    flex: 1 1 auto;
    margin-top: -20px;
    border: 2px solid #6c2ed1;
    border-radius: 16px;
    padding: 10px;
    display: grid;
    grid-template-rows: 32px minmax(0, 1fr) 24px 50px;
    gap: 6px;
    background: rgba(246, 245, 248, 0.74);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.9),
        0 4px 0 rgba(82, 32, 216, 0.2);
    overflow: hidden;
}

.leaderboard-head,
.leaderboard-row,
.leaderboard-my-rank {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 124px;
    align-items: center;
}

.leaderboard-head {
    border-radius: 11px;
    padding: 0 16px;
    background: linear-gradient(180deg, #6c2bd9 0%, #5d27bd 100%);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.leaderboard-head span:nth-child(3) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.leaderboard-head img {
    width: 12px;
    height: 12px;
    object-fit: contain;
}

.leaderboard-rows {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.leaderboard-rows::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.leaderboard-row {
    min-height: 42px;
    border: 1px solid #b19bdf;
    border-radius: 10px;
    padding: 0 16px;
    background: rgba(244, 247, 251, 0.9);
    color: #000;
    font-size: 10px;
    line-height: 1;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.leaderboard-row.is-current {
    background: rgba(255, 239, 246, 0.86);
    box-shadow: inset 0 0 0 2px #ff3f78;
}

.leaderboard-rank {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-align: center;
}

.leaderboard-rank.is-number,
.leaderboard-row:nth-child(n+4) .leaderboard-rank {
    border-radius: 50%;
    background: linear-gradient(180deg, #6d2adb 0%, #5d27bd 100%);
    box-shadow: 0 2px 0 rgba(42, 18, 112, 0.28);
}

.leaderboard-rank img {
    max-width: 31px;
    max-height: 37px;
    object-fit: contain;
}

.leaderboard-phone {
    color: #5d27bd;
    font-weight: 900;
    letter-spacing: 0;
}

.leaderboard-row strong,
.leaderboard-my-rank strong {
    justify-self: end;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
}

.leaderboard-row strong b,
.leaderboard-my-rank strong b {
    background: linear-gradient(180deg, #5220d8 0%, #ff3f7a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.leaderboard-row strong img,
.leaderboard-my-rank strong img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.leaderboard-pages {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.leaderboard-pages a {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #6b6b6b;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    display: grid;
    place-items: center;
    text-decoration: none;
}

.leaderboard-pages a.active {
    background: linear-gradient(180deg, #ff8b18 0%, #ff6804 100%);
    color: #fff;
}

.leaderboard-empty {
    min-height: 42px;
    border: 1px solid #b19bdf;
    border-radius: 10px;
    display: grid;
    place-items: center;
    padding: 0 16px;
    background: rgba(244, 247, 251, 0.9);
    color: #5d27bd;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.leaderboard-my-rank {
    min-height: 50px;
    border-radius: 10px;
    padding: 0 16px;
    grid-template-columns: 117px minmax(0, 1fr) 104px;
    background: linear-gradient(180deg, #ff8a18 0%, #ff6804 100%);
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

.leaderboard-my-badge {
    width: 101px;
    height: 30px;
    display: grid;
    grid-template-columns: 30px 67px;
    align-items: center;
    gap: 4px;
}

.leaderboard-my-badge > span {
    font-size: 8px;
    font-weight: 900;
    text-align: center;
}

.leaderboard-my-badge b {
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #6d2adb 0%, #5d27bd 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.leaderboard-my-badge b.has-medal {
    width: 30px;
    background: transparent;
}

.leaderboard-my-badge img {
    width: 31px;
    height: 30px;
    object-fit: contain;
}

.leaderboard-my-rank strong {
    color: #fff;
}

.leaderboard-my-rank strong b {
    background: none;
    color: #fff;
}

.kitty-app.is-history-screen .profile-copy {
    width: 92px;
}

.kitty-app.is-history-screen .play-top-stats {
    display: flex;
}

.history-screen {
    position: absolute;
    z-index: 3;
    inset: 72px 0 calc(32px + var(--bottom-nav-height));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.history-panel {
    width: calc(100% - 16px);
    height: 100%;
    min-height: 360px;
    border: 2px solid #5d27bd;
    border-radius: 14px;
    padding: 10px;
    display: grid;
    grid-template-rows: 24px 28px minmax(0, 1fr);
    gap: 6px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.85),
        0 4px 0 rgba(82, 32, 216, 0.18);
    overflow: hidden;
}

.history-title {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #5d27bd;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.history-title img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.history-filter {
    display: grid;
    grid-template-columns: 149px 19px 153px;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.history-filter label {
    position: relative;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    display: grid;
    grid-template-columns: 16px 1fr 16px;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.88);
    color: #fb0043;
    cursor: pointer;
}

.history-filter label img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.history-filter label strong {
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.history-filter input[type="hidden"] {
    display: none;
}

.history-filter > span {
    color: #5d27bd;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    text-align: center;
}

.history-table {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 12px 24px;
    gap: 6px;
    overflow: hidden;
}

.history-table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.history-table-scroll::-webkit-scrollbar {
    height: 0;
}

.history-table-inner {
    width: 100%;
    min-width: 344px;
    height: 100%;
    display: grid;
    grid-template-rows: 36px minmax(0, 1fr);
    gap: 6px;
}

.history-table-head,
.history-row {
    width: 100%;
    display: grid;
    grid-template-columns: 82px 66px minmax(94px, 1fr) 94px;
    align-items: center;
}

.history-table-head {
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 0 8px;
    background: #5d27bd;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.history-table-head span:last-child {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.history-table-head img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: brightness(1.12);
}

.history-table-body {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.history-table-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.history-row {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 8px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)) padding-box,
        linear-gradient(90deg, #fff 0%, #5d27bd 100%) border-box;
    color: #5d27bd;
    font-size: 10px;
    line-height: 1;
}

.history-row > span {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 2px;
    text-align: center;
}

.history-row > span:nth-child(3) {
    justify-items: start;
    text-align: left;
    color: #5d27bd;
    font-size: 9px;
    font-weight: 700;
}

.history-row b {
    font-weight: 800;
}

.history-row small {
    font-size: 8px;
    line-height: 1;
}

.history-row small.is-hard {
    color: #fb0043;
}

.history-row small.is-medium {
    color: #8a38f5;
}

.history-row small.is-easy {
    color: #fc88a5;
}

.history-row .reward-pill {
    justify-self: end;
    width: 84px;
    height: 26px;
    grid-template-columns: 24px 1fr;
    grid-template-rows: 14px 10px;
    padding: 2px 4px 2px 3px;
}

.history-row .reward-pill img {
    width: 24px;
    height: 24px;
}

.history-row .reward-pill b {
    font-size: 14px;
}

.history-row .reward-pill small {
    font-size: 7px;
}

.history-pages {
    width: 100%;
    max-width: 344px;
    min-width: 0;
    height: 24px;
    justify-self: center;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.history-pages button,
.history-pages a {
    position: relative;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    padding: 0;
    display: grid;
    place-items: center;
    background: #6b6b6b;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.history-pages button.active,
.history-pages a.active {
    background: #ff720a;
}

.history-pages .is-disabled {
    pointer-events: none;
    opacity: 0.65;
}

.history-page-arrow {
    background: #5d27bd;
}

.history-page-arrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
}

.history-page-arrow.is-prev::before {
    transform: translateX(2px) rotate(-45deg);
}

.history-page-arrow.is-next::before {
    transform: translateX(-2px) rotate(135deg);
}

.history-note {
    width: 170px;
    min-width: 170px;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 2px;
    color: #5d27bd;
    font-size: 10px;
    line-height: 1;
    font-style: italic;
    font-weight: 700;
    white-space: nowrap;
}

.history-note span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #5d27bd;
    color: #fff;
    font-size: 7px;
    line-height: 1;
    font-weight: 900;
}

.history-empty {
    min-height: 120px;
    display: grid;
    place-items: center;
    color: #5d27bd;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.history-row .reward-pill.is-empty {
    background: #d8d4ea;
    color: #6b6b6b;
}

.guide-screen {
    position: absolute;
    z-index: 3;
    inset: 72px 0 calc(32px + var(--bottom-nav-height));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.guide-panel {
    width: calc(100% - 16px);
    height: 100%;
    min-height: 360px;
    border: 2px solid #5d27bd;
    border-radius: 16px;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.84), 0 3px 0 rgba(82, 32, 216, 0.2);
    overflow: hidden;
}

.guide-content {
    height: 100%;
    padding-right: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #111;
}

.guide-content::-webkit-scrollbar {
    width: 4px;
}

.guide-content::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(177, 143, 235, 0.26);
}

.guide-content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #6e2fda;
}

.guide-content h1 {
    margin: 0 auto 12px;
    color: #5d27bd;
    font-size: 17px;
    line-height: 1.18;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.guide-logo {
    width: 194px;
    height: 89px;
    display: block;
    margin: 0 auto 12px;
    object-fit: contain;
    filter: drop-shadow(0 7px 7px rgba(202, 0, 160, 0.32));
}

.guide-section {
    margin-top: 16px;
}

.guide-section h2 {
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e800cb;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
}

.guide-section h2 b {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #6d40d9;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.guide-section p,
.guide-section li {
    margin: 0 0 10px;
    color: #111;
    font-size: 13px;
    line-height: 1.23;
    font-weight: 400;
    text-align: justify;
}

.guide-section strong {
    font-weight: 900;
}

.guide-section ul {
    margin: -4px 0 12px;
    padding-left: 18px;
}

.guide-section li {
    margin-bottom: 2px;
}

.guide-cat {
    width: 120px;
    height: 132px;
    display: block;
    margin: 34px auto 12px;
    object-fit: contain;
}

.guide-package {
    width: 238px;
    min-height: 82px;
    margin: 8px auto 0;
    display: grid;
    grid-template-columns: 86px 50px 1fr;
    grid-template-rows: 34px 36px;
    align-items: center;
    column-gap: 6px;
}

.guide-package img {
    grid-row: 1 / 3;
    width: 78px;
    height: 78px;
    object-fit: contain;
    filter: drop-shadow(0 4px 5px rgba(224, 0, 169, 0.25));
}

.guide-package strong {
    justify-self: end;
    color: #e93abd;
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
}

.guide-package span {
    color: #111;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

.guide-package button {
    grid-column: 2 / 4;
    width: 120px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(180deg, #6b43e8 0%, #3b208c 100%);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 2px 0 rgba(44, 18, 117, 0.28);
}

.guide-section h3 {
    margin: 12px 0 8px;
    padding: 4px 6px;
    background: #6d40d9;
    color: #fff;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.guide-table-wrap {
    width: 100%;
    margin-bottom: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.guide-table-wrap::-webkit-scrollbar {
    height: 0;
}

.guide-table {
    width: 100%;
    min-width: 318px;
    border-collapse: collapse;
    color: #111;
    font-size: 11px;
    line-height: 1.05;
    text-align: left;
}

.guide-table caption {
    padding: 4px 0;
    color: #6d40d9;
    font-size: 13px;
    line-height: 1;
    font-style: italic;
    font-weight: 900;
    text-align: center;
}

.guide-table th,
.guide-table td {
    padding: 5px 4px;
    border-bottom: 1px solid rgba(93, 39, 189, 0.14);
    vertical-align: top;
}

.guide-table th {
    font-weight: 900;
}

.guide-table td:nth-child(4) {
    color: #6d40d9;
    font-size: 8px;
    font-weight: 800;
}

.guide-table.is-compact,
.guide-table.is-reward {
    font-size: 10px;
}

.guide-table.is-reward {
    border: 1px solid #111;
}

.guide-table.is-reward th,
.guide-table.is-reward td {
    border: 1px solid #111;
    color: #111;
    font-size: 10px;
}

.guide-winner-card {
    width: 100%;
    min-height: 82px;
    margin: 8px 0 12px;
    border: 1px solid #ff4b91;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.75);
}

.guide-winner-card img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.guide-winner-card h4 {
    margin: 0 0 2px;
    color: #8b39ff;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.guide-winner-card p {
    margin: 0 0 6px;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 800;
    text-align: left;
}

.guide-winner-card a {
    width: 132px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #8b39ff;
    color: #fff;
    font-size: 9px;
    line-height: 1;
    font-weight: 900;
}

.guide-note {
    color: #5d27bd !important;
    font-size: 11px !important;
    font-style: italic;
}

@media (max-width: 399px) {
    .monthly-prize-list {
        width: calc(100% - 16px);
    }

    .monthly-prize-card {
        grid-template-columns: 76px 1fr 76px;
        gap: 7px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .monthly-medal,
    .monthly-reward {
        width: 76px;
        height: 76px;
    }

    .monthly-reward img {
        width: 88px;
        height: 82px;
    }

    .monthly-prize-copy strong {
        font-size: 20px;
    }

    .leaderboard-panel {
        width: calc(100% - 16px);
        padding: 10px;
    }

    .leaderboard-head,
    .leaderboard-row {
        grid-template-columns: 44px 1fr 106px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .leaderboard-my-rank {
        grid-template-columns: 104px 1fr 92px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .leaderboard-row strong,
    .leaderboard-my-rank strong {
        font-size: 14px;
    }

    .history-panel {
        width: calc(100% - 16px);
        padding-left: 8px;
        padding-right: 8px;
    }

    .history-filter {
        grid-template-columns: minmax(0, 1fr) 17px minmax(0, 1fr);
    }

    .history-filter label {
        gap: 4px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .guide-panel {
        width: calc(100% - 16px);
        padding-left: 16px;
        padding-right: 10px;
    }

}

.play-screen {
    position: absolute;
    z-index: 3;
    inset: 72px 0 0;
    padding-bottom: 108px;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.play-screen::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.kitty-app.is-play-screen .play-screen {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.challenge-content {
    position: relative;
    width: 100%;
    height: 540px;
    margin: max(64px, calc((100% - 520px) / 2)) 0 0;
}

.challenge-title {
    position: absolute;
    top: 0;
    left: 50%;
    height: 104px;
    width: min(calc(100% - 40px), 360px);
    object-fit: contain;
    transform: translateX(-50%);
}

.level-paw {
    display: block;
    position: relative;
}

.challenge-hint {
    position: absolute;
    top: 108px;
    left: 40px;
    right: 40px;
    height: 24px;
    border-radius: 4px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.84);
    color: #21006f;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
}

.level-list {
    position: absolute;
    top: 140px;
    left: 32px;
    right: 32px;
    height: 400px;
    display: grid;
    gap: 8px;
}

.level-card {
    --level-color: #ff4f93;
    --level-reward-bg: #ffd2e8;
    width: 100%;
    height: 128px;
    border: 2px solid currentColor;
    border-radius: 18px;
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 3px 0 rgba(104, 35, 104, 0.25);
    color: var(--level-color);
    text-align: left;
    overflow: hidden;
}

.level-card.is-selected {
    box-shadow:
        0 3px 0 rgba(104, 35, 104, 0.25),
        0 0 0 3px rgba(255, 255, 255, 0.92),
        0 0 0 6px rgba(255, 43, 138, 0.34);
}

.level-card.is-medium {
    --level-color: #8b39ff;
    --level-reward-bg: #dec6ff;
}

.level-card.is-hard {
    --level-color: #fb0043;
    --level-reward-bg: #ff4f75;
}

.level-image {
    width: 116px;
    height: 116px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(79, 198, 251, 0.5), rgba(255, 135, 163, 0.25)),
        url("../assets/kitty-fall/bg.png") center 61% / 190px auto;
}

.level-card.is-medium .level-image {
    background:
        linear-gradient(180deg, rgba(255, 221, 111, 0.35), rgba(112, 69, 255, 0.22)),
        url("../assets/kitty-fall/bg.png") center 55% / 190px auto;
}

.level-card.is-hard .level-image {
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 229, 78, 0.9), transparent 28%),
        linear-gradient(150deg, rgba(255, 65, 65, 0.75), rgba(92, 0, 124, 0.8)),
        url("../assets/kitty-fall/bg.png") center 50% / 190px auto;
}

.level-image img {
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 112px;
    height: 124px;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.22));
}

.level-copy {
    min-width: 0;
    display: grid;
    align-content: start;
    row-gap: 1px;
    padding-top: 2px;
}

.level-copy strong {
    display: flex;
    align-items: center;
    gap: 5px;
    color: currentColor;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
}

.level-paw {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: currentColor;
}

.level-paw::before {
    content: "";
    position: absolute;
    inset: 4px;
    background:
        radial-gradient(circle at 50% 62%, #fff 0 4px, transparent 4.5px),
        radial-gradient(circle at 29% 34%, #fff 0 2.5px, transparent 3px),
        radial-gradient(circle at 50% 24%, #fff 0 2.5px, transparent 3px),
        radial-gradient(circle at 71% 34%, #fff 0 2.5px, transparent 3px);
}

.level-copy span:not(.level-paw) {
    position: relative;
    padding-left: 11px;
    color: #000;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
}

.level-copy span:not(.level-paw)::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--level-color);
}

.level-copy em {
    width: 155px;
    height: 22px;
    margin-top: 3px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--level-reward-bg);
    color: #26004c;
    font-size: 11px;
    line-height: 1;
    font-style: normal;
}

.level-copy em b {
    font-weight: 900;
}

.level-copy em::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #ffc91f 0 5px, transparent 5.5px),
        #ff7900;
    box-shadow: inset 0 0 0 2px #ffb000;
}

.play-action-bar {
    position: absolute;
    z-index: 8;
    left: 16px;
    right: 16px;
    bottom: 16px;
    height: 60px;
    border-radius: 999px;
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 8px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.9);
}

.play-back-button,
.play-start-button {
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    line-height: 1;
    font-weight: 900;
}

.play-back-button {
    gap: 3px;
    background: #a6f493;
    color: #079e22;
    font-size: 22px;
}

.play-back-button span {
    font-size: 30px;
    line-height: 0.8;
}

.play-start-button {
    gap: 8px;
    background: linear-gradient(180deg, rgba(255, 101, 241, 0.9) 0%, rgba(211, 0, 192, 0.9) 100%);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 24px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

.embedded-game-screen {
    position: absolute;
    z-index: 12;
    inset: 0;
    display: none;
    background: #000;
}

.embedded-game-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.kitty-app.is-game-running .topbar,
.kitty-app.is-game-running .play-screen,
.kitty-app.is-game-running .play-action-bar {
    display: none;
}

.kitty-app.is-game-running .embedded-game-screen {
    display: block;
}

.game-over-modal {
    position: absolute;
    z-index: 30;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.game-over-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.game-over-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 220, 235, 0.42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.game-over-card {
    position: relative;
    width: min(100%, 348px);
    min-height: 390px;
    border: 3px solid #e63bc9;
    border-radius: 28px;
    padding: 84px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 248, 251, 0.94);
    box-shadow: 0 5px 0 rgba(207, 61, 144, 0.24);
    text-align: center;
}

.game-over-close {
    position: absolute;
    z-index: 2;
    top: -20px;
    right: -18px;
    width: 42px;
    height: 42px;
    border: 3px solid #e63bc9;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ff6bd4 0%, #e83fb3 100%);
    color: #fff;
    font-size: 34px;
    line-height: 0.85;
    font-weight: 900;
    box-shadow: 0 3px 0 rgba(107, 32, 130, 0.24);
    text-shadow: 0 2px 0 rgba(107, 32, 130, 0.2);
}

.game-over-cat {
    position: absolute;
    top: -46px;
    width: 118px;
    height: 118px;
    object-fit: contain;
}

.game-over-card h2 {
    margin: 0;
    color: #ff2b7c;
    font-size: 38px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(117, 43, 170, 0.2);
}

.game-over-card p {
    margin: 10px 0 14px;
    color: #5621e8;
    font-size: 15px;
    font-weight: 900;
}

.game-over-summary {
    width: 100%;
    display: grid;
    gap: 10px;
}

.game-over-summary div {
    height: 56px;
    border: 2px solid #ff99df;
    border-radius: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.86);
}

.game-over-summary span {
    color: #5721ea;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
}

.game-over-summary strong {
    color: #e83fb3;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.game-over-play-button {
    width: min(100%, 240px);
    height: 52px;
    margin-top: 20px;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #ff55df 0%, #d91ac5 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.35), 0 4px 0 rgba(126, 36, 148, 0.26);
}

.game-over-play-button strong {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

[data-turn-over-modal] .game-over-backdrop {
    background: rgba(24, 12, 40, 0.56);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.turn-over-card {
    width: min(calc(100% - 12px), 330px);
    min-height: 0;
    height: 278px;
    border: 2px solid #793ce2;
    border-radius: 16px;
    padding: 104px 20px 18px;
    justify-content: flex-start;
    background:
        radial-gradient(circle at 15% 30%, rgba(122, 72, 230, 0.08) 0 3px, transparent 4px),
        radial-gradient(circle at 84% 38%, rgba(122, 72, 230, 0.08) 0 3px, transparent 4px),
        rgba(255, 253, 255, 0.98);
    box-shadow: 0 4px 0 rgba(79, 28, 139, 0.2);
}

.turn-over-card .game-over-close {
    top: -12px;
    right: -10px;
    width: 34px;
    height: 34px;
    border: 2px solid #fff;
    background: linear-gradient(180deg, #ff5978 0%, #ec3158 100%);
    font-size: 27px;
    box-shadow: 0 2px 0 rgba(101, 28, 120, 0.25);
}

.turn-over-hero {
    position: absolute;
    top: -34px;
    left: 50%;
    width: 166px;
    height: 140px;
    transform: translateX(-50%);
    pointer-events: none;
}

.turn-over-card .game-over-cat {
    top: 0;
    left: 8px;
    width: 142px;
    height: 142px;
}

.turn-over-zero {
    position: absolute;
    z-index: 3;
    top: 27px;
    right: -2px;
    width: 48px;
    height: 46px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 18%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #ff5177 0%, #ec2f59 100%);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 2px 0 rgba(123, 39, 137, 0.24);
    transform: rotate(5deg);
}

.turn-over-card h2 {
    margin: 0;
    color: #5720cc;
    font-size: 25px;
    line-height: 1;
    text-shadow: none;
}

.turn-over-card .turn-over-copy {
    margin: 8px 0 0;
    color: #383040;
    font-size: 11px;
    line-height: 1.32;
    font-weight: 500;
}

.turn-over-copy strong,
.turn-over-copy span {
    display: block;
}

.turn-over-copy strong {
    color: #4b4050;
    font-weight: 700;
}

.turn-over-card .game-over-play-button {
    width: 224px;
    height: 43px;
    margin-top: 14px;
    background: linear-gradient(180deg, #ec38de 0%, #a916d7 100%);
    box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.24), 0 3px 0 rgba(80, 29, 135, 0.22);
}

.turn-over-card .game-over-play-button strong {
    font-size: 15px;
    text-shadow: none;
}

.turn-over-card .game-over-play-button .play-icon {
    width: 25px;
    height: 25px;
}

.turn-over-card .game-over-play-button .play-icon img {
    width: 29px;
    height: 23px;
    object-fit: contain;
}

.subscription-modal {
    position: absolute;
    z-index: 20;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.subscription-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.subscription-modal.is-open .modal-panel.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.subscription-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.language-menu-modal {
    position: fixed;
    z-index: 40;
    inset: 0;
    display: grid;
    place-items: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.language-menu-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.language-menu-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(20, 18, 29, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.language-menu-card {
    position: relative;
    width: min(calc(100vw - 48px), 330px);
    border: 3px solid #d832c5;
    border-radius: 24px;
    padding: 22px 18px 18px;
    background: linear-gradient(180deg, #fff7fb 0%, #f6e3ff 100%);
    box-shadow: 0 18px 45px rgba(52, 18, 125, 0.28);
    color: #5721ea;
}

.language-menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #5721ea;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.language-menu-title {
    margin-bottom: 16px;
    padding-right: 30px;
    font-size: 22px;
    font-weight: 900;
    color: #5721ea;
}

.language-menu-options {
    display: grid;
    gap: 10px;
}

.language-menu-option {
    min-height: 58px;
    border: 2px solid rgba(87, 33, 234, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.78);
    color: #271259;
    font-weight: 900;
    text-align: left;
}

.language-menu-option.active {
    border-color: #fb0043;
    background: #fff;
    color: #fb0043;
    box-shadow: 0 8px 18px rgba(251, 0, 67, 0.14);
}

.language-menu-option img {
    width: 28px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

.language-menu-option span {
    flex: 1;
    font-size: 15px;
}

.language-menu-option strong {
    font-size: 12px;
    letter-spacing: 0;
}

.confirm-dialog-shell {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: min(calc(100% - 39px), 361px);
    height: 540px;
    overflow: visible;
    transform: translate(-50%, -50%);
}

.confirm-dialog {
    height: 540px;
    overflow: visible;
}

.confirm-cat {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 117px;
    width: 127px;
    height: 84px;
    object-fit: contain;
    pointer-events: none;
}

.confirm-card {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 0;
    height: 480px;
    border: 3px solid #d832c5;
    border-radius: 34px;
    padding: 125px 23px 26px;
    background: #f7e9e2;
    box-shadow: 0 4px 0 rgba(237, 150, 131, 0.55);
    text-align: center;
    overflow: visible;
}

.confirm-ribbon {
    position: absolute;
    z-index: 1;
    top: 18px;
    left: 14px;
    width: 320px;
    height: 75px;
}

.confirm-ribbon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.confirm-ribbon-title {
    position: absolute;
    inset: 0;
    width: 320px;
    height: 75px;
    pointer-events: none;
    overflow: visible;
    filter: drop-shadow(0 2px 1px rgba(143, 40, 86, 0.35));
}

.confirm-ribbon-title text {
    fill: #fff;
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.confirm-close {
    position: absolute;
    z-index: 3;
    top: -10px;
    right: -8px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.confirm-close img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.confirm-intro {
    width: 270px;
    margin: 0 auto 6px;
    font-size: 13px;
    line-height: 1.18;
}

.confirm-price {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1px;
    white-space: nowrap;
}

.confirm-price strong {
    color: #e83fb3;
    font-size: 56px;
    line-height: 1;
    font-weight: 900;
}

.confirm-price span {
    color: #5721ea;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

.confirm-tickets {
    width: 219px;
    height: 60px;
    margin: 0 auto 3px;
    object-fit: contain;
}

.confirm-note {
    margin-bottom: 13px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 900;
}

.renewal-note {
    width: 199px;
    height: 56px;
    margin: 0 auto;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.72);
    text-align: left;
}

.renewal-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: block;
    position: relative;
    background: #6690ff;
}

.renewal-icon::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 3px solid #fff;
    border-left-color: transparent;
    border-radius: 50%;
}

.renewal-icon::after {
    content: "";
    position: absolute;
    top: 4px;
    right: 4px;
    border: 4px solid transparent;
    border-left-color: #fff;
    transform: rotate(-35deg);
}

.renewal-note p {
    font-size: 13px;
    line-height: 1.2;
}

.renewal-note strong {
    display: block;
    color: #e83fb3;
    font-weight: 900;
}

.confirm-button {
    position: absolute;
    left: 75px;
    top: 404px;
    width: 200px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255, 101, 241, 0.95) 0%, rgba(211, 0, 192, 0.95) 100%);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
}

.confirm-button-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    position: relative;
    background: linear-gradient(180deg, #9b70ff 0%, #6428d9 100%);
}

.confirm-button-icon::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #f5d6ff 0 4px, transparent 4.5px),
        radial-gradient(circle at 32% 26%, #f5d6ff 0 3px, transparent 3.5px),
        radial-gradient(circle at 68% 26%, #f5d6ff 0 3px, transparent 3.5px),
        radial-gradient(circle at 24% 58%, #f5d6ff 0 3px, transparent 3.5px),
        radial-gradient(circle at 76% 58%, #f5d6ff 0 3px, transparent 3.5px);
}

.buy-turn-dialog-shell {
    height: 460px;
}

.buy-turn-dialog {
    height: 460px;
}

.buy-turn-card {
    height: 400px;
    padding: 112px 22px 24px;
}

.buy-turn-intro {
    width: 100%;
    margin-bottom: 14px;
    color: #5721ea;
    font-size: 16px;
    font-weight: 900;
}

.buy-turn-options {
    display: grid;
    gap: 10px;
}

.buy-turn-option {
    width: 100%;
    min-height: 78px;
    border: 2px solid rgba(216, 50, 197, 0.35);
    border-radius: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    grid-template-rows: 38px 20px;
    align-items: center;
    gap: 2px 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.78);
    color: #5721ea;
    text-align: left;
}

.buy-turn-option span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.buy-turn-option img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.buy-turn-option strong {
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.buy-turn-option b {
    justify-self: end;
    color: #e83fb3;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.buy-turn-option small {
    grid-column: 1 / 3;
    color: #111;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.buy-turn-confirm-dialog-shell {
    height: 430px;
}

.buy-turn-confirm-dialog {
    height: 430px;
}

.buy-turn-confirm-card {
    height: 370px;
    padding: 112px 24px 24px;
}

.buy-turn-confirm-intro {
    width: 100%;
    margin-bottom: 16px;
    color: #5721ea;
    font-size: 15px;
    font-weight: 900;
}

.selected-buy-turn-package {
    min-height: 86px;
    border: 2px solid rgba(216, 50, 197, 0.35);
    border-radius: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: #5721ea;
    text-align: left;
}

.selected-buy-turn-package span {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-buy-turn-package img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.selected-buy-turn-package strong {
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
}

.selected-buy-turn-package b {
    justify-self: end;
    color: #e83fb3;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

.buy-turn-confirm-button.confirm-button {
    top: 290px;
}

.result-dialog-shell {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: min(calc(100% - 39px), 361px);
    overflow: visible;
    transform: translate(-50%, -50%);
}

.result-dialog-shell-success {
    height: 608px;
}

.result-dialog-shell-fail {
    height: 452px;
}

.result-dialog {
    position: relative;
    overflow: visible;
}

.result-dialog-shell-success .result-dialog {
    height: 608px;
}

.result-dialog-shell-fail .result-dialog {
    height: 452px;
}

.result-cat {
    position: absolute;
    z-index: 2;
    object-fit: contain;
    pointer-events: none;
}

.result-cat-success {
    top: 0;
    left: 80px;
    width: 192px;
    height: 116px;
}

.result-cat-fail {
    top: 0;
    left: 117px;
    width: 127px;
    height: 84px;
}

.result-card {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: 0;
    border: 3px solid #d832c5;
    border-radius: 34px;
    background: #f7e9e2;
    box-shadow: 0 4px 0 rgba(237, 150, 131, 0.55);
    text-align: center;
    overflow: visible;
}

.result-card-success {
    height: 500px;
    padding: 87px 40px 28px;
}

.result-card-fail {
    height: 394px;
    padding: 109px 30px 24px;
}

.result-ribbon {
    top: 18px;
    left: 14px;
}

.result-status-icon {
    display: block;
    object-fit: contain;
}

.result-status-success {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
}

.result-status-fail {
    width: 100px;
    height: 100px;
    margin: 0 auto 14px;
}

.result-title {
    font-weight: 900;
    line-height: 1.2;
}

.result-title-success {
    width: 270px;
    margin: 0 auto 12px;
    color: #008a10;
    font-size: 18px;
}

.result-title-fail {
    width: 291px;
    margin: 0 auto 6px;
    color: var(--pink);
    font-size: 19px;
    white-space: nowrap;
}

.result-copy-fail {
    width: 291px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.2;
}

.result-benefits {
    width: 270px;
    height: 160px;
    margin: 0 auto;
    border-radius: 20px;
    display: grid;
    gap: 12px;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.72);
    text-align: left;
}

.result-benefit {
    height: 32px;
    display: grid;
    grid-template-columns: 32px 1fr;
    align-items: center;
    gap: 16px;
}

.result-benefit p {
    font-size: 13px;
    line-height: 1.2;
}

.result-benefit strong {
    color: #e83fb3;
    font-weight: 900;
}

.is-buy-turn-result [data-subscription-result-only] {
    display: none;
}

.is-buy-turn-result [data-success-benefits] {
    display: none;
}

.result-dialog-shell-success.is-buy-turn-result,
.result-dialog-shell-success.is-buy-turn-result .result-dialog {
    height: 470px;
}

.is-buy-turn-result .result-card-success {
    height: 360px;
    padding-bottom: 24px;
}

.is-buy-turn-result .result-button.confirm-button {
    bottom: 24px;
}

.result-ticket-icon {
    width: 32px;
    height: 32px;
    position: relative;
    display: block;
}

.result-ticket-icon img {
    position: absolute;
    top: 2px;
    left: -3px;
    width: 38px;
    height: 30px;
    object-fit: contain;
    transform: rotate(-12deg);
}

.result-ticket-icon strong {
    position: absolute;
    top: 0;
    right: 0;
    color: #5721ea;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.result-button.confirm-button {
    top: auto;
    bottom: 28px;
}

.result-button-fail.confirm-button {
    bottom: 28px;
}

.login-screen {
    --bg-offset-ratio: -12%;
    display: grid;
    align-items: center;
    padding: 28px 22px;
}

.login-panel {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 12px;
}

.login-logo {
    width: 210px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 0 rgba(94, 40, 148, 0.18));
}

.login-cat {
    width: 132px;
    height: auto;
    object-fit: contain;
    margin-bottom: -28px;
    transform: rotate(-4deg);
}

/* Soft pulse / breathing motion for the Kittyfall brand characters. */
.kitty-logo {
    --kitty-breath-transform: translateX(calc(-50% - 3px)) rotate(3.7deg);
}

.kitty-cat {
    --kitty-breath-transform: translateX(calc(-50% + 5.5px));
}

.login-logo,
.guide-logo {
    --kitty-breath-transform: translateZ(0);
}

.login-cat {
    --kitty-breath-transform: rotate(-4deg);
}

.guide-cat {
    --kitty-breath-transform: translateZ(0);
}

.kitty-logo,
.login-logo,
.guide-logo {
    transform-origin: center center;
    animation: kittyfall-logo-breathe 0.4s ease-in-out infinite;
    will-change: transform;
}

.kitty-cat,
.login-cat,
.guide-cat {
    transform-origin: center bottom;
    animation: kittyfall-cat-breathe 2.6s ease-in-out infinite;
    animation-delay: -0.7s;
    will-change: transform;
}

@keyframes kittyfall-logo-breathe {
    0%, 100% {
        transform: var(--kitty-breath-transform) scale(1);
    }
    50% {
        transform: var(--kitty-breath-transform) scale(1.07);
    }
}

@keyframes kittyfall-cat-breathe {
    0%, 100% {
        transform: var(--kitty-breath-transform) scale(1);
    }
    50% {
        transform: var(--kitty-breath-transform) scale(1.035);
    }
}

@media (prefers-reduced-motion: reduce) {
    .package-icon {
        animation: none;
        will-change: auto;
        transform: rotate(-7deg);
    }

    .kitty-logo,
    .login-logo,
    .guide-logo,
    .kitty-cat,
    .login-cat,
    .guide-cat {
        animation: none;
        will-change: auto;
        transform: var(--kitty-breath-transform);
    }
}

.login-card {
    position: relative;
    width: min(100%, 382px);
    border: 3px solid #6b31da;
    border-radius: 28px;
    padding: 52px 22px 22px;
    background: rgba(255, 246, 249, 0.94);
    box-shadow: 0 5px 0 rgba(164, 69, 183, 0.35);
}

.login-card-head {
    display: grid;
    gap: 6px;
    text-align: center;
}

.login-card-head strong {
    color: var(--violet);
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
}

.login-card-head span {
    color: #5e4a87;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
}

.login-session {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 10px;
    padding: 10px 12px;
    border: 2px solid rgba(87, 33, 234, 0.18);
    border-radius: 16px;
    background: #fff;
}

.login-session span {
    color: #7b6aa2;
    font-size: 11px;
    font-weight: 800;
}

.login-session strong {
    color: var(--violet);
    font-size: 14px;
    font-weight: 900;
}

.login-session form {
    grid-row: 1 / span 2;
    grid-column: 2;
}

.login-session button {
    height: 32px;
    border: 0;
    border-radius: 16px;
    padding: 0 14px;
    background: #efe8ff;
    color: var(--violet);
    font-size: 12px;
    font-weight: 900;
}

.login-alert {
    margin-top: 16px;
    border: 2px solid rgba(251, 0, 67, 0.28);
    border-radius: 16px;
    padding: 10px 12px;
    background: #fff4f7;
    color: var(--pink);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
    text-align: center;
}

.login-alert-info {
    border-color: rgba(87, 33, 234, 0.2);
    background: #f5f1ff;
    color: var(--violet);
}

.login-hidden {
    display: none !important;
}

.login-form {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.login-step-panel {
    display: grid;
    gap: 14px;
}

.login-step-panel.login-otp-step,
.login-step-panel.login-send-step {
    transition: opacity 0.12s ease;
}

.login-card[data-login-step="msisdn"] .login-step-panel.login-otp-step {
    display: none;
}

.login-card[data-login-step="otp"] .login-step-panel.login-send-step {
    display: none;
}

.login-card[data-login-step="msisdn"] .login-step-panel.login-otp-step,
.login-card[data-login-step="otp"] .login-step-panel.login-send-step {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-card[data-login-step="otp"] .login-step-panel.login-otp-step,
.login-card[data-login-step="msisdn"] .login-step-panel.login-send-step {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.login-field {
    display: grid;
    gap: 6px;
}

.login-field span {
    color: var(--violet);
    font-size: 12px;
    font-weight: 900;
}

.login-field input {
    width: 100%;
    height: 46px;
    border: 2px solid rgba(87, 33, 234, 0.24);
    border-radius: 18px;
    padding: 0 15px;
    outline: none;
    background: #fff;
    color: #2d1c57;
    font-size: 15px;
    font-weight: 800;
}

.login-field input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(87, 33, 234, 0.12);
}

.login-submit {
    height: 52px;
    border: 0;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #ff2b68 0%, var(--pink) 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 5px 0 #c50035;
}

.login-submit img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.login-submit:disabled {
    cursor: wait;
    opacity: 0.82;
    pointer-events: none;
}

.login-card.is-loading .login-form,
.login-card.is-loading .login-session,
.login-card.is-loading .login-alert {
    pointer-events: none;
}

.login-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 25px;
    display: grid;
    place-items: center;
    background: rgba(255, 246, 249, 0.5);
}

.login-spinner {
    width: 38px;
    height: 38px;
    border: 5px solid rgba(87, 33, 234, 0.22);
    border-top-color: var(--violet);
    border-radius: 50%;
    animation: login-spin 0.7s linear infinite;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 499px), (max-height: 719px) {
    .kitty-app {
        width: min(100vw, 500px);
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        transform-origin: center;
    }
}

@media (max-height: 719px) {
    .challenge-content {
        margin-top: 8px;
    }

    .kitty-logo {
        top: 0;
        width: 220px;
    }

    .kitty-cat {
        top: 55px;
        width: 230px;
        height: 254px;
    }

    .play-button {
        top: calc(var(--hero-top) + 270px);
        width: 190px;
        height: 46px;
    }
}


/* Account panel opened from the hamburger menu. */
body.has-account-menu {
    overflow: hidden;
}

.account-menu-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    place-items: center;
    padding: 12px;
}

.account-menu-modal.is-open {
    display: grid;
}

.account-menu-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(8, 39, 99, 0.52);
    backdrop-filter: blur(2px);
}

.account-menu-card {
    position: relative;
    width: min(430px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
    border: 3px solid #9bcdf5;
    border-radius: 24px;
    padding: 46px 12px 12px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(239,249,255,.97)),
        url("../assets/kitty-fall/bg.png") center/cover;
    box-shadow:
        inset 0 0 0 3px #fff,
        0 12px 35px rgba(0, 54, 125, .38);
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #24375c;
}

.account-menu-card::-webkit-scrollbar {
    width: 0;
}

.account-menu-ribbon {
    position: absolute;
    z-index: 2;
    top: 15px;
    left: 50%;
    width: min(270px, 68%);
    height: 54px;
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    border: 2px solid #075bc7;
    border-radius: 9px 9px 16px 16px;
    background: linear-gradient(180deg, #29a0ff 0%, #0874e8 54%, #0053c5 100%);
    color: #fff;
    font-size: 25px;
    line-height: 1;
    font-weight: 1000;
    font-style: italic;
    text-shadow: 0 2px 0 #0759af;
    box-shadow: 0 5px 0 rgba(0, 66, 167, .25);
}

.account-menu-ribbon::before,
.account-menu-ribbon::after {
    content: "🐾";
    position: absolute;
    top: 13px;
    font-size: 20px;
    filter: saturate(.8);
}

.account-menu-ribbon::before { left: 14px; }
.account-menu-ribbon::after { right: 14px; }

.account-menu-close {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 9px;
    width: 42px;
    height: 42px;
    border: 2px solid #075bc7;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0 0 3px;
    background: linear-gradient(#42b1ff, #0876e6);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 3px 0 rgba(0, 58, 154, .25);
}

.account-menu-content {
    display: grid;
    gap: 8px;
    padding: 8px 2px 0;
}

.account-profile-card,
.account-summary-card,
.account-package-card,
.account-cancel-card,
.account-language-card,
.account-security-note {
    border: 1px solid #cfe3f8;
    border-radius: 13px;
    background: rgba(238, 248, 255, .92);
}

.account-profile-card {
    min-height: 104px;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    gap: 12px;
}

.account-profile-avatar {
    width: 76px;
    height: 76px;
    border: 2px solid #4ca7ee;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 3px 8px rgba(32, 104, 172, .2);
}

.account-profile-card small,
.account-package-card small,
.account-cancel-card small,
.account-language-card small {
    display: block;
    color: #49617d;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 900;
}

.account-profile-card strong {
    display: block;
    margin-top: 5px;
    color: #142c60;
    font-size: 20px;
    line-height: 1;
    font-weight: 1000;
}

.account-profile-card p,
.account-package-card p,
.account-cancel-card p {
    margin: 7px 0 0;
    color: #52647c;
    font-size: 10px;
    line-height: 1.25;
}

.account-summary-card {
    padding: 10px 12px 9px;
    border-color: #f2ddae;
    background: rgba(255, 251, 231, .94);
}

.account-summary-card h2 {
    margin: 0 0 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid #f1e2be;
    color: #934f24;
    font-size: 12px;
    line-height: 1;
    font-weight: 1000;
}

.account-summary-card h2 span {
    color: #ffb21a;
    margin-right: 5px;
}

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

.account-summary-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-right: 1px solid #eadfca;
}

.account-summary-item:first-child { padding-left: 0; }
.account-summary-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.account-summary-item > img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.account-summary-item span {
    min-width: 0;
    display: grid;
}

.account-summary-item small {
    color: #825736;
    font-size: 8px;
    line-height: 1.05;
    font-weight: 900;
    white-space: nowrap;
}

.account-summary-item strong {
    margin-top: 2px;
    color: #0a56b6;
    font-size: 16px;
    line-height: 1;
    font-weight: 1000;
}

.account-summary-item em {
    margin-top: 4px;
    color: #7a6e5e;
    font-size: 7px;
    line-height: 1;
    font-style: normal;
    white-space: nowrap;
}

.account-summary-note {
    margin: 10px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    color: #6d7380;
    font-size: 8px;
    line-height: 1.3;
}

.account-summary-note span {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    border: 1px solid #4c97df;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #3389db;
    font-weight: 900;
}

.account-package-card,
.account-cancel-card,
.account-language-card {
    position: relative;
    min-height: 70px;
    padding: 11px 12px 10px 58px;
}

.account-package-card {
    border-color: #d4e9c7;
    background: rgba(241, 255, 235, .94);
}

.account-package-card small { color: #29933e; }
.account-package-card strong {
    display: block;
    margin-top: 4px;
    color: #113d78;
    font-size: 16px;
    line-height: 1;
}

.account-section-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: linear-gradient(#5cd95c, #1e9e2b);
    color: #fff620;
    font-size: 20px;
    font-weight: 900;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,.16);
}

.account-cancel-card {
    min-height: 94px;
    padding-right: 94px;
    border-color: #f6d4d2;
    background: rgba(255, 241, 239, .95);
}

.account-cancel-card .account-section-icon {
    background: linear-gradient(#ff7e72, #e43c35);
    color: #fff;
}

.account-cancel-card small { color: #e43a35; }
.account-cancel-card p { margin-top: 4px; }
.account-cancel-card strong {
    display: inline-block;
    margin-top: 4px;
    border: 1px solid #ffcbc8;
    border-radius: 7px;
    padding: 3px 12px;
    background: #fff;
    color: #ec3e37;
    font-size: 13px;
    line-height: 1;
}

.account-cancel-card > img {
    position: absolute;
    right: 8px;
    bottom: 3px;
    width: 84px;
    height: 72px;
    object-fit: contain;
}

.account-language-card {
    min-height: 76px;
    border-color: #ddd6ff;
    background: rgba(246, 242, 255, .96);
}

.account-language-card .account-section-icon {
    background: linear-gradient(#a86aff, #6d36dd);
    color: #fff;
}

.account-language-card small {
    margin-bottom: 6px;
    color: #7544cb;
}

.account-language-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.account-language-option {
    height: 32px;
    min-width: 0;
    border: 1px solid #d7dce8;
    border-radius: 7px;
    padding: 0 9px;
    display: grid;
    grid-template-columns: 22px 1fr 15px;
    align-items: center;
    gap: 4px;
    background: #fff;
    color: #47556d;
    font-size: 9px;
    text-align: left;
}

.account-language-option.active {
    border: 2px solid #3190f4;
}

.account-language-option strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-language-option b {
    display: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    place-items: center;
    background: #35bd4d;
    color: #fff;
    font-size: 9px;
}

.account-language-option.active b { display: grid; }

.account-language-option > img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(26, 53, 91, .14);
}

.account-security-note {
    min-height: 42px;
    margin: 0;
    padding: 8px 14px 8px 48px;
    position: relative;
    display: flex;
    align-items: center;
    color: #526783;
    font-size: 8px;
    line-height: 1.25;
}

.account-security-note > span {
    position: absolute;
    left: 14px;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #3998e8;
    color: #fff;
    font-size: 15px;
}

@media (max-width: 390px) {
    .account-menu-modal { padding: 6px; }
    .account-menu-card {
        width: calc(100vw - 12px);
        max-height: calc(100dvh - 12px);
        border-radius: 18px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .account-menu-ribbon { font-size: 21px; }
    .account-summary-item {
        grid-template-columns: 29px minmax(0, 1fr);
        padding-inline: 4px;
    }
    .account-summary-item > img {
        width: 28px;
        height: 28px;
    }
    .account-summary-item strong { font-size: 13px; }
    .account-summary-item small { font-size: 7px; }
    .account-cancel-card { padding-right: 75px; }
    .account-cancel-card > img { width: 70px; }
}


/* Target Account artwork alignment (reference panel). */
.account-menu-backdrop {
    background: rgba(8, 39, 99, .18);
    backdrop-filter: none;
}

.account-menu-card {
    width: min(430px, calc(100vw - 28px));
    padding: 58px 18px 14px;
    border-color: #8fc8ef;
    border-radius: 25px;
    background: linear-gradient(180deg, #f7fcff 0%, #eef9ff 100%);
    box-shadow:
        inset 0 0 0 4px #fff,
        0 10px 30px rgba(0, 54, 125, .34);
}

.account-menu-ribbon {
    top: 16px;
    width: min(258px, 65%);
    height: 54px;
    border-radius: 8px 8px 13px 13px;
    z-index: 3;
}

.account-menu-ribbon::before,
.account-menu-ribbon::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 9px;
    width: 42px;
    height: 39px;
    border: 2px solid #075bc7;
    background: linear-gradient(180deg, #299ef8, #0769dc 62%, #004eae);
    filter: none;
}

.account-menu-ribbon::before {
    left: -31px;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 85%, 20% 50%);
}

.account-menu-ribbon::after {
    right: -31px;
    clip-path: polygon(0 0, 100% 15%, 80% 50%, 100% 85%, 0 100%);
}

.account-menu-ribbon > span::before,
.account-menu-ribbon > span::after {
    content: "🐾";
    position: absolute;
    top: 15px;
    color: #0055ae;
    font-size: 15px;
    font-style: normal;
    text-shadow: none;
    opacity: .9;
}

.account-menu-ribbon > span::before { left: 22px; }
.account-menu-ribbon > span::after { right: 22px; }

.account-menu-close {
    top: 13px;
    right: 8px;
    width: 43px;
    height: 43px;
}

.account-menu-content {
    gap: 9px;
    padding: 8px 0 0;
}

.account-profile-card {
    min-height: 112px;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    padding: 13px 16px;
}

.account-profile-avatar {
    width: 84px;
    height: 84px;
    object-position: 50% 35%;
}

.account-profile-card strong {
    font-size: 21px;
}

.account-summary-card {
    min-height: 148px;
    padding: 12px 13px 10px;
}

.account-summary-card h2 {
    margin-bottom: 10px;
    padding-bottom: 9px;
    font-size: 13px;
}

.account-summary-grid {
    min-height: 55px;
}

.account-summary-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 5px;
    padding-inline: 9px;
}

.account-summary-item > img,
.account-metric-icon {
    width: 39px;
    height: 39px;
}

.account-metric-icon {
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-style: normal;
    font-weight: 1000;
    box-shadow:
        inset 0 0 0 2px rgba(255,255,255,.72),
        inset 0 -4px 0 rgba(0,0,0,.14),
        0 2px 4px rgba(48, 68, 91, .2);
}

.account-metric-icon.is-data {
    border: 2px solid #2d982c;
    background: linear-gradient(#a7e94a, #45b62c);
    color: #fff;
    font-size: 10px;
    text-shadow: 0 1px 0 #277f24;
}

.account-metric-icon.is-loyalty {
    border: 2px solid #7f3bdd;
    background: linear-gradient(#c98cff, #8147df);
    color: #fff;
    font-size: 20px;
}

.account-summary-item small {
    font-size: 8px;
}

.account-summary-item strong {
    font-size: 17px;
}

.account-summary-item em {
    font-size: 7px;
}

.account-summary-note {
    margin-top: 12px;
    padding-inline: 11px;
    font-size: 8px;
}

.account-package-card {
    min-height: 79px;
    padding: 13px 14px 11px 61px;
}

.account-package-card strong {
    font-size: 17px;
}

.account-package-card .account-section-icon {
    width: 38px;
    height: 38px;
    left: 14px;
    border-radius: 8px;
}

.account-cancel-card {
    min-height: 96px;
    padding: 12px 122px 10px 61px;
}

.account-cancel-card .account-section-icon {
    width: 38px;
    height: 38px;
    left: 14px;
}

.account-cancel-card > img {
    right: 2px;
    bottom: 0;
    width: 121px;
    height: 94px;
    object-position: center bottom;
}

.account-language-card {
    min-height: 77px;
    padding: 11px 14px 10px 61px;
}

.account-language-card .account-section-icon {
    width: 38px;
    height: 38px;
    left: 14px;
}

.account-security-note {
    min-height: 45px;
}

.account-security-note::before,
.account-security-note::after {
    content: "🐾";
    position: absolute;
    bottom: -3px;
    color: #cdeafa;
    font-size: 22px;
    opacity: .7;
}

.account-security-note::before { left: 2px; }
.account-security-note::after { right: 2px; }

@media (max-width: 390px) {
    .account-menu-card {
        width: calc(100vw - 14px);
        padding: 56px 10px 10px;
    }
    .account-menu-ribbon {
        width: 235px;
        max-width: 64%;
    }
    .account-menu-ribbon::before { left: -25px; }
    .account-menu-ribbon::after { right: -25px; }
    .account-profile-card {
        grid-template-columns: 76px 1fr;
        min-height: 100px;
        padding-inline: 12px;
    }
    .account-profile-avatar {
        width: 72px;
        height: 72px;
    }
    .account-summary-item {
        grid-template-columns: 33px minmax(0, 1fr);
        padding-inline: 4px;
    }
    .account-summary-item > img,
    .account-metric-icon {
        width: 31px;
        height: 31px;
    }
    .account-metric-icon.is-data { font-size: 8px; }
    .account-metric-icon.is-loyalty { font-size: 16px; }
    .account-cancel-card {
        padding-right: 98px;
    }
    .account-cancel-card > img {
        width: 98px;
    }
}


.account-package-card {
    min-height: 70px;
}

.account-package-info small {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.account-package-info small b {
    border-radius: 9px;
    padding: 2px 7px;
    background: #27ad47;
    color: #fff;
    font-size: 7px;
    line-height: 1.2;
    letter-spacing: .2px;
}

.account-package-info p span {
    white-space: nowrap;
}

.account-package-info em {
    display: block;
    margin-top: 4px;
    color: #5e7665;
    font-size: 8px;
    line-height: 1.1;
    font-style: normal;
}
