@charset "utf-8";

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

:root {
    --bg-top: #d1cbc8;
    --bg-bottom: #8d949c;
    --surface: rgba(243, 238, 234, 0.96);
    --surface-strong: rgba(227, 221, 216, 0.99);
    --surface-soft: rgba(255, 250, 245, 0.78);
    --text: #21181a;
    --muted: #5f5459;
    --line: rgba(62, 22, 30, 0.18);
    --line-strong: rgba(62, 22, 30, 0.32);
    --header-start: #1c0b0f;
    --header-end: #5f1826;
    --header-shadow: rgba(28, 11, 15, 0.32);
    --accent: #a48757;
    --accent-strong: #7a613a;
    --accent-soft: #8d1f31;
    --accent-glow: rgba(141, 31, 49, 0.18);
    --link: #7d1f2f;
    --link-hover: #58131f;
    --button-text: #f8f2ef;
    --success: #375545;
    --success-soft: rgba(55, 85, 69, 0.14);
    --danger: #8d1f31;
    --danger-soft: rgba(141, 31, 49, 0.14);
    --warning: #7b5f36;
    --pill-bg: rgba(28, 11, 15, 0.08);
    --pill-border: rgba(28, 11, 15, 0.18);
    --pill-text: #331217;
    --badge-bg: rgba(28, 11, 15, 0.94);
    --badge-border: rgba(255, 255, 255, 0.18);
    --badge-text: #ffffff;
    --field-bg: rgba(255, 251, 247, 0.94);
    --shadow-lg: 0 20px 40px rgba(20, 13, 14, 0.16);
    --shadow-md: 0 10px 20px rgba(20, 13, 14, 0.1);
    --shadow-sm: 0 2px 8px rgba(20, 13, 14, 0.08);
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0 auto;
    max-width: 550px;
    padding: 4px;
    background:
        linear-gradient(135deg, rgba(141, 31, 49, 0.24) 0%, transparent 28%),
        linear-gradient(180deg, var(--bg-top) 0%, #b6b1ae 34%, var(--bg-bottom) 100%);
    color: var(--text);
    font-family: "Lucida Sans Unicode", "Trebuchet MS", "Segoe UI", sans-serif;
    font-size: clamp(11px, 1.2vw, 13px);
    line-height: 1.35;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 8px, transparent 8px 24px),
        linear-gradient(90deg, rgba(28, 11, 15, 0.08), transparent 42%, rgba(28, 11, 15, 0.12));
    opacity: 0.55;
}

.page-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.page-backdrop::before,
.page-backdrop::after {
    content: "";
    position: absolute;
    width: min(48vw, 420px);
    height: 16px;
    border-radius: 0;
    transform: skewX(-35deg);
}

.page-backdrop::before {
    top: 68px;
    left: -120px;
    background: linear-gradient(90deg, rgba(141, 31, 49, 0.46), transparent 86%);
}

.page-backdrop::after {
    right: -140px;
    bottom: 72px;
    background: linear-gradient(90deg, transparent, rgba(164, 135, 87, 0.42));
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
    border: 1px solid rgba(28, 11, 15, 0.24);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12)),
        linear-gradient(135deg, rgba(141, 31, 49, 0.05), transparent 40%);
    box-shadow: 0 24px 60px rgba(20, 13, 14, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.site-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    pointer-events: none;
}

.in {
    position: relative;
    z-index: 1;
}

a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.18s ease, transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    word-break: break-word;
}

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

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: 0;
}

.header,
.top,
.topas,
.title {
    display: block;
    width: 100%;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 38%),
        linear-gradient(135deg, var(--header-start), var(--header-end));
    box-shadow: 0 12px 24px var(--header-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.header::after,
.top::after,
.topas::after,
.title::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 32%, rgba(255, 255, 255, 0.03));
    z-index: -1;
}

.header,
.top,
.topas {
    padding: 9px 10px;
    border-radius: 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    font-family: "Segoe UI", "Lucida Sans Unicode", sans-serif;
}

