.tr {
    --muted: #56625a;
    --card: #ffffff;
    --border: #e2e5dd;
}

.tr :is(h1, h2, h3, h4) {
    font-weight: 700;
}

.gr-livecard {
    display: none;
}

.tr-planner {
    padding: 48px 0 32px;
}

.tr-planner__head {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tr-planner__head h2 {
    font-size: 30px;
    line-height: 1.1;
}

.tr-sizes {
    margin: 4px calc(var(--gutter) * -1) 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px var(--gutter);
    scrollbar-width: none;
}

.tr-sizes::-webkit-scrollbar {
    display: none;
}

.tr-sizes[hidden] {
    display: none;
}

.tr-size {
    min-height: 44px;
    flex-shrink: 0;
    cursor: pointer;
    border: 1.5px solid #d5d9d1;
    border-radius: 999px;
    background: var(--card);
    padding: 0 16px;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
}

.tr-size:hover {
    border-color: var(--ink-2);
}

.tr-size[aria-pressed='true'] {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.tr-plan {
    padding: 8px 0 28px;
}

.tr-plan + .tr-plan {
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.tr-plan__label {
    margin-bottom: 14px;
    font-size: 20px;
}

.is-js .tr-plan + .tr-plan {
    border-top: 0;
    padding-top: 8px;
}

.is-js .tr-plan__label {
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.tr-plan[hidden] {
    display: none;
}

.tr-days {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0;
    list-style: none;
}

.tr-day {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--card);
}

.tr-day img {
    display: block;
    height: 170px;
    width: 100%;
    background: var(--green-700);
    object-fit: cover;
}

.tr-day__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
}

.tr-day__when {
    color: var(--gold-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tr-day h4 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.tr-day h4 a {
    color: inherit;
    text-decoration-color: rgb(20 35 26 / 30%);
    text-underline-offset: 3px;
}

.tr-day h4 a:hover {
    text-decoration-color: currentcolor;
}

.tr-day p {
    color: var(--ink-2);
    font-size: 15px;
}

.tr-plan__note {
    margin-top: 14px;
    color: var(--ink-2);
    font-size: 15px;
}

.tr-sample {
    background:
        var(--green-950) url('/marketing/img/homepage-v1/contours-dark.svg')
        center / cover no-repeat;
    padding: 56px 0;
    color: #fff;
}

.tr-sample__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tr-sample__copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tr-sample__copy h2 {
    max-width: 20ch;
    font-size: 30px;
    line-height: 1.1;
}

.tr-timeline {
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    list-style: none;
}

.tr-timeline li {
    display: flex;
    gap: 16px;
}

.tr-timeline__n {
    display: flex;
    height: 40px;
    width: 40px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-weight: 700;
}

.tr-timeline li > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--on-dark-muted);
}

.tr-timeline strong {
    color: #fff;
    font-size: 18px;
}

.tr-timeline a {
    color: #fff;
    text-decoration-color: rgb(255 255 255 / 40%);
    text-underline-offset: 3px;
}

.tr-board {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 20px;
    background: var(--card);
    padding: 20px;
    color: var(--ink);
    box-shadow: 0 20px 44px rgb(0 0 0 / 30%);
}

.tr-board__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tr-board__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--up);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.tr-board__live::before {
    content: '';
    height: 8px;
    width: 8px;
    border-radius: 999px;
    background: var(--up);
}

.tr-board .rail i {
    background: #c7cec4;
}

.tr-board .rail i.s {
    background: var(--up);
}

.tr-board .rail i.g {
    background: var(--gold);
}

.tr-board__rows {
    margin: 0;
    padding: 0;
    list-style: none;
    font-variant-numeric: tabular-nums;
}

.tr-board__row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
}

.tr-board__row:last-child {
    border-bottom: 0;
}

.tr-board__name {
    min-width: 0;
    flex-grow: 1;
    font-weight: 600;
}

.tr-board__skins {
    white-space: nowrap;
    font-weight: 700;
}

.tr-board__money {
    width: 52px;
    text-align: right;
    font-weight: 700;
}

.tr-board__money.is-up {
    color: var(--up);
}

.tr-board__money.is-down {
    color: #b42318;
}

.tr-board__row.is-rest .tr-board__name {
    color: var(--ink-2);
    font-weight: 400;
}

.tr-board__row.is-rest .tr-board__skins {
    color: var(--muted);
    font-weight: 400;
}

