.safety-centre-page {
    max-width: 68.75rem;
    padding-bottom: 5rem;
    overflow-x: clip;
}

.safety-centre-page > *,
.safety-report-copy,
.safety-report-form,
.safety-dynamic-fields,
.safety-form-row,
.safety-select-shell,
.safety-place-note,
.safety-place-note span,
.safety-step,
.safety-step div,
.safety-report-checklist,
.safety-checklist,
.safety-checklist div,
.safety-promise-main,
.safety-promise-points,
.safety-promise-point,
.safety-oath-card,
.safety-resources-section,
.safety-resource-grid,
.safety-resource-card,
.safety-password-section,
.safety-tool-card,
.password-output-row,
.safety-games-gallery,
.safety-games-scroll,
.safety-game-card,
.safety-game-body {
    min-width: 0;
}

.safety-report-grid,
.safety-promise-panel,
.safety-resources-section,
.safety-password-section,
.safety-games-section {
    margin-bottom: 6rem;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 40px;
}

.safety-tool-card,
.safety-resource-card,
.safety-game-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
}

.safety-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: min(100%, 42rem);
    margin: 1.5rem auto 0;
}

.safety-hero-action-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.1rem 0.75rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    color: #1e293b;
    text-align: left;
    text-decoration: none;
}

.safety-hero-action-card:hover {
    transform: translateY(-2px);
}

.safety-hero-action-card .material-symbols-rounded {
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 16px;
    font-size: 1.55rem;
    line-height: 1;
}

.safety-hero-action-report .material-symbols-rounded {
    background: var(--c-highlight);
    color: #422006;
}

.safety-hero-action-resources .material-symbols-rounded {
    background: #e0f2fe;
    color: #075985;
}

.safety-hero-action-card strong {
    color: #1e293b;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.15;
}

.safety-hero-action-card small {
    color: #475569;
    font-weight: 800;
    line-height: 1.35;
}

#safetyReportForm,
#safety-resources-title {
    scroll-margin-top: 1rem;
}

.safety-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(21rem, 1.08fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
    border: none;
    background: var(--c-highlight);
    background-image: radial-gradient(rgba(255, 255, 255, 0.32) 20%, transparent 20%);
    background-size: 20px 20px;
}

.safety-report-copy {
    display: grid;
    gap: 1rem;
}

.safety-report-copy h2,
.safety-section-heading h2,
.safety-promise-main h2 {
    color: #1e293b;
}

.safety-report-copy h2 {
    max-width: 15ch;
    margin: 0;
    color: #451a03;
    text-align: left;
    font-family: var(--font-body);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.08;
}

.safety-report-copy > p {
    max-width: 35rem;
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
}

.safety-steps {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.safety-steps h3 {
    margin: 0 0 0.15rem;
    color: #451a03;
    font-size: 1.3rem;
}

.safety-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 0.95rem;
    border: 1px solid #fef3c7;
    border-radius: 20px;
    background: white;
}

.safety-step > .material-symbols-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 16px;
    background: var(--c-highlight);
    color: #422006;
    font-size: 1.55rem;
    line-height: 1;
}

.safety-step strong {
    display: block;
    color: #1e293b;
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.2;
}

.safety-step p {
    margin: 0.15rem 0 0;
    color: #64748b;
    font-size: 0.96rem;
    line-height: 1.45;
}

.safety-report-form {
    display: grid;
    gap: 1.4rem;
    padding: clamp(1.2rem, 3vw, 1.6rem);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    background: white;
}

.safety-form-row {
    display: grid;
    gap: 0.65rem;
}

.safety-dynamic-fields {
    display: grid;
    gap: 1.4rem;
}

.safety-dynamic-fields[hidden] {
    display: none;
}

.safety-form-row label {
    color: #1e293b;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.safety-report-form input,
.safety-report-form select,
.safety-report-form textarea,
.password-tool input[type="text"] {
    width: 100%;
    min-width: 0;
    min-height: 3.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: white;
    color: #1e293b;
    font: inherit;
    font-weight: 750;
    line-height: 1.35;
    padding: 0.78rem 0.9rem;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.safety-report-form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 2.75rem;
}

.safety-report-form select::-ms-expand {
    display: none;
}

.safety-select-shell {
    position: relative;
    display: block;
}

.safety-select-shell::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #475569;
    border-bottom: 2px solid #475569;
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.safety-report-form textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.safety-report-form input:focus,
.safety-report-form select:focus,
.safety-report-form textarea:focus,
.password-tool input[type="text"]:focus {
    border-color: var(--c-primary);
    background: #ffffff;
}

.safety-report-form input::placeholder,
.safety-report-form textarea::placeholder {
    color: #94a3b8;
}

.safety-form-row small,
.safety-form-note {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.5;
}

.safety-character-count {
    justify-self: end;
    margin-top: -0.35rem;
    color: #64748b;
    font-weight: 850;
}

.safety-character-count.is-warning {
    color: #a16207;
}

.safety-character-count.is-full {
    color: #b91c1c;
}

.safety-form-note {
    margin: 0;
}

.safety-place-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 0.95rem;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: #eff6ff;
    color: #075985;
    font-weight: 800;
    line-height: 1.45;
}

