.rt-le-page { padding-bottom: 70px; transition: filter .3s ease; }
html.rt-gate { overflow: hidden; }
html.rt-gate .rt-le-page { filter: blur(7px); pointer-events: none; user-select: none; }

.rt-le-hero {
    width: 100%; padding: 84px 20px 110px; margin-bottom: -48px; text-align: center; color: #fff;
    background-color: #0F1F2E;
    background-image: linear-gradient(to right, rgba(15, 31, 46, .93), rgba(15, 31, 46, .88)), url('/assets/images/banner/banner.webp');
    background-size: cover; background-position: center;
}
[data-theme="dark"] .rt-le-hero {
    background-color: #050505;
    background-image: linear-gradient(to right, rgba(0, 0, 0, .9), rgba(0, 0, 0, .86)), url('/assets/images/banner/banner-dark.webp');
}
.rt-le-hero h1 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.3; color: #fff; }
.rt-le-hero h1 .rt-hl { color: #4ADE80; }
.rt-le-hero p { max-width: 650px; margin: 0 auto; font-size: 15px; line-height: 1.8; color: #E2E8F0; }

.rt-le-container { position: relative; z-index: 5; max-width: 1140px; margin: 0 auto; padding: 0 32px; }

.rt-le-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.rt-le-welcome {
    display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 10px; background: var(--rt-card-bg);
    border: 1px solid var(--rt-border); border-radius: 40px; box-shadow: 0 8px 24px rgba(15, 31, 46, .08);
}
.rt-le-welcome[hidden] { display: none; }
.rt-le-avatar { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; background: var(--rt-accent); border-radius: 50%; }
.rt-le-welcome span { font-size: 13.5px; font-weight: 600; color: var(--rt-text-main); }
.rt-le-welcome b { color: var(--rt-accent); }
.rt-le-welcome button {
    padding: 6px 14px; font-family: inherit; font-size: 12px; font-weight: 700; color: var(--rt-text-main);
    background: var(--bg); border: 1px solid var(--rt-border); border-radius: 20px; cursor: pointer; transition: var(--rt-ease, all .25s ease);
}
.rt-le-welcome button:hover { color: var(--rt-accent); border-color: var(--rt-accent); }

.rt-le-progress { flex: 1 1 260px; max-width: 360px; padding: 12px 16px; background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 16px; box-shadow: 0 8px 24px rgba(15, 31, 46, .06); }
.rt-le-progress strong { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; color: var(--rt-text-main); }
.rt-le-track { height: 8px; background: var(--rt-tint); border-radius: 10px; overflow: hidden; }
.rt-le-bar { height: 100%; width: 0; background: var(--rt-accent); border-radius: 10px; transition: width .5s ease; }

.rt-le-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.rt-le-card {
    position: relative; display: flex; flex-direction: column; padding: 30px; background: var(--rt-card-bg);
    border: 1px solid var(--rt-border); border-radius: 20px; box-shadow: var(--rt-card-shadow, 0 4px 20px rgba(15, 31, 46, .05)); transition: var(--rt-ease, all .3s ease);
}
.rt-le-card.is-open:hover, .rt-le-card.is-done:hover { border-color: var(--rt-accent); transform: translateY(-6px); box-shadow: 0 14px 32px rgba(22, 163, 74, .14); }
.rt-le-card.is-locked .rt-le-icon, .rt-le-card.is-locked h2, .rt-le-card.is-locked p, .rt-le-card.is-locked .rt-le-stats { opacity: .62; }

.rt-le-icon {
    width: 54px; height: 54px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--rt-accent); background: var(--rt-tint); border-radius: 14px; transition: var(--rt-ease, all .3s ease);
}
.rt-le-card.is-locked .rt-le-icon { color: var(--rt-text-muted); background: rgba(100, 116, 139, .1); }
.rt-le-card.is-open:hover .rt-le-icon, .rt-le-card.is-done:hover .rt-le-icon { color: #fff; background: var(--rt-accent); }

.rt-le-badge {
    position: absolute; top: 30px; inset-inline-end: 30px; display: flex; align-items: center; gap: 6px; padding: 5px 13px;
    font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; border-radius: 20px;
}
.rt-le-badge-open { color: var(--rt-accent); background: rgba(22, 163, 74, .1); border: 1px solid rgba(22, 163, 74, .22); }
.rt-le-badge-locked { color: var(--rt-text-muted); background: rgba(100, 116, 139, .1); border: 1px solid var(--rt-border); }
.rt-le-badge-done { color: #2563EB; background: rgba(37, 99, 235, .1); border: 1px solid rgba(37, 99, 235, .22); }

.rt-le-card h2 { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -.2px; color: var(--rt-text-main); }
.rt-le-card p { flex-grow: 1; margin: 0 0 20px; font-size: 13.5px; line-height: 1.7; color: var(--rt-text-muted); }

.rt-le-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; padding-top: 16px; border-top: 1px solid var(--rt-border); }
.rt-le-stats span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--rt-text-main); white-space: nowrap; }
.rt-le-stats i { font-size: 12px; color: var(--rt-accent); }
.rt-le-card.is-locked .rt-le-stats i { color: var(--rt-text-muted); }

