.photo-contest-page {
    background:
        radial-gradient(circle at 8% 9%, rgba(45, 212, 191, 0.16), transparent 28rem),
        radial-gradient(circle at 92% 20%, rgba(251, 191, 36, 0.13), transparent 30rem),
        #eef6f9;
}

.photo-contest-main {
    display: grid;
    gap: 32px;
    padding-bottom: 56px;
}

.pearls-hero,
.pearls-live,
.pearls-submit,
.pearls-podium-section,
.pearls-archive {
    width: min(1240px, calc(100% - 32px));
}

.pearls-breadcrumbs {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 18px 2px 12px;
    color: #567181;
    font-size: .9rem;
}

.pearls-breadcrumbs a { color: #0f766e; font-weight: 750; }

.pearls-hero-card,
.pearls-status-panel,
.pearls-submit-card,
.pearls-archive-edition {
    border: 1px solid rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 24px 65px rgba(16, 66, 83, .12);
    backdrop-filter: blur(14px);
}

.pearls-hero-card {
    min-height: 350px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    align-items: center;
    gap: 28px;
    overflow: hidden;
    padding: clamp(30px, 5vw, 68px);
    border-radius: 36px;
    color: #eaffff;
    background:
        linear-gradient(128deg, rgba(7, 43, 57, .98), rgba(10, 91, 96, .95)),
        #07323e;
    position: relative;
}

.pearls-hero-card::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -185px;
    border: 1px solid rgba(94, 234, 212, .25);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(94, 234, 212, .06), 0 0 0 96px rgba(94, 234, 212, .035);
}

