.hyres-page {
    --hy-space-1: 6px;
    --hy-space-2: 10px;
    --hy-space-3: 14px;
    --hy-space-4: 18px;
    --hy-space-5: 26px;
    --hy-radius-sm: 12px;
    --hy-radius-md: 16px;
    --hy-radius-lg: 22px;
    --hy-focus-ring: rgba(248, 192, 94, 0.24);
    --hy-focus-line: #f3cf89;
    --hy-focus-inner: rgba(45, 212, 191, 0.16);
    --hy-border-soft: rgba(148, 163, 184, 0.26);
    --hy-bg-panel: rgba(12, 20, 40, 0.78);
    --hy-bg-panel-strong: rgba(5, 12, 29, 0.88);
    max-width: 1240px;
    margin: 0 auto;
    padding: 1.35rem 1rem 2.7rem;
}

.hyres-page :is(a, button, input, select) {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.hyres-page :is(a, button, input, select):focus-visible {
    outline: 2px solid var(--hy-focus-line);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px var(--hy-focus-ring), 0 0 0 6px var(--hy-focus-inner);
}

.hyres-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: var(--hy-radius-lg);
    background:
        radial-gradient(circle at 84% 18%, rgba(94, 234, 212, 0.12), transparent 34%),
        radial-gradient(circle at 12% 88%, rgba(251, 191, 36, 0.1), transparent 42%),
        linear-gradient(132deg, rgba(8, 15, 34, 0.96), rgba(13, 27, 52, 0.93) 52%, rgba(30, 41, 59, 0.86));
    padding: calc(var(--hy-space-4) + 2px) var(--hy-space-4) calc(var(--hy-space-4) + 4px);
    box-shadow: 0 14px 32px rgba(2, 6, 23, 0.32);
}

.hyres-hero::before,
.hyres-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hyres-hero::before {
    width: 320px;
    height: 320px;
    right: -120px;
    top: -145px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, rgba(251, 191, 36, 0) 68%);
}

.hyres-hero::after {
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 30%),
        repeating-linear-gradient(-25deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 11px);
    opacity: 0.22;
}

.hyres-hero h1 {
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: clamp(1.56rem, 2.08vw, 2.18rem);
    color: #f8e7be;
    -webkit-text-fill-color: #f8e7be;
    letter-spacing: 0.01em;
}

.hyres-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
    margin-bottom: 0.68rem;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.52);
    color: #d6e7ff;
    padding: 0.32rem 0.74rem;
    font-weight: 700;
    font-size: 0.71rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hyres-hero p {
    position: relative;
    z-index: 1;
    margin: var(--hy-space-3) 0 0;
    max-width: 800px;
    color: rgba(237, 245, 255, 0.95);
    line-height: 1.7;
    font-size: 0.96rem;
}

.hyres-hero-links {
    margin-top: var(--hy-space-4);
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hyres-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    position: relative;
    z-index: 1;
    padding: 0.5rem 0.86rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.68);
    color: #dbeafe;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    font-weight: 700;
    text-decoration: none;
}

.hyres-link-btn:hover {
    border-color: rgba(94, 234, 212, 0.64);
    color: #f8feff;
    background: rgba(30, 41, 59, 0.88);
    box-shadow: 0 6px 16px rgba(6, 95, 70, 0.2);
}

.hyres-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--hy-space-4);
    margin-top: var(--hy-space-3);
}

.hyres-grid--weapon {
    grid-template-columns: 1fr;
}

.hyres-panel {
    border: 1px solid var(--hy-border-soft);
    border-radius: var(--hy-radius-md);
    background:
        linear-gradient(160deg, rgba(8, 16, 36, 0.88), rgba(13, 24, 46, 0.8)),
        radial-gradient(circle at 84% 4%, rgba(45, 212, 191, 0.08), transparent 34%);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.28);
    overflow: hidden;
}

.hyres-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.94rem 1.02rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.15));
}

.hyres-panel-head h2,
.hyres-panel-head h3 {
    margin: 0;
    font-size: 1.08rem;
    color: #edf3ff;
    letter-spacing: 0.01em;
}

.hyres-panel-body {
    padding: 1.06rem;
}

.hyres-slot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.72rem;
}