.rt-le-best { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; font-weight: 700; color: #2563EB; }
.rt-le-best[hidden] { display: none; }

.rt-le-btn {
    margin-top: 18px; padding: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none; color: var(--rt-text-main); background: var(--bg); border: 1px solid var(--rt-border); border-radius: 12px; transition: var(--rt-ease, all .3s ease);
}
.rt-le-card.is-open:hover .rt-le-btn, .rt-le-card.is-done:hover .rt-le-btn { color: #fff; background: var(--rt-accent); border-color: var(--rt-accent); box-shadow: 0 6px 15px rgba(22, 163, 74, .22); }
.rt-le-card.is-locked .rt-le-btn { color: var(--rt-text-muted); background: rgba(100, 116, 139, .05); border-style: dashed; cursor: not-allowed; }
.rt-le-btn:focus-visible { outline: 3px solid rgba(22, 163, 74, .4); outline-offset: 3px; }

.rt-le-about { max-width: 1140px; margin: 50px auto 0; padding: 0 32px; }
.rt-le-about-card { padding: 26px 30px; text-align: center; background: var(--rt-card-bg); border: 2px dashed var(--rt-border); border-radius: 16px; }
.rt-le-about-card h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--rt-accent); }
.rt-le-about-card p { margin: 0; font-size: 13.5px; line-height: 1.8; color: var(--rt-text-muted); }
.rt-le-about-card strong { color: var(--rt-text-main); }

