/* =========================================================
   CROSSYRAY HOMEPAGE
   style.css
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --background: #070a10;
    --background-soft: #0c111a;
    --panel: rgba(17, 24, 36, 0.86);
    --panel-solid: #111824;
    --panel-hover: #172131;

    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text-primary: #f4f7fb;
    --text-secondary: #aab5c5;
    --text-muted: #738094;

    --blue: #57b7ff;
    --blue-strong: #2d91f0;
    --blue-soft: rgba(87, 183, 255, 0.14);

    --red: #ff6b72;
    --red-soft: rgba(255, 107, 114, 0.14);

    --green: #5ee59b;
    --yellow: #ffd166;
    --purple: #a98cff;

    --shadow-small:
        0 12px 34px rgba(0, 0, 0, 0.22);

    --shadow-large:
        0 30px 90px rgba(0, 0, 0, 0.54);

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 26px;

    --transition:
        180ms ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;

    overflow-x: hidden;

    color: var(--text-primary);
    background:
        radial-gradient(
            circle at 50% 20%,
            #16243b 0,
            #0b1019 34%,
            #070a10 72%
        );

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(87, 183, 255, 0.42);
    outline-offset: 3px;
}

.hidden {
    display: none !important;
}


/* =========================================================
   BACKGROUND
========================================================= */

.background-grid {
    position: fixed;
    inset: 0;

    z-index: -4;

    opacity: 0.36;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            rgba(0, 0, 0, 0.88) 42%,
            transparent 100%
        );
}

.background-glow {
    position: fixed;

    z-index: -3;

    width: 520px;
    height: 520px;

    border-radius: 50%;

    filter: blur(110px);
    pointer-events: none;
}

.glow-one {
    top: -200px;
    left: -190px;

    background: rgba(54, 142, 255, 0.15);
}

.glow-two {
    right: -210px;
    bottom: -230px;

    background: rgba(157, 97, 255, 0.13);
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 74px;
    padding: 14px 24px;

    background:
        linear-gradient(
            to bottom,
            rgba(7, 10, 16, 0.94),
            rgba(7, 10, 16, 0.62),
            transparent
        );

    backdrop-filter: blur(10px);
}

.topbar-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    min-height: 42px;
    padding: 8px 13px;

    color: var(--text-secondary);
    background: rgba(17, 24, 36, 0.7);

    border: 1px solid var(--border);
    border-radius: 12px;

    cursor: pointer;

    transition:
        transform var(--transition),
        color var(--transition),
        border-color var(--transition),
        background var(--transition);
}

.topbar-button:hover {
    color: var(--text-primary);
    background: rgba(24, 34, 50, 0.92);
    border-color: var(--border-strong);

    transform: translateY(-1px);
}

.topbar-button-icon {
    display: grid;
    place-items: center;

    width: 24px;
    height: 24px;

    color: #07111c;
    background: var(--blue);

    border-radius: 50%;

    font-weight: 900;
}

.topbar-button-text {
    font-size: 14px;
    font-weight: 700;
}

.anonymous-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    min-height: 42px;
    padding: 8px 13px;

    color: var(--text-secondary);
    background: rgba(17, 24, 36, 0.7);

    border: 1px solid var(--border);
    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;
}

.online-status-dot {
    width: 9px;
    height: 9px;

    background: var(--green);

    border-radius: 50%;

    box-shadow:
        0 0 0 5px rgba(94, 229, 155, 0.1),
        0 0 18px rgba(94, 229, 155, 0.7);
}


/* =========================================================
   HOMEPAGE
========================================================= */

.homepage {
    display: grid;
    place-items: center;

    min-height: 100vh;
    padding: 106px 20px 90px;
}

.hero-section {
    width: min(760px, 100%);

    text-align: center;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;

    margin-bottom: 26px;
}

.brand-symbol {
    position: relative;

    flex: 0 0 auto;

    width: 88px;
    height: 88px;

    filter:
        drop-shadow(
            0 0 26px rgba(87, 183, 255, 0.35)
        );
}

