/* =========================================================
   ORIPA PAGE - CLEANED VERSION
   =========================================================
   Purpose:
   - No duplicate .pull-btn / .oripa-card / .oripa-banner etc.
   - Premium dark glass style matching the login modal direction.
   - Keep current site background controlled by global style.css.
   ========================================================= */


/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.oripa-page {
    padding: 38px 35px 80px;
    min-height: 80vh;
}

.oripa-title {
    font-size: 42px;
    font-weight: 900;
    color: white;
    margin-bottom: 35px;
    text-align: center;
    letter-spacing: 0.08em;
    text-shadow: 0 0 18px rgba(95, 231, 255, 0.35);
}

.oripa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 330px));
    grid-auto-rows: 1fr;
    justify-content: center;
    align-items: stretch;
    gap: 36px;
    max-width: 1460px;
    margin: 0 auto;
}


/* =========================================================
   CATEGORY TABS
   ========================================================= */

.oripa-category-tabs {
    display: flex;
    justify-content: center;
    gap: 18px;
    max-width: 1400px;
    margin: 0 auto 34px;
    padding: 8px 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    background: transparent;
    box-shadow: none;
    scrollbar-width: none;
}

.oripa-category-tabs::-webkit-scrollbar {
    display: none;
}

.oripa-category-tab {
    min-width: 110px;
    white-space: nowrap;
    padding: 13px 28px;
    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.18),
            rgba(255,255,255,0.07)
        );

    border: 1px solid rgba(255,255,255,0.18);

    color: white;
    text-decoration: none;
    text-align: center;

    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;

    backdrop-filter: blur(14px);

    box-shadow:
        0 10px 24px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.14);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.oripa-category-tab:hover {
    transform: translateY(-3px);
    color: white;

    box-shadow:
        0 12px 24px rgba(0,0,0,0.28),
        0 0 18px rgba(95, 231, 255, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

.oripa-category-tab.active {
    background:
        linear-gradient(
            135deg,
            #ff7ab8,
            #5fe7ff
        );

    color: white;
    border-color: rgba(255,255,255,0.28);

    box-shadow:
        0 0 24px rgba(95,231,255,0.38),
        0 10px 28px rgba(0,0,0,0.26),
        inset 0 1px 0 rgba(255,255,255,0.22);
}


/* =========================================================
   ORIPA CARD
   ========================================================= */

.oripa-card,
.oripa-card *,
.oripa-card *::before,
.oripa-card *::after {
    box-sizing: border-box;
}

.oripa-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
    min-height: 0;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at top left,
            rgba(95,231,255,0.18),
            transparent 38%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(255,80,210,0.16),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #111a2c,
            #090d1b
        );

    border: 1px solid rgba(95,231,255,0.24);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.38),
        0 0 22px rgba(95,231,255,0.12),
        0 0 18px rgba(255,80,210,0.08);

    backdrop-filter: blur(18px);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.oripa-card:hover {
    transform: translateY(-5px) scale(1.008);

    border-color: rgba(95,231,255,0.55);

    box-shadow:
        0 28px 65px rgba(0,0,0,0.48),
        0 0 32px rgba(95,231,255,0.30),
        0 0 24px rgba(255,80,210,0.18);
}

.oripa-card:active {
    transform: translateY(-2px) scale(0.992);
}

.oripa-card > * {
    position: relative;
    z-index: 2;
}

.oripa-card.oripa-low-stock {
    border-color: rgba(255, 210, 90, 0.65);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.38),
        0 0 28px rgba(255, 190, 70, 0.28);
}

.oripa-card.oripa-sold-out {
    opacity: 0.82;
    border-color: rgba(255,255,255,0.12);
}

.oripa-sold-out .oripa-banner,
.oripa-sold-out .oripa-text-panel {
    filter:
        grayscale(0.35)
        brightness(0.82);

    opacity: 0.92;
}


/* =========================================================
   CARD TAGS / RIBBONS
   ========================================================= */

.oripa-tags {
    position: static;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;

    padding: 10px 12px 6px;
    min-height: auto;

    background: rgba(0,0,0,0.10);
}

.oripa-tag {
    padding: 3px 9px;
    border-radius: 999px;

    color: rgba(25,25,25,0.92);

    font-size: 11px;
    font-weight: 900;
    line-height: 1;

    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    backdrop-filter: blur(4px);
    text-shadow: none;
}

.sold-out-ribbon {
    position: absolute;
    top: 18px;
    right: -34px;

    width: 140px;
    padding: 8px 0;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.32),
            rgba(70,70,90,0.92)
        );

    color: white;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;

    transform: rotate(45deg);

    box-shadow:
        0 0 14px rgba(0,0,0,0.35);

    z-index: 5;
}


/* =========================================================
   BANNER / CARD CONTENT
   ========================================================= */

.oripa-banner {
    width: 100%;
    height: 190px;

    object-fit: cover;
    display: block;

    border-radius: 0;

    transition:
        filter 0.25s ease;
}

.oripa-card:hover .oripa-banner {
    filter: brightness(1.08) saturate(1.08);
}

.oripa-content {
    flex: 0 0 auto;
    padding: 13px 15px 15px;
    text-align: center;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oripa-text-panel {
    width: 100%;
    margin-bottom: 0;
}

.oripa-name {
    width: 100%;

    color: white;
    text-align: center;

    font-size: 22px;
    font-weight: 900;

    margin-bottom: 14px;

    text-shadow:
        0 3px 12px rgba(0,0,0,0.45),
        0 0 12px rgba(255,255,255,0.08);
}

.oripa-detail-box .oripa-name {
    width: 100%;
    padding: 0;
    background: none;

    font-size: 23px;
    font-weight: 900;
    color: white;
    text-align: center;

    margin-bottom: 14px;
}

.oripa-detail-box {
    width: 100%;
    max-width: 100%;

    padding: 12px 12px 11px;

    border-radius: 16px;

    background:
        radial-gradient(
            circle at 18% 0,
            rgba(95,231,255,0.09),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            rgba(255,255,255,0.085),
            rgba(255,255,255,0.028)
        );

    border: 1px solid rgba(143, 194, 229, 0.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 10px 24px rgba(0,0,0,0.20);

    backdrop-filter: blur(14px);
}

.oripa-info {
    width: 100%;

    color: rgba(255,255,255,0.92);
    text-align: center;

    margin-bottom: 7px;

    font-size: 15px;
}

.oripa-detail-box .oripa-info:last-child {
    margin-bottom: 0;
}

.oripa-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-bottom: 6px;

    color: #ffffff;

    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;

    text-shadow:
        0 0 10px rgba(255,255,255,0.15);
}

.koin-icon {
    width: 30px;
    height: 30px;

    display: block;
    object-fit: contain;

    filter:
        drop-shadow(0 0 8px rgba(255, 105, 180, 0.42))
        drop-shadow(0 0 9px rgba(95, 231, 255, 0.24));
}

.oripa-price-amount {
    color: #fff;
    font-size: 25px;
    font-weight: 950;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow:
        0 2px 8px rgba(0,0,0,0.34),
        0 0 12px rgba(255,255,255,0.12);
}

.oripa-price-unit {
    color: rgba(236, 244, 255, 0.90);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.remaining-info {
    margin-bottom: 8px;
    color: rgba(225, 235, 249, 0.80);
    font-size: 13px;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.oripa-card.oripa-low-stock .remaining-info {
    color: rgb(255, 220, 120);
    font-weight: 900;

    text-shadow:
        0 0 10px rgba(255, 190, 70, 0.65);
}

.oripa-card.oripa-sold-out .remaining-info {
    color: rgba(255,255,255,0.52);
}

.paid-only-label {
    margin-top: -4px;
    margin-bottom: 12px;

    color: rgb(255, 210, 120);

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;

    text-shadow:
        0 0 10px rgba(255, 210, 120, 0.35);
}


/* =========================================================
   STOCK BAR
   ========================================================= */

.stock-bar {
    width: 100%;
    height: 7px;

    margin: 6px 0 0;

    border-radius: 999px;
    overflow: hidden;

    background: rgba(255,255,255,0.18);

    box-shadow:
        inset 0 1px 3px rgba(0,0,0,0.35);
}

.stock-bar-fill {
    height: 100%;
    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #ff4fa3,
            #ffd85f,
            #5fe7ff
        );

    box-shadow:
        0 0 10px rgba(255, 220, 90, 0.45);

    transition: width 0.35s ease;
}

.oripa-card.oripa-low-stock .stock-bar-fill {
    background:
        linear-gradient(
            90deg,
            rgba(255, 60, 80, 0.98),
            rgba(255, 190, 70, 0.98)
        );

    box-shadow:
        0 0 12px rgba(255, 90, 80, 0.65);
}

.oripa-card.oripa-low-stock .oripa-detail-box::after {
    content: "残りわずか";

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-top: 10px;

    padding: 5px 14px;

    border-radius: 999px;

    background: rgba(255, 190, 70, 0.16);
    border: 1px solid rgba(255, 210, 90, 0.45);

    color: rgb(255, 225, 140);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;

    box-shadow:
        0 0 12px rgba(255, 190, 70, 0.22);

    animation: lowStockPulse 1.5s ease-in-out infinite;
}

@keyframes lowStockPulse {
    0%, 100% {
        opacity: 0.72;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}


/* =========================================================
   PULL / RESULT BUTTONS
   ========================================================= */

.pull-button-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
}

.oripa-pull-panel {
    width: 100%;
    padding: 9px;
    border: 1px solid rgba(132, 184, 224, 0.17);
    border-radius: 16px;
    background:
        radial-gradient(circle at 86% 110%, rgba(255, 92, 197, 0.10), transparent 42%),
        linear-gradient(180deg, rgba(19, 31, 54, 0.90), rgba(14, 20, 39, 0.82));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.055),
        0 9px 22px rgba(0,0,0,0.17);
}

.oripa-pull-panel .oripa-daily-limit {
    margin: 0 0 8px;
}

/* Use inline-flex + height + padding 0 to keep Japanese text visually centered */
.pull-btn {
    width: 100%;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #ff9eb8,
            #5fe7ff
        );

    color: white;

    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    font-family: inherit;

    cursor: pointer;

    box-shadow:
        0 10px 22px rgba(0,0,0,0.26),
        0 0 12px rgba(95,231,255,0.14),
        inset 0 1px 0 rgba(255,255,255,0.32);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.pull-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);

    box-shadow:
        0 12px 24px rgba(0,0,0,0.35),
        0 0 18px rgba(95, 231, 255, 0.35);
}