.safety-place-note .material-symbols-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 14px;
    background: white;
    color: var(--c-accent);
    font-size: 1.35rem;
    line-height: 1;
}

.safety-upload-box {
    display: grid;
    gap: 0.7rem;
}

.safety-report-form input.safety-file-input {
    position: absolute;
    width: 1px;
    min-width: 1px;
    max-width: 1px;
    height: 1px;
    min-height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.safety-evidence-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.safety-evidence-list[hidden] {
    display: none;
}

.safety-evidence-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.safety-evidence-info {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
}

.safety-evidence-info .material-symbols-rounded {
    color: var(--c-accent);
    font-size: 1.35rem;
}

.safety-evidence-name {
    min-width: 0;
    overflow: hidden;
    color: #334155;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.safety-evidence-size {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 800;
}

.safety-evidence-remove {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    cursor: pointer;
    line-height: 1;
}

.safety-evidence-remove .material-symbols-rounded {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.safety-upload-btn {
    justify-self: start;
    gap: 0.45rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--c-primary);
}

.safety-form-status {
    border-radius: 18px;
    padding: 0.9rem 1rem;
    font-weight: 850;
}

.safety-form-status.success {
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
}

.safety-form-status.error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.safety-submit-btn,
.password-generate-btn {
    gap: 0.45rem;
}

.safety-submit-btn {
    justify-self: start;
}

.safety-report-checklist {
    display: grid;
    gap: 0.85rem;
    padding: clamp(1.2rem, 3vw, 1.6rem);
    border: 1px solid #fef3c7;
    border-radius: 22px;
    background: white;
}

.safety-report-checklist h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.3rem;
}

.safety-promise-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(21rem, 1.05fr);
    gap: 1rem;
    border: none;
    background: var(--c-accent);
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 20%, transparent 20%);
    background-size: 20px 20px;
}

.safety-promise-main {
    display: grid;
    align-content: start;
    gap: 0.75rem;
}

.safety-promise-main > .material-symbols-rounded {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 18px;
    background: #f5f3ff;
    color: var(--c-primary);
    font-size: 1.9rem;
}

.safety-promise-main h2 {
    margin: 0;
    color: white;
    text-align: left;
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 800;
    line-height: 1.08;
}

.safety-promise-main p {
    margin: 0;
    color: white;
    font-size: 1.05rem;
    line-height: 1.7;
}

.safety-promise-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.safety-promise-point {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 20px;
    background: white;
    color: #475569;
    font-weight: 800;
    line-height: 1.45;
}

.safety-promise-point .material-symbols-rounded {
    color: #16a34a;
    font-size: 1.35rem;
}

.safety-oath-card {
    grid-column: 1 / -1;
    padding: 1.15rem;
    border: 1px solid #fde68a;
    border-radius: 20px;
    background: #fffbeb;
}

.safety-oath-card h3 {
    color: #854d0e;
    font-size: 1.35rem;
}

.safety-oath-card p {
    margin: 0;
    color: #713f12;
    font-size: 1rem;
    line-height: 1.65;
}

.safety-section-heading {
    max-width: 44rem;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.safety-section-heading h2 {
    margin-bottom: 0.5rem;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 800;
}

.safety-section-heading p {
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.6;
}

.safety-section-heading.left {
    margin: 0 0 1rem;
    text-align: left;
}

.safety-section-heading.left h2 {
    text-align: left;
}

.safety-resources-section {
    background: var(--c-primary);
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 20%, transparent 20%);
    background-size: 20px 20px;
}

.safety-resources-section .safety-section-heading h2 {
    color: white;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.safety-resources-section .safety-section-heading p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.safety-games-section {
    background: var(--c-accent);
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 20%, transparent 20%);
    background-size: 20px 20px;
}

.safety-games-section.scroll-container {
    padding: 4rem 1rem;
}

.safety-games-section .safety-section-heading h2 {
    color: white;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
}

.safety-games-section .safety-section-heading p {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
}

.safety-games-gallery {
    max-width: 1000px;
}

.safety-games-scroll {
    padding-block: 1rem;
}