.brand-symbol-center {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 24px;
    height: 24px;

    background:
        linear-gradient(
            145deg,
            #f8fbff,
            #86cfff
        );

    border: 4px solid #142136;
    border-radius: 8px;

    transform:
        translate(-50%, -50%)
        rotate(45deg);

    box-shadow:
        0 0 0 3px rgba(87, 183, 255, 0.2),
        0 0 28px rgba(87, 183, 255, 0.65);
}

.ray {
    position: absolute;

    display: block;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--blue),
            transparent
        );

    border-radius: 999px;
}

.ray-top,
.ray-bottom {
    left: 50%;

    width: 6px;
    height: 31px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--blue)
        );
}

.ray-top {
    top: 0;
}

.ray-bottom {
    bottom: 0;

    background:
        linear-gradient(
            to top,
            transparent,
            var(--blue)
        );
}

.ray-left,
.ray-right {
    top: 50%;

    width: 31px;
    height: 6px;

    transform: translateY(-50%);
}

.ray-left {
    left: 0;

    background:
        linear-gradient(
            to right,
            transparent,
            var(--blue)
        );
}

.ray-right {
    right: 0;

    background:
        linear-gradient(
            to left,
            transparent,
            var(--blue)
        );
}

.brand-content {
    text-align: left;
}

.brand-name {
    margin: 0;

    font-size: clamp(46px, 8vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.06em;

    background:
        linear-gradient(
            110deg,
            #ffffff 0%,
            #cfeaff 38%,
            #67bfff 72%,
            #9c9aff 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;

    text-shadow:
        0 0 34px rgba(87, 183, 255, 0.12);
}

.brand-tagline {
    margin: 10px 0 0;

    color: var(--text-muted);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}


/* =========================================================
   HERO
========================================================= */

.hero-description {
    max-width: 590px;
    margin: 0 auto 34px;

    color: var(--text-secondary);

    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.7;
}


/* =========================================================
   MAIN ACTIONS
========================================================= */

.main-actions {
    display: grid;
    gap: 15px;

    width: min(610px, 100%);
    margin: 0 auto;
}

.main-action-button {
    position: relative;

    display: grid;
    grid-template-columns: 58px 1fr 24px;
    align-items: center;
    gap: 16px;

    width: 100%;
    min-height: 92px;
    padding: 17px 20px;

    text-align: left;

    background:
        linear-gradient(
            145deg,
            rgba(22, 31, 46, 0.96),
            rgba(13, 19, 29, 0.96)
        );

    border: 1px solid var(--border);
    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-small);

    cursor: pointer;
    overflow: hidden;

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.main-action-button::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0;

    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(87, 183, 255, 0.16),
            transparent 48%
        );

    transition: opacity var(--transition);
}

.main-action-button:hover {
    border-color: rgba(87, 183, 255, 0.34);

    transform:
        translateY(-3px)
        scale(1.005);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(87, 183, 255, 0.08);
}

.main-action-button:hover::before {
    opacity: 1;
}

.main-action-button:active {
    transform: translateY(-1px);
}

.action-icon {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 56px;
    height: 56px;

    border-radius: 16px;

    font-size: 27px;
}

.bot-icon {
    background:
        linear-gradient(
            145deg,
            rgba(87, 183, 255, 0.2),
            rgba(87, 183, 255, 0.08)
        );

    border: 1px solid rgba(87, 183, 255, 0.22);
}

.online-icon {
    background:
        linear-gradient(
            145deg,
            rgba(169, 140, 255, 0.19),
            rgba(169, 140, 255, 0.07)
        );

    border: 1px solid rgba(169, 140, 255, 0.23);
}

.action-content {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    gap: 6px;
}

.action-title {
    font-size: 19px;
    font-weight: 850;
}

.action-description {
    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.45;
}

.action-arrow {
    position: relative;
    z-index: 1;

    color: var(--text-muted);

    font-size: 35px;
    font-weight: 300;

    transition:
        color var(--transition),
        transform var(--transition);
}

.main-action-button:hover .action-arrow {
    color: var(--blue);
    transform: translateX(4px);
}


