body {
    min-height: 100dvh;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f4ede3;
}

.material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
}

.material-symbols-outlined svg {
    width: 1em;
    height: 1em;
    flex: none;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.glass-card {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 131, 17, 0.08);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.glass-input {
    background: rgba(255, 255, 255, 0.46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.36);
}

.wheat-pattern {
    background-image: radial-gradient(circle at 2px 2px, rgba(212, 131, 17, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

.grain-bg {
    background:
        radial-gradient(circle at top left, rgba(212, 131, 17, 0.12), transparent 35%),
        radial-gradient(circle at bottom right, rgba(212, 131, 17, 0.14), transparent 40%),
        linear-gradient(180deg, #f6ecd9, #eef0da);
}

.bakery-bg-full {
    background:
        radial-gradient(circle at 0% 0%, rgba(212, 131, 17, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(212, 131, 17, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(212, 131, 17, 0.05) 0%, transparent 100%);
}

.safe-bottom {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    scrollbar-width: none;
}

.queue-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.queue-timer-bubble {
    position: absolute;
    top: -14px;
    right: 14px;
    z-index: 2;
    display: flex;
    height: 88px;
    width: 88px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(201, 134, 35, 0.14);
    border: 1px solid rgba(201, 134, 35, 0.08);
}

.queue-timer-dot {
    display: block;
    height: 8px;
    width: 8px;
    border-radius: 999px;
    background: #c98623;
    box-shadow: 0 0 0 6px rgba(201, 134, 35, 0.08);
}

.queue-timer-value {
    font-size: 12px;
    font-weight: 700;
    color: #c98623;
    letter-spacing: 0.02em;
}

.queue-mini-avatar {
    position: relative;
    flex: none;
    height: 42px;
    width: 42px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 38%),
        linear-gradient(180deg, #f8e7ca, #f2d9aa);
    box-shadow: inset 0 0 0 1px rgba(201, 134, 35, 0.12);
}

.queue-mini-avatar::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    height: 14px;
    width: 14px;
    border-radius: 999px;
    background: rgba(201, 134, 35, 0.22);
    transform: translate(-50%, -50%);
}

.queue-mini-avatar-active {
    box-shadow:
        inset 0 0 0 1px rgba(255, 108, 133, 0.22),
        0 0 0 3px rgba(255, 108, 133, 0.1);
    background:
        radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 38%),
        linear-gradient(180deg, #ffe6ea, #ffd4dc);
}

.queue-mini-avatar-active::after {
    background: rgba(255, 108, 133, 0.28);
}

.queue-slot {
    min-height: 70px;
}

.queue-slot-static {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.queue-slot-available {
    position: relative;
    box-shadow: 0 8px 20px rgba(212, 131, 17, 0.08);
}

.queue-slot-available:hover {
    border-color: rgba(212, 131, 17, 0.36);
    transform: translateY(-1px);
}

.queue-slot.is-selected {
    border-color: rgba(212, 131, 17, 0.85);
    background: linear-gradient(180deg, rgba(255, 249, 239, 1), rgba(255, 242, 218, 1));
    box-shadow: 0 18px 34px rgba(212, 131, 17, 0.2);
    transform: translateY(-4px) scale(1.03);
}

.queue-slot.is-selected::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 2px solid rgba(212, 131, 17, 0.22);
    border-radius: 0.7rem;
    pointer-events: none;
}

.queue-slot.is-selected .queue-slot-number,
.queue-slot.is-selected .queue-slot-icon {
    color: #c9770a;
}

.queue-slot.is-selected .queue-slot-badge {
    background: #d48311;
    color: #ffffff;
}

.page-shell {
    position: relative;
    margin: 0 auto;
    min-height: 100dvh;
    width: 100%;
    max-width: 28rem;
    overflow-x: hidden;
    background: #f8f7f6;
}

:root {
    --front-bg: #f6efe6;
    --front-bg-soft: #fbf7f1;
    --front-surface: #fffaf4;
    --front-surface-2: #f3eadf;
    --front-border: rgba(214, 176, 124, 0.24);
    --front-primary: #d28f33;
    --front-primary-deep: #b77417;
    --front-primary-soft: #f5e5d0;
    --front-text: #1f2640;
    --front-text-soft: #6d7c98;
    --front-shadow: 0 18px 40px rgba(178, 141, 96, 0.14);
}

.front-shell {
    background:
        radial-gradient(circle at top left, rgba(247, 214, 166, 0.24), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.95), transparent 38%),
        linear-gradient(180deg, #f7f0e6 0%, #f3ece2 100%);
}

.front-page {
    position: relative;
    z-index: 1;
    padding: 12px 16px 24px;
}

.front-topbar,
.front-page-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: rgba(247, 240, 230, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(214, 176, 124, 0.12);
}

.front-page-header {
    justify-content: center;
}

.front-page-header h2,
.front-brand__name {
    font-size: 18px;
    font-weight: 800;
    color: var(--front-text);
    letter-spacing: -0.01em;
}

.front-page-header h2 {
    flex: 1;
    text-align: center;
}

.front-page-header__spacer {
    width: 42px;
    height: 42px;
    flex: none;
}

.front-brand,
.front-topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.front-brand__icon,
.front-icon-button,
.front-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(214, 176, 124, 0.18);
    background: rgba(255, 250, 244, 0.92);
    box-shadow: 0 10px 24px rgba(178, 141, 96, 0.1);
    color: var(--front-primary-deep);
}

.front-icon-button:hover,
.front-back-link:hover {
    background: #fffdf9;
}

button.front-icon-button,
button.profile-submit-btn,
.profile-field__control button {
    border: none;
    cursor: pointer;
}

.front-primary-btn,
.front-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.front-primary-btn {
    background: linear-gradient(180deg, #da983c 0%, #c98220 100%);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(201, 130, 32, 0.26);
}

.front-primary-btn--compact {
    min-height: 42px;
    padding: 0 18px;
}

.front-outline-btn {
    border: 1px solid rgba(210, 143, 51, 0.24);
    background: rgba(255, 247, 239, 0.9);
    color: var(--front-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.front-outline-btn--compact {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

.front-primary-btn:hover,
.front-outline-btn:hover {
    transform: translateY(-1px);
}

.front-empty-card {
    padding: 44px 20px;
    border-radius: 28px;
    border: 1px solid var(--front-border);
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(247, 239, 229, 0.96));
    text-align: center;
    color: var(--front-text-soft);
    box-shadow: var(--front-shadow);
}

.front-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.front-section-head h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--front-text);
}

.front-section-head p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--front-text-soft);
}

.front-section-head a {
    flex: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--front-primary);
}

.front-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
}

.front-bottom-nav__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(214, 176, 124, 0.12);
    background: rgba(255, 251, 246, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.front-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 54px;
    color: #9aa6bf;
    font-size: 12px;
    font-weight: 600;
}

.front-bottom-nav__item .material-symbols-outlined {
    font-size: 22px;
}

.front-bottom-nav__item.is-active {
    color: var(--front-primary);
}

.home-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 14px;
}

.home-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(136px, 0.9fr);
    gap: 14px;
    padding: 20px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 34%),
        linear-gradient(135deg, #ffe6c9 0%, #fff5e8 54%, #f7eee4 100%);
    border: 1px solid rgba(222, 179, 118, 0.22);
    box-shadow: 0 22px 44px rgba(188, 145, 97, 0.16);
    overflow: hidden;
}