.tr-board__more {
    display: flex;
    height: 34px;
    width: 34px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--surface-2, #e9ede5);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.tr-crown {
    fill: var(--gold);
    vertical-align: -1px;
}

.tr-board__note {
    border-radius: 12px;
    background: #fff6d8;
    padding: 10px 12px;
    color: var(--gold-ink);
    font-size: 14px;
    font-weight: 600;
}

.tr-moments {
    padding: 48px 0 8px;
}

.tr-moments__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tr-moment {
    position: relative;
    margin: 0;
    height: 240px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--green-700);
}

.tr-moment img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.tr-moment figcaption {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: fit-content;
    border-radius: 12px;
    background: var(--ink);
    padding: 8px 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.tr-moment figcaption.is-tie {
    background: #fff6d8;
    color: var(--gold-ink);
    font-weight: 700;
}

.tr-org {
    padding: 40px 0 56px;
}

.tr-org h2 {
    margin-bottom: 16px;
    font-size: 30px;
}

.tr-org__grid {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.tr-org__grid li {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--card);
    padding: 20px;
}

.tr-org__grid h3 {
    font-size: 19px;
}

.tr-org__grid p {
    color: var(--ink-2);
}

.final--photo {
    position: relative;
    overflow: hidden;
    background: var(--green-950);
    padding: 72px 0;
}

.final--photo .final__bg {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 60% 75%;
}

.final--photo::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: '';
    background:
        linear-gradient(
            0deg,
            rgb(14 36 22 / 95%) 0%,
            rgb(14 36 22 / 70%) 60%,
            rgb(14 36 22 / 45%) 100%
        );
}

.final--photo .final__row {
    position: relative;
    z-index: 2;
    align-items: flex-start;
}

.final--photo h2 {
    max-width: 16ch;
    font-size: 32px;
    line-height: 1.1;
}

.final__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (min-width: 860px) {
    .gr-livecard {
        position: absolute;
        right: max(24px, calc(50% - 566px));
        bottom: 40px;
        z-index: 1;
        display: flex;
        width: 330px;
        flex-direction: column;
        gap: 8px;
        border: 1px solid rgb(255 255 255 / 40%);
        border-radius: 18px;
        background: rgb(14 36 22 / 50%);
        padding: 14px;
        font-size: 14px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        backdrop-filter: blur(10px);
        box-shadow: 0 18px 40px rgb(0 0 0 / 30%);
    }

    .gr-livecard__k {
        color: var(--on-dark-muted);
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .gr-livecard__row {
        display: flex;
        align-items: center;
        gap: 8px;
        border-radius: 10px;
        background: rgb(255 255 255 / 8%);
        padding: 8px 10px;
    }

    .gr-livecard__row b {
        margin-left: auto;
    }

    .gr-livecard__row.is-tie {
        background: rgb(232 177 15 / 20%);
    }

    .gr-livecard__row.is-tie b {
        color: var(--gold);
    }

    .gr-livecard__row.is-win {
        background: var(--ink);
    }

    .gr-livecard__row.is-win b {
        color: var(--up-on-dark);
    }

    .gr-livecard .avatar {
        height: 24px;
        width: 24px;
    }

    .tr-planner {
        padding: 72px 0 40px;
    }

    .tr-planner__head h2,
    .tr-sample__copy h2,
    .tr-org h2 {
        font-size: 36px;
    }

    .tr-sizes {
        margin: 4px 0 0;
        flex-wrap: wrap;
        overflow: visible;
        padding: 0;
    }

    .tr-days {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .tr-day img {
        height: 180px;
    }

    .tr-sample {
        padding: 72px 0;
    }

    .tr-sample__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 48px;
    }

    .tr-sample__copy {
        flex: 1 1 460px;
    }

    .tr-board {
        min-width: 340px;
        flex: 0 1 400px;
        padding: 22px;
    }

    .tr-moments {
        padding-top: 64px;
    }

    .tr-moments__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .tr-moment {
        height: 300px;
    }

    .tr-org {
        padding: 48px 0 72px;
    }

    .tr-org__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .final--photo {
        padding: 96px 0;
    }

    .final--photo::before {
        background:
            linear-gradient(
                90deg,
                rgb(14 36 22 / 95%) 0%,
                rgb(14 36 22 / 60%) 60%,
                rgb(14 36 22 / 30%) 100%
            );
    }

    .final--photo h2 {
        font-size: 40px;
    }
}