/* =========================================================
   QUICK INFO
========================================================= */

.quick-info {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 30px;
}

.quick-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    min-width: 135px;
}

.quick-info-value {
    color: var(--text-primary);

    font-size: 14px;
    font-weight: 850;
}

.quick-info-label {
    color: var(--text-muted);

    font-size: 12px;
}

.quick-info-divider {
    width: 1px;
    height: 34px;
    margin: 0 14px;

    background: var(--border);
}


/* =========================================================
   MODALS
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;

    z-index: 100;

    display: grid;
    place-items: center;

    padding: 24px;

    background: rgba(2, 5, 10, 0.75);

    backdrop-filter: blur(16px);

    animation:
        modalOverlayIn 180ms ease;
}

.modal-card {
    position: relative;

    width: min(590px, 100%);
    max-height: min(820px, calc(100vh - 48px));

    padding: 28px;

    overflow-y: auto;

    background:
        linear-gradient(
            145deg,
            rgba(22, 31, 46, 0.98),
            rgba(11, 16, 25, 0.98)
        );

    border: 1px solid var(--border-strong);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-large);

    animation:
        modalCardIn 210ms ease;
}

.modal-card::-webkit-scrollbar {
    width: 8px;
}

.modal-card::-webkit-scrollbar-track {
    background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;

    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);

    border: 1px solid var(--border);
    border-radius: 11px;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition:
        color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.modal-close-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);

    transform: rotate(4deg);
}

.modal-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding-right: 42px;
    margin-bottom: 24px;
}

.modal-icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 52px;
    height: 52px;

    color: white;
    background:
        linear-gradient(
            145deg,
            rgba(87, 183, 255, 0.22),
            rgba(87, 183, 255, 0.08)
        );

    border: 1px solid rgba(87, 183, 255, 0.2);
    border-radius: 16px;

    font-size: 24px;
    font-weight: 900;
}

.modal-heading h2 {
    margin: 2px 0 6px;

    font-size: 23px;
}

.modal-heading p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   DIFFICULTY
========================================================= */

.difficulty-list {
    display: grid;
    gap: 11px;
}

.difficulty-card {
    display: grid;
    grid-template-columns: 84px 1fr 22px;
    align-items: center;
    gap: 14px;

    width: 100%;
    padding: 15px;

    text-align: left;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid var(--border);
    border-radius: 15px;

    cursor: pointer;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.difficulty-card:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: var(--border-strong);

    transform: translateX(4px);
}

.difficulty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 29px;
    padding: 5px 9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.07em;
}

.easy-badge {
    color: #aef0c9;
    background: rgba(94, 229, 155, 0.14);
}

.normal-badge {
    color: #a7d8ff;
    background: rgba(87, 183, 255, 0.14);
}

.hard-badge {
    color: #ffd19e;
    background: rgba(255, 170, 80, 0.14);
}

.brilliant-badge {
    color: #dfd1ff;
    background: rgba(169, 140, 255, 0.16);
}

.difficulty-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.difficulty-content strong {
    font-size: 15px;
}

.difficulty-content small {
    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.45;
}

.difficulty-arrow {
    color: var(--text-muted);

    font-size: 27px;
}

.brilliant-card {
    border-color: rgba(169, 140, 255, 0.22);

    background:
        linear-gradient(
            135deg,
            rgba(169, 140, 255, 0.09),
            rgba(255, 255, 255, 0.03)
        );
}


/* =========================================================
   MATCHMAKING
========================================================= */

.matchmaking-card {
    width: min(570px, 100%);
}

.matchmaking-state {
    text-align: center;
}

.matchmaking-state h3 {
    margin: 19px 0 8px;

    font-size: 21px;
}

.matchmaking-state > p {
    max-width: 430px;
    margin: 0 auto;

    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.65;
}

.search-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    height: 65px;
}

.search-animation span {
    width: 12px;
    height: 12px;

    background: var(--blue);

    border-radius: 50%;

    animation:
        searchingPulse 1.1s infinite ease-in-out;
}

.search-animation span:nth-child(2) {
    animation-delay: 0.14s;
}

