:root {
    --pink: #ff3b7a;
    --sun: #ffe14a;
    --leaf: #087043;
    --ink: #1c1216;
    --cream: #fff8f3;
    --display: "Baloo 2", "Trebuchet MS", sans-serif;
    --sans: "Manrope", "Segoe UI", sans-serif;
}

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

[hidden] {
    display: none !important;
}

body {
    background: #ffe8d8;
    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(--cream);
}

.sky {
    position: relative;
    padding: 28px 20px 56px;
    overflow: hidden;
    border-radius: 0 0 36px 36px;
    background: var(--pink);
    color: var(--ink);
}

.sky::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -36px;
    top: -48px;
    border-radius: 50%;
    background: var(--sun);
}

.sky::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    left: -18px;
    bottom: 18px;
    border-radius: 50%;
    background: var(--leaf);
}

.flTywP {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.userImg {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 28px;
    border: 4px solid white;
    background: #ffd0e0;
}

.account {
    max-width: 100%;
    margin-top: 12px;
    font-family: var(--display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ins_btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    margin-top: 12px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--ink);
    color: white;
    font-size: 14px;
    font-weight: 700;
}

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

.rtp {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: -32px 16px 0;
}

.rtp-item {
    padding: 14px 12px 12px;
    border-radius: 18px;
}

.rtp-item--sun {
    background: var(--sun);
    border-radius: 18px 18px 6px 18px;
}

.rtp-item--leaf {
    background: var(--leaf);
    color: white;
    border-radius: 18px 18px 18px 6px;
}

.rtp-item > div:last-child {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
}

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

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

@keyframes bump {
    0% { transform: translateY(6px); }
    100% { transform: none; }
}

.sheet {
    padding: 22px 16px 36px;
}

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

.logoFrame {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    max-width: 230px;
    overflow: hidden;
    border-radius: 18px;
    line-height: 0;
    background: white;
    animation: tropical-pop 1.3s ease-in-out infinite;
}
.logoFrame::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 42%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    animation: tropical-sheen 1.4s linear infinite;
}
.currentLogo {
    height: 66px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    cursor: pointer;
}
@keyframes tropical-pop {
    0%, 100% { transform: rotate(-7deg); box-shadow: 6px 6px 0 var(--pink); }
    50% { transform: rotate(7deg) translateY(-8px); box-shadow: 10px 12px 0 var(--leaf); }
}
@keyframes tropical-sheen {
    from { transform: translateX(-140%); }
    to { transform: translateX(340%); }
}

.platformName {
    min-width: 0;
    font-family: var(--display);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

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

.inviteLabel {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #8a6670;
}

.inviteLine {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 54px;
    padding: 8px 8px 8px 14px;
    border-radius: 16px;
    background: white;
}

.inviteCode {
    min-width: 0;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.04em;
    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;
    cursor: pointer;
    font-weight: 800;
}

.copyBtn {
    flex-shrink: 0;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--sun);
    color: var(--ink);
    font-size: 13px;
}

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

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

.openLinkBtn {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    background: var(--ink);
    color: white;
    font-size: 16px;
}

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

.links {
    margin-top: 26px;
}

.cardHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

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

.cardTitle {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 800;
}

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

.link-list__empty {
    padding: 16px 4px;
    color: #8a6670;
    font-weight: 600;
}

.link-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: white;
    color: var(--ink);
}

.link-item__thumb {
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: 14px;
    background: #ffe1ea;
}

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

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

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

.link-item__name {
    min-width: 0;
    font-size: 15px;
    font-weight: 800;
    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: 999px;
    background: var(--pink);
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
}

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

.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.65;
}

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

.toast {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 10;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--ink);
    color: white;
    font-size: 14px;
    font-weight: 700;
}

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

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

