.trophy-room-page {
    background:
        radial-gradient(ellipse at 50% -18%, rgba(245, 212, 119, 0.15), transparent 46%),
        radial-gradient(ellipse at 100% 48%, rgba(71, 46, 115, 0.2), transparent 38%),
        linear-gradient(145deg, #090a10 0%, #171320 52%, #0b0b11 100%);
    flex: 1;
    min-height: calc(100vh - 110px);
    padding: clamp(28px, 5vw, 58px) 16px 64px;
}

.trophy-room {
    margin: 0 auto;
    max-width: 1160px;
    width: 100%;
}

.trophy-room__header {
    padding: 16px 0 32px;
    text-align: center;
}

.trophy-room__eyebrow {
    background: rgba(245, 212, 119, 0.08);
    border: 1px solid rgba(245, 212, 119, 0.24);
    border-radius: 999px;
    color: #f5d477;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    padding: 8px 13px;
    text-transform: uppercase;
}

.trophy-room__header h1 {
    background: linear-gradient(110deg, #fff4c4 10%, #f5d477 52%, #d7ad55 92%);
    background-clip: text;
    color: transparent;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.035em;
    margin: 18px 0 10px;
    text-shadow: 0 8px 36px rgba(245, 212, 119, 0.12);
}

.trophy-room__header p {
    color: #c5c2cf;
    margin: 0;
}

.trophy-room__overview {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto 28px;
    max-width: 720px;
}

.trophy-room__overview div {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)), rgba(20, 19, 28, 0.88);
    border: 1px solid rgba(245, 212, 119, 0.18);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    display: grid;
    gap: 7px;
    justify-items: center;
    padding: 18px 10px;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.trophy-room__overview div:hover {
    background: linear-gradient(145deg, rgba(245, 212, 119, 0.12), rgba(255, 255, 255, 0.025)), rgba(20, 19, 28, 0.92);
    border-color: rgba(245, 212, 119, 0.42);
    transform: translateY(-3px);
}

.trophy-room__overview strong {
    color: #f5d477;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1;
}

.trophy-room__overview span {
    color: #bcb9c7;
    font-size: 0.82rem;
    text-align: center;
}

.trophy-room__toolbar {
    display: grid;
    align-items: end;
    column-gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 9px;
    margin: 0 auto 16px;
    max-width: 660px;
}

.trophy-room__toolbar > label[for="trophy-search"] {
    color: #e3dfeb;
    font-size: 0.9rem;
    font-weight: 700;
    grid-column: 1 / -1;
}

.trophy-room__toolbar input {
    background: rgba(17, 16, 24, 0.9);
    border: 1px solid rgba(196, 190, 210, 0.2);
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22), 0 8px 20px rgba(0, 0, 0, 0.12);
    color: #fff;
    min-height: 48px;
    padding: 11px 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.trophy-room__filter-switch {
    align-items: center;
    background: rgba(17, 16, 24, 0.9);
    border: 1px solid rgba(245, 212, 119, 0.32);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    gap: 9px;
    height: 48px;
    justify-content: space-between;
    padding: 0 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    white-space: nowrap;
}

.trophy-room__filter-switch:hover,
.trophy-room__filter-switch:focus-within {
    border-color: rgba(245, 212, 119, 0.72);
    box-shadow: 0 0 0 3px rgba(245, 212, 119, 0.1);
}

.trophy-room__filter-option {
    color: #817d8a;
    font-size: 0.82rem;
    font-weight: 750;
    transition: color 160ms ease;
}

.trophy-room__switch-track {
    background: #302c38;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    flex: 0 0 42px;
    height: 24px;
    position: relative;
    transition: background 160ms ease, border-color 160ms ease;
    width: 42px;
}

.trophy-room__switch-track input {
    background: transparent;
    border: 0;
    cursor: pointer;
    height: 100%;
    inset: 0;
    margin: 0;
    min-height: 0;
    opacity: 0;
    padding: 0;
    position: absolute;
    box-shadow: none;
    width: 100%;
    z-index: 1;
}

.trophy-room__switch-track input:focus {
    box-shadow: none;
    outline: none;
}

.trophy-room__switch-thumb {
    background: #aaa6b5;
    border-radius: 50%;
    height: 16px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: background 160ms ease, transform 160ms ease;
    width: 16px;
}

.trophy-room__filter-switch.is-mine-only .trophy-room__switch-track {
    background: rgba(215, 173, 85, 0.38);
    border-color: rgba(245, 212, 119, 0.58);
}

.trophy-room__switch-track input:checked + .trophy-room__switch-thumb {
    background: #ffe28c;
    transform: translateX(18px);
}

.trophy-room__switch-track input:focus-visible + .trophy-room__switch-thumb {
    outline: 2px solid #fff4c4;
    outline-offset: 3px;
}

.trophy-room__filter-switch:not(.is-mine-only) .trophy-room__filter-option--all,
.trophy-room__filter-switch.is-mine-only .trophy-room__filter-option--mine {
    color: #f5d477;
}

.trophy-room__toolbar > input:focus {
    border-color: #f5d477;
    box-shadow: 0 0 0 4px rgba(245, 212, 119, 0.12), 0 8px 20px rgba(0, 0, 0, 0.12);
    outline: none;
}

.trophy-room__status {
    color: #aaa6b5;
    min-height: 22px;
    margin: 0 auto 18px;
    text-align: center;
}

.trophy-room__status[data-type="error"] {
    color: #ff9a9a;
}

.trophy-list {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}

.trophy-card {
    align-items: start;
    background:
        radial-gradient(circle at 0 0, rgba(245, 212, 119, 0.1), transparent 48%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        rgba(23, 21, 31, 0.94);
    border: 1px solid rgba(245, 212, 119, 0.17);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    display: grid;
    gap: 16px;
    grid-template-columns: 72px minmax(0, 1fr);
    min-width: 0;
    padding: 20px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.trophy-card:hover {
    border-color: rgba(245, 212, 119, 0.42);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.32), 0 0 24px rgba(245, 212, 119, 0.06);
    transform: translateY(-4px);
}

.trophy-card__icon {
    align-items: center;
    background: linear-gradient(145deg, rgba(245, 212, 119, 0.2), rgba(215, 173, 85, 0.06));
    border: 1px solid rgba(245, 212, 119, 0.32);
    border-radius: 15px;
    color: #f5d477;
    display: grid;
    font-size: 1.8rem;
    height: 72px;
    justify-content: center;
    place-items: center;
    width: 72px;
}

.trophy-card__identity-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trophy-card__placement-icon {
    --medal-color: #b7c0cf;
    --medal-highlight: #f0f3f8;
    --medal-shadow: #687386;
    display: block;
    height: 72px;
    position: relative;
    width: 72px;
}

.trophy-card__placement-icon::before {
    background: linear-gradient(110deg, var(--medal-shadow), var(--medal-color) 45%, var(--medal-highlight));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 77%, 0 100%);
    content: "";
    height: 31px;
    left: 19px;
    position: absolute;
    top: 39px;
    width: 34px;
}

.trophy-card__placement-icon::after {
    background:
        radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.85), transparent 18%),
        linear-gradient(145deg, var(--medal-highlight), var(--medal-color) 52%, var(--medal-shadow));
    border: 2px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.42), inset 0 0 0 3px rgba(20, 20, 24, 0.22), inset 0 0 0 5px rgba(255, 255, 255, 0.28);
    content: "";
    height: 48px;
    left: 12px;
    position: absolute;
    top: 4px;
    width: 48px;
}