.search-animation span:nth-child(3) {
    animation-delay: 0.28s;
}

.search-information {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;

    margin: 24px 0;
}

.search-information > div {
    display: flex;
    flex-direction: column;
    gap: 7px;

    padding: 14px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid var(--border);
    border-radius: 13px;
}

.search-information span {
    color: var(--text-muted);

    font-size: 12px;
}

.search-information strong {
    font-size: 18px;
}

.matchmaking-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin-top: 24px;
}

.primary-action-button,
.secondary-action-button,
.text-action-button {
    min-height: 46px;
    padding: 11px 16px;

    border-radius: 12px;

    font-weight: 850;

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition);
}

.primary-action-button {
    color: #07111c;

    background:
        linear-gradient(
            135deg,
            #75c9ff,
            #4ca8ff
        );

    border: 1px solid transparent;

    box-shadow:
        0 10px 28px rgba(54, 150, 255, 0.2);
}

.primary-action-button:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #8bd2ff,
            #62b5ff
        );
}

.secondary-action-button {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.055);

    border: 1px solid var(--border);
}

.secondary-action-button:hover {
    background: rgba(255, 255, 255, 0.085);
    border-color: var(--border-strong);

    transform: translateY(-1px);
}

.text-action-button {
    min-height: 38px;

    color: var(--text-muted);
    background: transparent;

    border: 0;
}

.text-action-button:hover {
    color: var(--text-primary);
}

.alone-symbol,
.player-found-symbol {
    display: grid;
    place-items: center;

    width: 72px;
    height: 72px;
    margin: 5px auto 0;

    border-radius: 50%;

    font-size: 34px;
    font-weight: 900;
}

.alone-symbol {
    color: var(--yellow);
    background: rgba(255, 209, 102, 0.1);

    border: 1px solid rgba(255, 209, 102, 0.18);
}

.player-found-symbol {
    color: var(--green);
    background: rgba(94, 229, 155, 0.1);

    border: 1px solid rgba(94, 229, 155, 0.18);

    box-shadow:
        0 0 34px rgba(94, 229, 155, 0.13);
}

.notification-option {
    margin-top: 20px;
    padding: 14px;

    text-align: left;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid var(--border);
    border-radius: 13px;
}

.notification-option label {
    display: flex;
    align-items: center;
    gap: 11px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.45;

    cursor: pointer;
}

.notification-option input {
    width: 17px;
    height: 17px;

    accent-color: var(--blue);
}


/* =========================================================
   GUIDE
========================================================= */

.guide-modal-card {
    width: min(650px, 100%);
}

.guide-content {
    display: grid;
    gap: 11px;
}

.guide-section {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 13px;

    padding: 14px;

    background: rgba(255, 255, 255, 0.032);

    border: 1px solid var(--border);
    border-radius: 14px;
}

.guide-number {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    color: #07111c;
    background: var(--blue);

    border-radius: 10px;

    font-size: 14px;
    font-weight: 950;
}

.guide-section h3 {
    margin: 1px 0 5px;

    font-size: 15px;
}

.guide-section p {
    margin: 0;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.6;
}

.full-width-button {
    width: 100%;
    margin-top: 18px;
}


/* =========================================================
   NOTIFICATION TOAST
========================================================= */

.notification-toast {
    position: fixed;
    right: 20px;
    bottom: 22px;

    z-index: 150;

    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;

    width: min(430px, calc(100% - 40px));
    padding: 13px;

    background:
        linear-gradient(
            145deg,
            rgba(21, 31, 45, 0.98),
            rgba(11, 17, 26, 0.98)
        );

    border: 1px solid rgba(94, 229, 155, 0.22);
    border-radius: 16px;

    box-shadow: var(--shadow-large);

    animation:
        toastIn 250ms ease;
}

.notification-toast-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    color: var(--green);
    background: rgba(94, 229, 155, 0.1);

    border-radius: 12px;

    font-size: 20px;
}

.notification-toast-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.notification-toast-content strong {
    font-size: 14px;
}

.notification-toast-content span {
    color: var(--text-secondary);

    font-size: 12px;
}