.header {
    font-size: clamp(12px, 1.6vw, 14px);
    margin-bottom: 0;
}

.top,
.topas {
    font-size: clamp(10px, 1.2vw, 12px);
}

.title {
    padding: 7px 9px;
    border-radius: 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.title img {
    margin-right: 6px;
}

.main,
.main_c,
.main_l,
.div,
.div2,
.title3,
.title4,
.title_c,
.title_l,
.titles_c,
.titles_l,
.meniu,
#main_pgr,
.iline,
.message,
.inside,
.error,
.true,
.accept,
.acept,
.atlikta,
.red {
    display: block;
    width: 100%;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid var(--line);
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 18%),
        linear-gradient(180deg, var(--surface), var(--surface-strong));
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.62);
    overflow-wrap: anywhere;
    backdrop-filter: blur(4px);
}

.main,
.main_l,
.div,
.title_l,
.titles_l,
.meniu,
.iline {
    text-align: left;
}

.main_c,
.title_c,
.titles_c,
#main_pgr,
.message,
.inside,
.error,
.true,
.accept,
.acept,
.atlikta,
.red {
    text-align: center;
}

.main > .inside,
.main_c > .inside,
.main_l > .inside {
    margin-bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 239, 234, 0.94));
}

.main_c img[src$="logo.png"],
.main_c a img[src$="logo.png"] {
    max-width: min(100%, 220px);
    filter: drop-shadow(0 16px 24px rgba(28, 11, 15, 0.22));
}

.message {
    color: var(--success);
    background: linear-gradient(180deg, var(--success-soft), rgba(255, 255, 255, 0.96));
    border-color: rgba(55, 85, 69, 0.24);
}

.message a {
    color: inherit;
    text-decoration: underline;
}

.error {
    color: var(--danger);
    background: linear-gradient(180deg, var(--danger-soft), rgba(255, 255, 255, 0.96));
    border-color: rgba(141, 31, 49, 0.24);
}

.true,
.accept,
.acept,
.atlikta {
    color: var(--success);
    background: linear-gradient(180deg, var(--success-soft), rgba(255, 255, 255, 0.96));
    border-color: rgba(55, 85, 69, 0.24);
}

.red {
    color: #ffffff;
    background: linear-gradient(135deg, #621725, #311015);
    border-color: rgba(49, 16, 21, 0.3);
}

.bottom {
    display: block;
    width: 100%;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--header-end), var(--header-start));
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nr,
.log,
.log_red,
.vmenu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 3px 7px;
    border: 1px solid var(--pill-border);
    border-radius: 0;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    vertical-align: middle;
}

.nr,
.log,
.log_red {
    background: var(--badge-bg);
    border-color: var(--badge-border);
    color: var(--badge-text);
}

.nr {
    min-width: 18px;
    padding: 1px 5px;
    font-size: 10px;
}

.log_red {
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-strong));
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.vmenu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
}

.vmenu a {
    background: var(--pill-bg);
    color: var(--pill-text);
}

.dashboard-callout {
    background: linear-gradient(135deg, rgba(164, 135, 87, 0.16), rgba(255, 255, 255, 0.94));
}

.dashboard-store-nav {
    margin-top: 1px;
}

.dashboard-store-nav a {
    min-width: 96px;
}

.landing-hero {
    text-align: center;
    padding-top: 11px;
    padding-bottom: 11px;
    background:
        linear-gradient(135deg, rgba(141, 31, 49, 0.14), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(227, 221, 216, 0.98));
}

.landing-kicker {
    margin-bottom: 5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
}

.landing-logo {
    margin-bottom: 6px;
}

.landing-logo img {
    max-width: min(100%, 230px);
    filter: drop-shadow(0 16px 24px rgba(28, 11, 15, 0.22));
}

.landing-copy {
    max-width: 390px;
    margin: 0 auto 8px;
    color: var(--muted);
}

.landing-highlight {
    text-align: center;
}

