* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #0a0a1a;
    color: white;
}

.sc {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a1a;
    z-index: 100;
}

#wel h1 {
    font-size: 48px;
    color: #ffd700;
    animation: fad 3s ease forwards;
}

@keyframes fad {
    0% {
        opacity: 0;
    }

    30%,
    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.lodc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 80%;
    max-width: 600px;
}

.lodt h1 {
    font-size: 36px;
    color: #ffd700;
}

.lodb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.prbar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

.prfil {
    height: 100%;
    width: 0;
    background: #ffd700;
}

#lodtxt {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.botc {
    padding: 60px 60px 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cap {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    text-decoration-color: #ff6b6b;
    margin-bottom: 20px;
}

#botlogo {
    width: 20vw;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.botp {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.regc {
    text-align: center;
    max-width: 450px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.regc h1 {
    font-size: 28px;
    color: #ffd700;
    margin-bottom: 10px;
}

.regc p {
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0;
}

#usin {
    width: 100%;
    padding: 12px 16px;
    margin: 16px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: white;
    font-size: 16px;
    text-align: center;
}

#enbut {
    padding: 12px 40px;
    background: transparent;
    border: 1px solid #ffd700;
    color: #ffd700;
    cursor: pointer;
}

#enbut:hover {
    background: #ffd700;
    color: #0a0a1a;
}

#enbut:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#desk {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0a1a;
    overflow: hidden;
}

#top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #0d0d24;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.tpl {
    display: flex;
    align-items: center;
    gap: 20px;
}

.osn {
    font-weight: 700;
    color: #ffd700;
}

.welu {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.tpr {
    display: flex;
    align-items: center;
    gap: 16px;
}

#themebtn {
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: white;
    padding: 4px 10px;
    cursor: pointer;
}

#clk {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    font-size: 14px;
}

#deskc {
    margin-top: 50px;
    height: calc(100vh - 50px);
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-content: flex-start;
}

.icon {
    text-align: center;
    width: 80px;
    cursor: pointer;
    padding: 10px;
}

.icon img {
    width: 56px;
    height: 56px;
    display: block;
    margin: 0 auto 6px;
}

.icon p {
    font-size: 12px;
    margin: 0;
}

.win {
    position: absolute;
    min-width: 320px;
    min-height: 200px;
    background: #1a1a2e;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 500;
    display: flex;
    flex-direction: column;
}

.winh {
    background: #0d0d24;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.winh span {
    font-size: 14px;
}

.winbtns button {
    background: none;
    border: none;
    color: white;
    padding: 0 4px;
    cursor: pointer;
    font-size: 14px;
}

.winbtns button:hover {
    color: #ffd700;
}

.clsbtn:hover {
    color: #ff6b6b !important;
}

.winc {
    padding: 16px;
    flex: 1;
    overflow: auto;
}

#tttboard {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    grid-template-rows: repeat(3, 80px);
    gap: 4px;
    justify-content: center;
    margin: 10px 0;
}

.tttcell {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
}

.calgrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calday.today {
    background: #ffd700;
    color: #0a0a1a;
    font-weight: bold;
}

.calday.other {
    color: rgba(255, 255, 255, 0.2);
}

#calcdisp {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: white;
    font-size: 24px;
    text-align: right;
    margin-bottom: 12px;
}

.calcgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.calcbtn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: white;
    cursor: pointer;
}

.calcbtn.op {
    color: #ffd700;
}

.calcbtn.cls {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
}

.calcbtn.eq {
    background: #ffd700;
    color: #0a0a1a;
}

.transrow {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.setsec {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.setbtn {
    padding: 4px 16px;
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: white;
    cursor: pointer;
}

.setbtn.active {
    background: #ffd700;
    color: #0a0a1a;
}

#transdec,
#transenc,
#transcopy,
#transclear,
#tttreset,
#calprev,
#calnext {
    padding: 4px 16px;
    background: transparent;
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: white;
    cursor: pointer;
}

#transdec.active,
#transenc.active,
#transcopy.active,
#transclear.active,
#tttreset.active,
#calprev.active,
#calnext.active {
    background: #ffd700;
    color: #0a0a1a;
}