.safety-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.safety-resource-card,
.safety-game-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 1.25rem;
    transition: filter 0.2s, border-color 0.2s;
}

.safety-resource-card:hover,
.safety-game-card:hover {
    filter: brightness(0.98);
    border-color: #cbd5e1;
}

.safety-resource-card.featured {
    border-color: #fde68a;
}

.safety-resource-icon,
.safety-game-icon {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    margin-bottom: 0.9rem;
    border-radius: 18px;
    background: #eff6ff;
    color: var(--c-accent);
}

.safety-resource-card.featured .safety-resource-icon {
    background: #fef9c3;
    color: #a16207;
}

.safety-resource-icon .material-symbols-rounded,
.safety-game-icon .material-symbols-rounded {
    font-size: 1.9rem;
}

.safety-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.safety-card-badges span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.32rem 0.62rem;
    background: #f1f5f9;
    color: #475569;
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.safety-resource-card.featured .safety-card-badges span:first-child {
    background: var(--c-highlight);
    color: #422006;
}

.safety-resource-card h3,
.safety-game-card h3,
.safety-tool-card h3,
.safety-empty-card h3 {
    color: #1e293b;
    font-size: 1.32rem;
}

.safety-resource-card p,
.safety-game-card p,
.safety-tool-card p {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.58;
}

.safety-game-card p {
    margin-bottom: auto;
}

.safety-game-legal {
    display: block;
    margin: 1rem 0 1rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.45;
}

.safety-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    margin-top: auto;
    color: var(--c-primary);
    font-family: var(--font-display);
    font-weight: 850;
}

.safety-card-link:hover {
    color: var(--c-primary-dark);
}

.safety-password-section {
    display: grid;
    gap: 1rem;
    background: var(--c-pink);
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 20%, transparent 20%);
    background-size: 20px 20px;
}

.safety-tool-card {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: white;
}

.password-output-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    margin: 1rem 0;
}

.password-output-row input {
    letter-spacing: 0.04em;
}

.password-copy-btn {
    min-height: 3.25rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: var(--c-primary);
    font-size: 1rem;
    padding-inline: 1.1rem;
}

.password-length-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #334155;
    font-family: var(--font-display);
    font-weight: 850;
}

.password-tool input[type="range"] {
    width: 100%;
    accent-color: var(--c-primary);
    margin: 0.75rem 0 1rem;
}

.safety-checklist {
    display: grid;
    gap: 0.75rem;
}

.safety-checklist div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    color: #475569;
    font-weight: 800;
}

.safety-checklist .material-symbols-rounded {
    color: #16a34a;
    font-size: 1.4rem;
}

.safety-game-card {
    flex: 0 0 min(19rem, 82vw);
    width: min(19rem, 82vw);
    overflow: hidden;
}

.safety-game-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.15rem;
    overflow: hidden;
    border-radius: 18px;
    background: #f1f5f9;
}

.safety-game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
}

.safety-game-media .game-thumb-placeholder {
    height: 100%;
    border-radius: 0;
}

.safety-game-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    padding: 0;
    text-align: left;
}

.safety-game-card .safety-card-link {
    align-self: center;
    margin-inline: auto;
}

@media (max-width: 980px) {
    .safety-report-grid,
    .safety-promise-panel {
        grid-template-columns: 1fr;
    }

    .safety-resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .safety-centre-page {
        padding-inline: 1rem;
    }

    .safety-report-grid,
    .safety-promise-panel,
    .safety-resources-section,
    .safety-password-section,
    .safety-games-section,
    .safety-tool-card,
    .safety-resource-card,
    .safety-game-card {
        border-radius: 22px;
    }

    .safety-report-grid,
    .safety-promise-panel,
    .safety-resources-section,
    .safety-password-section,
    .safety-games-section {
        margin-bottom: 4rem;
        padding: 2rem;
    }

    .safety-resource-grid,
    .safety-promise-points {
        grid-template-columns: 1fr;
    }

    .password-output-row {
        grid-template-columns: 1fr;
    }

    .safety-submit-btn,
    .password-copy-btn,
    .password-generate-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .safety-hero-actions {
        gap: 0.65rem;
        margin-top: 1.1rem;
    }

    .safety-hero-action-card {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0.8rem;
        text-align: center;
    }

    .safety-hero-action-card .material-symbols-rounded {
        grid-row: auto;
        width: 2.35rem;
        height: 2.35rem;
        margin-bottom: 0.25rem;
        font-size: 1.35rem;
    }

    .safety-hero-action-card strong {
        font-size: 0.95rem;
    }

    .safety-hero-action-card small {
        display: none;
    }
}