.pull-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.pull-btn:disabled {
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.45);

    cursor: not-allowed;

    box-shadow: none;
    transform: none;
}

.results-btn {
    width: 100%;
    height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: none;
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #ffd47a,
            #ff5ca8
        );

    color: white;

    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-align: center;
    font-family: inherit;

    cursor: pointer;

    box-shadow:
        0 12px 26px rgba(0,0,0,0.28),
        0 0 16px rgba(255,92,168,0.18);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.results-btn:hover {
    transform: translateY(-3px) scale(1.02);

    box-shadow:
        0 14px 30px rgba(0,0,0,0.34),
        0 0 20px rgba(255,92,168,0.24);
}


/* =========================================================
   RESULT VIDEO MODAL
   ========================================================= */

#resultModal {
    position: fixed;
    inset: 0;

    display: none;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(0,0,0,0.9);

    z-index: 99999;
}

.result-box {
    width: 100%;
    max-width: 720px;

    text-align: center;

    animation: modalPop 0.25s ease;
}

@keyframes modalPop {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#videoStage {
    position: relative;
}

#resultVideo {
    width: 100%;
    max-height: 70vh;

    object-fit: contain;

    border-radius: 24px;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.55),
        0 0 35px rgba(95, 231, 255, 0.18);
}

.skip-btn {
    margin-top: 16px;

    padding: 12px 26px;

    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 14px;

    background: rgba(255,255,255,0.18);

    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.22s ease;
}

.skip-btn:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.28);
}

#resultCard {
    margin-top: 24px;

    display: none;

    animation: resultReveal 0.35s ease;
}