body.light {
    background: #f0f0f5;
    color: #1a1a2e;
}

body.light .sc,
body.light #desk {
    background: #f0f0f5;
}

body.light #top {
    background: #e0e0e8;
}

body.light .win {
    background: #ffffff;
}

body.light .winh {
    background: #e8e8ed;
}

body.light .tttcell,
body.light #tttstatus,
body.light #calmonth,
body.light .calday {
    color: #1a1a2e;
}

body.light .calday.other {
    color: rgba(26, 26, 46, 0.2);
}

body.light #calcdisp,
body.light #transin {
    color: #1a1a2e;
    background: rgba(0, 0, 0, 0.05);
}

body.light .calcbtn.eq {
    background: #1a1a2e;
    color: white;
}

body.light .regc {
    background: rgba(0, 0, 0, 0.03);
}

body.light #enbut {
    color: #1a1a2e;
    border-color: #1a1a2e;
}

body.light #enbut:hover {
    background: #1a1a2e;
    color: white;
}

.expimg {
    margin-top: 16px;
    text-align: center;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expimg img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.1);
    background: black;
    padding: 5px;
}

.expimg p {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.expgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
}

.planetbtn {
    padding: 30px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
}

.planetbtn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
}

.expinfo {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    min-height: 100px;
}

.expinfo h2 {
    color: #ffd700;
    margin-bottom: 8px;
}

.expinfo p {
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.85);
}

.decintro {
    text-align: center;
    color: rgba(255, 2555, 255, 0.6);
    margin-bottom: 16px;
    font-size: 14px;
}

.decbox {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 0, 0.2);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.declabel {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.decencoded {
    font-size: 26px;
    letter-spacing: 4px;
    color: #ffd700;
    margin: 8px 0;
    word-break: break-all;
}

.deckey {
    font-size: 36px;
    color: #ffd700;
    font-weight: bold;
    margin: 8px 0;
}

.deccopybtn {
    padding: 6px 16px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px;
}

.deccopybtn:hover {
    background: rgba(255, 215, 0, 0.25);
}

.decinstruct {
    text-align: center;
    color: rgba(255, 215, 0, 0.4);
    font-size: 12px;
    font-style: italic;
    margin: 8px 0;
}

.decinputrow {
    display: flex;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: white;
    font-size: 15px;
}

#deccheck {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #ffd700;
    cursor: pointer;
}

#deccheck:hover {
    background: #ffd700;
    color: #0a0a1a;
}

.decresult {
    text-align: center;
    font-size: 18px;
    margin: 10px 0;
    font-weight: bold;
    min-height: 28px;
}

.decnewbtn {
    display: block;
    margin: 16px auto 0;
    padding: 10px 30px;
    background: transparent;
    border: 1px solid rgba(255,215,0,0.4);
    color: #ffd700;
    cursor: pointer;
    font-size: 15px;
}

.decnewbtn:hover {
    background: rgba(255, 215, 0, 0.15);
}

.quizscore {
    text-align: center;
    color: #ffd700;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
}

.quizquestion {
    text-align: center;
    font-size: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 8px;
    margin-bottom: 16px;
    min-height: 60px;
}

.quizanswers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quizbtn {
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: white;
    font-size: 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.quizbtn:hover {
    background: rgba(255, 215, 0, 0.15);
    background-color: #ffd700;
}

.quizbtn.correct {
    background: rgba(76, 255, 76, 0.3);
    border-color: #4cff4c;
    color: #4cff4c;
}

.quizbtn.wrong {
    background: rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.quizfeedback {
    text-align: center;
    font-size: 16px;
    margin-top: 12px;
    min-height: 24px;
}