.home-banner__eyebrow {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--front-primary);
}

.home-banner__title {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.18;
    color: var(--front-text);
    letter-spacing: -0.03em;
}

.home-banner__desc {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--front-text-soft);
}

.home-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.home-banner__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-banner__visual-card {
    position: relative;
    width: 100%;
    min-height: 178px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, rgba(255, 248, 238, 0.92), rgba(244, 231, 211, 0.96));
    border: 1px solid rgba(215, 175, 121, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-banner__visual-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(210, 143, 51, 0.14);
    color: var(--front-primary);
    font-size: 11px;
    font-weight: 800;
}

.home-banner__visual-circle {
    position: absolute;
    left: 50%;
    top: 56%;
    width: 100px;
    height: 100px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(180deg, #fff6ea 0%, #efd4ae 100%);
    box-shadow: 0 16px 28px rgba(183, 127, 65, 0.18);
}

.home-banner__visual-circle::before,
.home-banner__visual-circle::after,
.home-banner__visual-cake {
    content: "";
    position: absolute;
}

.home-banner__visual-circle::before {
    left: 22px;
    right: 22px;
    bottom: 28px;
    height: 34px;
    border-radius: 18px 18px 24px 24px;
    background: linear-gradient(180deg, #fffdf8 0%, #f4d19b 100%);
}

.home-banner__visual-circle::after {
    left: 28px;
    right: 28px;
    top: 24px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
}

.home-banner__visual-cake {
    left: 50%;
    bottom: 32px;
    width: 68px;
    height: 14px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(205, 145, 74, 0.16);
    box-shadow: 0 0 0 10px rgba(255, 248, 238, 0.42);
}

.home-banner__visual-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(210, 143, 51, 0.22);
}

.home-banner__visual-dot--one {
    right: 18px;
    bottom: 22px;
}

.home-banner__visual-dot--two {
    right: 34px;
    top: 42px;
    width: 10px;
    height: 10px;
}

.home-user-card,
.home-hot-card,
.activity-card,
.order-card,
.detail-summary-card,
.detail-info-card,
.profile-hero-card {
    border-radius: 28px;
    border: 1px solid var(--front-border);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 30%),
        linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(247, 239, 229, 0.96));
    box-shadow: var(--front-shadow);
}

.home-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
}

.home-user-card__main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.home-user-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex: none;
    background-color: #f4e9d7;
    background-size: cover;
    background-position: center;
    border: 3px solid rgba(210, 143, 51, 0.92);
    box-shadow: 0 10px 22px rgba(194, 141, 81, 0.18);
}

.home-user-card__meta h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: var(--front-text);
}

.home-user-card__meta p {
    margin-top: 6px;
    font-size: 15px;
    color: var(--front-text-soft);
}

.home-user-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--front-primary);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.home-user-card__link .material-symbols-outlined {
    font-size: 14px;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-feature-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(214, 176, 124, 0.18);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 36%),
        linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(244, 237, 228, 0.96));
    box-shadow: var(--front-shadow);
}

.home-feature-card::after {
    content: "";
    position: absolute;
    right: -24px;
    top: -16px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
}

.home-feature-card--major {
    min-height: 230px;
}

.home-feature-card--minor {
    min-height: 180px;
}

.home-feature-card__icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 20px;
    background: rgba(255, 248, 239, 0.95);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-feature-card--rush .home-feature-card__icon {
    color: #e07f22;
    background: #fcebdc;
}

.home-feature-card--orders .home-feature-card__icon {
    color: #c88b33;
    background: #f7ecd9;
}

.home-feature-card--minor .home-feature-card__icon {
    color: #c88b33;
    background: #f9f0e1;
}

.home-feature-card__body,
.home-feature-card__button {
    position: relative;
    z-index: 1;
}

.home-feature-card__body h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--front-text);
}

.home-feature-card__body p {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--front-text-soft);
}

.home-feature-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
}

.home-feature-card__button {
    background: linear-gradient(180deg, #d8963d 0%, #cb8523 100%);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(201, 130, 32, 0.22);
}

.home-feature-card__button--light,
.home-feature-card__button--ghost {
    box-shadow: none;
    background: rgba(255, 247, 239, 0.94);
    border: 1px solid rgba(210, 143, 51, 0.2);
    color: var(--front-primary);
}

.home-hot-section {
    margin-top: 4px;
}

.home-hot-card {
    display: block;
    padding: 18px;
}

.home-hot-card__head,
.home-hot-card__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.home-hot-card__countdown {
    flex: none;
    min-width: 104px;
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: right;
}

.home-hot-card__countdown span,
.home-hot-card__meta span,
.activity-card__stat span,
.activity-card__subtitle,
.order-card__main p,
.order-card__main span,
.detail-summary-card__label,
.detail-summary-card__order-no,
.profile-hero-card p,
.profile-field > span,
.profile-submit-wrap p {
    color: var(--front-text-soft);
}

.home-hot-card__countdown span {
    display: block;
    font-size: 12px;
}

.home-hot-card__countdown strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
    color: var(--front-primary);
}

.home-hot-card__body {
    margin-top: 18px;
}

.home-hot-card__body h4 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    color: var(--front-text);
}

.home-hot-card__body p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--front-text-soft);
}

.home-hot-card__footer {
    margin-top: 22px;
    align-items: center;
}

.home-hot-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.home-hot-card__meta span {
    font-size: 14px;
}

.activity-tabs {
    position: sticky;
    top: 73px;
    z-index: 32;
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 0 16px;
    background: rgba(246, 239, 230, 0.92);
    border-bottom: 1px solid rgba(214, 176, 124, 0.12);
}

.activity-tabs__link {
    position: relative;
    flex: none;
    padding: 15px 2px 14px;
    color: var(--front-text-soft);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.activity-tabs__link.is-active {
    color: var(--front-primary);
}

.activity-tabs__link.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--front-primary);
}

.activity-page-list,
.order-page-list,
.order-detail-page,
.profile-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-card {
    padding: 18px;
}

.activity-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.activity-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.activity-badge--ongoing,
.activity-badge--purchased {
    background: rgba(210, 143, 51, 0.14);
    color: var(--front-primary);
}

.activity-badge--upcoming {
    background: rgba(253, 190, 112, 0.16);
    color: #b77718;
}

.activity-badge--ended {
    background: rgba(146, 159, 182, 0.14);
    color: #7b879e;
}

.activity-card__content {
    margin-top: 14px;
}

.activity-card__title {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
    color: var(--front-text);
}

.activity-card__subtitle {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.65;
}

.activity-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.activity-card__stat {
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 248, 240, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.activity-card__stat span {
    display: block;
    font-size: 12px;
    line-height: 1.5;
}

.activity-card__stat strong {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--front-text);
    word-break: break-word;
}