.hyres-slot {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0.66rem;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    background: linear-gradient(140deg, rgba(7, 14, 30, 0.76), rgba(15, 23, 42, 0.58));
    padding: 0.56rem;
}

.hyres-slot-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.33);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.52));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.hyres-slot-icon img {
    width: 42px;
    height: 42px;
    image-rendering: pixelated;
}

.hyres-slot-icon.is-placeholder img,
.hyres-slot-icon img.is-placeholder {
    filter: grayscale(1) saturate(0.35) brightness(0.62);
    opacity: 0.7;
}

.hyres-slot-icon.is-placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.26));
    pointer-events: none;
}

.hyres-slot-icon.is-empty {
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.42);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.52), rgba(15, 23, 42, 0.46));
}

.hyres-slot-icon.is-empty img,
.hyres-slot-icon img.is-empty {
    opacity: 0;
}

.hyres-slot-icon.is-empty::after {
    content: " ";
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(15, 23, 42, 0.7);
}

.hyres-slot-meta {
    min-width: 0;
}

.hyres-slot-label {
    display: block;
    font-size: 0.77rem;
    color: #d4e2f3;
    margin-bottom: 0.24rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.045em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hyres-slot input[type="text"],
.hyres-slot select,
.hyres-simple-select,
.hyres-simple-input,
.hyres-simple-range {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.46);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.76);
    color: #f8fafc;
    padding: 0.52rem 0.58rem;
    font-size: 0.9rem;
    outline: none;
}

.hyres-simple-range {
    padding: 0.2rem 0;
    background: transparent;
    border: none;
}

.hyres-slot input:focus,
.hyres-slot select:focus,
.hyres-simple-select:focus,
.hyres-simple-input:focus {
    border-color: rgba(94, 234, 212, 0.6);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

.hyres-slot-clear {
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 10px;
    background: rgba(127, 29, 29, 0.18);
    color: #ffe0e0;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.42rem 0.62rem;
    cursor: pointer;
    min-height: 36px;
}

.hyres-slot-clear:hover {
    background: rgba(127, 29, 29, 0.34);
    border-color: rgba(248, 113, 113, 0.72);
}

.hyres-slot-clear:active {
    transform: translateY(1px);
}

.hyres-drop {
    position: absolute;
    left: 64px;
    right: 8px;
    top: calc(100% - 4px);
    display: none;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid rgba(251, 191, 36, 0.45);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.98);
    z-index: 15;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    scrollbar-gutter: stable;
}

.hyres-drop.is-open {
    display: block;
}

.hyres-drop-btn {
    width: 100%;
    border: none;
    background: transparent;
    color: #e2e8f0;
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 0.5rem;
    align-items: center;
    text-align: left;
    padding: 0.48rem 0.58rem;
    cursor: pointer;
}

.hyres-drop-btn:hover {
    background: rgba(30, 41, 59, 0.75);
}

.hyres-drop-btn.is-active,
.hyres-drop-btn[aria-selected="true"] {
    background: rgba(59, 130, 246, 0.24);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.45);
}

.hyres-drop-btn img {
    width: 30px;
    height: 30px;
    image-rendering: pixelated;
}

.hyres-drop-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
}

.hyres-drop-meta {
    color: #94a3b8;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
}

.hyres-actions {
    margin-top: var(--hy-space-3);
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hyres-btn {
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.7));
    color: #e6edf8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
    padding: 0.56rem 0.84rem;
    cursor: pointer;
    min-height: 38px;
}

.hyres-btn:hover {
    border-color: rgba(94, 234, 212, 0.56);
    color: #f6fdff;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 118, 110, 0.2);
}

.hyres-btn:active {
    transform: translateY(1px);
}

.hyres-btn--accent {
    border-color: rgba(251, 191, 36, 0.48);
    background: linear-gradient(180deg, rgba(120, 53, 15, 0.5), rgba(120, 53, 15, 0.3));
    color: #fee8b6;
}

