:root {
    --comment: #4d4d4d;
    --black: #302c2c;
    --special: #a8968a;
    --constant: #c7916b;
    --variable: #afa79d;
    --string: #738c7b;
    --directory: #8fa3a2;
    --func: #6c7f93;
    --type: #7b6284;
    --keyword: #a97070;
    --operator: #afa79d;
    --fg: #afa79d;
    --diff-del: #633636;
    --diff-changed: #2e3833;
    --diff-added: #244238;
    --bg: #141414;
    --bg-surface: #161616;
    --bright-black: #4b4444;
    --bright-red: #bc8f8f;
    --bright-green: #8fa396;
    --bright-yellow: #d5ad90;
    --bright-blue: #8a99a8;
    --bright-magenta: #957b9d;
    --bright-cyan: #8fa3a2;
    --bright-white: #c6c0b9;
}

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

#star_cnv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg);
}

.center_wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    z-index: 10;
    background: transparent;
    width: 100%;
    max-width: 600px;
    padding: 0 1rem;
}

.center_wrap p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.user_name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--special);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    align-self: center;
    text-align: center;
}

.main_msg {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--bright-white);
    margin: 0.5rem 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: fit-content;
    display: inline-block;
    cursor: pointer;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.stat_info {
    font-size: 1rem;
    color: var(--string);
    margin-bottom: 0.75rem;
    margin-top: 0;
    font-family: monospace;
    font-style: italic;
    align-self: center;
    text-align: center;
}

.wrap_links {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.row_link {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lbl_link {
    color: var(--special);
    margin-bottom: 0.25rem;
    font-family: monospace;
    font-weight: 600;
}

.lst_link {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.item_link {
    color: var(--fg);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 1px;
    transition: opacity 0.2s ease;
}

.item_link:hover {
    opacity: 0.8;
}

.item_link.type_proj:nth-of-type(1) {
    border-bottom-color: var(--bright-green);
}

.item_link.type_proj:nth-of-type(2) {
    border-bottom-color: var(--bright-yellow);
}

.item_link.type_proj:nth-of-type(3) {
    border-bottom-color: var(--bright-cyan);
}

.item_link.type_proj {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.item_link.type_soc:nth-of-type(1) {
    border-bottom-color: var(--bright-blue);
}

.item_link.type_soc:nth-of-type(2) {
    border-bottom-color: var(--bright-magenta);
}

.item_link.type_soc:nth-of-type(3) {
    border-bottom-color: var(--bright-red);
}

.item_link.type_soc {
    border-bottom-color: var(--bright-blue);
}

.me_box {
    border: 1px solid var(--comment);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    width: 100%;
}

.me_box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--keyword);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--diff-changed);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.row_me {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.lbl_me {
    color: var(--bright-blue);
    font-weight: 600;
}

#mod_trig {
    cursor: pointer;
    border-bottom: 1px dashed var(--fg);
}

#mod_trig:hover {
    color: var(--bright-white);
    border-bottom-style: solid;
}

dialog {
    background: var(--bg-surface);
    color: var(--fg);
    border: 1px solid var(--comment);
    padding: 2rem;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    margin: auto;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

dialog.open {
    opacity: 1;
    transform: scale(1) translateY(0);
}

dialog.open::backdrop {
    opacity: 1;
}

dialog.closing {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
}

.mod_cnt h3 {
    margin-top: 0;
    color: var(--bright-white);
}

.lst_spec {
    list-style: none;
    padding: 0;
}

.lbl_spec {
    color: var(--bright-blue);
    font-weight: 600;
}

#btn_close {
    margin-top: 1rem;
    background: var(--diff-changed);
    color: var(--fg);
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    transition: background 0.2s ease, transform 0.1s ease;
}

#btn_close:hover {
    background: var(--diff-added);
}

#btn_close:active {
    transform: scale(0.98);
}

.tip_trig {
    position: relative;
    cursor: help;
    text-decoration: underline dotted var(--keyword);
    color: var(--bright-white);
}

.tip_trig::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: var(--bg-surface);
    color: var(--fg);
    border: 1px solid var(--diff-changed);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    width: max-content;
    max-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    text-align: center;
    white-space: normal;
}

.tip_trig:hover::after,
.tip_trig.active::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}