@keyframes resultReveal {
    from {
        transform: translateY(15px) scale(0.95);
        opacity: 0;
    }

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

.result-title {
    margin-bottom: 20px;

    color: white;

    font-size: 28px;
    font-weight: 900;
}

.result-card-list {
    max-height: 70vh;
    overflow-y: auto;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;

    padding: 8px;
}

#resultModal.showing-results .result-card-list.empty-results {
    min-height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.result-empty-state {
    width: min(100%, 420px);
    min-height: 150px;
    padding: 24px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    box-sizing: border-box;
    border: 1px solid rgba(92, 235, 171, 0.45);
    border-radius: 20px;

    background:
        linear-gradient(145deg, rgba(43, 194, 119, 0.15), rgba(95, 231, 255, 0.08)),
        rgba(8, 18, 32, 0.68);

    color: #fff;
    text-align: center;

    box-shadow:
        0 12px 28px rgba(0,0,0,0.28),
        0 0 18px rgba(65, 220, 143, 0.12);
}

.result-empty-check {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: linear-gradient(135deg, #54e99f, #20bd72);
    color: #fff;

    font-size: 26px;
    font-weight: 1000;
    line-height: 1;
}

.result-empty-state strong {
    font-size: 18px;
    font-weight: 900;
}

.result-empty-state small {
    color: rgba(229, 241, 250, 0.76);
    font-size: 13px;
    font-weight: 700;
}

.result-card-item {
    position: relative;
    overflow: hidden;

    padding: 12px;

    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 18px;

    background: rgba(255,255,255,0.12);

    text-align: center;

    box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}

.result-card-item.kangen-selected {
    border-color: rgba(83, 238, 167, 0.95);
    box-shadow:
        0 8px 18px rgba(0,0,0,0.28),
        0 0 0 3px rgba(83, 238, 167, 0.24) inset,
        0 0 18px rgba(83, 238, 167, 0.28);
}

.result-card-item.kangen-selectable {
    cursor: pointer;
}

.result-card-item.kangen-selectable:focus-visible {
    outline: 3px solid rgba(95,231,255,0.82);
    outline-offset: 2px;
}

.result-kangen-check {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 8;

    width: 38px;
    height: 38px;

    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.result-kangen-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.result-kangen-check span {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    border: 2px solid rgba(255,255,255,0.82);
    border-radius: 11px;

    background: rgba(8, 18, 32, 0.82);
    color: rgba(255,255,255,0.35);
    font-size: 22px;
    font-weight: 1000;

    box-shadow:
        0 6px 16px rgba(0,0,0,0.35),
        0 0 12px rgba(95,231,255,0.18);
    backdrop-filter: blur(8px);

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.result-kangen-check:hover span {
    transform: translateY(-1px);
    border-color: #5fe7ff;
}

.result-kangen-check input:focus-visible + span {
    outline: 3px solid rgba(95,231,255,0.72);
    outline-offset: 2px;
}

.result-kangen-check input:checked + span {
    border-color: #8bffd0;
    background: linear-gradient(135deg, #56eba0, #20bb70);
    color: #fff;
}

.result-card-item img {
    width: 100%;
    max-height: 190px;

    object-fit: contain;

    border-radius: 12px;
}

.result-card-info {
    margin-top: 10px;
}

.result-card-rank {
    color: rgba(95, 231, 255, 0.95);

    font-size: 15px;
    font-weight: 900;
}

.result-card-name {
    color: white;

    font-size: 14px;
    font-weight: 700;

    margin-top: 4px;
}

.close-btn {
    display: block;

    margin: 20px auto 0;

    padding: 14px 34px;

    border: none;
    border-radius: 16px;

    background: linear-gradient(
        135deg,
        #ff9ed8,
        #5fe7ff
    );

    color: white;
    font-weight: 900;
    font-size: 15px;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.close-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.close-btn:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.25);
}


/* =========================================================
   RESULT CARD RANK AURAS
   ========================================================= */

.result-card-item.rank-sp {
    border: 2px solid rgba(255,255,255,0.95);

    box-shadow:
        0 0 28px rgba(255,255,255,0.95),
        0 0 55px rgba(255, 70, 190, 0.8),
        0 0 85px rgba(95, 231, 255, 0.65),
        0 14px 34px rgba(0,0,0,0.55);
}

.result-card-item.rank-sp::before {
    content: "";
    position: absolute;
    inset: -45%;

    background:
        conic-gradient(
            from 0deg,
            rgba(255, 0, 120, 0.45),
            rgba(255, 220, 70, 0.55),
            rgba(95, 231, 255, 0.55),
            rgba(170, 90, 255, 0.55),
            rgba(255, 0, 120, 0.45)
        );

    animation: godAura 2.6s linear infinite;

    z-index: 0;
}

.result-card-item.rank-first {
    border-color: rgba(255,255,255,0.85);

    box-shadow:
        0 0 24px rgba(255, 215, 80, 0.85),
        0 0 48px rgba(255, 90, 180, 0.55),
        0 0 65px rgba(95, 231, 255, 0.42),
        0 12px 30px rgba(0,0,0,0.45);
}

.result-card-item.rank-first::before {
    content: "";
    position: absolute;
    inset: -40%;

    background:
        conic-gradient(
            from 0deg,
            rgba(255, 215, 80, 0.35),
            rgba(255, 80, 170, 0.35),
            rgba(95, 231, 255, 0.35),
            rgba(180, 120, 255, 0.35),
            rgba(255, 215, 80, 0.35)
        );

    animation: premiumAura 3.4s linear infinite;

    z-index: 0;
}

.result-card-item.rank-last_one {
    border-color: rgba(255, 220, 120, 0.85);

    box-shadow:
        0 0 24px rgba(255, 215, 80, 0.75),
        0 0 44px rgba(255, 120, 190, 0.35),
        0 10px 28px rgba(0,0,0,0.45);
}

.result-card-item.rank-last_one::before {
    content: "";
    position: absolute;
    inset: -40%;

    background:
        conic-gradient(
            from 0deg,
            rgba(255, 215, 80, 0),
            rgba(255, 215, 80, 0.35),
            rgba(95, 231, 255, 0.25),
            rgba(255, 120, 190, 0.35),
            rgba(255, 215, 80, 0)
        );

    animation: lastOneAura 4s linear infinite;

    z-index: 0;
}

.result-card-item.rank-sp > *,
.result-card-item.rank-first > *,
.result-card-item.rank-last_one > * {
    position: relative;
    z-index: 1;
}

.result-card-item.rank-second {
    background:
        linear-gradient(
            135deg,
            rgba(255, 215, 80, 0.22),
            rgba(255, 180, 40, 0.12)
        );

    border-color: rgba(255, 215, 80, 0.7);

    box-shadow:
        0 0 22px rgba(255, 215, 80, 0.6),
        0 8px 22px rgba(0,0,0,0.35);
}

.result-card-item.rank-third {
    background:
        linear-gradient(
            135deg,
            rgba(220, 230, 255, 0.20),
            rgba(170, 185, 220, 0.10)
        );

    border-color: rgba(220, 230, 255, 0.7);

    box-shadow:
        0 0 20px rgba(220, 230, 255, 0.55),
        0 8px 22px rgba(0,0,0,0.35);
}

.result-card-item.rank-fourth {
    background:
        linear-gradient(
            135deg,
            rgba(205, 130, 70, 0.20),
            rgba(140, 85, 40, 0.10)
        );

    border-color: rgba(205, 130, 70, 0.65);

    box-shadow:
        0 0 18px rgba(205, 130, 70, 0.48),
        0 8px 22px rgba(0,0,0,0.35);
}

@keyframes godAura {
    from {
        transform: rotate(0deg) scale(1);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes premiumAura {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes lastOneAura {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   SOLD OUT RESULTS MODAL
   ========================================================= */

#oripaResultsModal {
    position: fixed;
    inset: 0;

    display: none;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(0,0,0,0.9);

    z-index: 99999;
}

.oripa-results-box {
    width: 100%;
    max-width: 760px;
    max-height: 85vh;
    overflow-y: auto;

    padding: 24px;

    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 24px;

    background: rgba(20,20,30,0.96);

    text-align: center;

    box-shadow:
        0 20px 45px rgba(0,0,0,0.55),
        0 0 30px rgba(95, 231, 255, 0.18);
}

.oripa-results-title {
    color: white;

    font-size: 30px;
    font-weight: 900;

    margin-bottom: 22px;
}

.oripa-result-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;

    padding: 14px;
    margin-bottom: 14px;

    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 18px;

    background: rgba(255,255,255,0.1);

    text-align: left;
}

.oripa-result-row img {
    width: 110px;
    height: 150px;

    object-fit: contain;

    border-radius: 12px;

    background: rgba(0,0,0,0.25);
}

.oripa-result-rank {
    color: rgba(95, 231, 255, 0.95);

    font-size: 20px;
    font-weight: 900;
}

.oripa-result-card {
    color: white;

    font-size: 17px;
    font-weight: 800;

    margin-top: 4px;
}

.oripa-result-user,
.oripa-result-ticket,
.oripa-result-time {
    color: rgba(255,255,255,0.78);

    font-size: 14px;

    margin-top: 5px;
}

.oripa-results-empty {
    color: white;

    font-size: 18px;

    padding: 30px;
}


/* =========================================================
   PRIZE MODAL
   ========================================================= */
#prizeModal,
#prizeModal *,
#prizeModal *::before,
#prizeModal *::after {
    box-sizing: border-box;
}


#prizeModal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 22px;

    background:
        radial-gradient(circle at center, rgba(95,231,255,0.10), transparent 38%),
        rgba(0,0,0,0.82);

    backdrop-filter: blur(7px);
}

.prize-modal-box {
    width: min(1100px, calc(100vw - 44px));
    max-width: 1100px;
    overflow-x: hidden;
    max-height: 86vh;
    overflow-y: auto;

    padding: 30px;

    border-radius: 30px;

    background:
        radial-gradient(circle at top, rgba(95,231,255,0.14), transparent 34%),
        radial-gradient(circle at 90% 20%, rgba(255,80,210,0.10), transparent 34%),
        linear-gradient(180deg, #111a2c, #080d1c);

    border: 1px solid rgba(95,231,255,0.28);

    box-shadow:
        0 30px 90px rgba(0,0,0,0.72),
        0 0 34px rgba(95,231,255,0.16);

    text-align: center;
}

.prize-modal-title {
    position: relative;

    font-size: 42px;
    font-weight: 900;
    color: white;

    margin-bottom: 34px;

    letter-spacing: 0.08em;

    text-align: center;

    text-shadow:
        0 0 12px rgba(255,255,255,0.22),
        0 0 24px rgba(95,231,255,0.42),
        0 0 34px rgba(255,80,210,0.30),
        0 4px 18px rgba(0,0,0,0.65);
}

.prize-modal-title::before {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -14px;

    transform: translateX(-50%);

    width: 180px;
    height: 4px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #ff7ab8,
            #5fe7ff
        );

    box-shadow:
        0 0 18px rgba(95,231,255,0.55),
        0 0 24px rgba(255,80,210,0.38);
}

#prizeModalList {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.prize-item {
    width: 100%;
    max-width: none;

    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 32px;
    align-items: center;

    padding: 26px 34px;

    border-radius: 28px;

    background:
        radial-gradient(circle at left, rgba(95,231,255,0.16), transparent 34%),
        radial-gradient(circle at right, rgba(255,80,210,0.13), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,0.085), rgba(255,255,255,0.03));

    border: 1px solid rgba(255,255,255,0.14);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 14px 34px rgba(0,0,0,0.32);

    text-align: left;
}

.prize-item img {
    width: 150px;
    height: 205px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(0,0,0,0.32);

    box-shadow:
        0 12px 28px rgba(0,0,0,0.38),
        0 0 18px rgba(95,231,255,0.14);
}

.prize-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.prize-rank {
    display: inline-block;

    margin-bottom: 14px;

    font-size: 34px;
    font-weight: 900;

    letter-spacing: 0.04em;

    background:
        linear-gradient(
            135deg,
            #ff8ac5,
            #5fe7ff
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 18px rgba(95,231,255,0.18);

    filter:
        drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

.prize-name {
    color: white;

    font-size: 20px;
    font-weight: 900;
    line-height: 1.35;

    margin: 0 0 12px;

    text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

.prize-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
}

.prize-badge {
    padding: 6px 13px;
    border-radius: 999px;

    color: white;
    font-size: 12px;
    font-weight: 900;

    box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}

.shipping-badge {
    background: linear-gradient(135deg, #20d08a, #25a56a);
}

.psa-badge {
    background: linear-gradient(135deg, #ffb15f, #f28a2e);
}

.real-photo-btn {
    width: 180px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 14px;
    padding: 0;

    border: none;
    border-radius: 999px;

    background: linear-gradient(135deg, #ff9eb8, #5fe7ff);

    color: white;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;

    cursor: pointer;

    box-shadow:
        0 10px 22px rgba(0,0,0,0.26),
        0 0 14px rgba(95,231,255,0.20);

    transition: 0.22s ease;
}

.real-photo-btn:hover {
    transform: translateY(-2px) scale(1.03);
}

.last-one-prize-item {
    border-color: rgba(255,215,100,0.38);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 0 24px rgba(255,200,90,0.18),
        0 14px 30px rgba(0,0,0,0.28);
}

.last-one-rank {
    background:
        linear-gradient(
            135deg,
            #ffd85f,
            #ff73b9
        );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 22px rgba(255,210,90,0.28);
}

@media (max-width: 640px) {
    .prize-modal-box {
        padding: 22px;
        border-radius: 24px;
    }

    .prize-modal-title {
        font-size: 25px;
    }

    .prize-item {
        grid-template-columns: 95px 1fr;
        gap: 14px;
        padding: 14px;
    }

    .prize-item img {
        width: 95px;
        height: 130px;
    }

    .prize-name {
        font-size: 15px;
    }

    .prize-rank {
        font-size: 13px;
    }

    .real-photo-btn {
        width: 150px;
        height: 40px;
        font-size: 13px;
    }
}


/* =========================================================
   REAL PHOTO MODAL
   ========================================================= */

#realPhotoModal {
    position: fixed;
    inset: 0;

    display: none;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(0,0,0,0.9);

    z-index: 100000;
}

.real-photo-modal-box {
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;

    padding: 24px;

    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 24px;

    background: rgba(20,20,30,0.96);

    text-align: center;
}

.real-photo-title {
    color: white;

    font-size: 28px;
    font-weight: 900;

    margin-bottom: 20px;
}

.real-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.real-photo-gallery img {
    width: 100%;
    max-height: 520px;

    object-fit: contain;

    border-radius: 16px;

    background: rgba(0,0,0,0.35);
    cursor: zoom-in;
}

/* Full-screen viewer for Oripa real photos — same interaction and visual language as Singles. */
.oripa-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: none;
    background: rgba(3, 6, 12, .92);
    backdrop-filter: blur(6px);
    touch-action: none;
    user-select: none;
}

.oripa-photo-lightbox.open { display: block; }

.oripa-photo-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.oripa-photo-stage img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    transform-origin: center center;
    will-change: transform;
    -webkit-user-drag: none;
    cursor: grab;
}

.oripa-photo-stage img.grabbing { cursor: grabbing; }

.oripa-photo-close,
.oripa-photo-nav,
.oripa-photo-controls button {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background .15s ease, transform .15s ease;
}

.oripa-photo-close:hover,
.oripa-photo-nav:hover,
.oripa-photo-controls button:hover { background: rgba(255, 255, 255, .18); }

.oripa-photo-close {
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
}

.oripa-photo-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    padding-bottom: 4px;
}

.oripa-photo-prev { left: 14px; }
.oripa-photo-next { right: 14px; }
.oripa-photo-nav.hidden,
.oripa-photo-counter.hidden { display: none; }

.oripa-photo-controls {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.oripa-photo-controls button {
    position: static;
    width: 48px;
    height: 44px;
    border-radius: 12px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.oripa-photo-counter {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    padding: 5px 14px;
    backdrop-filter: blur(6px);
}

.oripa-photo-hint {
    position: absolute;
    bottom: 78px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 11.5px;
    color: rgba(255, 255, 255, .5);
    text-align: center;
    pointer-events: none;
}

@media (max-width: 720px) {
    .oripa-photo-controls { bottom: 16px; }
    .oripa-photo-hint { bottom: 68px; }
    .oripa-photo-nav { width: 42px; height: 42px; font-size: 26px; }
}


/* =========================================================
   LOGIN REQUIRED MODAL
   ========================================================= */

.login-required-modal {
    position: fixed;
    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        radial-gradient(
            circle at center,
            rgba(95, 231, 255, 0.10),
            transparent 38%
        ),
        rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(7px);

    z-index: 100001;
}

.login-required-box {
    position: relative;

    overflow-x: hidden;
    overflow-y: auto;

    max-height: calc(100vh - 40px);

    scrollbar-width: none;
    -ms-overflow-style: none;

    width: 100%;
    max-width: 560px;

    padding: 42px 42px 34px;

    border: 1px solid rgba(180, 210, 255, 0.36);
    border-radius: 26px;

    background:
        radial-gradient(
            circle at top,
            rgba(95, 231, 255, 0.16),
            transparent 34%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(255, 80, 210, 0.12),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            rgba(18, 26, 48, 0.98),
            rgba(8, 13, 28, 0.98)
        );

    text-align: center;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.72),
        0 0 38px rgba(95, 231, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    animation: loginModalPop 0.24s ease;
}

.login-required-box::-webkit-scrollbar {
    display: none;
}

.login-required-box::before {
    content: "";
    position: absolute;
    inset: -2px;

    background:
        linear-gradient(
            135deg,
            rgba(95, 231, 255, 0.35),
            transparent 28%,
            transparent 68%,
            rgba(255, 80, 210, 0.35)
        );

    opacity: 0.45;
    pointer-events: none;
}

.login-required-box > * {
    position: relative;
    z-index: 1;
}

@keyframes loginModalPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

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

.login-lock-wrap {
    position: relative;

    width: 84px;
    height: 84px;

    margin: 0 auto 24px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.login-lock-glow {
    position: absolute;
    inset: 0;

    border-radius: 50%;

    background:
        conic-gradient(
            from 0deg,
            rgba(95, 231, 255, 0.95),
            rgba(160, 90, 255, 0.9),
            rgba(255, 80, 210, 0.9),
            rgba(95, 231, 255, 0.95)
        );

    filter: blur(2px);
    opacity: 0.88;

    animation: loginGlowSpin 4s linear infinite;
}

.login-lock-glow::after {
    content: "";
    position: absolute;
    inset: 2px;

    border-radius: 50%;

    background: #111827;
}

.login-lock-icon {
    position: relative;
    z-index: 2;

    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
}

.login-lock-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    animation: lockFloat 3s ease-in-out infinite;

    filter:
        drop-shadow(0 0 8px rgba(95, 231, 255, 0.45));
}

@keyframes lockFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes loginGlowSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.login-required-title {
    color: #ffffff;

    font-size: 34px;
    font-weight: 900;
    letter-spacing: 0.04em;

    margin-bottom: 16px;

    text-shadow:
        0 4px 18px rgba(0,0,0,0.5),
        0 0 16px rgba(255,255,255,0.12);
}

.login-title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-bottom: 24px;
}

.login-title-line span {
    display: block;

    width: 110px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(95, 231, 255, 0.9),
            rgba(255, 80, 210, 0.9)
        );
}

.login-title-line span:last-child {
    transform: scaleX(-1);
}

.login-title-line b {
    color: rgba(160, 120, 255, 0.95);

    font-size: 14px;
}

.login-required-text {
    color: rgba(255,255,255,0.82);

    font-size: 16px;
    font-weight: 700;
    line-height: 1.85;

    margin-bottom: 28px;
}

.login-google-btn {
    width: 100%;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    border: 2px solid transparent;
    border-radius: 16px;

    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(
            135deg,
            rgba(95, 231, 255, 1),
            rgba(255, 80, 210, 1)
        ) border-box;

    color: #101827;

    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-decoration: none;

    box-shadow:
        0 14px 28px rgba(0,0,0,0.34),
        0 0 22px rgba(95, 231, 255, 0.18);

    transition: 0.22s ease;
}

.login-google-btn:hover {
    transform: translateY(-3px) scale(1.01);

    box-shadow:
        0 18px 34px rgba(0,0,0,0.44),
        0 0 28px rgba(95, 231, 255, 0.28),
        0 0 24px rgba(255, 80, 210, 0.18);
}

.login-google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-google-icon img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;

    object-fit: contain;
}

.login-line-btn {
    width: 100%;
    height: 62px;
    margin-top: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    border: 2px solid transparent;
    border-radius: 16px;

    background: #06C755;
    color: white;

    font-size: 19px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-decoration: none;

    box-shadow:
        0 14px 28px rgba(0,0,0,0.34),
        0 0 22px rgba(6, 199, 85, 0.18);

    transition: 0.22s ease;
}

.login-line-btn:hover {
    transform: translateY(-3px) scale(1.01);
    background: #05b74d;

    box-shadow:
        0 18px 34px rgba(0,0,0,0.44),
        0 0 28px rgba(6, 199, 85, 0.30);
}

.login-close-btn {
    min-width: 150px;

    margin-top: 28px;
    padding: 13px 28px;

    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.16),
            rgba(255,255,255,0.08)
        );

    color: white;

    font-size: 16px;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 10px 24px rgba(0,0,0,0.28);

    transition: 0.22s ease;
}