.hyres-presets {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.hyres-preset-btn {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.6);
    color: #dbeafe;
    font-size: 0.73rem;
    padding: 0.36rem 0.7rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.hyres-preset-btn:hover {
    border-color: rgba(251, 191, 36, 0.52);
    color: #fff8dc;
    transform: translateY(-1px);
}

.hyres-preset-btn:active {
    transform: translateY(1px);
}

.hyres-stat-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.hyres-stat-card {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: linear-gradient(170deg, rgba(2, 6, 23, 0.58), rgba(15, 23, 42, 0.45));
    padding: 0.68rem 0.76rem;
}

.hyres-stat-label {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hyres-stat-value {
    margin-top: 0.34rem;
    font-size: 1.18rem;
    font-weight: 900;
    color: #f8fafc;
}

.hyres-stat-value.is-positive {
    color: #4ade80;
}

.hyres-stat-value.is-accent {
    color: #fcd34d;
}

.hyres-res-list {
    margin-top: 0.95rem;
    display: grid;
    gap: 0.5rem;
}

.hyres-res-row {
    display: grid;
    grid-template-columns: 120px 1fr 58px;
    gap: 0.5rem;
    align-items: center;
}

.hyres-res-name {
    font-size: 0.81rem;
    color: #cbd5e1;
}

.hyres-res-bar {
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.hyres-res-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
}

.hyres-res-val {
    text-align: right;
    font-size: 0.8rem;
    color: #93c5fd;
    font-weight: 700;
}

.hyres-sim-box {
    margin-top: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 16px;
    background:
        radial-gradient(circle at 92% 10%, rgba(45, 212, 191, 0.12), transparent 38%),
        linear-gradient(140deg, rgba(30, 41, 59, 0.36), rgba(15, 23, 42, 0.56));
    padding: 0.85rem;
}

.hyres-sim-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.hyres-sim-kpi {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.58);
    padding: 0.52rem;
    text-align: center;
}

.hyres-sim-kpi-label {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.hyres-sim-kpi strong {
    display: block;
    margin-top: 0.15rem;
    color: #f8fafc;
    font-size: 1.18rem;
}

.hyres-note {
    margin-top: 0.6rem;
    color: #d2deee;
    font-size: 0.86rem;
    line-height: 1.5;
}

.hyres-weapon-compare {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(136px, 15vw, 172px) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: stretch;
}

.hyres-vs-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.95rem;
    color: #f8e7be;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.74), rgba(15, 23, 42, 0.74));
    padding: 0.55rem;
    min-width: 0;
}

.hyres-vs-tag--actions {
    align-self: stretch;
}

.hyres-vs-core {
    width: min(100%, 154px);
    margin: 0 auto;
    display: grid;
    gap: 0.52rem;
    align-items: center;
    justify-items: center;
}

.hyres-vs-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.44);
    background: rgba(120, 53, 15, 0.24);
    color: #fde8bb;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
}

.hyres-vs-actions {
    width: 100%;
    margin-top: 0;
    display: grid;
    gap: 0.45rem;
}

.hyres-vs-actions .hyres-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.42rem;
    border-radius: 12px;
    padding: 0.5rem 0.62rem;
    min-height: 38px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.82rem;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
}

.hyres-vs-actions .hyres-btn span:not([aria-hidden="true"]) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hyres-vs-actions .hyres-btn span[aria-hidden="true"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 22px;
    padding: 0 0.34rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    background: rgba(2, 6, 23, 0.44);
    color: #c7d9f2;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hyres-weapon-card {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background:
        linear-gradient(165deg, rgba(2, 6, 23, 0.6), rgba(15, 23, 42, 0.46)),
        radial-gradient(circle at 92% 10%, rgba(251, 191, 36, 0.07), transparent 38%);
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.hywc-identity {
    margin-bottom: 0.58rem;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.34);
    padding: 0.52rem 0.56rem;
}

.hywc-identity strong {
    display: block;
    margin: 0 0 0.35rem;
    color: #f4f8ff;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.hywc-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.36rem;
}

.hywc-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.24rem 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.33);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    color: #d9e5f7;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.hywc-chip span {
    color: #f8e7be;
}

.hywc-attack-picker {
    margin-bottom: 0.5rem;
    align-items: center;
    justify-content: space-between;
}

.hywc-attack-picker .hyres-small {
    color: #dde8f8;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
}

.hywc-attack-picker .hyres-simple-select {
    min-width: 0;
    flex: 1;
}

.hywc-attack-meta {
    margin-bottom: 0.56rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.34);
    padding: 0.5rem 0.56rem;
}

.hywc-attack-type {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    color: #d5e3f7;
    font-size: 0.79rem;
    font-weight: 700;
}

