
:root{
    --page-bg:#f6efe4;
    --card-bg:#fffaf3;
    --card-border:rgba(90, 48, 28, 0.1);
    --text-primary:#3a2418;
    --text-secondary:rgba(58, 36, 24, 0.72);
    --text-muted:rgba(58, 36, 24, 0.46);
    --petal:#f2b42a;
    --petal-deep:#e09a12;
    --blossom:#7a3b68;
    --leaf:#2f6a46;
    --bark:#3a2418;
    --link-item-bg:#fff7ec;
    --petal-gradient:linear-gradient(90deg, #f6c445 0%, #ffe7a8 100%);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body{
    background:
        radial-gradient(circle at 8% 0%, rgba(242, 180, 42, 0.55), transparent 32%),
        radial-gradient(circle at 100% 6%, rgba(122, 59, 104, 0.28), transparent 30%),
        radial-gradient(circle at 78% 100%, rgba(47, 106, 70, 0.16), transparent 34%),
        var(--page-bg);
    min-height: 100vh;
}
.page{
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: Nunito, "Segoe UI", sans-serif;
    color: var(--text-primary);
    padding: 36px 14px 28px;
}
.card{
    background:
        linear-gradient(90deg, var(--petal), var(--blossom)) top / 100% 5px no-repeat,
        var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(90, 48, 28, 0.08);
}
.flTywP{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.userImg{
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 3px solid var(--petal);
    box-shadow: 0 0 0 6px rgba(242, 180, 42, 0.22);
    object-fit: cover;
    background: var(--blossom);
}
.account{
    color: var(--blossom);
    margin-bottom: 8px;
    font-weight: 800;
}
.ins_btn{
    background: #fffaf3;
    color: var(--blossom);
    padding: 8px 18px;
    box-sizing: border-box;
    border-radius: 9999px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    border: 1px solid rgba(122, 59, 104, 0.22);
    box-shadow: 0 6px 16px rgba(122, 59, 104, 0.08);
}
a{
    text-decoration: none !important;
    color: var(--blossom);
}
.ins_btn img{
   width: 24px;
   height: 24px;
}

.platformName{
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
}
.inviteRow{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    cursor: pointer;
}
.inviteLabel{
    color: var(--text-secondary);
    font-weight: 700;
}
.inviteCode{
    color: var(--blossom);
    font-weight: 800;
    letter-spacing: 0.5px;
    user-select: all;
}
.cardActions{
    width: 100%;
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 2px;
}
.cardActions .openPlatform{
    flex: 1;
    min-width: 0;
}
.openLinkBtn,
.copyBtn{
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}
.openLinkBtn{
    width: 100%;
    background: var(--petal-gradient);
    color: var(--bark);
}
.openLinkBtn img{
    width: 16px;
    height: 16px;
    filter: brightness(0);
}
.copyBtn{
    flex: 1;
    min-width: 0;
    border: none;
    background: var(--bark);
    color: #fffaf3;
    font-family: inherit;
    cursor: pointer;
}
.copyBtn img{
    width: 15px;
    height: 15px;
}
.logoFrame{
    position: relative;
    display: inline-flex;
    max-width: 240px;
    overflow: hidden;
    border-radius: 14px;
    line-height: 0;
    animation: petal-glow 1.6s ease-in-out infinite;
}
.logoFrame::after{
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 46%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 250, 243, 0.85), transparent);
    animation: logo-sheen 1.8s linear infinite;
}
.currentLogo{
    height: 68px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    border-radius: 14px;
    cursor: pointer;
}
@keyframes petal-glow{
    0%, 100%{ box-shadow: 0 0 0 1px rgba(242, 180, 42, 0.45), 0 0 10px rgba(122, 59, 104, 0.15); }
    50%{ box-shadow: 0 0 0 1px var(--petal), 0 0 18px rgba(242, 180, 42, 0.7); }
}
@keyframes logo-sheen{
    from{ transform: translateX(-140%); }
    to{ transform: translateX(320%); }
}
.card--links{
    align-items: stretch;
    padding: 16px 0 14px;
    gap: 0;
}
.cardHeader{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 12px;
}
.cardHeaderIcon{
    width: 22px;
    height: 22px;
    object-fit: contain;
}
.cardTitle{
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}
.linkList{
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 12px;
}
.link-list__empty{
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    padding: 18px 8px;
}
.link-item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 10px;
    background: var(--link-item-bg);
    border: 1px solid rgba(242, 180, 42, 0.38);
    border-radius: 18px;
    color: var(--text-primary);
}
.link-item__thumb{
    width: auto;
    height: auto;
    max-width: 30%;
    max-height: 52px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.link-item__thumb img{
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}
.link-item__thumb--placeholder{
    width: 52px;
    height: 52px;
    background: rgba(122, 59, 104, 0.06);
    border: 1px dashed rgba(122, 59, 104, 0.35);
}
.link-item__body{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.link-item__top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.link-item__name{
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.link-item__access{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 28px;
    padding: 0 10px;
    background: var(--petal-gradient);
    color: var(--bark);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}
.link-item__access img{
    width: 14px;
    height: 14px;
}
.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.55;
}
.link-item__url{
    font-size: 12px;
    line-height: 1.2;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.toast{
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: var(--bark);
    color: #fffaf3;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    z-index: 1100;
}

.luckyButton{
    width: 100%;
    height: 40px;
    border-radius: 999px;
    border: none;
    background: var(--blossom);
    color: #fffaf3;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.luckyModal:not([hidden]){
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
}
.luckyBackdrop{
    position: absolute;
    inset: 0;
    background: rgba(58, 36, 24, 0.46);
    backdrop-filter: blur(8px);
}
.luckyCard{
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    box-sizing: border-box;
    padding: 22px 18px 18px;
    border-radius: 28px;
    background:
        linear-gradient(90deg, var(--petal), var(--blossom)) top / 100% 5px no-repeat,
        var(--card-bg);
    color: var(--text-primary);
    border: 1px solid rgba(122, 59, 104, 0.16);
    box-shadow: 0 18px 40px rgba(58, 36, 24, 0.18);
    animation: luckyIn 0.22s ease-out;
}
@keyframes luckyIn{
    from{ transform: translateY(12px); opacity: 0; }
    to{ transform: none; opacity: 1; }
}
.modalClose{
    position: absolute;
    top: 16px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: var(--blossom);
    color: #fffaf3;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.modalBadge{
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(242, 180, 42, 0.22);
    color: var(--petal-deep);
    font-size: 12px;
    font-weight: 800;
}
.luckyCard h3{
    margin: 12px 36px 4px 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}
.modalSub{
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}
.modalLogoWrap{
    height: 70px;
    margin: 10px 0 14px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff7ec;
    border: 1px solid rgba(242, 180, 42, 0.4);
}
.modalLogoWrap:not([hidden]){
    display: flex;
}
.modalLogoWrap img{
    max-width: 160px;
    max-height: 54px;
    object-fit: contain;
}
.modalInfo{
    display: grid;
    gap: 10px;
}
.infoLine,
.luckScore{
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ec;
}
.infoLine span,
.luckScore span,
.modalCode small{
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}
.infoLine strong{
    font-size: 15px;
    font-weight: 800;
}
.linkLine a{
    color: var(--blossom);
    font-size: 13px;
    font-weight: 800;
    word-break: break-all;
}
.infoGrid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.modalCode{
    display: grid;
    gap: 7px;
    text-align: left;
    border: none;
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    font: inherit;
}
.modalCode strong{
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.03em;
    word-break: break-all;
}
.mysteryCopy{
    background: var(--petal-gradient);
    color: var(--bark);
}
.dailyCopy{
    background: var(--blossom);
    color: #fffaf3;
}
.dailyCopy small{
    color: rgba(255, 250, 243, 0.78);
}
.luckScore{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.luckScore strong{
    font-size: 24px;
    font-weight: 800;
    color: var(--blossom);
}
.modalActions{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}
.modalActions a,
.modalActions button{
    height: 40px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}
.openLuckyLink{
    background: var(--petal-gradient);
    color: var(--bark);
}
#copyLuckyLink{
    background: var(--bark);
    color: #fffaf3;
}
.rtp{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}
.rtp-item{
    width: 50%;
    text-align: center;
    font-weight: 700;
    color: var(--text-secondary);
}
.rtp-number,
.onLineNumber{
    display: inline-block;
    font-size: 24px;
    color: var(--blossom);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transform-origin: center;
}
.rtp-number.is-rolling,
.onLineNumber.is-rolling{
    animation: number-pop 0.8s ease;
}
@keyframes number-pop{
    0%{ transform: scale(1); }
    35%{ transform: scale(1.12); }
    100%{ transform: scale(1); }
}