.login-close-btn:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.24),
            rgba(255,255,255,0.12)
        );
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
    .oripa-page {
        padding: 25px 15px 70px;
    }

    .oripa-title {
        font-size: 30px;
        text-align: center;
        margin-bottom: 25px;
    }

    .oripa-category-tabs {
        justify-content: flex-start;
        margin-bottom: 22px;
        padding: 2px 2px 8px;
        gap: 10px;
    }

    .oripa-category-tab {
        min-width: auto;
        padding: 9px 18px;
        font-size: 13px;
    }

    .oripa-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        align-items: start;
        gap: 22px;
    }

    .oripa-card {
        align-self: start;
        height: auto;
    }

    .oripa-content {
        padding: 11px 12px 12px;
        gap: 9px;
    }

    .oripa-detail-box {
        padding: 11px 10px 10px;
    }

    .oripa-price-amount {
        font-size: 25px;
    }

    .oripa-price-unit {
        font-size: 12px;
    }

    .pull-button-row {
        gap: 7px;
    }

    .oripa-pull-panel {
        padding: 8px;
    }

    .pull-btn {
        height: 44px;
        font-size: 14px;
    }

    .oripa-banner {
        height: 210px;
    }

    .result-card-list {
        grid-template-columns: repeat(2, 1fr);
        max-height: 65vh;
    }

    .result-title {
        font-size: 22px;
    }

    .oripa-result-row {
        grid-template-columns: 90px 1fr;
    }

    .oripa-result-row img {
        width: 90px;
        height: 125px;
    }

    .oripa-results-title {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .login-required-box {
        max-width: 94vw;
        padding: 34px 22px 28px;
        border-radius: 22px;
    }

    .login-required-title {
        font-size: 26px;
    }

    .login-required-text {
        font-size: 14px;
    }

    .login-title-line span {
        width: 70px;
    }

    .login-google-btn {
        height: 56px;
        font-size: 16px;
    }
    .login-line-btn {
        height: 56px;
        font-size: 16px;
    }
}

.magnet-loader-badge {
    background: linear-gradient(135deg, #5fe7ff, #fabcdb);
    color: #102033;
}

.test-only-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3b3b, #ffb000);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.04em;
    box-shadow: 0 0 14px rgba(255, 80, 80, 0.65);
}

.login-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    height: 64px;

    padding: 0 22px;
    margin-top: 18px;

    border: none;
    border-radius: 18px;

    background: linear-gradient(
        135deg,
        #5865F2,
        #7289DA
    );

    color: white;
    text-decoration: none;

    font-size: 20px;
    font-weight: 900;

    box-sizing: border-box;

    box-shadow:
        0 10px 24px rgba(88, 101, 242, 0.35);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.login-discord-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 28px rgba(88, 101, 242, 0.48);

    filter: brightness(1.04);

    color: white;
}

.login-discord-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.oripa-vip-required-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;
    padding: 6px 14px;

    border-radius: 999px;

    color: white;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;

    box-shadow:
        0 0 14px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

