/* The phone edition is a sticker book. Keep artwork and controls on separate surfaces. */
body.puri-phone-entry {
    --berry: #a42262;
    --text-primary: #542b47;
    --text-secondary: #80566e;
    --primary-accent: #ae226b;
    --gingham: repeating-linear-gradient(0deg, transparent 0 8px, #ff72aa25 8px 16px),
        repeating-linear-gradient(90deg, transparent 0 8px, #ff72aa25 8px 16px);
    background: var(--gingham), #ffe4ed;
}
.puri-phone-entry :is(#puriCount, #puriPickerCount) { display: none; }
.puri-phone-title, .puri-login-identity { display: none; }
.puri-phone-entry .container {
    width: 100%;
    padding: 0 16px max(16px, env(safe-area-inset-bottom));
    background: transparent;
    transition: none;
}
.puri-phone-entry .container:has(#puriLoginRequired:not([hidden])) {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding-block: max(56px, env(safe-area-inset-top)) max(56px, env(safe-area-inset-bottom));
}
.puri-phone-entry #puriLoginRequired { width: min(100%, 300px); margin: 0; padding: 0; }
.puri-phone-entry .puri-login-identity { display: grid; justify-items: center; gap: 6px; }
.puri-phone-entry .puri-login-identity h2 { margin: 0 0 6px; font-size: 20px; }
.puri-phone-entry .puri-modal {
    color: var(--text-primary);
    border: 2px solid #fff;
    border-radius: 22px;
    background: #fff6fa;
    box-shadow: 0 0 0 1px #e99ebd, 0 7px 20px #92406733;
}
.puri-phone-entry .puri-modal::backdrop { background: rgb(118 53 91 / 32%); }
.puri-phone-entry #puriEditor {
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0 0 max(16px, env(safe-area-inset-bottom));
    background: var(--gingham), #ffeaf1;
    overscroll-behavior: contain;
}
.puri-phone-entry .puri-book-cover {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: max(8px, env(safe-area-inset-top)) 54px 14px;
    min-height: 78px;
    box-sizing: border-box;
    background: radial-gradient(circle, #fff9 1.2px, transparent 1.6px) 0 0 / 12px 12px,
        linear-gradient(110deg, #fba1c5, #ffc7e1 58%, #d9baff);
}
.puri-phone-entry .puri-book-cover::after {
    content: "";
    position: absolute;
    bottom: -5px;
    inset-inline: 0;
    height: 9px;
    background: radial-gradient(circle at 7px 1px, white 6px, transparent 6.8px) 0 0 / 14px 9px repeat-x;
}
.puri-phone-entry .puri-book-cover h2 {
    margin: 0;
    padding: 0;
    color: #a92668;
    font: 1000 39px/1.1 ui-rounded, "Hiragino Maru Gothic ProN", sans-serif;
    letter-spacing: .05em;
    -webkit-text-stroke: 6px white;
    paint-order: stroke fill;
    filter: drop-shadow(0 3px 0 #cb79a1);
    transform: rotate(-4deg);
}
.puri-phone-entry .puri-book-cover img { width: 62px; height: 62px; object-fit: contain; transform: rotate(8deg); filter: drop-shadow(0 4px 2px #954c7733); }
.puri-phone-entry .puri-book-cover span { color: #fff7bf; font-size: 32px; text-shadow: 1px 2px #c788af; transform: rotate(12deg); }
.puri-phone-entry .puri-editor-layout { padding: 17px 16px 0; }
.puri-phone-entry #puriCastHint { margin: 0 4px 2px; }
.puri-phone-entry .puri-modal .dress-up-fieldset {
    position: relative;
    margin: 0 0 8px;
    padding: 4px 10px 8px;
    border: 0;
    border-radius: 15px;
    background: #fffafb;
}
.puri-phone-entry .dress-up-fieldset legend {
    position: relative;
    margin: 0 0 3px 2px;
    padding: 2px 13px;
    border: 0;
    border-radius: 4px 12px 12px 4px;
    color: #762549;
    background: linear-gradient(105deg, #ffc5d6, #ffe6f2);
    font-size: 13px;
    letter-spacing: .04em;
}
.puri-phone-entry .dress-up-fieldset:nth-of-type(even) legend { background: #ecdcff; color: #654078; }
.puri-phone-entry .puri-cast-choices:not(.puri-picker-results) { grid-auto-columns: 64px; padding-bottom: 6px; }
.puri-phone-entry .puri-cast-choices .dress-up-cast-choice { border: 0; box-shadow: none; }
.puri-phone-entry .puri-cast-choices .dress-up-cast-choice[aria-pressed="true"]:not(:focus-visible) { outline: none; }
.puri-phone-entry .dress-up-cast-choice[aria-pressed="true"]::after,
.puri-phone-entry .puri-frame-check { background: var(--berry); }
.puri-phone-entry .puri-more-casts, .puri-phone-entry .puri-layout-choice, .puri-phone-entry .puri-processing-choice {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    color: #66344f;
    background: #f8eef3;
    font-weight: 650;
}
.puri-phone-entry .puri-more-casts { min-height: 44px; margin-top: 2px; color: #8b315e; background: #fff0f7; }
.puri-phone-entry :is(.puri-layout-choice,.puri-processing-choice)[aria-pressed="true"] {
    color: #84264f; background: #ffd3e5; box-shadow: inset 0 0 0 1px #bf5584; font-weight: 800;
}
.puri-phone-entry .puri-frame-choices { grid-auto-columns: clamp(83px, 28%, 116px); gap: 9px; padding-bottom: 4px; }
.puri-phone-entry .puri-frame-stage { height: 106px; padding: 6px; background: transparent; }
.puri-phone-entry .puri-frame-sample { max-height: 94px; box-shadow: none; }
.puri-phone-entry .puri-frame-choice[aria-pressed="true"] .puri-frame-stage { outline: none; }
.puri-phone-entry .puri-frame-mark { display: none; }
.puri-phone-entry .puri-frame-choice { grid-template-rows: 106px auto; align-content: start; gap: 4px; }
.puri-phone-entry .puri-frame-season { margin: 0; }
.puri-phone-entry .puri-modal .modal-close-button { z-index: 1; width: 44px; height: 44px; border: 2px solid #fff; border-radius: 50%; background: #ffe8f3; color: #8c3164; box-shadow: 0 1px 4px #82405f44; }
.puri-phone-entry .puri-modal .modal-button.puri-shoot,
.puri-phone-entry .puri-result-footer .modal-button.primary,
.puri-phone-entry .puri-picker-footer .puri-more-casts,
.puri-phone-entry .puri-toolbar .puri-create {
    min-height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 30px;
    color: white;
    background: linear-gradient(#be347c, #a71f64);
    box-shadow: none;
    font-weight: 800;
    letter-spacing: .08em;
}
.puri-phone-entry #puriEditorDaily { margin: 6px 0; text-align: center; }
.puri-phone-entry .puri-picker-footer { border-top: 1px solid #ecd7e1; }
.puri-phone-entry .puri-picker-footer .puri-more-casts { margin: 0; }
.puri-phone-entry .puri-picker-body .puri-note:not(:empty) { text-align: center; }
.puri-phone-entry .puri-result-stage { background: var(--gingham), #ffeff6; }
.puri-phone-entry .puri-gallery-card { padding: 5px 5px 8px; background: white; box-shadow: 0 2px 5px #bd7c9d66; }

.puri-phone-entry #puriEditor > .modal-close-button { top: max(8px, env(safe-area-inset-top)); }
.puri-phone-entry .puri-toolbar { flex-direction: column; gap: 0; margin-bottom: 12px; }
.puri-phone-entry .puri-phone-title {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 100%;
    min-height: calc(50px + max(6px, env(safe-area-inset-top)));
    margin: 0;
    padding: max(8px, env(safe-area-inset-top)) 48px 8px;
    font-size: 18px;
}
.puri-phone-entry .puri-empty { padding: 32px 16px; border-radius: 15px; background: #fffafb; }
.puri-phone-entry .puri-empty::before {
    content: "";
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 8px;
    background: url("/imgs/top-features/puri-camera-3d-pink-v1.webp") center / contain no-repeat;
}
.puri-phone-entry #puriError:not([hidden]) ~ #puriGallery .puri-empty { display: none; }
.puri-phone-entry #puriShowGallery { width: fit-content; margin: 8px auto 0; padding-inline: 20px; }

.puri-search-icon { display: none; }
.puri-phone-entry .puri-people-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 4px;
    align-items: center;
}
.puri-phone-entry #puriMoreCasts {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffedf5;
}
.puri-phone-entry #puriMoreCasts span { display: none; }
.puri-phone-entry .puri-search-icon { display: block; width: 20px; height: 20px; }
