:root {
    --sand: #f6e4bc;
    --sand-deep: #e8cf97;
    --sea: #085560;
    --sun: #ffc531;
    --ink: #1c2430;
    --cream: #fffaf1;
    --display: "Fredoka", "Trebuchet MS", sans-serif;
    --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

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

[hidden] {
    display: none !important;
}

body {
    background: var(--sand-deep);
    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(--sand);
}

.wave {
    height: 46px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='46'%3E%3Crect width='80' height='46' fill='%23ffffff'/%3E%3Ccircle cx='0' cy='46' r='16' fill='%23161616'/%3E%3Ccircle cx='40' cy='46' r='16' fill='%23161616'/%3E%3Ccircle cx='80' cy='46' r='16' fill='%23161616'/%3E%3Ccircle cx='20' cy='0' r='16' fill='%23161616'/%3E%3Ccircle cx='60' cy='0' r='16' fill='%23161616'/%3E%3C/svg%3E");
    background-size: 80px 46px;
}

.mast {
    padding: 18px 16px 0;
}

.flTywP {
    display: flex;
    align-items: center;
    gap: 14px;
}

.userImg {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid var(--sun);
    background: #fff;
}

.mast-copy {
    min-width: 0;
}

.account {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ins_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    margin-top: 8px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--sea);
    color: white;
    font-size: 13px;
    font-weight: 700;
}

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

.rtp {
    display: flex;
    flex-direction: column;
    margin: 16px 16px 0;
}

.rtp-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px dashed rgba(8, 85, 96, 0.28);
}

.rtp-item > div:last-child {
    font-size: 13px;
    font-weight: 700;
    color: #6a5b40;
    text-align: right;
}

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

.onLineNumber {
    color: #c48400;
}

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

@keyframes swell {
    0% { opacity: 0.35; }
    100% { opacity: 1; }
}

.kiosk {
    margin-top: 18px;
    padding: 20px 16px 18px;
    background:
            radial-gradient(circle at 100% 0, rgba(255, 197, 49, 0.28), transparent 36%),
            var(--sea);
    color: white;
}

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

.logoFrame {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    max-width: 230px;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid var(--sun);
    line-height: 0;
    animation: sun-float 1.4s ease-in-out infinite;
}
.logoFrame::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 244, 190, 0.95), transparent);
    animation: sun-sheen 1.6s linear infinite;
}
.currentLogo {
    height: 64px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    cursor: pointer;
}
@keyframes sun-float {
    0%, 100% { transform: translateY(0); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22), 0 0 6px rgba(255, 197, 49, 0.2); }
    50% { transform: translateY(-8px); box-shadow: 0 14px 0 rgba(0, 0, 0, 0.12), 0 0 22px rgba(255, 197, 49, 0.9); }
}
@keyframes sun-sheen {
    from { transform: translateX(-140%); }
    to { transform: translateX(300%); }
}

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

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

.inviteLabel {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.inviteStamp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 52px;
    padding: 6px 6px 6px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
}

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

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

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

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

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

.links {
    padding: 20px 16px 32px;
}

.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: 600;
    color: var(--sea);
}

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

.link-list__empty {
    padding: 12px 2px;
    color: #6a5b40;
    font-weight: 600;
}

.link-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--cream);
    color: var(--ink);
    box-shadow: 0 3px 0 rgba(8, 85, 96, 0.08);
}

.link-item__thumb {
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 12px;
    background: #f3e2b4;
}

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

.link-item__thumb--placeholder {
    border: 1px dashed rgba(8, 85, 96, 0.35);
}

.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: 700;
    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(--sea);
    color: white;
    font-size: 11px;
    font-weight: 700;
}

.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: #7a6c56;
    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 14px;
    border-radius: 12px;
    background: var(--sea);
    color: white;
    border-bottom: 4px solid var(--sun);
    font-size: 14px;
    font-weight: 700;
}

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

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