.trophy-card__placement-icon--gold {
    --medal-color: #f4bd32;
    --medal-highlight: #fff1a1;
    --medal-shadow: #a85b12;
    filter: drop-shadow(0 2px 5px rgba(244, 189, 50, 0.25));
}

.trophy-card__placement-icon--silver {
    --medal-color: #b9c5d5;
    --medal-highlight: #ffffff;
    --medal-shadow: #68788e;
}

.trophy-card__placement-icon--bronze {
    --medal-color: #d9874b;
    --medal-highlight: #ffc18a;
    --medal-shadow: #80401f;
}

.trophy-card__placement-icon--standard {
    --medal-color: #8e9aab;
    --medal-highlight: #d6deea;
    --medal-shadow: #515d70;
}

.trophy-card__placement-icon--star {
    --medal-color: #7a75d1;
    --medal-highlight: #d1c9ff;
    --medal-shadow: #39356f;
    filter: drop-shadow(0 2px 6px rgba(122, 117, 209, 0.3));
}

.trophy-card__placement-icon--star::before {
    background: linear-gradient(110deg, #5752a3, #a59df1 48%, #6b65bd);
}

.trophy-card__placement-icon--star::after {
    background:
        radial-gradient(circle at 34% 27%, rgba(255, 255, 255, 0.85), transparent 18%),
        linear-gradient(145deg, #e1dcff, #958deb 52%, #514b9c);
}

.trophy-card__placement-icon strong {
    color: #3c2608;
    font-size: 1.1875rem;
    font-weight: 900;
    left: 50%;
    line-height: 1;
    position: absolute;
    text-shadow: 0 1px rgba(255, 255, 255, 0.5);
    top: 28px;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.trophy-card__placement-icon--silver strong {
    color: #273344;
}

.trophy-card__placement-icon--bronze strong {
    color: #48230f;
}

.trophy-card__placement-icon--star i {
    color: #433d82;
    font-size: 1.35rem;
    left: 50%;
    position: absolute;
    text-shadow: 0 1px rgba(255, 255, 255, 0.55);
    top: 28px;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.trophy-card__photo {
    border: 1px solid rgba(245, 212, 119, 0.32);
    border-radius: 15px;
    height: 72px;
    object-fit: cover;
    width: 72px;
}

.trophy-card__photo[hidden] {
    display: none;
}

.trophy-card__content {
    min-width: 0;
}

.trophy-card__award {
    color: #ffe28c;
    font-size: 1.14rem;
    font-weight: 850;
    line-height: 1.25;
    margin: 1px 0 7px;
    overflow-wrap: anywhere;
}

.trophy-card__student {
    color: #fff;
    font-size: 1rem;
    font-weight: 750;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.trophy-card__details {
    color: #bcb8c8;
    display: grid;
    font-size: 0.9rem;
    gap: 7px;
}

.trophy-card__details span {
    align-items: baseline;
    display: flex;
    gap: 7px;
    overflow-wrap: anywhere;
}

.trophy-card__details i {
    color: #d7ad55;
    flex: 0 0 14px;
    text-align: center;
}

.trophy-card__notes {
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: #d2c8dc;
    font-size: 0.88rem;
    margin: 11px 0 0;
    padding-top: 12px;
    white-space: pre-wrap;
}

.trophy-admin-page {
    background:
        radial-gradient(ellipse at 50% 0, rgba(113, 83, 150, 0.18), transparent 52%),
        linear-gradient(145deg, #0d0d13, #15121c 55%, #0b0b10);
    padding: clamp(18px, 4vw, 42px) 16px 54px;
}

.trophy-admin-page .admin-shell {
    max-width: 1080px;
}

.trophy-admin-page .admin-header {
    background: linear-gradient(135deg, rgba(245, 212, 119, 0.11), rgba(143, 197, 255, 0.045)), rgba(25, 23, 32, 0.96);
    border: 1px solid rgba(245, 212, 119, 0.16);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    padding: 24px 24px 18px;
}

.trophy-admin-page .admin-title {
    color: #f5d477;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    letter-spacing: 0.07em;
    text-shadow: 0 4px 18px rgba(245, 212, 119, 0.16);
}

.trophy-admin-page .admin-subtitle {
    color: #aaa6b5;
}

.trophy-admin-page .admin-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)), rgba(20, 19, 27, 0.97);
    border: 1px solid rgba(245, 212, 119, 0.16);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.32);
    padding: clamp(16px, 3vw, 28px);
}

.trophy-delete-confirm .payment-confirm__dialog {
    background: linear-gradient(145deg, rgba(245, 212, 119, 0.09), rgba(255, 255, 255, 0.025)), #17151d;
    border-color: rgba(245, 212, 119, 0.38);
}

.trophy-delete-confirm .payment-confirm__icon {
    background: rgba(245, 212, 119, 0.1);
    border-color: rgba(245, 212, 119, 0.34);
    color: #f5d477;
}

.trophy-delete-confirm .payment-confirm__dialog h2 {
    color: #f5d477;
}

.trophy-admin-page .admin-toolbar {
    margin-bottom: 20px;
}

.trophy-admin-page .trophy-category-form {
    align-items: end;
    grid-template-columns: minmax(0, 1fr) auto;
}

.trophy-admin-page .trophy-admin-form .trophy-admin-heading {
    grid-column: 1 / -1;
}

.trophy-admin-page #tournament-form,
.trophy-admin-page .tournament-edit-form {
    grid-template-columns: minmax(0, 1fr) 14ch;
}

.trophy-admin-page .tournament-date-field input {
    box-sizing: border-box;
    max-width: 100%;
    width: 14ch;
}

.trophy-admin-page .trophy-admin-form .admin-field {
    min-width: 0;
}

.trophy-admin-page .trophy-category-form .admin-actions {
    align-self: end;
    align-items: end;
    grid-column: auto;
    margin: 0;
}

.trophy-admin-page .admin-field input,
.trophy-admin-page .tournament-manager select,
.trophy-admin-page .trophy-award-form select,
.trophy-admin-page .trophy-award-form input,
.trophy-admin-page .trophy-category__edit-form input {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
}

.trophy-admin-page .admin-button {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
}

.trophy-admin-page .trophy-category-form .admin-button {
    white-space: nowrap;
}

.trophy-admin-page .tournament-manager__date {
    align-items: center;
    align-self: stretch;
    box-sizing: border-box;
    display: flex;
    grid-column: 2;
    grid-row: 2;
    height: auto;
    margin: 0;
    min-height: 44px;
    padding: 0 12px;
    white-space: nowrap;
}

.trophy-admin-page .tournament-manager__edit {
    align-self: stretch;
    height: auto;
    grid-column: 3;
    grid-row: 2;
    margin: 0;
}

.trophy-admin-page .tournament-manager__selection {
    align-items: center;
    column-gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto 44px;
    row-gap: 6px;
}

.trophy-admin-page .tournament-manager__selection > .admin-field {
    display: contents;
}

.trophy-admin-page .tournament-manager__selection label {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
}

.trophy-admin-page .tournament-manager__selection select {
    align-self: stretch;
    grid-column: 1;
    grid-row: 2;
}

.trophy-admin-page .admin-field label {
    color: #d8d3e1;
    font-size: 0.88rem;
}

.trophy-admin-page .admin-field input,
.trophy-admin-page .tournament-manager select,
.trophy-admin-page .trophy-award-form select,
.trophy-admin-page .trophy-award-form input {
    background: rgba(12, 12, 18, 0.86);
    border: 1px solid rgba(196, 190, 210, 0.2);
    border-radius: 10px;
    color: #f8f7fb;
    min-height: 44px;
    padding: 9px 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.trophy-admin-page .admin-field input:focus,
.trophy-admin-page .tournament-manager select:focus,
.trophy-admin-page .trophy-award-form select:focus,
.trophy-admin-page .trophy-award-form input:focus,
.trophy-admin-page .trophy-category__edit-form input:focus {
    border-color: rgba(245, 212, 119, 0.8);
    box-shadow: 0 0 0 4px rgba(245, 212, 119, 0.11);
    outline: none;
}

.trophy-admin-page .trophy-admin-heading {
    color: #f5d477;
    font-size: 1.12rem;
    letter-spacing: 0.015em;
}

.trophy-admin-page .tournament-manager {
    border-color: rgba(245, 212, 119, 0.15);
    margin-top: 22px;
    padding-top: 24px;
}

.trophy-admin-page .tournament-manager__date {
    background: rgba(245, 212, 119, 0.08);
    border: 1px solid rgba(245, 212, 119, 0.16);
    border-radius: 9px;
    color: #e7d59b;
    margin-bottom: 10px;
    padding: 10px 12px;
}

.trophy-admin-page .trophy-category {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)), #191720;
    border: 1px solid rgba(245, 212, 119, 0.17);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    padding: 14px 16px;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.trophy-admin-page .trophy-category:hover {
    border-color: rgba(245, 212, 119, 0.32);
}

.trophy-admin-page .trophy-category__header {
    gap: 10px;
}

.trophy-admin-page .trophy-category__title {
    color: #f5d477;
}

.trophy-admin-page .trophy-category__content {
    border-color: rgba(255, 255, 255, 0.09);
    margin-top: 14px;
    padding-top: 14px;
}

.trophy-admin-page .trophy-category__count {
    background: rgba(245, 212, 119, 0.1);
    border: 1px solid rgba(245, 212, 119, 0.16);
}

.trophy-admin-page .trophy-winner {
    background: rgba(6, 6, 10, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 10px;
    padding: 10px 12px;
    transition: border-color 160ms ease, background 160ms ease;
}

.trophy-admin-page .trophy-winner:hover {
    background: rgba(6, 6, 10, 0.62);
    border-color: rgba(143, 197, 255, 0.18);
}

.trophy-admin-page .trophy-award-form {
    gap: 10px;
    margin-top: 14px;
}

.trophy-admin-page .trophy-category__edit-form input {
    background: rgba(12, 12, 18, 0.86);
    border: 1px solid rgba(196, 190, 210, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 9px 12px;
}

.trophy-room-footer {
    color: #bababa;
    font-size: 0.9rem;
    min-height: 42px;
}

.trophy-admin-form,
.trophy-category-form {
    margin-bottom: 24px;
}

.trophy-admin-form[hidden],
.trophy-category-form[hidden] {
    display: none;
}

.trophy-admin-heading {
    color: #f5d477;
    font-size: 1.05rem;
    font-weight: 850;
    margin: 0 0 14px;
}

.tournament-manager {
    border-top: 1px solid rgba(215, 173, 85, 0.22);
    margin-top: 12px;
    padding-top: 22px;
}

.tournament-manager select,
.trophy-award-form select,
.trophy-award-form input {
    background: #17121e;
    border: 1px solid rgba(215, 173, 85, 0.36);
    border-radius: 6px;
    color: #fff;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.tournament-manager select:focus,
.trophy-award-form select:focus,
.trophy-award-form input:focus {
    border-color: #f5d477;
    box-shadow: 0 0 0 3px rgba(245, 212, 119, 0.15);
    outline: none;
}

.tournament-manager__date {
    align-self: end;
    color: #c4b8ce;
    margin: 0 0 10px;
    white-space: nowrap;
}

.tournament-manager__selection {
    align-items: end;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.tournament-manager__edit {
    margin-bottom: 10px;
    min-height: 42px;
}

.tournament-edit-form[hidden] {
    display: none;
}

.trophy-categories {
    display: grid;
    gap: 14px;
}

.trophy-category {
    background: #211d27;
    border: 1px solid rgba(215, 173, 85, 0.24);
    border-radius: 10px;
    min-width: 0;
    padding: 16px;
}

.trophy-category.is-dragging,
.trophy-winner.is-dragging {
    opacity: 0.45;
}

.trophy-category,
.trophy-winner {
    position: relative;
}

.trophy-category.is-drop-before::before,
.trophy-category.is-drop-after::after,
.trophy-winner.is-drop-before::before,
.trophy-winner.is-drop-after::after {
    background: #67e8f9;
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(103, 232, 249, 0.85), 0 0 18px rgba(103, 232, 249, 0.45);
    content: "";
    height: 3px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 2;
}

.trophy-category.is-drop-before::before {
    top: -8px;
}

.trophy-category.is-drop-after::after {
    bottom: -8px;
}

.trophy-winner.is-drop-before::before {
    top: -5px;
}

.trophy-winner.is-drop-after::after {
    bottom: -5px;
}

.trophy-drag-handle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #94a3b8;
    cursor: grab;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    min-height: 34px;
    min-width: 30px;
    padding: 6px;
}

.trophy-drag-handle:hover,
.trophy-drag-handle:focus-visible {
    color: #67e8f9;
}

.trophy-drag-handle:focus-visible {
    border-radius: 6px;
    outline: 2px solid #67e8f9;
    outline-offset: 1px;
}

.trophy-drag-handle:active {
    cursor: grabbing;
}

.trophy-drag-handle--category {
    justify-self: center;
}

.trophy-category__header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
}

.trophy-category__toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    min-height: 38px;
    min-width: 0;
    padding: 0;
    text-align: left;
}

.trophy-category__toggle:focus-visible {
    border-radius: 6px;
    outline: 2px solid #67e8f9;
    outline-offset: 3px;
}

.trophy-category__toggle-icon {
    color: #f5d477;
    flex: 0 0 auto;
    transition: transform 160ms ease;
}

.trophy-category__toggle[aria-expanded="true"] .trophy-category__toggle-icon {
    transform: rotate(90deg);
}

.trophy-category__title {
    color: #f5d477;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    overflow-wrap: anywhere;
}

.trophy-category__content {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 12px;
    padding-top: 12px;
}

.trophy-category__content[hidden] {
    display: none;
}

.trophy-category__actions,
.trophy-category__edit-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.trophy-category__edit {
    min-height: 34px;
    padding: 5px 9px;
}

.trophy-category__edit-form {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.trophy-category__edit-form[hidden] {
    display: none;
}

.trophy-category__edit-form input {
    background: #17121e;
    border: 1px solid rgba(215, 173, 85, 0.36);
    border-radius: 6px;
    color: #fff;
    min-height: 40px;
    min-width: 0;
    padding: 8px 10px;
    width: 100%;
}

.trophy-category__edit-form input:focus {
    border-color: #f5d477;
    box-shadow: 0 0 0 3px rgba(245, 212, 119, 0.15);
    outline: none;
}

.trophy-category__count {
    align-items: center;
    background: rgba(245, 212, 119, 0.12);
    border-radius: 999px;
    color: #f5d477;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 800;
    justify-content: center;
    min-height: 28px;
    min-width: 28px;
    padding: 0 7px;
}

.trophy-category__winners {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.trophy-winner {
    align-items: center;
    background: rgba(0, 0, 0, 0.16);
    border-radius: 7px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 0;
    padding: 9px 10px;
}

.trophy-winner__copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.trophy-winner__copy strong {
    color: #fff;
    overflow-wrap: anywhere;
}

.trophy-winner__copy span {
    color: #c4b8ce;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.trophy-winner__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.trophy-award-form {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(150px, 1.1fr) minmax(90px, 0.55fr) minmax(150px, 1.1fr) minmax(140px, 1fr) auto;
}

.trophy-award-form .admin-button {
    min-height: 42px;
}

@media (max-width: 520px) {
    .trophy-room-page {
        padding: 24px 12px 38px;
    }

    .trophy-room__toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .trophy-room__filter-switch {
        justify-self: end;
    }

    .trophy-room__overview {
        gap: 7px;
    }

    .trophy-room__overview div {
        border-radius: 12px;
        padding: 12px 5px;
    }

    .trophy-room__overview span {
        font-size: 0.72rem;
    }

    .trophy-admin-page .tournament-manager__selection {
        align-items: start;
        column-gap: 10px;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto 44px auto 44px;
        row-gap: 8px;
    }

    .trophy-admin-page .tournament-manager__selection label {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .trophy-admin-page .tournament-manager__selection select {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .trophy-admin-page .tournament-manager__date {
        grid-column: 1 / -1;
        font-size: 0.8rem;
        grid-row: 3;
        justify-self: start;
    }

    .trophy-admin-page .tournament-manager__edit {
        grid-column: 1 / -1;
        grid-row: 4;
        justify-self: start;
    }

    .trophy-award-form {
        grid-template-columns: 1fr;
    }

    .trophy-winner {
        align-items: flex-start;
    }

    .trophy-category__actions,
    .trophy-category__edit-form {
        align-items: stretch;
        flex-direction: column;
    }

    .trophy-category__header {
        align-items: flex-start;
    }

    .trophy-category__toggle {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .trophy-category__edit {
        justify-content: center;
    }

    .trophy-category__edit-form .admin-button {
        justify-content: center;
    }

    .trophy-admin-page .admin-header {
        padding: 18px 14px 14px;
    }

    .trophy-admin-page #tournament-form,
    .trophy-admin-page .tournament-edit-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .trophy-admin-page .trophy-admin-form .trophy-admin-heading,
    .trophy-admin-page #tournament-form .admin-actions,
    .trophy-admin-page .tournament-edit-form .admin-actions {
        grid-column: 1;
    }

    .trophy-admin-page .trophy-category {
        padding: 12px;
    }

    .trophy-admin-page .trophy-award-form {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .trophy-room__overview div,
    .trophy-card,
    .trophy-room__toolbar input,
    .trophy-room__filter-switch,
    .trophy-room__switch-thumb,
    .trophy-room__switch-track,
    .trophy-admin-page .trophy-category,
    .trophy-admin-page .trophy-winner {
        transition: none;
    }
}