.notification-toast button {
    min-height: 36px;
    padding: 7px 11px;

    color: #07111c;
    background: var(--green);

    border: 0;
    border-radius: 9px;

    font-size: 12px;
    font-weight: 900;

    cursor: pointer;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 52px;
    padding: 10px 18px;

    color: var(--text-muted);

    background:
        linear-gradient(
            to top,
            rgba(7, 10, 16, 0.92),
            transparent
        );

    font-size: 12px;
    font-weight: 700;
}

.footer-dot {
    opacity: 0.5;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes modalOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalCardIn {
    from {
        opacity: 0;

        transform:
            translateY(16px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes searchingPulse {
    0%,
    80%,
    100% {
        opacity: 0.25;

        transform:
            translateY(0)
            scale(0.82);
    }

    40% {
        opacity: 1;

        transform:
            translateY(-8px)
            scale(1);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;

        transform:
            translateY(18px)
            scale(0.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 720px) {
    .topbar {
        min-height: 66px;
        padding: 12px 14px;
    }

    .topbar-button-text {
        display: none;
    }

    .anonymous-status {
        font-size: 12px;
    }

    .homepage {
        padding:
            90px
            15px
            78px;
    }

    .brand {
        flex-direction: column;
        gap: 10px;
    }

    .brand-content {
        text-align: center;
    }

    .brand-symbol {
        width: 72px;
        height: 72px;
    }

    .brand-symbol-center {
        width: 21px;
        height: 21px;
    }

    .ray-top,
    .ray-bottom {
        height: 25px;
    }

    .ray-left,
    .ray-right {
        width: 25px;
    }

    .brand-name {
        font-size: clamp(44px, 16vw, 64px);
    }

    .hero-description {
        margin-bottom: 26px;

        font-size: 15px;
    }

    .main-action-button {
        grid-template-columns: 50px 1fr 19px;

        min-height: 84px;
        padding: 14px;
    }

    .action-icon {
        width: 49px;
        height: 49px;

        border-radius: 14px;

        font-size: 23px;
    }

    .action-title {
        font-size: 17px;
    }

    .action-description {
        font-size: 12px;
    }

    .quick-info {
        align-items: stretch;
    }

    .quick-info-item {
        min-width: 0;
        flex: 1;
    }

    .quick-info-divider {
        margin: 0 7px;
    }

    .quick-info-value {
        font-size: 12px;
    }

    .quick-info-label {
        font-size: 10px;
    }

    .modal-overlay {
        align-items: end;

        padding: 10px;
    }

    .modal-card {
        width: 100%;
        max-height: 92vh;

        padding: 22px 16px;

        border-radius:
            24px
            24px
            15px
            15px;
    }

    .modal-heading {
        gap: 11px;
    }

    .modal-icon {
        width: 46px;
        height: 46px;

        border-radius: 14px;
    }

    .modal-heading h2 {
        font-size: 20px;
    }

    .difficulty-card {
        grid-template-columns: 74px 1fr 18px;

        gap: 10px;
        padding: 13px 11px;
    }

    .difficulty-content small {
        font-size: 11px;
    }

    .notification-toast {
        right: 12px;
        bottom: 62px;

        width: calc(100% - 24px);

        grid-template-columns: 38px 1fr;
    }

    .notification-toast button {
        grid-column: 1 / -1;

        width: 100%;
    }
}

@media (max-width: 430px) {
    .anonymous-status span:last-child {
        max-width: 110px;

        overflow: hidden;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .quick-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 11px;

        padding: 14px;

        background: rgba(255, 255, 255, 0.025);

        border: 1px solid var(--border);
        border-radius: 15px;
    }

    .quick-info-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .difficulty-card {
        grid-template-columns: 1fr 22px;
    }

    .difficulty-badge {
        grid-column: 1 / -1;

        justify-self: start;
    }

    .search-information {
        grid-template-columns: 1fr;
    }

    .guide-section {
        grid-template-columns: 31px 1fr;

        padding: 12px;
    }

    .guide-number {
        width: 30px;
        height: 30px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}