.activity-card__countdown {
    color: var(--front-primary) !important;
}

.activity-card__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.activity-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d9983f 0%, #ca8321 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 16px 26px rgba(201, 130, 32, 0.22);
}

.activity-primary-btn.is-disabled {
    background: #ebe5dc;
    color: #98a0b1;
    box-shadow: none;
}

.order-card {
    padding: 18px 20px;
}

.order-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.order-card__main h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: var(--front-text);
}

.order-card__main p,
.order-card__main span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
}

.order-card__price {
    flex: none;
    font-size: 16px;
    font-weight: 900;
    color: var(--front-primary);
}

.order-card__foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.detail-summary-card,
.detail-info-card {
    padding: 20px;
}

.detail-summary-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.detail-summary-card__label {
    display: block;
    font-size: 14px;
}

.detail-summary-card__top h3,
.detail-info-card h3,
.profile-hero-card h3 {
    margin: 10px 0 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--front-text);
}

.detail-summary-card__order-no {
    margin-top: 18px;
    font-size: 14px;
}

.detail-summary-card__price {
    margin-top: 18px;
    font-size: 22px;
    font-weight: 900;
    color: var(--front-primary);
}

.detail-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(214, 176, 124, 0.14);
}

.detail-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-info-row span {
    color: var(--front-text-soft);
    font-size: 15px;
}

.detail-info-row strong {
    color: var(--front-text);
    font-size: 15px;
    font-weight: 700;
    text-align: right;
}

.profile-hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 20px;
    text-align: center;
}

.profile-hero-card__avatar-wrap {
    position: relative;
}

.profile-hero-card__avatar {
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background-color: #efe4cf;
    background-size: cover;
    background-position: center;
    border: 6px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 36px rgba(180, 139, 93, 0.18);
}

.profile-hero-card__camera {
    position: absolute;
    right: 4px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(180deg, #d9983f 0%, #cb8523 100%);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(201, 130, 32, 0.24);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.profile-field > span {
    font-size: 15px;
    font-weight: 800;
    color: var(--front-text);
}

.profile-field__control {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 0 18px;
    border-radius: 26px;
    border: 1px solid var(--front-border);
    background: rgba(255, 250, 244, 0.96);
    box-shadow: var(--front-shadow);
}

.profile-field__control input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--front-text);
    font-size: 15px;
}

.profile-field__control .material-symbols-outlined,
.profile-field__control button {
    color: var(--front-primary);
}

.profile-field__control button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
}

.profile-submit-wrap {
    margin-top: 10px;
    text-align: center;
}

.profile-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 72px;
    padding: 0 22px;
    border-radius: 30px;
    background: linear-gradient(180deg, #d8963d 0%, #ca8321 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 18px 36px rgba(201, 130, 32, 0.24);
}

.profile-submit-wrap p {
    margin-top: 14px;
    font-size: 13px;
}

@media (max-width: 420px) {
    .home-banner {
        grid-template-columns: 1fr;
    }

    .home-banner__title {
        font-size: 24px;
    }

    .home-feature-grid,
    .activity-card__stats {
        grid-template-columns: 1fr 1fr;
    }

    .activity-card__stat:last-child {
        grid-column: 1 / -1;
    }

    .home-hot-card__head,
    .home-hot-card__footer,
    .order-card__head,
    .detail-summary-card__top {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-hot-card__countdown {
        width: 100%;
        text-align: left;
    }
}

.front-topbar,
.front-page-header {
    padding: 12px 16px;
}

.front-page {
    padding: 10px 14px 20px;
}

.front-bottom-nav__inner {
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.front-bottom-nav__item {
    min-height: 50px;
    gap: 4px;
}

.front-bottom-nav__item .material-symbols-outlined {
    font-size: 21px;
}

.home-page--compact {
    gap: 10px;
    padding-top: 10px;
}

.home-banner-strip {
    position: relative;
    display: block;
    height: 88px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(214, 176, 124, 0.18);
    box-shadow: 0 14px 28px rgba(178, 141, 96, 0.12);
}

.home-banner-strip::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 248, 238, 0.16), rgba(255, 248, 238, 0));
    pointer-events: none;
}

.home-banner-strip__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-banner-strip__badge,
.home-banner-strip__hint {
    position: absolute;
    z-index: 1;
    left: 12px;
}

.home-banner-strip__badge {
    top: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 251, 246, 0.92);
    color: var(--front-primary);
    font-size: 11px;
    font-weight: 800;
}

.home-banner-strip__hint {
    bottom: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(95, 68, 52, 0.35);
}

.home-user-card--compact {
    padding: 12px 14px;
    border-radius: 24px;
}

.home-user-card__avatar--compact {
    width: 54px;
    height: 54px;
}

.home-user-card__hello {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
    color: var(--front-primary);
}

.home-user-card--compact .home-user-card__meta h3 {
    font-size: 18px;
}

.home-user-card--compact .home-user-card__meta p {
    margin-top: 4px;
    font-size: 12px;
}

.home-user-card--compact .home-user-card__link {
    font-size: 13px;
}

.home-feature-grid--compact {
    gap: 12px;
}

.home-feature-card--compact {
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
}

.home-feature-card--compact.home-feature-card--major {
    min-height: 152px;
}

.home-feature-card--compact.home-feature-card--minor {
    min-height: 124px;
}

.home-feature-card--compact .home-feature-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
}

.home-feature-card--compact .home-feature-card__body h3 {
    font-size: 16px;
}

.home-feature-card--compact .home-feature-card__body p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.home-feature-card--compact .home-feature-card__button {
    min-height: 38px;
    font-size: 13px;
}

.home-hot-section--compact {
    margin-top: 0;
}

.front-section-head--compact {
    margin-bottom: 10px;
}

.front-section-head--compact h3 {
    font-size: 18px;
}

.front-section-head--compact p,
.front-section-head--compact a {
    font-size: 12px;
}

.home-hot-card--compact {
    padding: 12px 14px;
    border-radius: 24px;
}

.home-hot-card__head--compact {
    flex-direction: row;
    align-items: center;
}

.home-hot-card__countdown--compact {
    min-width: 88px;
    padding: 10px 12px;
    border-radius: 18px;
}

.home-hot-card__countdown--compact span {
    font-size: 11px;
}

.home-hot-card__countdown--compact strong {
    margin-top: 4px;
    font-size: 16px;
}

.home-hot-card__body--compact {
    margin-top: 10px;
}

.home-hot-card__body--compact h4 {
    font-size: 22px;
}

.home-hot-card__body--compact p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
}

.home-hot-card__footer--compact {
    flex-direction: row;
    margin-top: 10px;
    justify-content: flex-end;
}

.activity-tabs {
    top: 67px;
}

.activity-page-list,
.order-page-list,
.order-detail-page,
.profile-page {
    gap: 12px;
}

.activity-card {
    padding: 14px;
    border-radius: 24px;
}

.activity-card__content {
    margin-top: 10px;
}

.activity-card__title {
    font-size: 18px;
}

.activity-card__subtitle {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
}

.activity-card__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.activity-card__stat:last-child {
    grid-column: auto;
}