.oripa-vip-required-badge[data-vip="bronze"] {
    background: linear-gradient(135deg, #b87333, #6f3f1f);
}

.oripa-vip-required-badge[data-vip="silver"] {
    background: linear-gradient(135deg, #f2f2f2, #9fa7b3);
    color: #111827;
}

.oripa-vip-required-badge[data-vip="gold"] {
    background: linear-gradient(135deg, #ffe680, #d89b18);
    color: #211400;
}

.oripa-vip-required-badge[data-vip="diamond"] {
    background: linear-gradient(135deg, #b8f7ff, #7d8cff);
    color: #071526;
}

.oripa-vip-required-badge[data-vip="black"] {
    background: linear-gradient(135deg, #111111, #3a3a3a);
    border: 1px solid rgba(255,255,255,0.28);
}

.oripa-vip-required-badge[data-vip="koripavip"] {
    color: white;

    background:
        linear-gradient(
            135deg,
            #ff9ed8 0%,
            #ff6fb8 32%,
            #77eaff 68%,
            #5fe7ff 100%
        );

    border: 1px solid rgba(255,255,255,0.42);

    box-shadow:
        0 0 14px rgba(255, 120, 200, 0.45),
        0 0 18px rgba(95, 231, 255, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.35);

    text-shadow:
        0 1px 2px rgba(0,0,0,0.38);
}

.preparing-ribbon {
    position: absolute;
    top: 18px;
    right: -34px;

    width: 140px;
    padding: 8px 0;

    text-align: center;

    background: linear-gradient(135deg, #ffe680, #ffae3d);

    color: #2a1800;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;

    transform: rotate(45deg);

    box-shadow:
        0 0 16px rgba(255, 210, 90, 0.45);

    z-index: 5;
}

.oripa-card.oripa-preparing {
    opacity: 0.96;
    border-color: rgba(255, 210, 90, 0.42);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.38),
        0 0 24px rgba(255, 210, 90, 0.18);
}

.oripa-card.oripa-preparing .oripa-banner {
    filter: saturate(0.78) brightness(0.86);
}

.preparing-btn {
    width: 100%;
    height: 54px;

    margin-top: auto;
    border: 1px solid rgba(255, 196, 91, 0.56);
    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(112, 71, 26, 0.76),
            rgba(138, 83, 37, 0.88)
        );

    color: #ffd378;

    font-size: 16px;
    font-weight: 900;

    cursor: not-allowed;

    box-shadow:
        0 12px 26px rgba(0,0,0,0.28),
        0 0 18px rgba(255, 190, 70, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.08);

    opacity: 1;
}

.vip-required-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(7px);
    z-index: 999999;
}

.vip-required-box {
    width: 100%;
    max-width: 520px;
    padding: 36px 32px 30px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(255, 120, 200, 0.18), transparent 35%),
        radial-gradient(circle at 85% 20%, rgba(95, 231, 255, 0.16), transparent 35%),
        linear-gradient(180deg, #151d36, #080d1c);
    border: 1px solid rgba(255,255,255,0.22);
    text-align: center;
    box-shadow: 0 30px 90px rgba(0,0,0,0.7);
}

.vip-required-icon {
    color: #5fe7ff;
    font-size: 30px;
    margin-bottom: 14px;
}

.vip-required-title {
    color: white;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 14px;
}

.vip-required-text {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 26px;
}

.vip-required-close-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff9ed8, #5fe7ff);
    color: white;
    font-weight: 900;
    cursor: pointer;
}

#resultModal .result-box {
    width: fit-content;
    max-width: 92vw;
    padding: 0;
    overflow: hidden;
}

#videoStage {
    line-height: 0;
}

#resultVideo {
    display: block;
    width: auto;
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
}

#resultModal:not(.showing-results) .result-box {
    width: auto;
    max-width: 95vw;
    padding: 18px;
    border-radius: 28px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

#resultModal:not(.showing-results) #videoStage {
    line-height: 0;
}

#resultModal:not(.showing-results) #resultVideo {
    display: block;

    width: auto;
    height: auto;

    max-width: min(520px, 92vw);
    max-height: 84vh;

    border-radius: 22px;
    object-fit: contain;
}

/* Result mode: restore old card result layout */
#resultModal.showing-results .result-box {
    width: 100%;
    max-width: 720px;
}

#resultModal.showing-results #resultCard {
    width: 100%;
}

#resultModal.showing-results .result-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

.oripa-category-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.oripa-category-tabs {
    grid-column: 2;
    margin: 0;
}

.preload-enshutu-btn{
    height:48px;
    padding:0 24px;
    grid-column: 3;
    justify-self: end;
    border:none;
    border-radius:999px;

    background:
        linear-gradient(
            135deg,
            #ff7ab8,
            #5fe7ff
        );

    color:white;
    font-weight:900;

    cursor:pointer;

    white-space:nowrap;
}

#preloadModal{
    position:fixed;
    inset:0;

    display:none;
    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,.85);

    z-index:999999;
}

.preload-modal-box{
    width:520px;
    max-width:90vw;

    padding:32px;

    border-radius:24px;

    background:#111a2c;

    text-align:center;
}

.preload-title{
    font-size:28px;
    font-weight:900;
    color:white;

    margin-bottom:20px;
}

.preload-progress-wrap{
    margin-top:24px;
}

.preload-progress-bar{
    width:100%;
    height:16px;

    border-radius:999px;
    overflow:hidden;

    background:rgba(255,255,255,.15);
}

.preload-progress-fill{
    width:0%;
    height:100%;

    background:
        linear-gradient(
            90deg,
            #ff7ab8,
            #5fe7ff
        );

    transition:width .3s ease;
}

#preloadPercent{
    margin-top:10px;
    color:white;
}

@media (max-width:760px){

    .oripa-category-header{
        flex-direction:column;
        align-items:stretch;
    }

    .preload-enshutu-btn{
        width:100%;
    }
}

.preload-action-row{
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

#resultModal .close-btn,
#oripaResultsModal .close-btn,
#prizeModal .close-btn,
#realPhotoModal .close-btn,
#preloadModal .close-btn,
#ticketModal .close-btn {
    position: static;
    top: auto;
    right: auto;

    width: auto;
    height: auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 22px auto 0;
    padding: 14px 34px;

    border: none;
    border-radius: 16px;

    background: linear-gradient(135deg, #ff9ed8, #5fe7ff);

    color: white;
    font-size: 15px;
    font-weight: 900;

    transform: none;
}

#resultModal .close-btn:hover,
#oripaResultsModal .close-btn:hover,
#prizeModal .close-btn:hover,
#realPhotoModal .close-btn:hover,
#preloadModal .close-btn:hover,
#ticketModal .close-btn:hover {
    transform: translateY(-2px);
    color: white;
}

@media (max-width: 768px) {
    .oripa-category-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin: 0 -15px 24px;
        overflow: hidden;
    }

    .oripa-category-tabs {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: visible;
        gap: 10px;
        margin: 0;
        padding: 0 24px 6px;
        scroll-padding-left: 24px;
        scroll-padding-right: 24px;
    }

    .oripa-category-tab {
        flex: 0 0 auto;
        min-width: 92px;
        padding: 11px 20px;
        font-size: 13px;
    }

    .preload-enshutu-btn {
        width: calc(100% - 48px);
        margin: 0 auto;
        position: static;
        justify-content: center;
    }
}

.oripa-login-legal-text {
    margin: 18px auto 0;
    max-width: 420px;

    color: rgba(255,255,255,0.62);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
}

.oripa-login-legal-text .login-legal-link {
    padding: 0;
    border: none;
    background: transparent;

    color: rgba(95,231,255,0.95);
    font: inherit;
    font-weight: 900;

    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.oripa-login-legal-text .login-legal-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(95,231,255,0.55);
}

#footerModal.footer-modal {
    z-index: 1000000;
}

#loginRequiredModal.login-required-modal {
    z-index: 100001;
}

.result-action-row{
    display:grid;
    grid-template-columns: 280px 280px;
    justify-content:center;
    gap:20px;

    margin-top:24px;
}

.selected-kangen-action {
    width: 100%;
    max-width: 580px;
    margin-top: 18px;
    margin-left: auto;
    margin-right: auto;

    grid-template-columns: 170px minmax(0, 1fr);
    gap: 10px;
}

.kangen-selected-btn {
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 10px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    border: 1px solid rgba(105, 244, 181, 0.72);
    border-radius: 16px;

    background: linear-gradient(135deg, #34d98b, #1ab8a8);
    color: #fff;

    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
    text-align: center;

    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(0,0,0,0.24),
        0 0 16px rgba(52,217,139,0.22);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        filter 0.2s ease;
}

.kangen-selected-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.kangen-selected-btn:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.24);
    box-shadow: none;
}

.kangen-select-all-btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 8px 12px;

    border: 1px solid rgba(121, 215, 255, 0.7);
    border-radius: 16px;

    background: linear-gradient(135deg, #3978bf, #7654c8);
    color: #fff;

    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;

    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(0,0,0,0.24),
        0 0 14px rgba(95,183,255,0.2);

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        opacity 0.2s ease;
}

.kangen-select-all-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.kangen-select-all-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.result-action-row .kangen-pulled-btn,
.result-action-row .close-btn{
    width:280px !important;
    min-width:280px !important;
    max-width:280px !important;

    height:58px !important;
    min-height:58px !important;

    margin:0 !important;
    padding:0 !important;

    display:flex;
    align-items:center;
    justify-content:center;

    box-sizing:border-box;
}

.kangen-pulled-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:14px 34px;

    border:none;
    border-radius:16px;

    background:
        linear-gradient(
            135deg,
            #6df0a3,
            #2fd67a
        );

    color:white;

    font-size:15px;
    font-weight:900;

    cursor:pointer;

    box-shadow:
        0 10px 22px rgba(0,0,0,0.26),
        0 0 14px rgba(47,214,122,0.25);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        opacity 0.22s ease;
}

.kangen-pulled-btn:hover:not(:disabled){
    transform:translateY(-2px);

    box-shadow:
        0 14px 28px rgba(0,0,0,0.34),
        0 0 18px rgba(47,214,122,0.45);
}

.kangen-pulled-btn:active:not(:disabled){
    transform:scale(0.98);
}

.kangen-pulled-btn:disabled{
    opacity:0.7;
    cursor:not-allowed;
}

.result-action-row:has(.kangen-pulled-btn[style*="display: none"]) {
    grid-template-columns: 280px;
}

.result-action-row:has(.kangen-pulled-btn[style*="display:none"]) {
    grid-template-columns: 280px;
}

.kangen-pulled-btn.kangen-completed{
    background:
        linear-gradient(
            135deg,
            #1d7f4e,
            #14653d
        );

    box-shadow:
        0 10px 22px rgba(0,0,0,0.26),
        0 0 14px rgba(29,127,78,0.25);

    cursor: default;
}

.kangen-pulled-btn.kangen-completed:hover{
    transform:none;
}

