:root {
    --yellow: #ffe34d;
    --green: #0b7a3b;
    --green-deep: #064e26;
    --blue: #1d3c8c;
    --ink: #102216;
    --paper: #f4f1e4;
    --display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --sans: "Barlow", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

body {
    background: #e7efd8;
    color: var(--ink);
    font-family: var(--sans);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.page {
    max-width: 440px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--paper);
}

.jersey {
    padding: 22px 16px 18px;
    background:
            linear-gradient(var(--blue), var(--blue)) left bottom / 100% 5px no-repeat,
            linear-gradient(var(--green), var(--green));
    color: white;
}

.flTywP {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.userImg {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--yellow);
    background: var(--green-deep);
}

.player {
    min-width: 0;
}

.account {
    font-family: var(--display);
    font-size: 34px;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account::after {
    content: "";
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 6px;
    background: var(--yellow);
}

.ins_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    margin-top: 8px;
    padding: 0 10px;
    border-radius: 4px;
    background: var(--yellow);
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 700;
}

.ins_btn img {
    width: 14px;
    height: 14px;
}

.rtp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.rtp-item {
    padding-top: 12px;
}

.rtp-item + .rtp-item {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.rtp-item > div:last-child {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.rtp-number,
.onLineNumber {
    font-family: var(--display);
    font-size: 48px;
    font-weight: 800;
    line-height: 0.85;
    color: var(--yellow);
    font-variant-numeric: tabular-nums;
}

.rtp-number.is-rolling,
.onLineNumber.is-rolling {
    animation: flash 0.7s ease;
}

@keyframes flash {
    0% { color: white; }
    100% { color: var(--yellow); }
}

.sheet {
    padding: 18px 16px 32px;
}

.feature {
    padding-bottom: 4px;
}

.stage-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logoFrame {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    max-width: 220px;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--yellow);
    outline: 2px solid var(--green);
    outline-offset: 2px;
    line-height: 0;
    box-shadow: 4px 4px 0 var(--blue);
    animation: board-flash 1.1s ease-in-out infinite;
}
.logoFrame::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 30%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    animation: board-sweep 1.2s linear infinite;
}
.currentLogo {
    height: 62px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    cursor: pointer;
}
@keyframes board-flash {
    0%, 100% { filter: brightness(1); outline-color: var(--green); }
    50% { filter: brightness(1.45); outline-color: var(--yellow); }
}
@keyframes board-sweep {
    from { transform: translateX(-140%); }
    to { transform: translateX(420%); }
}

.platformName {
    min-width: 0;
    font-family: var(--display);
    font-size: 36px;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--green-deep);
    cursor: pointer;
}

.inviteRow {
    margin-top: 16px;
    cursor: pointer;
}

.inviteLabel {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
}

.inviteLine {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 52px;
    padding: 6px 6px 6px 12px;
    background: white;
    border-left: 6px solid var(--yellow);
    box-shadow: 0 1px 0 rgba(16, 34, 22, 0.08);
}

.inviteCode {
    min-width: 0;
    font-family: var(--display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--ink);
    user-select: all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copyBtn,
.openLinkBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.copyBtn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 12px;
    background: var(--yellow);
    color: var(--green-deep);
    font-size: 14px;
}

.copyBtn img {
    width: 14px;
    height: 14px;
    filter: brightness(0);
}

.openPlatform {
    display: block;
    margin-top: 12px;
}

.openLinkBtn {
    width: 100%;
    height: 50px;
    background: var(--green);
    color: white;
    font-size: 18px;
    font-family: var(--display);
    letter-spacing: 0.08em;
}

.openLinkBtn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.links {
    margin-top: 22px;
}

.cardHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--green);
}

.cardHeaderIcon {
    width: 18px;
    height: 18px;
    filter: brightness(0);
}

.cardTitle {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--green-deep);
}

.linkList {
    display: flex;
    flex-direction: column;
}

.link-list__empty {
    padding: 20px 0;
    color: #5d6b58;
    font-weight: 600;
}

.link-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(16, 34, 22, 0.12);
    color: var(--ink);
}

.link-item__thumb {
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 4px;
    background: #e5edd6;
}

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

.link-item__thumb--placeholder {
    border: 1px solid rgba(11, 122, 59, 0.3);
}

.link-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-item__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.link-item__name {
    min-width: 0;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.link-item__access {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    height: 26px;
    padding: 0 8px;
    border-radius: 4px;
    background: var(--blue);
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.link-item__access img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1);
}

.link-item__url-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.link-item__copy {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.link-item__copy img {
    width: 16px;
    height: 16px;
    display: block;
    filter: brightness(0);
    opacity: 0.7;
}

.link-item__url {
    min-width: 0;
    font-size: 12px;
    color: #667560;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toast {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    max-width: calc(100% - 32px);
    padding: 12px 14px;
    background: white;
    color: var(--green-deep);
    border-left: 6px solid var(--blue);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 360px) {
    .account,
    .platformName {
        font-size: 28px;
    }

    .rtp-number,
    .onLineNumber,
    .inviteCode {
        font-size: 28px;
    }
}