.activity-card__stat {
    padding: 10px 11px;
    border-radius: 18px;
}

.activity-card__stat span {
    font-size: 11px;
}

.activity-card__stat strong {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.3;
}

.activity-card__footer {
    margin-top: 12px;
}

.activity-primary-btn {
    min-width: 108px;
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
}

.profile-page--compact {
    gap: 12px;
}

.profile-hero-card--compact {
    padding: 14px 16px;
    border-radius: 24px;
}

.profile-hero-card__inline {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.profile-hero-card__avatar-wrap--compact {
    flex: none;
}

.profile-hero-card__avatar--compact {
    width: 76px;
    height: 76px;
    border-width: 4px;
}

.profile-hero-card__camera--compact {
    right: -2px;
    bottom: -2px;
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.profile-hero-card__copy {
    min-width: 0;
}

.profile-hero-card__copy h3 {
    margin: 0;
    font-size: 16px;
}

.profile-hero-card__copy p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
}

.profile-field {
    gap: 8px;
}

.profile-field__control {
    min-height: 56px;
    padding: 0 16px;
    border-radius: 22px;
}

.profile-submit-btn {
    min-height: 56px;
    border-radius: 22px;
    font-size: 16px;
}

.home-shell {
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 0;
}

.home-page-template {
    display: grid;
    grid-template-rows: clamp(84px, 14vh, 104px) clamp(68px, 11vh, 78px) minmax(0, 1fr) clamp(96px, 15vh, 116px);
    gap: 10px;
    height: calc(100dvh - 68px - 72px - env(safe-area-inset-bottom));
    padding: 10px 12px 12px;
    overflow: hidden;
}

.home-banner-card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(214, 176, 124, 0.18);
    box-shadow: 0 14px 30px rgba(178, 141, 96, 0.12);
}

.home-banner-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 24px;
    border: 1px solid var(--front-border);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 30%),
        linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(247, 239, 229, 0.96));
    box-shadow: var(--front-shadow);
}

.home-profile-card__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.home-profile-card__avatar {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    border: 2px solid rgba(210, 143, 51, 0.95);
    background-color: #f4e9d7;
    background-size: cover;
    background-position: center;
}

.home-profile-card__meta h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: var(--front-text);
}

.home-profile-card__meta p {
    margin-top: 4px;
    font-size: 12px;
    color: var(--front-text-soft);
}

.home-profile-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--front-primary);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.home-profile-card__link .material-symbols-outlined {
    font-size: 13px;
}

.home-action-board {
    display: grid;
    grid-template-rows: 1.12fr 0.82fr;
    gap: 10px;
    min-height: 0;
}

.home-action-board__major,
.home-action-board__minor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-height: 0;
}

.home-action-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid rgba(214, 176, 124, 0.18);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(244, 237, 228, 0.96));
    box-shadow: var(--front-shadow);
}

.home-action-card.is-major {
    padding: 14px;
}

.home-action-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: #f8ede0;
    color: var(--front-primary);
}

.home-action-card__body h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    color: var(--front-text);
}

.home-action-card__button,
.home-action-card__mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.home-action-card__button {
    background: linear-gradient(180deg, #d8963d 0%, #ca8321 100%);
    color: #ffffff;
}

.home-action-card__button.is-light,
.home-action-card__mini {
    border: 1px solid rgba(210, 143, 51, 0.2);
    background: rgba(255, 247, 239, 0.94);
    color: var(--front-primary);
}

.home-day-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.home-day-section__head {
    margin-bottom: 8px;
}

.home-day-section__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    color: var(--front-text);
}

.home-day-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 0;
    height: 100%;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(214, 176, 124, 0.18);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 30%),
        linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(247, 239, 229, 0.96));
    box-shadow: var(--front-shadow);
}

.home-day-card__main {
    min-width: 0;
}

.home-day-card__main h4 {
    margin: 10px 0 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--front-text);
    line-height: 1.15;
    word-break: break-word;
}

.home-day-card__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex: none;
}

.home-day-card__side strong {
    font-size: 18px;
    font-weight: 900;
    color: var(--front-primary);
}

.home-day-card__enter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d8963d 0%, #ca8321 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.home-day-card.is-empty {
    justify-content: flex-start;
}

@media (max-width: 420px) {
    .home-page-template {
        grid-template-rows: 82px 68px minmax(0, 1fr) 104px;
        gap: 8px;
        padding: 8px 10px 10px;
    }

    .home-action-card {
        padding: 10px;
        border-radius: 20px;
    }

    .home-action-card.is-major {
        padding: 12px;
    }

    .home-action-card__icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .home-action-card__body h3 {
        font-size: 15px;
    }

    .home-day-card {
        padding: 12px;
        border-radius: 20px;
    }

    .home-day-card__main h4 {
        font-size: 18px;
    }

    .home-day-card__side strong {
        font-size: 16px;
    }

    .home-day-card__enter {
        min-height: 34px;
        padding: 0 14px;
    }
}

.soft-shadow {
    box-shadow: 0 12px 30px rgba(212, 131, 17, 0.12);
}

.hero-blob {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.hero-blob-alt {
    border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%;
}

.hero-illustration {
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(212, 131, 17, 0.08);
}

.queue-body {
    background:
        radial-gradient(circle at top left, rgba(243, 208, 167, 0.45), transparent 36%),
        radial-gradient(circle at bottom right, rgba(217, 164, 101, 0.28), transparent 32%),
        linear-gradient(180deg, #fbf5ee 0%, #f7efe5 100%);
    overflow: hidden;
}

.queue-body nav > div {
    border-top-color: rgba(184, 132, 78, 0.12);
    background: rgba(255, 250, 244, 0.96);
    backdrop-filter: blur(16px);
}

.queue-page-shell {
    --queue-rows-safe: var(--queue-rows, 1);
    --queue-density: clamp(0, calc(var(--queue-rows-safe) - 4), 6);
    --queue-panel-pad-y: clamp(10px, calc(16px - var(--queue-density) * 0.9px), 16px);
    --queue-panel-pad-x: clamp(12px, calc(16px - var(--queue-density) * 0.7px), 16px);
    --queue-panel-radius: clamp(20px, calc(28px - var(--queue-density) * 1.4px), 28px);
    --queue-panel-gap: clamp(6px, calc(10px - var(--queue-density) * 0.55px), 10px);
    --queue-grid-gap: clamp(4px, calc(8px - var(--queue-density) * 0.55px), 8px);
    --queue-card-pad-y: clamp(4px, calc(12px - var(--queue-density) * 1.25px), 12px);
    --queue-card-pad-x: clamp(3px, calc(6px - var(--queue-density) * 0.55px), 6px);
    --queue-card-radius: clamp(10px, calc(18px - var(--queue-density) * 1.35px), 18px);
    --queue-card-gap: clamp(2px, calc(5px - var(--queue-density) * 0.4px), 5px);
    --queue-gift-width: clamp(14px, calc(28px - var(--queue-density) * 2.35px), 28px);
    --queue-gift-height: clamp(10px, calc(22px - var(--queue-density) * 1.7px), 22px);
    --queue-gift-radius: clamp(4px, calc(7px - var(--queue-density) * 0.4px), 7px);
    --queue-check-size: clamp(14px, calc(22px - var(--queue-density) * 1.3px), 22px);
    --queue-no-size: clamp(10px, calc(18px - var(--queue-density) * 1.15px), 18px);
    --queue-state-size: clamp(7px, calc(11px - var(--queue-density) * 0.65px), 11px);
    display: flex;
    min-height: 100dvh;
    height: 100dvh;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
}

.queue-page-shell > header {
    padding-top: 14px !important;
    padding-bottom: 8px !important;
}

.queue-page-shell > nav {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    margin-top: 0;
}

.queue-page-shell > nav > div {
    padding-top: 8px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.queue-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: var(--queue-panel-gap);
    min-height: 0;
    flex: 1;
    overflow: hidden;
    padding-top: 2px !important;
    padding-bottom: 4px !important;
}

.queue-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.queue-back-button {
    display: inline-flex;
    height: 38px;
    width: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #7a5841;
    background: rgba(255, 248, 240, 0.88);
    box-shadow: 0 10px 24px rgba(174, 129, 86, 0.12);
}

.queue-topbar-title {
    font-size: 16px;
    font-weight: 700;
    color: #5f4434;
}

.queue-topbar-spacer {
    width: 38px;
    height: 38px;
}

.queue-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--queue-panel-radius);
    padding: var(--queue-panel-pad-y) var(--queue-panel-pad-x) calc(var(--queue-panel-pad-y) - 2px);
    box-shadow: 0 18px 40px rgba(167, 123, 83, 0.12);
    border: 1px solid rgba(193, 148, 108, 0.12);
}