.oripa-helper-text {
    max-width: 1100px;
    margin: 14px auto 26px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
}

.oripa-helper-icon {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #ff78d7,
        #78f3ff
    );

    color: #fff;
    font-size: 13px;
    font-weight: 900;

    box-shadow:
        0 0 10px rgba(120,243,255,.4),
        0 0 15px rgba(255,120,215,.3);
}

.oripa-news-carousel {
    position: relative;

    max-width: 840px;
    height: 158px;
    margin: 26px auto 22px;

    display: flex;
    align-items: center;

    border-radius: 24px;
    background: rgba(7, 14, 32, 0.45);
    border: 1px solid rgba(120, 220, 255, 0.22);
    box-shadow: 0 0 24px rgba(80, 210, 255, 0.13);
    backdrop-filter: blur(12px);

    overflow: hidden;
}

.oripa-news-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.oripa-news-viewport:active {
    cursor: grabbing;
}

.oripa-news-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease;
    user-select: none;
}

.oripa-news-track.dragging {
    transition: none;
}

.oripa-news-slide {
    min-width: 100%;
    height: 100%;

    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    column-gap: 28px;

    padding:  0px 38px 0px 38px;
}

.oripa-news-image {
    width: 260px;
    height: 106px;
    object-fit: cover;
    border-radius: 17px;
    justify-self: end;
    pointer-events: none;
    user-select: none;
}

.oripa-news-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    min-width: 0;
    color: white;
}

.oripa-news-category {
    width: fit-content;
    margin-bottom: 8px;
    padding: 5px 14px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 900;

    background: linear-gradient(135deg, #ff78d7, #78f3ff);
}

.oripa-news-title {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.oripa-news-date {
    margin-top: 7px;
    font-size: 13px;
    opacity: 0.75;
}

@media (max-width: 768px) {
    .oripa-news-carousel {
        width: calc(100vw - 28px);
        max-width: none;

        height: 210px;

        margin: 18px calc(50% - 50vw) 18px;
        margin-left: calc(50% - 50vw + 14px);
        margin-right: calc(50% - 50vw + 14px);

        border-radius: 22px;
    }

    .oripa-news-slide {
        width: 100%;
        min-width: 0;
        flex: 0 0 100%;
        box-sizing: border-box;

        grid-template-columns: 1fr;
        justify-items: center;
        align-content: center;
        text-align: center;
        row-gap: 8px;

        padding: 0px 18px 0px 18px;
    }

    .oripa-news-image {
        width: 100%;
        max-width: 250px;
        height: 95px;
        justify-self: center;
        border-radius: 14px;
    }

    .oripa-news-content {
        align-items: center;
    }

    .oripa-news-category {
        margin-bottom: 6px;
        padding: 4px 12px;
        font-size: 11px;
    }

    .oripa-news-title {
        font-size: 17px;
        line-height: 1.25;
    }

    .oripa-news-date {
        margin-top: 5px;
        font-size: 12px;
    }
}

.oripa-news-slide {
    cursor: pointer;
}

.oripa-news-slide:hover {
    transform: scale(1.01);
}

/* ORIPA LOGIN MODAL - EMAIL AUTH */

#loginRequiredModal .oripa-email-auth-box {
    width: 100%;
    margin: 4px auto 18px;
}

#loginRequiredModal .email-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

#loginRequiredModal .email-tab {
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.72);
    font-weight: 900;
    cursor: pointer;
}

#loginRequiredModal .email-tab.active {
    color: white;
    border-color: rgba(95,231,255,0.75);
    background: linear-gradient(135deg, rgba(255,126,200,0.35), rgba(95,231,255,0.32));
    box-shadow: 0 0 18px rgba(95,231,255,0.22);
}

#loginRequiredModal .email-auth-form {
    display: none;
    flex-direction: column;
    gap: 12px;
}

#loginRequiredModal .email-auth-form.active {
    display: flex;
}

#loginRequiredModal .email-auth-form input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(95,231,255,0.38);
    background: rgba(0,0,0,0.28);
    color: white;
    font-size: 15px;
    font-weight: 700;
    outline: none;
    box-sizing: border-box;
}

#loginRequiredModal .email-auth-form input::placeholder {
    color: rgba(255,255,255,0.48);
}

#loginRequiredModal .email-auth-form input:focus {
    border-color: rgba(255,80,210,0.75);
    box-shadow: 0 0 14px rgba(255,80,210,0.22);
}

#loginRequiredModal .input-error {
    border-color: #ff5f7a !important;
    box-shadow: 0 0 14px rgba(255,95,122,0.35) !important;
}

#loginRequiredModal .form-error {
    min-height: 20px;
    color: #ff6f8a;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

#loginRequiredModal .email-auth-submit {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff9ed8, #5fe7ff);
    color: white;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(0,0,0,0.28), 0 0 18px rgba(95,231,255,0.18);
}

#loginRequiredModal .email-auth-submit:hover {
    transform: translateY(-2px);
}

#loginRequiredModal .login-divider {
    width: 100%;
    margin: 18px auto 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,0.62);
    font-size: 13px;
    font-weight: 900;
}

#loginRequiredModal .login-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(95,231,255,0.55), rgba(255,80,210,0.45));
}

#loginRequiredModal .login-divider p {
    margin: 0;
}

@media (max-width: 640px) {
    #loginRequiredModal .login-required-box {
        max-height: 88vh;
        overflow-y: auto;
    }

    #loginRequiredModal .email-auth-form input {
        height: 48px;
        font-size: 14px;
    }

    #loginRequiredModal .email-auth-submit {
        height: 50px;
        font-size: 15px;
    }
}

#loginRequiredModal {
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 24px 20px;
}

#loginRequiredModal .login-required-box {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: auto;
}

/* remove weird top-left overflow */
#loginRequiredModal .login-required-box::before {
    border-radius: inherit;
}

/* signup has many fields, make it tighter */
#loginRequiredModal .email-auth-form input {
    height: 46px;
}

#loginRequiredModal .email-auth-form {
    gap: 10px;
}

#loginRequiredModal .login-lock-wrap {
    margin-bottom: 16px;
}

#loginRequiredModal .login-required-title {
    margin-bottom: 12px;
}

#loginRequiredModal .login-title-line {
    margin-bottom: 18px;
}

#loginRequiredModal .login-required-text {
    margin-bottom: 20px;
}

#loginRequiredModal .email-auth-submit {
    height: 50px;
}

#loginRequiredModal .login-divider {
    margin: 14px auto;
}

.point-icon {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    filter:
        drop-shadow(0 0 8px rgba(255,105,180,0.45))
        drop-shadow(0 0 8px rgba(95,231,255,0.28));
}

.point-only-label {
    margin-top: -4px;
    margin-bottom: 12px;

    color: #ff9ed8;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;

    text-shadow:
        0 0 10px rgba(255,105,180,0.45),
        0 0 14px rgba(95,231,255,0.22);
}

.oripa-price {
    gap: 9px;
    font-size: 17px;
    font-weight: 900;
}

.oripa-price img {
    flex-shrink: 0;
}
/* =========================================================
   IN-APP BROWSER GOOGLE LOGIN NOTE (mobile only)
   ========================================================= */

.google-webview-note {
    display: none;
}

@media (max-width: 768px) {
    .google-webview-note {
        display: block;

        margin: 12px auto 2px;
        padding: 10px 14px;

        border-radius: 12px;

        background: rgba(255, 190, 70, 0.10);
        border: 1px solid rgba(255, 210, 120, 0.35);

        color: rgb(255, 222, 150);

        font-size: 12px;
        font-weight: 700;
        line-height: 1.75;
        text-align: left;
    }
}

/* =========================================================
   MOBILE LANDING REORDER (2026-07 — item 4)
   Goal: a real oripa card visible in the first viewport.
   Mobile only — desktop rules above are untouched.
   ========================================================= */

@media (max-width: 768px) {

    /* Tighter page top */
    .oripa-page {
        padding-top: 10px;
    }

    /* --- Notice carousel: full card -> slim one-line strip --- */
    .oripa-news-carousel {
        height: 58px;
        margin-top: 8px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .oripa-news-image {
        display: none;
    }

    .oripa-news-date {
        display: none;
    }

    .oripa-news-slide {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;

        padding: 0 14px;
    }

    .oripa-news-content {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .oripa-news-category {
        margin-bottom: 0;
        padding: 4px 10px;
        font-size: 10.5px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .oripa-news-title {
        font-size: 13px;
        line-height: 1.3;

        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    /* --- Preload button: loud full-width gradient -> quiet small pill --- */
    .preload-enshutu-btn {
        width: fit-content;
        height: 32px;
        margin: 0 0 0 auto;
        padding: 0 16px;

        font-size: 11.5px;
        font-weight: 700;

        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,0.16),
                rgba(255,255,255,0.07)
            );

        border: 1px solid rgba(255,255,255,0.22);

        color: rgba(255,255,255,0.85);
    }

    .oripa-category-header {
        gap: 10px;
        margin-bottom: 14px;
    }

    /* --- Helper text: compact --- */
    .oripa-helper-text {
        margin: 0 auto 14px;
        padding: 0 16px;

        font-size: 11.5px;
        line-height: 1.5;
    }

    .oripa-helper-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
        flex-shrink: 0;
    }

    /* --- Banner: never crop the sides on mobile ---
       height:auto renders the image at its natural aspect ratio
       (full width, nothing clipped left/right). max-height caps
       very tall/square banners; the crop then happens top/bottom
       only, because width always fits exactly. */
    .oripa-banner {
        height: auto;
        max-height: 230px;
    }
}

/* =========================================================
   (C) PRIVACY NOTICE — public username warning (2026-07-12)
   Sits under the helper strip; only rendered for accounts whose
   name is actually public (no nickname + censor off).
   ========================================================= */

.oripa-privacy-notice {
    max-width: 1100px;
    margin: -14px auto 24px;
    box-sizing: border-box;

    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 11px 16px;
    border-radius: 14px;

    background: rgba(255, 207, 106, 0.10);
    border: 1px solid rgba(255, 207, 106, 0.34);
}

.oripa-privacy-icon {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1.6;
}

.oripa-privacy-text {
    min-width: 0;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.7;
    color: #ffdf9e;
    overflow-wrap: anywhere;
}

.oripa-privacy-text strong {
    color: #fff;
    font-weight: 900;
}

.oripa-privacy-text a {
    color: #78f3ff;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .oripa-privacy-notice {
        margin: 0 12px 16px;
        padding: 10px 13px;
        gap: 8px;
    }

    .oripa-privacy-text {
        font-size: 11.5px;
        line-height: 1.65;
    }
}

