/* TICKSTRIKE public website. Hand-written, no framework, no script, no external resource. Same colours and
   shapes as the admin panel (Admin/Assets/admin.css): dark violet like the game, yellow for the main action. */

:root {
    --bg: #17102b;
    --panel: #221a3d;
    --panel-2: #2c2250;
    --line: #43377a;
    --text: #f1edff;
    --muted: #b3a8d9;
    --link: #c9b8ff;
    --yellow: #ffd23f;
    --yellow-text: #2a2100;
    --red: #ff6b6b;
    --red-bg: #4a1c2c;
    --green: #6fe3a1;
    --green-bg: #173d2f;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a { color: var(--link); }
a:hover { color: #fff; }

code {
    font: 0.95em ui-monospace, Consolas, "Courier New", monospace;
    letter-spacing: 0.03em;
}

h1 { font-size: 1.8rem; margin: 0.5rem 0 1rem; line-height: 1.25; }
h2 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 0.4rem; color: var(--muted); }
p { margin: 0.6rem 0; }
ul, ol { margin: 0.5rem 0; padding-left: 1.3rem; }
li { margin: 0.25rem 0; }

/* ---------- frame ---------- */

.top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    padding: 0.7rem 1rem;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.brand { font-weight: 700; letter-spacing: 0.06em; color: var(--yellow); text-decoration: none; }

.top nav { display: flex; flex-wrap: wrap; gap: 0.25rem; }

.top nav a {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.top nav a:hover { background: var(--panel-2); }
.top nav a.active { background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--yellow); }

main { max-width: 760px; margin: 0 auto; padding: 1.25rem 1rem 2rem; }

footer {
    max-width: 760px;
    margin: 0 auto;
    padding: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

footer a { margin-right: 1rem; }

/* ---------- blocks ---------- */

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin: 0 0 1rem;
}

.hero { text-align: center; padding: 2.5rem 1rem; }
.hero h1 { font-size: 2.6rem; letter-spacing: 0.08em; color: var(--yellow); margin: 0 0 0.75rem; }
.hero p { max-width: 34rem; margin: 0.6rem auto; }

.hint { color: var(--muted); font-size: 0.92rem; }
.todo { color: var(--yellow); font-weight: 600; }

.notice, .error {
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    margin: 0.75rem 0;
}

.notice { background: var(--green-bg); border: 1px solid var(--green); }
.error { background: var(--red-bg); border: 1px solid var(--red); }

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    margin: 0.75rem 0 1rem;
}

table { width: 100%; border-collapse: collapse; }

th, td {
    text-align: left;
    padding: 0.55rem 0.8rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th { background: var(--panel-2); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- forms ---------- */

label { display: block; margin: 0.9rem 0 0.3rem; }

input[type="text"] {
    width: 100%;
    padding: 0.65rem 0.7rem;
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
}

input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

label.check { display: flex; align-items: flex-start; gap: 0.6rem; margin: 1rem 0; }
label.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; flex: none; accent-color: var(--yellow); }

button, a.button {
    display: inline-block;
    padding: 0.65rem 1.2rem;
    font: inherit;
    font-weight: 600;
    color: var(--text);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

button:hover, a.button:hover { border-color: var(--yellow); color: #fff; }
a.button.primary { background: var(--yellow); border-color: var(--yellow); color: var(--yellow-text); }
a.button.primary:hover { filter: brightness(1.08); color: var(--yellow-text); }
button.danger { background: var(--red); border-color: var(--red); color: #2b0508; }
button.danger:hover { filter: brightness(1.08); color: #2b0508; }

@media (max-width: 600px) {
    main { padding: 1rem 0.75rem 1.5rem; }
    h1 { font-size: 1.45rem; }
    .hero h1 { font-size: 2rem; }
    th, td { padding: 0.5rem 0.6rem; }
}