.queue-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.46), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.queue-panel--default {
    background: linear-gradient(180deg, rgba(255, 249, 242, 0.98), rgba(249, 240, 231, 0.94));
}

.queue-panel--highlight {
    background: linear-gradient(180deg, #ffe7cf 0%, #ffd7b1 100%);
    border-color: rgba(214, 137, 62, 0.24);
    box-shadow: 0 22px 48px rgba(214, 137, 62, 0.18);
}

.queue-panel--success {
    background: linear-gradient(180deg, #f5e8d7 0%, #ead5bc 100%);
    border-color: rgba(124, 88, 58, 0.18);
}

.queue-panel--muted {
    background: linear-gradient(180deg, rgba(250, 244, 236, 0.96), rgba(240, 230, 220, 0.92));
}

.queue-panel__head,
.queue-panel__status-row,
.queue-panel__meta,
.queue-panel__foot {
    position: relative;
    z-index: 1;
}

.queue-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.queue-panel__title {
    margin: 0;
    min-width: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #5a4032;
    word-break: break-word;
}

.queue-panel__price-wrap {
    flex: none;
    text-align: right;
}

.queue-panel__price {
    margin-top: 0;
    font-size: 17px;
    font-weight: 700;
    color: #9a5b29;
    line-height: 1;
}

.queue-panel__price small {
    margin-left: 2px;
    font-size: 11px;
    font-weight: 600;
    color: #ab876b;
}

.queue-panel__status-row {
    margin-top: 8px;
}

.queue-panel__status-row.is-hidden {
    display: none;
}

.queue-panel__status-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: #5a4032;
}

.queue-panel__status-title:empty,
.queue-panel__status-subtitle:empty {
    display: none;
}

.queue-panel__status-subtitle {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.35;
    color: #946f57;
}

.queue-panel__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.queue-panel__meta-item {
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(196, 151, 113, 0.12);
}

.queue-panel__meta-item span {
    display: block;
    font-size: 10px;
    color: #ac896f;
}

.queue-panel__meta-item strong {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1;
    color: #5b3f31;
}

.queue-panel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    padding-top: 0;
}

.queue-panel__picker {
    margin: 0;
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
    color: #7a5a45;
}