/* =========================================================
   (C) DAILY PULL LIMIT — 2026-07-26
   Per-user remaining count + reset countdown on each card.
   Only rendered when an oripa has a limit set and the viewer
   is subject to it (staff/testers bypass).
   ========================================================= */

.oripa-daily-limit {
    margin: 0 0 8px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(95, 231, 255, 0.10);
    border: 1px solid rgba(95, 231, 255, 0.28);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.5;
    color: #9fe9ff;
    text-align: center;
    box-sizing: border-box;
}

.oripa-daily-limit b {
    font-size: 13.5px;
    font-weight: 900;
    color: #fff;
}

.oripa-daily-limit.spent {
    background: rgba(255, 107, 138, 0.10);
    border-color: rgba(255, 107, 138, 0.34);
    color: #ff9db4;
}

.oripa-reset-countdown {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    opacity: 0.75;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .oripa-daily-limit { font-size: 10.5px; padding: 5px 8px; }
    .oripa-daily-limit b { font-size: 12px; }
    .oripa-reset-countdown { font-size: 9.5px; }
}


/* ============================================================
   チケット確認 (ticket checker)
   Shows the predetermined 1等〜4等 ticket→prize map while the
   oripa is still live. Mirrors #prizeModal's shell so both
   modals stay visually identical.
   ============================================================ */

.oripa-ticket-panel {
    width: 100%;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid rgba(143, 194, 229, 0.16);
}

.ticket-check-btn {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 15px;
    align-items: center;
    gap: 7px;

    width: 100%;
    min-height: 28px;
    margin: 0;
    padding: 1px 3px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: rgba(225, 242, 255, 0.94);
    text-align: center;

    background: transparent;

    border: 0;
    border-radius: 8px;

    cursor: pointer;
    box-shadow: none;

    transition:
        background .18s ease,
        color .18s ease;
}

.ticket-check-btn:hover {
    color: #ffffff;
    background: rgba(95, 231, 255, 0.07);
}

.ticket-check-btn--prizes {
    grid-template-columns: minmax(0, 1fr) 15px;
}

.ticket-check-icon {
    display: block;
    width: 24px;
    height: 20px;
    justify-self: center;
    object-fit: contain;
    filter:
        drop-shadow(0 0 5px rgba(255, 198, 54, 0.36))
        drop-shadow(0 0 3px rgba(95, 231, 255, 0.14));
}

.ticket-check-arrow {
    justify-self: end;
    color: #72eaff;
    font-size: 17px;
    line-height: 1;
}

#ticketModal,
#ticketModal *,
#ticketModal *::before,
#ticketModal *::after {
    box-sizing: border-box;
}

#ticketModal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 22px;

    background:
        radial-gradient(circle at center, rgba(95,231,255,0.10), transparent 38%),
        rgba(0,0,0,0.82);

    backdrop-filter: blur(7px);
}

.ticket-modal-note {
    max-width: 760px;
    margin: -18px auto 26px;
    padding: 12px 16px;

    font-size: 13px;
    line-height: 1.75;
    color: rgba(215, 232, 255, 0.86);
    text-align: left;

    background: rgba(95, 231, 255, 0.06);
    border: 1px solid rgba(95, 231, 255, 0.22);
    border-radius: 14px;
}

.ticket-modal-note b { color: #7ff0ff; }

.ticket-modal-note-sub {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(215, 232, 255, 0.55);
}

.ticket-group {
    padding: 16px 18px;
    margin-bottom: 14px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;

    text-align: left;
}

.ticket-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ticket-group-thumb {
    width: 42px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.16);
}

/* min-width:0 stops the flex item refusing to shrink, which would
   push the layout wider than the modal on long card names. */
.ticket-group-meta {
    min-width: 0;
    flex: 1;
}

.ticket-group-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    overflow-wrap: anywhere;
}

.ticket-group-count {
    margin-top: 2px;
    font-size: 12px;
    color: rgba(215, 232, 255, 0.60);
}

.ticket-rank {
    flex-shrink: 0;
    padding: 5px 12px;

    font-size: 13px;
    font-weight: 900;
    color: #fff;

    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
}

.ticket-rank.rank-first {
    border-color: rgba(255,255,255,0.85);
    box-shadow: 0 0 14px rgba(255, 215, 80, 0.75),
                0 0 26px rgba(255, 90, 180, 0.45);
}

.ticket-rank.rank-second {
    background: linear-gradient(135deg, rgba(255,215,80,0.30), rgba(255,180,40,0.16));
    border-color: rgba(255, 215, 80, 0.75);
}

.ticket-rank.rank-third {
    background: linear-gradient(135deg, rgba(220,230,255,0.28), rgba(170,185,220,0.14));
    border-color: rgba(220, 230, 255, 0.75);
}

.ticket-rank.rank-fourth {
    background: linear-gradient(135deg, rgba(205,130,70,0.28), rgba(140,85,40,0.14));
    border-color: rgba(205, 130, 70, 0.70);
}

.ticket-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ticket-chip {
    padding: 4px 9px;

    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(220, 240, 255, 0.92);

    background: rgba(95, 231, 255, 0.10);
    border: 1px solid rgba(95, 231, 255, 0.26);
    border-radius: 8px;

    white-space: nowrap;
}

@media (max-width: 640px) {
    .ticket-modal-note { font-size: 12px; margin-top: -6px; }
    .ticket-group { padding: 13px 13px; }
    .ticket-chip { font-size: 11px; padding: 3px 7px; }
    .ticket-group-thumb { width: 34px; height: 47px; }
}


/* 終了 tab — virtual category collecting sold-out oripas. Muted so it reads
   as an archive rather than competing with the live category tabs. */
.oripa-category-tab.is-finished {
    color: rgba(215, 232, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.14);
}

.oripa-category-tab.is-finished:hover,
.oripa-category-tab.is-finished.active {
    color: rgba(235, 245, 255, 0.95);
}

/* Phone pull results: keep the title/actions visible and let only the cards
   scroll. Desktop result presentation is intentionally unchanged. */
@media (max-width: 760px) {
    #resultModal.showing-results {
        align-items: stretch;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding:
            max(8px, env(safe-area-inset-top))
            max(14px, env(safe-area-inset-right))
            max(8px, env(safe-area-inset-bottom))
            max(14px, env(safe-area-inset-left));
    }

    #resultModal.showing-results .result-box {
        width: 100%;
        max-width: none;
        height: 100%;
        min-height: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    #resultModal.showing-results #resultCard {
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column;
    }

    #resultModal.showing-results .result-title {
        flex: 0 0 auto;
        margin: 2px 0 10px;
        font-size: 21px;
        line-height: 1.3;
    }

    #resultModal.showing-results .result-card-list {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
        box-sizing: border-box;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 10px;
        padding: 4px 6px 12px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    #resultModal.showing-results .result-card-list.single-result {
        grid-template-columns: minmax(0, 260px);
        justify-content: center;
    }

    #resultModal.showing-results .result-card-list.empty-results {
        min-height: 0;
        padding: 8px 2px 12px;
        overflow: hidden;
    }

    #resultModal.showing-results .result-empty-state {
        width: 100%;
        min-height: 150px;
        padding: 18px 12px;
        border-radius: 16px;
    }

    /* Bulk results are deliberately deterministic: every two-column row and
       tile has the same height, so images can never paint into another row. */
    #resultModal.showing-results .result-card-list.multiple-results {
        grid-auto-rows: 280px;
    }

    #resultModal.showing-results .result-card-item {
        min-width: 0;
        padding: 9px;
        border-radius: 14px;
    }

    #resultModal.showing-results .result-card-list.multiple-results .result-card-item {
        height: 280px;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        align-self: stretch;
        box-sizing: border-box;
    }

    #resultModal.showing-results .result-card-list.single-result .result-card-item {
        padding: 14px;
    }

    #resultModal.showing-results .result-card-item img {
        width: 100%;
        max-height: min(190px, 36vh);
    }

    #resultModal.showing-results .result-card-list.multiple-results .result-card-item img {
        height: 190px;
        min-height: 190px;
        max-height: 190px;
        flex: 0 0 190px;
        object-fit: contain;
    }

    #resultModal.showing-results .result-card-list.multiple-results .result-card-info {
        min-height: 52px;
        margin-top: 8px;
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        justify-content: center;
    }

    #resultModal.showing-results .result-card-rank {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    #resultModal.showing-results .result-card-name {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    #resultModal.showing-results .result-kangen-check {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }

    #resultModal.showing-results .selected-kangen-action {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        grid-template-columns: minmax(108px, 0.8fr) minmax(0, 1.2fr);
        gap: 8px;
        margin-top: 8px;
    }

    #resultModal.showing-results .kangen-selected-btn,
    #resultModal.showing-results .kangen-select-all-btn {
        width: 100%;
        min-height: 48px;
        padding: 7px 10px;
        border-radius: 14px;
        font-size: 13px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #resultModal.showing-results .result-action-row {
        width: 100%;
        min-width: 0;
        flex: 0 0 auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 10px;
        padding-bottom: env(safe-area-inset-bottom);
    }

    #resultModal.showing-results .result-action-row.only-close,
    #resultModal.showing-results .result-action-row:has(.kangen-pulled-btn[style*="display: none"]),
    #resultModal.showing-results .result-action-row:has(.kangen-pulled-btn[style*="display:none"]) {
        grid-template-columns: minmax(0, 280px);
    }

    #resultModal.showing-results .result-action-row .kangen-pulled-btn,
    #resultModal.showing-results .result-action-row .close-btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 54px !important;
        min-height: 54px !important;
        padding: 7px 9px !important;
        border-radius: 14px;
        font-size: 13px;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}


