.participant {
    max-width: 850px;
    margin: 0 auto;
    padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.topbar { margin-bottom: 25px; }

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    min-height: 240px;
    align-items: center;
    padding: 34px;
    border: 1px solid #5b4180;
    border-radius: 24px;
    background: radial-gradient(ellipse at 90% 45%, #54377f 0%, #2c204a 53%, #231b36 88%);
    overflow: hidden;
}

.hero-copy { position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(1.95rem, 5vw, 3.3rem);
    line-height: 1.04;
    letter-spacing: -.05em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.hero p { color: #e1d6ef; max-width: 365px; margin-top: 12px; line-height: 1.5; }
.hero p:empty { display: none; }
.hero .button { margin-top: 20px; }

.gift-scene {
    position: relative;
    justify-self: end;
    width: 180px;
    height: 162px;
    pointer-events: none;
    background: radial-gradient(ellipse at 53% 61%, #c19aff50, transparent 65%);
}
.gift-scene::before, .gift-scene::after {
    content: "";
    position: absolute;
    inset: 2px 8px 0;
    border: 1px solid #d6bbff4a;
    border-radius: 50%;
    transform: rotate(-22deg) scaleY(.48);
}
.gift-scene::after { inset: -10px -5px; border-color: #d6bbff28; }
.gift-star { color: #edd6ff; position: absolute; z-index: 2; }
.gift-star-top { top: 11px; right: 9px; font-size: 23px; }
.gift-star-bottom { bottom: 15px; left: 9px; font-size: 16px; opacity: .8; }
.gift {
    position: absolute;
    width: 110px;
    height: 110px;
    top: 26px;
    left: 37px;
    transform: rotate(-13deg);
    filter: drop-shadow(8px 12px 14px #150b2868);
}
.gift-base, .gift-lid, .gift-bow { position: absolute; }
.gift-base, .gift-lid {
    background: linear-gradient(90deg, transparent 39%, #e8d3ff 40%, #c8a2f9 56%, transparent 57%),
        linear-gradient(138deg, #bd92fb 0%, #8b57d7 68%, #7443bd 100%);
}
.gift-base { bottom: 0; left: 7px; width: 96px; height: 71px; border-radius: 5px 5px 10px 10px; }
.gift-lid {
    bottom: 58px;
    left: 0;
    width: 110px;
    height: 25px;
    border: 1px solid #e1c1ff72;
    border-radius: 6px;
    box-shadow: 0 5px 7px #52327d75;
}
.gift-bow {
    bottom: 80px;
    width: 38px;
    height: 22px;
    border: 6px solid #e7cdff;
    border-radius: 48% 55% 20% 55%;
    box-shadow: inset 0 1px 2px #c291fd;
}
.gift-bow-left { left: 23px; transform: rotate(26deg); }
.gift-bow-right { right: 23px; transform: scaleX(-1) rotate(26deg); }

.notice {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 15px;
    padding: 12px 15px;
    border: 1px solid #554071;
    border-radius: 14px;
    background: #261d36;
    color: #eadbff;
}
.notice[data-type="success"] { color: #b9f4d6; background: #172823; border-color: #315543; }
.notice p { min-width: 0; flex: 1; line-height: 1.4; font-size: .94rem; }
.notice-icon {
    flex: 0 0 25px;
    height: 25px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff1a;
    font-size: .86rem;
    font-weight: 800;
}

.detail { display: grid; grid-template-columns: .85fr 1.15fr; gap: 13px; margin-top: 15px; }
.date-card, .prize-card { padding: 20px; }
.date-card { display: flex; flex-direction: column; gap: 8px; }
.label, .prize-card h2 { font-weight: 700; font-size: .94rem; }
.date-card time { color: var(--accent); font-size: clamp(1rem, 3vw, 1.28rem); font-weight: 650; }
.prize-card h2 { margin-bottom: 5px; }
.prize-card .prize:last-child { padding-bottom: 0; }

.catalog { margin-top: 18px; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 11px; }
.catalog .button { margin-top: 14px; }
.raffle-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 126px;
    overflow-wrap: anywhere;
}
.raffle-card:hover { border-color: #8466b1; background: var(--surface-raised); }
.raffle-card h2 { font-size: 1.13rem; letter-spacing: -.018em; }
.card-footer { color: var(--accent); font-size: .84rem; display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: auto; }
.card-arrow { font-size: 1.18rem; }
noscript p { margin-top: 12px; }

@media (max-width: 610px) {
    .participant { padding-inline: max(15px, env(safe-area-inset-left), env(safe-area-inset-right)); }
    .topbar { margin-bottom: 17px; }
    .hero { grid-template-columns: 1fr; min-height: 195px; padding: 22px; border-radius: 18px; }
    .hero-copy { padding-right: 50px; }
    .hero h1 { font-size: clamp(1.76rem, 7.5vw, 2.7rem); }
    .hero p { font-size: .91rem; }
    .gift-scene { position: absolute; right: -33px; top: -4px; transform: scale(.55); opacity: .59; }
    .catalog-grid, .detail { grid-template-columns: 1fr; gap: 10px; }
    .date-card, .prize-card { padding: 16px; }
}
