* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpolygon points='10,2 3.07,14 16.93,14' transform='rotate(45 10 10)' fill='%23FF9500' stroke='%233a1c00' stroke-width='1'/%3E%3C/svg%3E") 10 10, auto;
}
html, body {
    min-height: 100%;
    background-color: #0a0808;
    color: #EFE4B0;
    font-family: 'Bitcount Grid Single', 'Consolas', monospace;
    scrollbar-width: thin;
    scrollbar-color: #00A000 #0a0808;
}
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
*::-webkit-scrollbar-track {
    background: #0a0808;
}
*::-webkit-scrollbar-thumb {
    background-color: #00A000;
    border-radius: 4px;
}
*::-webkit-scrollbar-corner {
    background: #0a0808;
}
.win.community *::-webkit-scrollbar-thumb {
    background-color: #b266ff;
}
.win.community {
    scrollbar-color: #b266ff #0a0808;
}
body {
    padding: 40px 6%;
}
.page {
    max-width: 700px;
    margin: 0 auto;
}
.kipa-mark {
    color: #00A000;
    font-size: 0.8em;
    letter-spacing: 3px;
    margin-bottom: 6px;
}
h1 {
    font-size: 2.2em;
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.subtitle {
    color: #00A000;
    font-size: 0.95em;
    margin-bottom: 30px;
    letter-spacing: 1px;
}
h2 {
    font-size: 1.3em;
    letter-spacing: 1px;
    color: #EFE4B0;
    border-bottom: 1px dashed #00A000;
    display: inline-block;
    margin: 30px 0 15px 0;
}
p, li {
    font-size: 1.05em;
    line-height: 1.6;
}
p {
    margin-bottom: 16px;
}
ul {
    list-style: none;
    margin-bottom: 16px;
}
li {
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
}
li::before {
    content: "›";
    color: #00A000;
    position: absolute;
    left: 0;
}
a {
    color: #EFE4B0;
    text-decoration: none;
    background-color: transparent;
    transition: all 0.1s linear;
}
a:hover {
    color: #00A000;
    text-decoration: underline;
}
hr {
    border-color: #00A000;
    margin: 20px 0;
}
img {
    max-width: 100%;
    display: block;
    margin-bottom: 14px;
    border-radius: 4px;
}
.page.community h2 {
    border-bottom-color: #b266ff;
}
.page.community .subtitle {
    color: #b266ff;
}
.page.community li::before {
    color: #b266ff;
}
.page.community a:hover {
    color: #b266ff;
}
.rule-block {
    border-left: 2px solid #00A000;
    padding-left: 16px;
    margin: 24px 0;
}
.rule-block p {
    margin-bottom: 10px;
}
.warning {
    color: #ff2a2a;
    font-weight: bold;
    margin-top: 24px;
}
.comment {
    color: #b266ff;
    font-style: italic;
    margin-top: 24px;
    letter-spacing: 0.5px;
}
.comment.kipa-comment {
    border-left: 2px solid #b266ff;
    padding-left: 14px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px 0;
    font-size: 0.92em;
}
th, td {
    border: 1px solid #00A000;
    padding: 8px 10px;
    text-align: left;
}
th {
    color: #00A000;
    background-color: rgba(0, 160, 0, 0.08);
    font-weight: bold;
}
.win.community table th,
.win.community table td {
    border-color: #b266ff;
}
.win.community table th {
    color: #b266ff;
    background-color: rgba(178, 102, 255, 0.08);
}
.resize-handle {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 26px;
    height: 26px;
    cursor: nesw-resize;
    touch-action: none;
}
.resize-handle::before {
    content: "";
    position: absolute;
    left: 6px;
    bottom: 6px;
    width: 16px;
    height: 16px;
    border-left: 2px solid #00A000;
    border-bottom: 2px solid #00A000;
    opacity: 0.55;
}
.resize-handle:hover::before {
    opacity: 1;
}
.footer-strip {
    margin-top: 40px;
    font-size: 0.8em;
    color: #6b7a55;
    letter-spacing: 1px;
    border-top: 1px solid #00A000;
    padding-top: 16px;
}
.window-body {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.panel {
    position: relative;
    max-width: 780px;
    width: 100%;
    border: 1px solid #00A000;
    background-color: rgba(0, 160, 0, 0.04);
    padding: 48px 56px;
    box-sizing: border-box;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.panel .footer-strip {
    margin-top: auto;
}
.desktop {
    position: relative;
    min-height: 100vh;
    padding: 30px;
    box-sizing: border-box;
}
.win {
    position: absolute;
    display: flex;
    flex-direction: column;
    border: 1px solid #00A000;
    background-color: #0a0808;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
    overflow: hidden;
    min-width: 260px;
    min-height: 160px;
}
.win.community {
    border-color: #b266ff;
}
.win-titlebar {
    background-color: rgba(0, 160, 0, 0.08);
    border-bottom: 1px solid #00A000;
    padding: 7px 14px;
    font-size: 0.78em;
    letter-spacing: 1px;
    color: #00A000;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: move;
    user-select: none;
    flex-shrink: 0;
}
.win.community .win-body h2 {
    border-bottom-color: #b266ff;
}
.win.community .win-body .subtitle {
    color: #ff2a2a;
}
.win.community .resize-handle::before {
    border-left-color: #b266ff;
    border-bottom-color: #b266ff;
}
.win.community .win-titlebar {
    background-color: rgba(178, 102, 255, 0.08);
    border-bottom-color: #b266ff;
    color: #b266ff;
}
.win-titlebar .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00A000;
    box-shadow: 0 0 6px #00A000;
    display: inline-block;
    margin-right: 8px;
}
.win.community .win-titlebar .dot {
    background: #b266ff;
    box-shadow: 0 0 6px #b266ff;
}
.win-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px 26px;
    font-size: 0.95em;
}
.win .resize-handle {
    left: 3px;
}
.timer-window {
    position: fixed;
    left: 15px;
    bottom: 15px;
    width: 160px;
    border: 1px solid #b266ff;
    background-color: rgba(10, 8, 8, 0.96);
    box-shadow: 0 0 18px rgba(178, 102, 255, 0.2);
    z-index: 999;
    font-family: 'Bitcount Grid Single', 'Consolas', monospace;
}
.timer-window .timer-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    border-bottom: 1px solid #b266ff;
    color: #b266ff;
    font-size: 0.72em;
    letter-spacing: 1px;
}
.timer-window .timer-titlebar .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b266ff;
    box-shadow: 0 0 6px #b266ff;
    display: inline-block;
    margin-right: 6px;
    flex-shrink: 0;
}
.timer-window .timer-body {
    text-align: center;
    padding: 14px 0;
}
.timer-window .timer-value {
    font-size: 2.2em;
    font-weight: bold;
    color: #ff2a2a;
    text-shadow: 0 0 14px #ff2a2a;
    animation: timerPulse 1s infinite, timerTick 0.85s ease-out;
}
@keyframes timerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes timerTick {
    0% { text-shadow: 0 0 22px #ff2a2a, 0 0 40px #ff2a2a; }
    100% { text-shadow: 0 0 14px #ff2a2a; }
}
.button-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
textarea {
    background-color: #0a0808;
    color: #EFE4B0;
    border: 1px solid #00A000;
    font-family: 'Bitcount Grid Single', monospace;
    font-size: 14px;
    padding: 8px;
    resize: vertical;
    width: 100%;
}
textarea:focus {
    outline: none;
    border-color: #EFE4B0;
    box-shadow: 0 0 3px #00A000;
}