.hywc-attack-type strong {
    color: #f9e8c2;
    font-size: 0.86rem;
    font-weight: 800;
}

.hywc-attack-desc {
    display: block;
    margin-top: 0.34rem;
    color: #eff5ff;
    font-size: 0.88rem;
    line-height: 1.46;
}

.hyres-weapon-card .hyres-slot {
    margin-bottom: 0.6rem;
}

.hyres-weapon-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: auto;
}

.hyres-metric {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 0.52rem;
    background: rgba(15, 23, 42, 0.56);
}

.hyres-metric small {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
}

.hyres-metric strong {
    display: block;
    margin-top: 0.17rem;
    color: #f8fafc;
    font-size: 1.15rem;
    font-weight: 900;
}

.hyres-metric.is-win strong {
    color: #4ade80;
}

.hyres-metric.is-lose strong {
    color: #f87171;
}

.hyres-rank-table {
    margin-top: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    overflow: hidden;
}

.hyres-rank-row {
    display: grid;
    grid-template-columns: 55px 44px minmax(0, 1fr) 86px 86px;
    gap: 0.45rem;
    align-items: center;
    padding: 0.48rem 0.62rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.45);
}

.hyres-rank-row:last-child {
    border-bottom: none;
}

.hyres-rank-row button {
    border: none;
    background: transparent;
    color: #e2e8f0;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hyres-rank-row button:hover {
    color: #fde68a;
}

.hyres-rank-icon {
    width: 30px;
    height: 30px;
    image-rendering: pixelated;
}

.hyres-rank-num {
    color: #fcd34d;
    font-weight: 800;
    font-size: 0.82rem;
}

.hyres-rank-cell {
    font-size: 0.76rem;
    color: #dbeafe;
    text-align: right;
}

.hyres-win {
    color: #4ade80 !important;
}

.hyres-lose {
    color: #f87171 !important;
}

.hyres-metric.is-win {
    border-color: rgba(74, 222, 128, 0.55);
    background: rgba(5, 46, 22, 0.38);
}

.hyres-metric.is-lose {
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(69, 10, 10, 0.34);
}

.hyres-metric.is-equal-hidden {
    display: none;
}

.hyres-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
    align-items: center;
}

.hyres-filters .hyres-simple-select {
    width: auto;
    min-width: 164px;
}

.hyres-small {
    font-size: 0.8rem;
    color: #b8c7db;
}

.hyres-guide {
    margin-top: var(--hy-space-3);
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: rgba(15, 23, 42, 0.5);
    color: #e2edf9;
    border-radius: 14px;
    padding: 0.65rem 0.76rem;
    font-size: 0.84rem;
    line-height: 1.5;
}

.hyres-guide--warn {
    border-color: rgba(251, 191, 36, 0.52);
    background: rgba(120, 53, 15, 0.26);
    color: #ffe1a5;
}

.hyres-guide[hidden] {
    display: none !important;
}

.hyres-ux-toolbar {
    margin-top: var(--hy-space-2);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.hyres-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.56);
    padding: 0.38rem 0.66rem;
    color: #e2edf9;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.hyres-toggle input {
    accent-color: #fbbf24;
}

.hyres-toast {
    position: fixed;
    left: 50%;
    bottom: 1.1rem;
    transform: translate(-50%, 14px);
    border: 1px solid rgba(148, 163, 184, 0.56);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.92);
    color: #e8f3ff;
    padding: 0.48rem 0.85rem;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    z-index: 70;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hyres-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hyres-note--noscript {
    margin-top: var(--hy-space-3);
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: var(--hy-radius-sm);
    background: rgba(120, 53, 15, 0.18);
    padding: 0.65rem 0.72rem;
}

.hyres-seo {
    margin-top: 1.2rem;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 16px;
    background:
        linear-gradient(150deg, rgba(8, 16, 36, 0.82), rgba(15, 23, 42, 0.66)),
        radial-gradient(circle at 10% 10%, rgba(94, 234, 212, 0.07), transparent 36%);
    padding: 0.95rem 1rem;
    content-visibility: auto;
    contain-intrinsic-size: 1px 340px;
}

.hyres-seo h2 {
    margin: 0;
    color: #f8e7be;
    font-size: 1.04rem;
    line-height: 1.4;
}