.queue-panel__countdown {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #9a5b29;
    border: 1px solid rgba(196, 151, 113, 0.14);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.queue-panel__countdown strong {
    font-size: 11px;
}

.queue-panel__countdown.is-hidden {
    display: none;
}

.queue-grid-section {
    display: flex;
    min-height: 0;
    flex: 1;
    margin-top: 0 !important;
}

.queue-box-grid {
    flex: 1;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(var(--queue-rows, 1), minmax(0, 1fr));
    gap: var(--queue-grid-gap);
    align-content: stretch;
}

.queue-box-card {
    position: relative;
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--queue-card-gap);
    padding: var(--queue-card-pad-y) var(--queue-card-pad-x) calc(var(--queue-card-pad-y) - 2px);
    border-radius: var(--queue-card-radius);
    border: 1px solid transparent;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(158, 117, 80, 0.1);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.queue-box-card--available {
    background: linear-gradient(180deg, #fffdfa 0%, #fff5ea 100%);
    border-color: rgba(219, 186, 150, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        0 12px 24px rgba(177, 128, 83, 0.12);
}

.queue-box-card--sold-normal {
    background: linear-gradient(180deg, #f1eeea 0%, #dfd8d1 100%);
    border-color: rgba(190, 180, 171, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 18px rgba(120, 108, 98, 0.1);
}

.queue-box-card--locked {
    background: linear-gradient(180deg, #f8f0e4 0%, #eadbc9 100%);
    border-color: rgba(191, 156, 121, 0.56);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 10px 20px rgba(162, 127, 91, 0.1);
}

.queue-box-card--sold-hidden {
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.74), transparent 38%),
        linear-gradient(180deg, #fff4d6 0%, #ffd98f 56%, #ffc36b 100%);
    border-color: rgba(226, 157, 52, 0.6);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 14px 28px rgba(209, 138, 37, 0.22);
}

.queue-box-card.is-selectable {
    cursor: pointer;
}

.queue-box-card.is-selectable:hover {
    transform: translateY(-2px);
    border-color: rgba(209, 132, 60, 0.54);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 14px 28px rgba(176, 127, 82, 0.16);
}

.queue-box-card.is-selected {
    border: 3px solid #d8893e;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.82), transparent 40%),
        linear-gradient(180deg, #fff7ee 0%, #ffe3bf 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 18px 34px rgba(216, 137, 62, 0.24);
    transform: translateY(-3px) scale(1.02);
}

.queue-box-card__check {
    position: absolute;
    top: clamp(4px, calc(7px - var(--queue-density) * 0.5px), 7px);
    right: clamp(4px, calc(7px - var(--queue-density) * 0.5px), 7px);
    display: inline-flex;
    height: var(--queue-check-size);
    width: var(--queue-check-size);
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(180deg, #ef9a52 0%, #cf712c 100%);
    color: #ffffff;
    font-size: clamp(9px, calc(12px - var(--queue-density) * 0.45px), 12px);
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(207, 113, 44, 0.3);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.queue-box-card.is-selected .queue-box-card__check {
    opacity: 1;
    transform: scale(1);
}

.queue-box-card__spark {
    position: absolute;
    top: clamp(4px, calc(7px - var(--queue-density) * 0.5px), 7px);
    right: clamp(4px, calc(8px - var(--queue-density) * 0.6px), 8px);
    font-size: clamp(9px, calc(13px - var(--queue-density) * 0.6px), 13px);
    filter: drop-shadow(0 4px 10px rgba(218, 142, 36, 0.3));
    animation: queue-hidden-spark 1.8s ease-in-out infinite;
}

.queue-box-card__gift {
    position: relative;
    z-index: 1;
    width: var(--queue-gift-width);
    height: var(--queue-gift-height);
    border-radius: var(--queue-gift-radius);
    flex: none;
}

.queue-box-card__gift::before,
.queue-box-card__gift::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.queue-box-card__gift::before {
    top: clamp(-4px, calc(-5px + var(--queue-density) * 0.35px), -2px);
    width: calc(100% + 4px);
    height: clamp(5px, calc(9px - var(--queue-density) * 0.6px), 9px);
    border-radius: var(--queue-gift-radius) var(--queue-gift-radius) 5px 5px;
}

.queue-box-card__gift::after {
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--queue-gift-radius);
}

.queue-box-card--available .queue-box-card__gift {
    background: linear-gradient(180deg, #f8d9b1 0%, #ebb876 100%);
    box-shadow: inset 0 -1px 0 rgba(136, 85, 42, 0.16);
}

.queue-box-card--available .queue-box-card__gift::before {
    background: linear-gradient(180deg, #f3ca92 0%, #dd9b4f 100%);
}

.queue-box-card--available .queue-box-card__gift::after {
    background:
        linear-gradient(90deg, transparent 0, transparent calc(50% - 2px), rgba(255, 243, 226, 0.88) calc(50% - 2px), rgba(255, 243, 226, 0.88) calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(180deg, transparent 0, transparent calc(38% - 2px), rgba(255, 243, 226, 0.88) calc(38% - 2px), rgba(255, 243, 226, 0.88) calc(38% + 2px), transparent calc(38% + 2px));
}

.queue-box-card--sold-normal .queue-box-card__gift {
    background: linear-gradient(180deg, #cbc2ba 0%, #b4a79a 100%);
    box-shadow: inset 0 -1px 0 rgba(89, 82, 75, 0.18);
}

.queue-box-card--locked .queue-box-card__gift {
    background: linear-gradient(180deg, #dec2a2 0%, #caa57c 100%);
    box-shadow: inset 0 -1px 0 rgba(114, 84, 54, 0.16);
}

.queue-box-card--sold-normal .queue-box-card__gift::before {
    background: linear-gradient(180deg, #d9d2cb 0%, #c1b5a8 100%);
}

.queue-box-card--locked .queue-box-card__gift::before {
    background: linear-gradient(180deg, #e9d0b3 0%, #d2ae87 100%);
}

.queue-box-card--sold-normal .queue-box-card__gift::after {
    background:
        linear-gradient(90deg, transparent 0, transparent calc(50% - 2px), rgba(240, 236, 231, 0.78) calc(50% - 2px), rgba(240, 236, 231, 0.78) calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(180deg, transparent 0, transparent calc(38% - 2px), rgba(240, 236, 231, 0.78) calc(38% - 2px), rgba(240, 236, 231, 0.78) calc(38% + 2px), transparent calc(38% + 2px));
}

.queue-box-card--locked .queue-box-card__gift::after {
    background:
        linear-gradient(90deg, transparent 0, transparent calc(50% - 2px), rgba(251, 242, 232, 0.84) calc(50% - 2px), rgba(251, 242, 232, 0.84) calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(180deg, transparent 0, transparent calc(38% - 2px), rgba(251, 242, 232, 0.84) calc(38% - 2px), rgba(251, 242, 232, 0.84) calc(38% + 2px), transparent calc(38% + 2px));
}

.queue-box-card--sold-hidden .queue-box-card__gift {
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.52), transparent 40%),
        linear-gradient(180deg, #ffd46b 0%, #f2a933 100%);
    box-shadow:
        inset 0 -1px 0 rgba(129, 75, 9, 0.18),
        0 8px 16px rgba(227, 171, 57, 0.22);
}

.queue-box-card--sold-hidden .queue-box-card__gift::before {
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.88), transparent 68%),
        linear-gradient(180deg, #ffe28c 0%, #ecb546 100%);
}

.queue-box-card--sold-hidden .queue-box-card__gift::after {
    background:
        linear-gradient(90deg, transparent 0, transparent calc(50% - 2px), rgba(255, 249, 225, 0.92) calc(50% - 2px), rgba(255, 249, 225, 0.92) calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(180deg, transparent 0, transparent calc(38% - 2px), rgba(255, 249, 225, 0.92) calc(38% - 2px), rgba(255, 249, 225, 0.92) calc(38% + 2px), transparent calc(38% + 2px));
}

.queue-box-card.is-selected .queue-box-card__gift {
    transform: translateY(-1px) scale(1.05);
}

.queue-box-card__no {
    position: relative;
    z-index: 1;
    font-size: var(--queue-no-size);
    font-weight: 700;
    line-height: 1;
    color: #5d4334;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.52);
}

.queue-box-card--sold-normal .queue-box-card__no {
    color: #6f6760;
}

.queue-box-card--locked .queue-box-card__no {
    color: #7c5b40;
}

.queue-box-card--sold-hidden .queue-box-card__no {
    color: #8f5400;
    text-shadow: 0 1px 0 rgba(255, 248, 226, 0.92);
}

.queue-box-card__state {
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: var(--queue-state-size);
    line-height: 1.1;
    color: #a17b5d;
}

.queue-box-card--sold-normal .queue-box-card__state {
    color: #837a72;
}

.queue-box-card--locked .queue-box-card__state {
    color: #9b714c;
    font-weight: 700;
}

.queue-box-card--sold-hidden .queue-box-card__state {
    color: #b96d06;
    font-weight: 700;
}

.queue-box-card.is-selected .queue-box-card__state {
    color: #b5621c;
    font-weight: 700;
}

@keyframes queue-hidden-spark {
    0%,
    100% {
        transform: scale(0.9) rotate(-8deg);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1) rotate(8deg);
        opacity: 1;
    }
}
.queue-action-dock {
    flex: none;
    width: 100%;
    padding: 6px 16px 8px;
    box-sizing: border-box;
}

.queue-action-dock__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.queue-action-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.queue-action-button:not(:disabled):active {
    transform: scale(0.99);
}

.queue-action-button[data-action-kind="join"] {
    background: linear-gradient(180deg, #efac66 0%, #de8443 100%);
    box-shadow: 0 16px 28px rgba(222, 132, 67, 0.24);
}

.queue-action-button[data-action-kind="confirm"] {
    background: linear-gradient(180deg, #da8a4a 0%, #c26b2d 100%);
    box-shadow: 0 16px 28px rgba(194, 107, 45, 0.26);
}

.queue-action-button[data-action-kind="confirm"]:disabled {
    background: #ddcdbf;
    color: #8f7f72;
    box-shadow: none;
}

.queue-action-button[data-action-kind="cancel"] {
    background: linear-gradient(180deg, #db7c67 0%, #c45d49 100%);
    box-shadow: 0 14px 24px rgba(196, 93, 73, 0.2);
}

.queue-action-button[data-action-kind="completed"] {
    background: linear-gradient(180deg, #7a5b45 0%, #5c4434 100%);
}

.queue-action-button[data-action-kind="wait"],
.queue-action-button[data-action-kind="disabled"] {
    background: #ddcdbf;
    color: #8f7f72;
    box-shadow: none;
}

.queue-action-button:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.queue-purchase-effect {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px calc(120px + env(safe-area-inset-bottom));
    transition: opacity 0.22s ease;
}

.queue-purchase-effect.is-hidden {
    pointer-events: none;
    opacity: 0;
}

.queue-purchase-effect__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(92, 64, 42, 0.26);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.queue-purchase-effect__card {
    position: relative;
    z-index: 1;
    width: min(100%, 310px);
    padding: 28px 22px 24px;
    border-radius: 30px;
    overflow: hidden;
    text-align: center;
    border: 1px solid rgba(202, 147, 92, 0.24);
    box-shadow: 0 26px 60px rgba(120, 81, 51, 0.24);
    transform: translateY(20px) scale(0.92);
    opacity: 0;
}

.queue-purchase-effect__card::before,
.queue-purchase-effect__card::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.queue-purchase-effect__card::before {
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.82), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
}

.queue-purchase-effect__card::after {
    left: 18px;
    right: 18px;
    bottom: 14px;
    height: 8px;
    border-radius: 999px;
    background: rgba(122, 88, 63, 0.08);
}

.queue-purchase-effect.is-active .queue-purchase-effect__card {
    animation: queue-purchase-card-in 0.48s cubic-bezier(0.2, 0.84, 0.28, 1.08) forwards;
}

.queue-purchase-effect__card[data-effect-type="normal"] {
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.78), transparent 34%),
        linear-gradient(180deg, #fff5ea 0%, #f8dfc5 100%);
}

.queue-purchase-effect__card[data-effect-type="hidden"] {
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.88), transparent 30%),
        linear-gradient(180deg, #fff3cf 0%, #ffd485 52%, #ffbf59 100%);
    border-color: rgba(223, 157, 43, 0.34);
    box-shadow: 0 30px 66px rgba(171, 113, 22, 0.3);
}

.queue-purchase-effect__burst {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.queue-purchase-effect__burst span {
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 66px;
    margin-left: -4px;
    margin-top: -33px;
    border-radius: 999px;
    opacity: 0;
    transform-origin: center center;
}

.queue-purchase-effect__card[data-effect-type="normal"] .queue-purchase-effect__burst span {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(230, 154, 74, 0));
}

.queue-purchase-effect__card[data-effect-type="hidden"] .queue-purchase-effect__burst span {
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 188, 47, 0));
}

.queue-purchase-effect__burst span:nth-child(1) {
    --queue-burst-rotate: 0deg;
    transform: rotate(0deg);
}

.queue-purchase-effect__burst span:nth-child(2) {
    --queue-burst-rotate: 45deg;
    transform: rotate(45deg);
}

.queue-purchase-effect__burst span:nth-child(3) {
    --queue-burst-rotate: 90deg;
    transform: rotate(90deg);
}

.queue-purchase-effect__burst span:nth-child(4) {
    --queue-burst-rotate: 135deg;
    transform: rotate(135deg);
}

.queue-purchase-effect__burst span:nth-child(5) {
    --queue-burst-rotate: 180deg;
    transform: rotate(180deg);
}

.queue-purchase-effect__burst span:nth-child(6) {
    --queue-burst-rotate: 225deg;
    transform: rotate(225deg);
}

.queue-purchase-effect__burst span:nth-child(7) {
    --queue-burst-rotate: 270deg;
    transform: rotate(270deg);
}

.queue-purchase-effect__burst span:nth-child(8) {
    --queue-burst-rotate: 315deg;
    transform: rotate(315deg);
}

.queue-purchase-effect.is-active .queue-purchase-effect__burst span {
    animation: queue-purchase-burst 0.92s ease-out forwards;
}

.queue-purchase-effect__box-scene {
    position: relative;
    z-index: 1;
    min-height: 160px;
    margin: 6px 0 8px;
}

.queue-purchase-effect__box-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 176px;
    height: 176px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    filter: blur(3px);
}

.queue-purchase-effect__card[data-effect-type="normal"] .queue-purchase-effect__box-glow {
    background: radial-gradient(circle, rgba(255, 215, 168, 0.86) 0%, rgba(255, 176, 104, 0.22) 48%, rgba(255, 176, 104, 0) 74%);
}

.queue-purchase-effect__card[data-effect-type="hidden"] .queue-purchase-effect__box-glow {
    background: radial-gradient(circle, rgba(255, 233, 153, 0.96) 0%, rgba(255, 188, 64, 0.34) 46%, rgba(255, 188, 64, 0) 74%);
}

.queue-purchase-effect.is-active .queue-purchase-effect__box-glow {
    animation: queue-purchase-box-glow 0.88s ease-out 0.08s forwards;
}

.queue-purchase-effect__box {
    position: relative;
    z-index: 1;
    width: 134px;
    height: 132px;
    margin: 0 auto;
    transform: translateY(24px) scale(0.74) rotate(-8deg);
    opacity: 0;
    filter: drop-shadow(0 24px 26px rgba(112, 75, 46, 0.18));
}

.queue-purchase-effect.is-active .queue-purchase-effect__box {
    animation: queue-purchase-box-pop 0.72s cubic-bezier(0.18, 0.84, 0.28, 1.15) 0.08s forwards;
}

.queue-purchase-effect__box-lid,
.queue-purchase-effect__box-body,
.queue-purchase-effect__box-ribbon,
.queue-purchase-effect__box-type,
.queue-purchase-effect__box-slot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.queue-purchase-effect__box-lid {
    top: 16px;
    width: 118px;
    height: 34px;
    border-radius: 18px;
    transform: translateX(-50%) rotate(0deg);
    transform-origin: center 80%;
    box-shadow: 0 16px 26px rgba(138, 94, 57, 0.18);
}

.queue-purchase-effect__box-body {
    top: 38px;
    width: 122px;
    height: 78px;
    border-radius: 22px 22px 26px 26px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.queue-purchase-effect__box-ribbon {
    top: 38px;
    width: 22px;
    height: 78px;
    border-radius: 999px;
    opacity: 0.94;
}

.queue-purchase-effect__card[data-effect-type="normal"] .queue-purchase-effect__box-lid {
    background: linear-gradient(180deg, #ffe8ce 0%, #ebb177 100%);
}

.queue-purchase-effect__card[data-effect-type="normal"] .queue-purchase-effect__box-body {
    background: linear-gradient(180deg, #fff4e7 0%, #f0c18f 100%);
    border: 1px solid rgba(208, 146, 81, 0.26);
}

.queue-purchase-effect__card[data-effect-type="normal"] .queue-purchase-effect__box-ribbon {
    background: linear-gradient(180deg, #fffbf6 0%, #de9352 100%);
}

.queue-purchase-effect__card[data-effect-type="hidden"] .queue-purchase-effect__box-lid {
    background: linear-gradient(180deg, #fff0b4 0%, #ffc960 100%);
}

.queue-purchase-effect__card[data-effect-type="hidden"] .queue-purchase-effect__box-body {
    background: linear-gradient(180deg, #fff7d8 0%, #ffcb67 58%, #f0a932 100%);
    border: 1px solid rgba(214, 150, 33, 0.32);
}

.queue-purchase-effect__card[data-effect-type="hidden"] .queue-purchase-effect__box-ribbon {
    background: linear-gradient(180deg, #fffef9 0%, #f2a623 100%);
}

.queue-purchase-effect.is-active .queue-purchase-effect__box-lid {
    animation: queue-purchase-box-open 0.62s cubic-bezier(0.24, 0.9, 0.28, 1.12) 0.24s forwards;
}

.queue-purchase-effect__box-type {
    top: 54px;
    min-width: 76px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.queue-purchase-effect__card[data-effect-type="normal"] .queue-purchase-effect__box-type {
    background: rgba(255, 251, 245, 0.94);
    color: #b16524;
    box-shadow: 0 10px 18px rgba(212, 137, 73, 0.16);
}

.queue-purchase-effect__card[data-effect-type="hidden"] .queue-purchase-effect__box-type {
    background: rgba(255, 249, 223, 0.96);
    color: #a45d00;
    box-shadow: 0 12px 22px rgba(214, 153, 37, 0.22);
}

.queue-purchase-effect__box-slot {
    bottom: 12px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.queue-purchase-effect__card[data-effect-type="normal"] .queue-purchase-effect__box-slot {
    color: #7a4a2b;
}

.queue-purchase-effect__card[data-effect-type="hidden"] .queue-purchase-effect__box-slot {
    color: #8b5304;
    text-shadow: 0 1px 0 rgba(255, 247, 217, 0.94);
}

.queue-purchase-effect__sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.queue-purchase-effect__sparkles span {
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: scale(0.3) rotate(0deg);
    clip-path: polygon(50% 0%, 61% 36%, 100% 50%, 61% 64%, 50% 100%, 39% 64%, 0% 50%, 39% 36%);
}

.queue-purchase-effect__card[data-effect-type="normal"] .queue-purchase-effect__sparkles span {
    background: linear-gradient(180deg, #fffaf2 0%, #f2be87 100%);
}

.queue-purchase-effect__card[data-effect-type="hidden"] .queue-purchase-effect__sparkles span {
    background: linear-gradient(180deg, #fffdf0 0%, #ffc94f 100%);
}

.queue-purchase-effect__sparkles span:nth-child(1) {
    left: calc(50% - 72px);
    top: 24px;
}

.queue-purchase-effect__sparkles span:nth-child(2) {
    left: calc(50% + 52px);
    top: 34px;
}

.queue-purchase-effect__sparkles span:nth-child(3) {
    left: calc(50% - 60px);
    top: 110px;
}

.queue-purchase-effect__sparkles span:nth-child(4) {
    left: calc(50% + 48px);
    top: 106px;
}

.queue-purchase-effect.is-active .queue-purchase-effect__sparkles span {
    animation: queue-purchase-sparkle 0.96s ease-out 0.2s forwards;
}

.queue-purchase-effect__badge,
.queue-purchase-effect__title,
.queue-purchase-effect__subtitle {
    position: relative;
    z-index: 1;
}

.queue-purchase-effect__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    margin: 14px auto 0;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.queue-purchase-effect__card[data-effect-type="normal"] .queue-purchase-effect__badge {
    background: rgba(255, 255, 255, 0.72);
    color: #b1641d;
    box-shadow: 0 10px 22px rgba(219, 136, 62, 0.12);
}

.queue-purchase-effect__card[data-effect-type="hidden"] .queue-purchase-effect__badge {
    background: rgba(255, 248, 216, 0.9);
    color: #a45d00;
    box-shadow: 0 12px 24px rgba(213, 150, 40, 0.2);
}

.queue-purchase-effect__title {
    margin: 18px 0 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: #6b4330;
}

.queue-purchase-effect__card[data-effect-type="hidden"] .queue-purchase-effect__title {
    color: #8f5300;
    text-shadow: 0 2px 0 rgba(255, 245, 211, 0.9);
}

.queue-purchase-effect__subtitle {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #8e664f;
}

.queue-purchase-effect__card[data-effect-type="hidden"] .queue-purchase-effect__subtitle {
    color: #9c6717;
}

@keyframes queue-purchase-card-in {
    0% {
        transform: translateY(20px) scale(0.92);
        opacity: 0;
    }

    65% {
        transform: translateY(-4px) scale(1.02);
        opacity: 1;
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes queue-purchase-burst {
    0% {
        opacity: 0;
        transform: scale(0.2) rotate(var(--queue-burst-rotate, 0deg));
    }

    18% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.18) rotate(var(--queue-burst-rotate, 0deg));
    }
}

@keyframes queue-purchase-box-pop {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.74) rotate(-8deg);
    }

    65% {
        opacity: 1;
        transform: translateY(-4px) scale(1.03) rotate(3deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes queue-purchase-box-open {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }

    55% {
        transform: translateX(-50%) rotate(-18deg) translateY(-6px);
    }

    100% {
        transform: translateX(-50%) rotate(-12deg) translateY(-4px);
    }
}

@keyframes queue-purchase-box-glow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    45% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.02);
    }

    100% {
        opacity: 0.82;
        transform: translate(-50%, -50%) scale(0.92);
    }
}

@keyframes queue-purchase-sparkle {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(0deg);
    }

    30% {
        opacity: 1;
        transform: scale(1) rotate(18deg);
    }

    100% {
        opacity: 0;
        transform: scale(1.22) rotate(34deg);
    }
}

@media (max-width: 420px) {
    .queue-page-shell {
        --queue-density: clamp(1, calc(var(--queue-rows-safe) - 3), 7);
    }

    .queue-page-shell > header {
        padding-top: 10px !important;
        padding-bottom: 6px !important;
    }

    .queue-main {
        gap: 6px;
        padding-bottom: 2px !important;
    }

    .queue-back-button {
        height: 34px;
        width: 34px;
    }

    .queue-topbar-title {
        font-size: 15px;
    }

    .queue-topbar-spacer {
        width: 34px;
        height: 34px;
    }

    .queue-panel__foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .queue-panel__countdown {
        align-self: stretch;
        justify-content: space-between;
    }

    .queue-action-dock {
        padding-top: 4px;
        padding-bottom: 6px;
    }

    .queue-action-button {
        min-height: 44px;
        border-radius: 15px;
    }
}

@media (max-height: 760px) {
    .queue-page-shell {
        --queue-density: clamp(1, calc(var(--queue-rows-safe) - 3), 7);
    }

    .queue-page-shell > header {
        padding-top: 10px !important;
        padding-bottom: 6px !important;
    }

    .queue-main {
        gap: 6px;
    }

    .queue-action-dock {
        padding-top: 4px;
        padding-bottom: 6px;
    }

    .queue-action-button {
        min-height: 44px;
    }
}