.pearls-hero-copy { position: relative; z-index: 1; max-width: 760px; }
.pearls-hero-copy h1 {
    margin: 8px 0 16px;
    font-size: clamp(2.65rem, 7vw, 5.4rem);
    line-height: .94;
    letter-spacing: -.055em;
    color: #fff;
}
.pearls-hero-copy > p:not(.pearls-kicker) { max-width: 680px; color: #c8e7ea; font-size: 1.08rem; line-height: 1.7; }
.pearls-kicker { margin: 0 0 8px; color: #0f766e; font-size: .79rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.pearls-hero-card .pearls-kicker { color: #75f0dc; }
.pearls-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pearls-primary-button {
    border: 0;
    color: #062f36;
    background: linear-gradient(135deg, #5eead4, #fbbf24);
    box-shadow: 0 10px 28px rgba(45, 212, 191, .22);
    font-weight: 850;
}
.pearls-primary-button:hover { color: #062f36; transform: translateY(-1px); }
.pearls-hero-card .button-secondary { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.08); }

.pearls-emblem { position: relative; z-index: 1; width: min(290px, 72vw); aspect-ratio: 1; margin: auto; display: grid; place-items: center; }
.pearls-emblem-ring { position: absolute; inset: 8%; border: 1px solid rgba(117,240,220,.5); border-radius: 50%; box-shadow: inset 0 0 55px rgba(117,240,220,.15), 0 0 60px rgba(117,240,220,.12); animation: pearl-ring 12s linear infinite; }
.pearls-emblem-ring::before, .pearls-emblem-ring::after { content: ""; position: absolute; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 18px rgba(251,191,36,.85); }
.pearls-emblem-ring::before { width: 14px; height: 14px; top: 11%; left: 8%; }
.pearls-emblem-ring::after { width: 8px; height: 8px; right: 5%; bottom: 17%; }
.pearls-emblem-gem { font-size: clamp(6rem, 13vw, 9.2rem); color: #5eead4; filter: drop-shadow(0 18px 25px rgba(0,0,0,.2)); transform: rotate(45deg); }
.pearls-emblem-cloud { position: absolute; right: 5%; bottom: 16%; font-size: 3.8rem; color: #fff; opacity: .92; }

.pearls-section-heading { display: flex; gap: 18px; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.pearls-section-heading h2, .pearls-submit-intro h2 { margin: 0; color: #0b3445; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.08; letter-spacing: -.025em; }
.pearls-live-badge, .pearls-state-badge { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.78); color: #315667; border: 1px solid #cfe0e6; font-size: .86rem; font-weight: 750; }
.pearls-live-badge i { width: 9px; height: 9px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 5px rgba(16,185,129,.13); }

.pearls-status-panel { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; overflow: hidden; border-radius: 24px; margin-bottom: 22px; }
.pearls-status-item { display: grid; gap: 8px; min-height: 108px; padding: 22px; background: rgba(255,255,255,.72); }
.pearls-status-item span { color: #607986; font-size: .83rem; font-weight: 700; }
.pearls-status-item strong { color: #0b3445; font-size: 1rem; }
.pearls-countdown { background: linear-gradient(140deg, rgba(15,118,110,.95), rgba(8,74,88,.98)); }
.pearls-countdown span, .pearls-countdown strong { color: #fff; }
.pearls-break-message { grid-column: 1/-1; padding: 24px; margin: 0; color: #365c6a; line-height: 1.65; }

.pearls-photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.pearl-card { overflow: hidden; border: 1px solid rgba(255,255,255,.85); border-radius: 26px; background: rgba(255,255,255,.88); box-shadow: 0 14px 40px rgba(18,67,80,.11); transition: transform .2s ease, box-shadow .2s ease; }
.pearl-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(18,67,80,.15); }
.pearl-card-media, .podium-media, .archive-photo { display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in; background: #cfe3e7; position: relative; overflow: hidden; }
.pearl-card-media { aspect-ratio: 4/3; }
.pearl-card-media img, .podium-media img, .archive-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pearl-card-media:hover img, .podium-media:hover img, .archive-photo:hover img { transform: scale(1.035); }
.pearl-zoom-hint { position: absolute; right: 13px; bottom: 13px; padding: 6px 10px; border-radius: 999px; color: #fff; background: rgba(7,43,57,.78); font-size: .75rem; font-weight: 750; }
.pearl-card-body { display: grid; gap: 13px; padding: 19px; }
.pearl-card-location { color: #0f766e; font-weight: 850; font-size: .85rem; text-transform: uppercase; letter-spacing: .07em; }
.pearl-card-description { margin: 0; min-height: 3.2em; color: #193d4d; line-height: 1.58; }
.pearl-card-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; color: #66808c; font-size: .8rem; }
.pearl-vote-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #e2ecef; }
.pearl-vote-count { display: flex; align-items: baseline; gap: 5px; min-width: 64px; }
.pearl-vote-count strong { color: #0b3445; font-size: 1.55rem; }
.pearl-vote-count span { color: #6b818b; font-size: .75rem; }
.pearl-vote-button { min-height: 44px; border: 0; color: #fff; background: #0f766e; font-size: .84rem; }
.pearl-vote-button:hover { color: #fff; background: #0b5f59; }
.pearl-vote-button.is-voted { background: #16835b; }
.pearl-vote-message { min-height: 1.25em; margin: 0; font-size: .8rem; line-height: 1.45; }
.pearl-vote-message.is-success { color: #087443; }
.pearl-vote-message.is-error { color: #b42318; }

.pearls-empty-state { display: grid; justify-items: center; gap: 10px; padding: 44px 24px; border: 1px dashed #bdd4db; border-radius: 26px; color: #53707d; background: rgba(255,255,255,.65); text-align: center; }
.pearls-empty-state > span { font-size: 2.7rem; color: #14b8a6; }
.pearls-empty-state h3, .pearls-empty-state p { margin: 0; }

.pearls-submit-card { display: grid; grid-template-columns: minmax(270px,.72fr) minmax(0,1.28fr); gap: clamp(24px,5vw,62px); padding: clamp(24px,5vw,54px); border-radius: 32px; }
.pearls-submit-intro > p:not(.pearls-kicker) { color: #577480; line-height: 1.7; }
.pearls-safety-list { padding-left: 20px; color: #315868; line-height: 1.9; font-size: .9rem; }
.pearls-form { display: grid; gap: 18px; }
.pearls-upload-zone { padding: 17px; border: 1px dashed #8db7bf; border-radius: 22px; background: #f5fbfb; position: relative; }
.pearls-upload-zone.has-error { border-color: #dc4949; background: #fff7f7; }
.pearls-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.pearls-upload-label { min-height: 155px; display: grid; place-items: center; align-content: center; gap: 7px; border-radius: 16px; color: #56727e; cursor: pointer; text-align: center; transition: background .2s ease; }
.pearls-upload-label:hover { background: #e9f7f6; }
.pearls-upload-label strong { color: #0b5f59; font-size: 1.12rem; }
.pearls-upload-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #0f766e; color: #fff; font-size: 1.6rem; }
.pearls-field-help { margin: 0; text-align: center; color: #78909a; font-size: .78rem; }
.pearls-preview { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 16px; padding: 10px; }
.pearls-preview[hidden] { display: none !important; }
.pearls-preview img { width: 150px; aspect-ratio: 4/3; object-fit: cover; border-radius: 13px; }
.pearls-preview > div { display: grid; gap: 6px; min-width: 0; }
.pearls-preview strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #183d4c; }
.pearls-preview span { color: #6e858f; font-size: .8rem; }
.pearls-clear-file { justify-self: start; padding: 0; border: 0; color: #0f766e; background: transparent; font-weight: 750; cursor: pointer; }
.pearls-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pearls-form .form-group { display: grid; gap: 7px; margin: 0; }
.pearls-form label { color: #173d4c; font-weight: 760; font-size: .9rem; }
.pearls-form input[type="text"], .pearls-form textarea, .pearls-form input:not([type]) { width: 100%; border: 1px solid #c7dbe0; border-radius: 13px; padding: 12px 13px; color: #173d4c; background: #fff; }
.pearls-form input:focus, .pearls-form textarea:focus { outline: 3px solid rgba(20,184,166,.16); border-color: #14b8a6; }
.pearls-field-error, .pearls-field-errors p { margin: 0; color: #b42318; font-size: .8rem; }
.pearls-character-row { display: flex; justify-content: space-between; gap: 10px; color: #748a94; font-size: .76rem; }
.pearls-character-row .pearls-field-error { flex: 1; }
.pearls-consent { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 13px; background: #f2f8f9; }
.pearls-consent.has-error { outline: 1px solid #dc4949; }
.pearls-consent input { margin-top: 3px; }
.pearls-consent span { color: #3a5d6b; font-weight: 600; line-height: 1.5; }
.pearls-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pearls-submit-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.pearls-submit-footer p { margin: 0; color: #66808b; font-size: .8rem; }
.pearls-submit-button { min-height: 48px; }

.pearls-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 20px; }
.podium-card { overflow: hidden; border-radius: 28px; background: rgba(255,255,255,.9); border: 2px solid #b7791f; box-shadow: 0 15px 40px rgba(100,63,10,.15); }
.podium-card--1 { order: 2; transform: translateY(-15px); border-color: #eab308; box-shadow: 0 18px 55px rgba(234,179,8,.23); }
.podium-card--2 { order: 1; border-color: #9aaab6; box-shadow: 0 15px 42px rgba(100,116,139,.17); }
.podium-card--3 { order: 3; border-color: #b76e34; }
.podium-place { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 13px; color: #5f470d; background: linear-gradient(90deg, #fff7cc, #ffef96, #fff7cc); }
.podium-card--2 .podium-place { color: #435363; background: linear-gradient(90deg,#f1f5f9,#dce5eb,#f1f5f9); }
.podium-card--3 .podium-place { color: #693d22; background: linear-gradient(90deg,#fae7d5,#e9bc92,#fae7d5); }
.podium-media { aspect-ratio: 4/3; }
.podium-copy { display: grid; gap: 7px; padding: 18px; }
.podium-copy h3, .podium-copy p { margin: 0; }
.podium-copy p { color: #4b6975; line-height: 1.5; }
.podium-copy span { color: #708791; font-size: .82rem; }
.podium-copy > strong { color: #0f766e; font-size: 1.12rem; }

.pearls-archive-editions { display: grid; gap: 20px; }
.pearls-archive-edition { padding: 22px; border-radius: 26px; }
.pearls-archive-edition > header { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.pearls-archive-edition h3, .pearls-archive-edition p { margin: 0; }
.pearls-archive-edition header p, .pearls-archive-edition header > span { color: #718893; font-size: .82rem; }
.pearls-archive-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.archive-photo { aspect-ratio: 4/3; border-radius: 16px; text-align: left; }
.archive-photo-overlay { position: absolute; inset: auto 0 0; display: grid; gap: 2px; padding: 30px 12px 11px; color: #fff; background: linear-gradient(transparent,rgba(3,26,34,.88)); }
.archive-photo-overlay b { justify-self: start; padding: 3px 7px; border-radius: 999px; background: #fbbf24; color: #3c2e06; font-size: .68rem; }
.archive-photo-overlay small { opacity: .83; }
.pearls-archive-empty { color: #6b828c; }
.pearls-load-more { display: flex; justify-content: center; margin-top: 18px; }

.pearls-lightbox { width: min(1120px,94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: #061c25; box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.pearls-lightbox::backdrop { background: rgba(1,15,21,.82); backdrop-filter: blur(6px); }
.pearls-lightbox img { display: block; width: 100%; max-height: 88vh; object-fit: contain; }
.pearls-lightbox-close { position: absolute; z-index: 2; right: 12px; top: 12px; width: 42px; height: 42px; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.62); font-size: 1.7rem; cursor: pointer; }

@keyframes pearl-ring { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
    .pearls-hero-card, .pearls-submit-card { grid-template-columns: 1fr; }
    .pearls-emblem { display: none; }
    .pearls-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .pearls-status-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .pearls-archive-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 720px) {
    .photo-contest-main { gap: 24px; }
    .pearls-hero, .pearls-live, .pearls-submit, .pearls-podium-section, .pearls-archive { width: min(100% - 20px,1240px); }
    .pearls-hero-card { min-height: 0; padding: 28px 22px; border-radius: 25px; }
    .pearls-hero-copy h1 { font-size: clamp(2.5rem,15vw,4rem); }
    .pearls-section-heading { align-items: start; flex-direction: column; }
    .pearls-status-panel, .pearls-photo-grid, .pearls-podium, .pearls-archive-grid, .pearls-form-grid { grid-template-columns: 1fr; }
    .pearls-status-item { min-height: 88px; }
    .pearl-vote-row, .pearls-submit-footer { align-items: stretch; flex-direction: column; }
    .pearl-vote-button, .pearls-submit-button { width: 100%; }
    .pearls-submit-card { padding: 22px 16px; border-radius: 24px; }
    .pearls-preview { grid-template-columns: 96px 1fr; }
    .pearls-preview img { width: 96px; }
    .podium-card, .podium-card--1, .podium-card--2, .podium-card--3 { order: initial; transform: none; }
    .pearls-archive-edition { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .pearls-emblem-ring { animation: none; }
    .pearl-card, .pearl-card-media img, .podium-media img, .archive-photo img { transition: none; }
}