.hyres-seo p {
    margin: 0.62rem 0 0;
    color: #dbe7f7;
    font-size: 0.9rem;
    line-height: 1.72;
}

.hyres-seo h3 {
    margin: 0.95rem 0 0.35rem;
    color: #f8e7be;
    font-size: 0.96rem;
    line-height: 1.45;
}

.hyres-seo ul {
    margin: 0.48rem 0 0.4rem;
    padding-left: 1.05rem;
    color: #dbe7f7;
}

.hyres-seo li {
    margin: 0.24rem 0;
    line-height: 1.62;
    font-size: 0.88rem;
}

.hyres-seo strong {
    color: #f8f2df;
}

@keyframes hyresSwapFlash {
    0% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        transform: translateY(0);
    }
    45% {
        box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25), 0 12px 34px rgba(2, 132, 199, 0.18);
        transform: translateY(-2px);
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        transform: translateY(0);
    }
}

.hyres-weapon-card.is-swapped {
    animation: hyresSwapFlash 0.56s ease;
}

@media (prefers-reduced-motion: reduce) {
    .hyres-page * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1080px) {
    .hyres-grid {
        grid-template-columns: 1fr;
    }

    .hyres-weapon-compare {
        grid-template-columns: 1fr;
    }

    .hyres-vs-tag {
        height: auto;
    }

    .hyres-vs-core {
        width: 100%;
        max-width: 520px;
        grid-template-columns: auto 1fr;
        justify-items: stretch;
        align-items: center;
    }

    .hyres-vs-actions {
        grid-template-columns: 1fr 1fr;
        margin-top: 0;
    }
}

@media (max-width: 900px) {
    .hyres-vs-core {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .hyres-vs-tag--actions {
        position: sticky;
        bottom: 0.7rem;
        z-index: 28;
        border-color: rgba(251, 191, 36, 0.65);
        background: rgba(30, 41, 59, 0.88);
        backdrop-filter: blur(6px);
    }

    .hyres-vs-tag--actions>div {
        width: 100%;
    }

    .hyres-vs-actions {
        margin-top: 0.35rem;
        grid-template-columns: 1fr 1fr;
        gap: 0.48rem;
    }

    .hyres-vs-actions .hyres-btn {
        width: 100%;
        font-size: 0.78rem;
        min-height: 40px;
    }

    .hyres-vs-actions .hyres-btn span[aria-hidden="true"] {
        min-width: 36px;
        font-size: 0.62rem;
    }

    .hywc-chip {
        font-size: 0.73rem;
    }

    .hywc-identity strong {
        font-size: 0.95rem;
    }
}

@media (max-width: 680px) {
    .hyres-page {
        padding: 0.85rem 0.6rem 1.8rem;
    }

    .hyres-hero {
        padding: 1rem;
    }

    .hyres-panel-body,
    .hyres-panel-head {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hyres-stat-cards,
    .hyres-sim-row,
    .hyres-weapon-metrics {
        grid-template-columns: 1fr;
    }

    .hyres-res-row {
        grid-template-columns: 108px 1fr 58px;
        gap: 0.42rem;
    }

    .hyres-rank-row {
        grid-template-columns: 46px 34px minmax(0, 1fr) 62px;
    }

    .hyres-rank-row .hyres-rank-cell:nth-child(5) {
        display: none;
    }

    .hyres-slot {
        grid-template-columns: 50px 1fr auto;
    }

    .hyres-slot-icon,
    .hyres-slot-icon img {
        width: 36px;
        height: 36px;
    }

    .hyres-filters .hyres-simple-select {
        min-width: 100%;
    }

    .hywc-attack-picker {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
    }

    .hywc-attack-picker .hyres-small {
        white-space: normal;
    }

    .hywc-attack-desc {
        font-size: 0.84rem;
    }

    .hyres-ux-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .hyres-toggle {
        justify-content: space-between;
    }

    .hyres-toast {
        width: calc(100% - 1.2rem);
        max-width: 440px;
        border-radius: 12px;
        text-align: center;
    }

    .hyres-seo {
        padding: 0.82rem 0.78rem;
    }

    .hyres-seo h2 {
        font-size: 0.97rem;
    }

    .hyres-seo p {
        font-size: 0.87rem;
        line-height: 1.65;
    }
}