.rt-gate-back { position: fixed; inset: 0; z-index: 100002; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 18, 28, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html.rt-gate .rt-gate-back { display: flex; animation: rtGateIn .3s ease; }
@keyframes rtGateIn { from { opacity: 0; } to { opacity: 1; } }

.rt-gate-box {
    position: relative; display: flex; flex-direction: column; width: 100%; max-width: 440px; padding: 36px 34px 28px; overflow: hidden;
    background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); box-sizing: border-box;
}
.rt-gate-box::before {
    content: ''; position: absolute; top: -90px; left: 50%; width: 320px; height: 220px; transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(closest-side, rgba(22, 163, 74, .22), transparent);
}
.rt-gate-x {
    position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 14px;
    color: var(--rt-text-muted); background: var(--bg); border: 1px solid var(--rt-border); border-radius: 50%; cursor: pointer; transition: var(--rt-ease, all .25s ease);
}
.rt-gate-x[hidden] { display: none; }
.rt-gate-x:hover { color: #fff; background: var(--rt-accent); border-color: var(--rt-accent); }

.rt-gate-top { position: relative; text-align: center; margin-bottom: 26px; }
.rt-gate-ico {
    width: 64px; height: 64px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff;
    background: linear-gradient(135deg, #22C55E, #15803D); border-radius: 20px; box-shadow: 0 14px 30px rgba(22, 163, 74, .35);
}
.rt-gate-box h2 { margin: 0 0 8px; font-size: 24px; font-weight: 800; letter-spacing: -.3px; color: var(--rt-text-main); }
.rt-gate-top p { max-width: 310px; margin: 0 auto; font-size: 14px; line-height: 1.7; color: var(--rt-text-muted); }

.rt-gate-fields { position: relative; }
.rt-gate-field { margin-bottom: 16px; }
.rt-gate-field label { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .2px; color: var(--rt-text-main); }
.rt-gate-input { position: relative; }
.rt-gate-input i { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); font-size: 15px; color: var(--rt-text-muted); transition: color .25s; pointer-events: none; }
.rt-gate-input input {
    width: 100%; height: 54px; padding: 0 16px; padding-inline-start: 46px; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--rt-text-main);
    background: var(--bg); border: 1.5px solid var(--rt-border); border-radius: 14px; outline: none; transition: var(--rt-ease, all .25s ease); box-sizing: border-box;
}
.rt-gate-input input::placeholder { color: var(--rt-text-muted); opacity: .75; }
.rt-gate-input input:focus { background: var(--rt-card-bg); border-color: var(--rt-accent); box-shadow: 0 0 0 4px rgba(22, 163, 74, .13); }
.rt-gate-input:focus-within i { color: var(--rt-accent); }
.rt-gate-input input[type="number"] { -moz-appearance: textfield; }
.rt-gate-input input::-webkit-outer-spin-button, .rt-gate-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.rt-gate-error { min-height: 18px; margin: -4px 0 0; font-size: 12.5px; font-weight: 600; color: #DC2626; }

.rt-gate-bottom { position: relative; margin-top: 10px; }
.rt-gate-start {
    width: 100%; height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; font-size: 15.5px; font-weight: 700;
    color: #fff; background: linear-gradient(135deg, #22C55E, #16A34A); border: none; border-radius: 14px; cursor: pointer; box-shadow: 0 12px 26px rgba(22, 163, 74, .3); transition: var(--rt-ease, all .25s ease);
}
.rt-gate-start:hover { filter: brightness(1.06); box-shadow: 0 16px 32px rgba(22, 163, 74, .4); transform: translateY(-1px); }
.rt-gate-start:active { transform: translateY(0); }
.rt-gate-start i { font-size: 13px; }

.rt-gate-note {
    display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 12px 14px; text-align: start;
    background: var(--rt-tint); border: 1px solid rgba(22, 163, 74, .16); border-radius: 14px;
}
.rt-gate-note i { flex-shrink: 0; margin-top: 2px; font-size: 16px; color: var(--rt-accent); }
.rt-gate-note span { font-size: 12px; line-height: 1.6; color: var(--rt-text-muted); }
.rt-gate-note b { color: var(--rt-text-main); font-weight: 700; }

.rt-le-toast {
    position: fixed; left: 50%; bottom: 96px; z-index: 100003; padding: 12px 20px; font-size: 13.5px; font-weight: 600; color: var(--rt-text-main);
    background: var(--rt-card-bg); border: 1px solid var(--rt-border); border-radius: 14px; box-shadow: 0 14px 40px rgba(15, 31, 46, .25);
    opacity: 0; pointer-events: none; transform: translate(-50%, 14px); transition: all .35s ease; max-width: calc(100% - 32px); text-align: center;
}
.rt-le-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1024px) {
    .rt-le-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .rt-le-hero {
        padding: 52px 16px 84px; margin-bottom: -40px;
        background-image: linear-gradient(to right, rgba(15, 31, 46, .93), rgba(15, 31, 46, .88)), url('/assets/images/banner/m-light.webp');
    }
    [data-theme="dark"] .rt-le-hero { background-image: linear-gradient(to right, rgba(0, 0, 0, .9), rgba(0, 0, 0, .86)), url('/assets/images/banner/m-dark.webp'); }
    .rt-le-hero p { font-size: 14px; }
    .rt-le-container, .rt-le-about { padding-inline: 16px; }
    .rt-le-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .rt-le-card { padding: 22px; border-radius: 16px; }
    .rt-le-badge { top: 22px; inset-inline-end: 22px; }
    .rt-le-progress { max-width: none; flex-basis: 100%; }
    .rt-le-top { flex-direction: column; align-items: stretch; }
    .rt-le-welcome { justify-content: space-between; }
    .rt-gate-back { padding: 16px; }
    .rt-gate-box { height: 80vh; height: 80dvh; max-height: 80dvh; padding: 28px 20px 20px; border-radius: 24px; justify-content: space-between; }
    .rt-gate-top { margin-bottom: 0; }
    .rt-gate-fields { margin-block: auto; padding-block: 18px; }
    .rt-gate-bottom { margin-top: 0; }
    .rt-le-toast { bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
    .rt-le-page, .rt-le-bar, .rt-le-toast { transition: none; }
}

@media (max-width: 768px) and (max-height: 700px) {
    .rt-gate-box { padding: 20px 18px 16px; }
    .rt-gate-ico { width: 50px; height: 50px; margin-bottom: 12px; font-size: 20px; border-radius: 16px; }
    .rt-gate-box h2 { font-size: 21px; margin-bottom: 4px; }
    .rt-gate-top p { font-size: 13px; line-height: 1.55; }
    .rt-gate-fields { padding-block: 6px; }
    .rt-gate-error { min-height: 14px; margin-top: -6px; }
    .rt-gate-field label { margin-bottom: 6px; }
    .rt-gate-field { margin-bottom: 10px; }
    .rt-gate-input input, .rt-gate-start { height: 48px; }
    .rt-gate-note { margin-top: 10px; padding: 8px 12px; }
    .rt-gate-note span { font-size: 11.5px; line-height: 1.5; }
}