.landing-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: rgba(62, 22, 30, 0.12);
    text-align: left;
}

.landing-card {
    display: grid;
    gap: 4px;
    min-height: 78px;
    padding: 9px 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(233, 228, 224, 0.96)),
        linear-gradient(135deg, rgba(141, 31, 49, 0.08), rgba(28, 11, 15, 0.04));
    color: var(--text);
}

.landing-card-eyebrow {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.landing-card-title {
    color: var(--text-strong);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.landing-card-meta {
    align-self: end;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.landing-card-grid-start .landing-card-meta {
    color: var(--text-strong);
    font-size: 12px;
    font-weight: 700;
}

.landing-card-grid-links .landing-card {
    min-height: 72px;
}

.auth-panel {
    padding-top: 10px;
    padding-bottom: 10px;
}

.landing-auth-shell {
    padding: 12px 11px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(228, 222, 217, 0.98)),
        linear-gradient(135deg, rgba(141, 31, 49, 0.09), rgba(28, 11, 15, 0.03));
}

.landing-auth-kicker {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-panel-copy,
.landing-status-copy {
    max-width: 350px;
    margin: 0 auto 7px;
    color: var(--muted);
}

.landing-auth-form {
    display: grid;
    gap: 6px;
    max-width: 340px;
    margin: 0 auto;
}

.landing-field {
    display: grid;
    gap: 2px;
    justify-items: stretch;
}

.landing-auth-form .form-label {
    width: 100%;
    max-width: none;
}

.landing-auth-form input[type="text"],
.landing-auth-form input[type="password"] {
    width: 100%;
    max-width: none;
    min-height: 34px;
}

.landing-auth-form .submit {
    min-width: 132px;
    justify-self: center;
    margin-top: 1px;
}

.landing-traffic {
    text-align: center;
}

.landing-news-list {
    padding: 0;
    text-align: left;
}

.landing-news-card {
    padding: 8px 9px;
    border-top: 1px solid rgba(62, 22, 30, 0.12);
}

.landing-news-card:first-child {
    border-top: 0;
}

.landing-news-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 3px;
}

.landing-news-head small {
    white-space: nowrap;
}

.landing-news-meta {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 10px;
}

.landing-news-body,
.landing-article-body {
    text-align: left;
}

.landing-news-actions {
    margin-top: 4px;
    text-align: right;
}

.landing-article-head {
    text-align: center;
}

.guestbook-form {
    padding-top: 10px;
    padding-bottom: 10px;
}

.guestbook-list {
    padding: 0;
    text-align: left;
}

.guestbook-entry {
    padding: 8px 9px;
    border-top: 1px solid rgba(62, 22, 30, 0.12);
}

.guestbook-entry:first-child {
    border-top: 0;
}

.guestbook-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.guestbook-head small {
    white-space: nowrap;
}

.guestbook-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 1px 5px;
    border: 1px solid var(--pill-border);
    background: rgba(28, 11, 15, 0.07);
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.guestbook-text {
    text-align: left;
}

.guestbook-reply {
    margin-top: 6px;
    padding: 6px 7px;
    border: 1px solid rgba(62, 22, 30, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(227, 221, 216, 0.92));
    text-align: left;
}

.guestbook-actions {
    margin-top: 4px;
    text-align: right;
}

.dashboard-hero {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.dashboard-hero-shell {
    display: grid;
    gap: 8px;
    padding: 12px 10px;
    background:
        linear-gradient(135deg, rgba(141, 31, 49, 0.1), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(229, 223, 218, 0.98));
}

.dashboard-hero-kicker {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-banner {
    margin-bottom: 0;
}

.dashboard-hero-copy {
    color: var(--text-strong);
}

.dashboard-hero-flags {
    margin-bottom: 1px;
}

.dashboard-action-grid,
.dashboard-summary-grid {
    gap: 1px;
    padding: 1px;
    background: rgba(62, 22, 30, 0.12);
}

.dashboard-action-grid .landing-card,
.dashboard-summary-grid .landing-card {
    min-height: 72px;
    justify-items: center;
    text-align: center;
}

.dashboard-action-grid .landing-card {
    min-height: 68px;
}

.dashboard-action-grid .landing-card-meta {
    align-self: start;
}

.dashboard-summary-grid .landing-card-title {
    font-size: 11px;
}

.dashboard-summary-grid .landing-card-meta {
    align-self: start;
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 700;
}

.dashboard-topic-card {
    text-align: center;
}

.dashboard-topic-kicker {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dashboard-topic-body {
    color: var(--text-strong);
}

.dashboard-topic-foot {
    margin-top: 5px;
}

.dashboard-topic-card .dashboard-topic-line {
    text-align: center;
}

.dashboard-topic-card .dashboard-topic-line small {
    display: block;
    margin-top: 3px;
}

.guide-stage {
    display: grid;
    gap: 7px;
    padding: 14px 11px;
    background:
        linear-gradient(135deg, rgba(141, 31, 49, 0.12), transparent 44%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(229, 223, 218, 0.99));
}

.guide-stage-kicker {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.guide-stage-title {
    color: var(--text-strong);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.guide-stage-copy {
    max-width: 390px;
    margin: 0 auto;
    color: var(--muted);
}

.guide-progress {
    margin-top: 1px;
}

.guide-scene-list {
    display: grid;
    gap: 1px;
    padding: 1px;
    background: rgba(62, 22, 30, 0.12);
}

.guide-scene {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(232, 227, 222, 0.98)),
        linear-gradient(135deg, rgba(141, 31, 49, 0.07), rgba(28, 11, 15, 0.03));
}

.guide-scene-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 78px;
    padding: 4px;
    border: 1px solid rgba(62, 22, 30, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(227, 221, 216, 0.96));
}

.guide-scene-media img {
    display: block;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.guide-scene-copy {
    text-align: left;
}

.guide-scene-step {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.guide-scene-title {
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.guide-scene-text {
    margin-top: 3px;
    color: var(--muted);
    line-height: 1.4;
}

.guide-lock-note {
    color: var(--text-strong);
}

.guide-cta {
    padding-top: 10px;
    padding-bottom: 10px;
}

.guide-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-strong));
    color: #ffffff;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.dashboard-statbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 2px 6px;
    border: 1px solid var(--pill-border);
    background: rgba(28, 11, 15, 0.06);
    color: var(--pill-text);
}

.dashboard-note {
    text-align: left;
}

.dashboard-topic-line {
    display: block;
    padding-top: 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(62, 22, 30, 0.12);
}

.dashboard-topic-line:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.dashboard-links {
    padding: 0;
}

.dashboard-link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    border-top: 1px solid rgba(62, 22, 30, 0.12);
    color: var(--text);
}

.dashboard-row {
    cursor: default;
}

.dashboard-link:first-child {
    border-top: 0;
}

.dashboard-label {
    flex: 1;
    text-align: left;
}

.dashboard-meta {
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
    font-size: 10px;
}

.dashboard-row-stat {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.dashboard-row-stat .dashboard-label {
    flex: 0 1 auto;
}

.dashboard-row-stat .dashboard-meta {
    flex: 0 0 auto;
    min-width: 28px;
    padding: 2px 7px;
    border: 1px solid var(--pill-border);
    background: rgba(28, 11, 15, 0.06);
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.dashboard-row-inline-meta {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.dashboard-row-inline-meta .dashboard-label {
    flex: 0 1 auto;
}

.dashboard-row-inline-meta .dashboard-meta {
    flex: 0 0 auto;
    min-width: 0;
    text-align: left;
}

.battle-scene {
    text-align: center;
}

.battle-scene-media {
    margin-bottom: 6px;
}

.battle-scene-media img {
    display: block;
    width: min(100%, 180px);
    margin: 0 auto;
    padding: 4px;
    border: 1px solid rgba(62, 22, 30, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(216, 207, 201, 0.88)),
        linear-gradient(135deg, rgba(98, 24, 38, 0.14), rgba(28, 11, 15, 0.06));
    box-shadow: 0 10px 18px rgba(20, 13, 14, 0.08);
}

.battle-scene-copy {
    display: grid;
    gap: 4px;
}

.battle-scene-kicker {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.battle-scene-title {
    color: var(--text-strong);
    font-size: 13px;
    font-weight: 700;
}

.battle-scene-subtitle {
    color: var(--muted);
}

.battle-scene-note,
.battle-scene-extra {
    text-align: left;
}

.battle-scene-extra {
    padding-top: 5px;
    border-top: 1px solid rgba(62, 22, 30, 0.12);
    color: var(--muted);
}

.online-player-list {
    padding: 0;
}

.online-player-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 8px;
    border-top: 1px solid rgba(62, 22, 30, 0.12);
}

.online-player-item:first-child {
    border-top: 0;
}

.online-player-media img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
    padding: 2px;
    border: 1px solid rgba(62, 22, 30, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(227, 221, 216, 0.94));
}

.online-player-copy {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.online-player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.online-player-meta,
.online-player-place {
    color: var(--muted);
}

.online-player-place {
    margin-top: 2px;
}

.online-player-timing {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.mini-chat-form {
    text-align: center;
}

.mini-chat-hint {
    margin-bottom: 4px;
    color: var(--muted);
}

.mini-chat-list {
    padding: 0;
}

.mini-chat-item {
    padding: 7px 8px;
    border-top: 1px solid rgba(62, 22, 30, 0.12);
}

.mini-chat-item:first-child {
    border-top: 0;
}

.mini-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
}

.mini-chat-head small {
    white-space: nowrap;
}

.mini-chat-text {
    text-align: left;
}

.mini-chat-actions {
    margin-top: 3px;
    text-align: right;
}

.vmenu a:hover,
.log:hover,
.log_red:hover {
    transform: translateY(-1px);
}

.like_ok {
    color: var(--success);
}

.like_no {
    color: var(--danger);
}

.form-label {
    width: min(100%, 280px);
    max-width: 280px;
    text-align: left;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    display: block;
    width: min(100%, 280px);
    max-width: 280px;
    margin-top: 1px;
    min-height: 32px;
    padding: 6px 7px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: var(--field-bg);
    color: var(--text);
    font: inherit;
    box-shadow: inset 0 2px 4px rgba(20, 13, 14, 0.05);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

textarea {
    min-height: 84px;
    width: min(100%, 340px);
    max-width: 340px;
    resize: vertical;
}

form {
    margin: 0;
}

.main form,
.main_c form,
.main_l form,
.inside form {
    display: grid;
    gap: 2px;
    justify-items: center;
    max-width: 360px;
    margin: 0 auto;
}

.main form br,
.main_c form br,
.main_l form br,
.inside form br {
    display: none;
}

.main_c form {
    max-width: 300px;
}

.character-grid {
    display: grid;
    gap: 0;
}

.character-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 244, 226, 0.96), rgba(245, 229, 212, 0.9));
}

.character-card:first-child {
    border-top: 0;
}

.character-card-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.character-card-media img {
    width: 78px;
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
}

.character-card-copy {
    min-width: 0;
}

.character-card-kicker {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.character-card-title {
    margin-top: 1px;
    font-size: 14px;
    line-height: 1.2;
}

.character-card-summary,
.character-card-stats,
.character-card-note {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.45;
}

.character-card-stats {
    color: var(--text-strong);
    font-weight: 700;
}

.character-card-note {
    color: var(--muted);
}

.character-card-actions {
    margin-top: 6px;
}

.character-card-actions a {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid var(--line-strong);
    color: var(--text-strong);
    background: rgba(255, 248, 236, 0.92);
    text-decoration: none;
}

.captcha-panel {
    width: min(100%, 280px);
    max-width: 280px;
    padding: 7px 8px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(42, 18, 16, 0.94), rgba(87, 28, 24, 0.9));
    color: #f6ead7;
    text-align: left;
}

.captcha-kicker {
    color: #f2c98b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.captcha-code {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 700;
}

.captcha-hint {
    margin-top: 4px;
    color: rgba(246, 234, 215, 0.78);
    font-size: 10px;
}

.captcha-refresh {
    margin-top: 5px;
    font-size: 10px;
}

.captcha-refresh a {
    color: #f7d8a1;
    text-decoration: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: rgba(141, 31, 49, 0.42);
    box-shadow: 0 0 0 3px rgba(141, 31, 49, 0.12), inset 0 2px 4px rgba(20, 13, 14, 0.05);
}

input[type="submit"],
.submit,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 30px;
    margin-top: 2px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%),
        linear-gradient(135deg, var(--accent-soft), var(--accent-strong));
    color: var(--button-text);
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 24px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    cursor: pointer;
    justify-self: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

input[type="submit"]:hover,
.submit:hover,
button:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

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

td,
th {
    padding: 4px 5px;
    border-bottom: 1px solid rgba(62, 22, 30, 0.12);
    text-align: left;
    vertical-align: top;
}

tr:last-child td,
tr:last-child th {
    border-bottom: 0;
}

ul,
ol {
    margin: 6px 0 0 14px;
    padding: 0;
}

li + li {
    margin-top: 4px;
}

.line {
    display: block;
    width: 100%;
    height: 1px;
    margin: 6px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, transparent, rgba(62, 22, 30, 0.3), transparent);
    box-shadow: none;
}

small {
    color: var(--muted);
    font-size: 10px;
}

font[color="red"] {
    color: var(--danger);
}

font[color="green"] {
    color: var(--success);
}

font[color="blue"] {
    color: var(--link);
}

font[color="black"] {
    color: var(--text);
}

font[color="orange"] {
    color: var(--warning);
}

font[color="brown"] {
    color: var(--accent-strong);
}

center {
    display: block;
    text-align: center;
}

@media (max-width: 560px) {
    body {
        padding-left: 4px;
        padding-right: 4px;
        font-size: 13px;
        line-height: 1.45;
    }

    .landing-card-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-action-grid,
    .dashboard-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-scene {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .guide-scene-copy {
        text-align: center;
    }

    .header {
        font-size: 14px;
    }

    .top,
    .topas {
        font-size: 12px;
    }

    .title {
        font-size: 10px;
    }

    .landing-kicker,
    .landing-auth-kicker,
    .landing-card-eyebrow,
    .form-label,
    .dashboard-meta,
    .landing-news-meta,
    small {
        font-size: 11px;
    }

    .landing-copy,
    .auth-panel-copy,
    .landing-status-copy,
    .landing-card-meta,
    .mini-chat-text,
    .guestbook-text {
        font-size: 13px;
    }

    .landing-card-title,
    .battle-scene-title {
        font-size: 14px;
    }

    input[type="text"],
    input[type="password"],
    input[type="number"],
    textarea,
    select,
    input[type="submit"],
    .submit,
    button {
        font-size: 13px;
    }

    .site-shell {
        padding: 0;
        border-radius: 0;
    }

    .site-shell::before {
        inset: 0;
        border-radius: 0;
    }

    .header,
    .top,
    .topas,
    .bottom,
    .title,
    .main,
    .main_c,
    .main_l,
    .div,
    .div2,
    .title3,
    .title4,
    .title_c,
    .title_l,
    .titles_c,
    .titles_l,
    .meniu,
    #main_pgr,
    .iline,
    .message,
    .inside,
    .error,
    .true,
    .accept,
    .acept,
    .atlikta,
    .red,
    .nr,
    .log,
    .log_red,
    .vmenu a,
    input[type="text"],
    input[type="password"],
    input[type="number"],
    textarea,
    select,
    input[type="submit"],
    .submit,
    button {
        border-radius: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