/* =========================================================
   (C) ORIPA DISCOVERY HEADER
   Approved notice + dynamic icon-tab treatment. This block is
   intentionally scoped above the product grid; Oripa cards and
   pull controls remain unchanged.
   ========================================================= */

.oripa-news-carousel {
    width: 100%;
    max-width: 1540px;
    height: 182px;
    margin: 26px auto 14px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 4% 30%, rgba(95, 231, 255, 0.10), transparent 28%),
        linear-gradient(105deg, rgba(8, 24, 43, 0.96), rgba(15, 17, 39, 0.96));
    border: 1px solid rgba(116, 216, 255, 0.22);
    box-shadow:
        0 20px 50px rgba(4, 9, 24, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.oripa-news-slide {
    width: 100%;
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
    grid-template-columns: clamp(270px, 25vw, 385px) minmax(0, 1fr) 30px;
    column-gap: 34px;
    padding: 16px 28px 16px 16px;
}

.oripa-news-slide.no-image {
    grid-template-columns: minmax(0, 1fr) 30px;
}

.oripa-news-slide.no-image .oripa-news-content {
    padding-left: 18px;
    border-left: 0;
}

.oripa-news-image {
    width: 100%;
    height: 148px;
    border-radius: 18px;
    object-fit: cover;
    justify-self: stretch;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.oripa-news-content {
    min-width: 0;
    height: 100%;
    padding-left: 34px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    column-gap: 28px;
    row-gap: 24px;
    border-left: 1px solid rgba(119, 195, 226, 0.17);
}

.oripa-news-eyebrow {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.oripa-news-featured {
    color: #68eaff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.oripa-news-category {
    margin: 0;
    padding: 5px 15px;
    font-size: 11px;
}

.oripa-news-title {
    min-width: 0;
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oripa-news-date {
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
}

.oripa-news-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 46px;
    color: rgba(235, 246, 255, 0.82);
    font-size: 34px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.oripa-news-slide:hover .oripa-news-arrow {
    color: #69e9ff;
    transform: translateX(4px);
}

.oripa-discovery-panel {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto 26px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(118, 211, 255, 0.20);
    border-radius: 24px;
    background:
        radial-gradient(circle at 0 50%, rgba(58, 197, 255, 0.10), transparent 34%),
        linear-gradient(100deg, rgba(7, 23, 40, 0.95), rgba(20, 17, 41, 0.94));
    box-shadow:
        0 18px 44px rgba(4, 9, 24, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}

.oripa-discovery-panel .oripa-category-tabs {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 18px 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 12px;
    overflow: visible;
}

.oripa-discovery-panel .oripa-category-tab {
    position: relative;
    min-width: 0;
    height: 66px;
    padding: 0 18px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(137, 191, 231, 0.17);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 9px 22px rgba(0, 0, 0, 0.12);
    color: rgba(244, 248, 255, 0.90);
    font-size: 14px;
    overflow: hidden;
}

.oripa-discovery-panel .oripa-category-tab::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, #ff69bc, #61e7ff);
    opacity: 0;
    transform: scaleX(0.55);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.oripa-discovery-panel .oripa-category-tab:hover {
    transform: translateY(-2px);
    border-color: rgba(104, 225, 255, 0.30);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.22),
        0 0 18px rgba(95, 231, 255, 0.12);
}

.oripa-discovery-panel .oripa-category-tab.active {
    color: #fff;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 105, 188, 0.15), transparent 50%),
        linear-gradient(180deg, rgba(77, 192, 231, 0.14), rgba(255, 255, 255, 0.045));
    border-color: rgba(112, 228, 255, 0.30);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.22),
        0 0 22px rgba(95, 231, 255, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.oripa-discovery-panel .oripa-category-tab.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.oripa-category-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
    filter: drop-shadow(0 0 7px rgba(95, 231, 255, 0.22));
}

.oripa-discovery-panel .oripa-category-tab > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oripa-discovery-panel .oripa-category-tab.is-finished {
    color: rgba(215, 232, 255, 0.64);
}

.oripa-discovery-footer {
    min-height: 52px;
    padding: 9px 18px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(127, 197, 232, 0.13);
    background: rgba(3, 11, 27, 0.23);
}

.oripa-discovery-panel .oripa-helper-text {
    max-width: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    gap: 10px;
    color: rgba(225, 235, 247, 0.70);
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
}

.oripa-discovery-panel .oripa-helper-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 1px solid rgba(91, 229, 255, 0.58);
    background: rgba(11, 45, 69, 0.66);
    color: #65e9ff;
    box-shadow: 0 0 12px rgba(95, 231, 255, 0.16);
    font-family: Georgia, serif;
    font-size: 13px;
}

.oripa-discovery-panel .preload-enshutu-btn {
    position: static;
    width: auto;
    min-width: 172px;
    height: 34px;
    margin: 0;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(126, 202, 235, 0.21);
    border-radius: 11px;
    background: rgba(25, 45, 70, 0.48);
    color: rgba(235, 245, 255, 0.78);
    font-size: 11px;
    font-weight: 800;
    box-shadow: none;
}

.oripa-discovery-panel .preload-enshutu-btn:hover {
    color: #fff;
    border-color: rgba(95, 231, 255, 0.42);
    background: rgba(36, 68, 94, 0.62);
}

.oripa-discovery-panel + .oripa-privacy-notice {
    margin-top: 0;
}

@media (max-width: 768px) {
    .oripa-news-carousel {
        width: 100%;
        max-width: none;
        height: 118px;
        margin: 8px auto 12px;
        border-radius: 18px;
    }

    .oripa-news-slide {
        display: grid;
        grid-template-columns: 98px minmax(0, 1fr) 16px;
        align-items: center;
        gap: 10px;
        padding: 10px;
        text-align: left;
    }

    .oripa-news-image {
        display: block;
        width: 98px;
        height: 84px;
        border-radius: 12px;
    }

    .oripa-news-content {
        height: auto;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        border-left: 0;
    }

    .oripa-news-eyebrow {
        gap: 6px;
        margin-bottom: 6px;
    }

    .oripa-news-featured {
        font-size: 9px;
        letter-spacing: 0.03em;
    }

    .oripa-news-category {
        padding: 3px 7px;
        font-size: 8.5px;
    }

    .oripa-news-title {
        font-size: 12.5px;
        line-height: 1.4;
        text-align: left;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .oripa-news-date {
        display: block;
        margin-top: 5px;
        font-size: 9.5px;
    }

    .oripa-news-arrow {
        width: 16px;
        height: 32px;
        font-size: 25px;
    }

    .oripa-discovery-panel {
        width: 100%;
        margin: 0 auto 14px;
        border-radius: 18px;
    }

    .oripa-discovery-panel .oripa-category-tabs {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        padding: 10px 12px 11px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 12px;
        overscroll-behavior-inline: contain;
    }

    .oripa-discovery-panel .oripa-category-tab {
        flex: 0 0 116px;
        min-width: 116px;
        height: 60px;
        padding: 0 10px;
        gap: 8px;
        border-radius: 14px;
        font-size: 11.5px;
        scroll-snap-align: start;
    }

    .oripa-category-icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }

    .oripa-discovery-footer {
        min-height: 0;
        padding: 9px 12px 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .oripa-discovery-panel .oripa-helper-text {
        width: 100%;
        font-size: 10.5px;
        line-height: 1.45;
    }

    .oripa-discovery-panel .oripa-helper-icon {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
        font-size: 11px;
    }

    .oripa-discovery-panel .preload-enshutu-btn {
        width: fit-content;
        min-width: 0;
        height: 29px;
        margin-left: auto;
        padding: 0 11px;
        border-radius: 9px;
        font-size: 9.5px;
    }
}

/* (C) Join the existing notice carousel and discovery panel into one shell.
   Their internal layouts and visual treatments intentionally stay unchanged. */
.oripa-news-carousel {
    box-sizing: border-box;
    margin-bottom: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-color: rgba(116, 216, 255, 0.16);
    box-shadow:
        0 0 0 transparent,
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.oripa-news-carousel + .oripa-discovery-panel {
    margin-top: -1px;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
    box-shadow:
        0 20px 50px rgba(4, 9, 24, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .oripa-news-carousel {
        margin-bottom: 0;
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .oripa-news-carousel + .oripa-discovery-panel {
        margin-top: -1px;
        border-top-right-radius: 0;
        border-top-left-radius: 0;
    }
}
