:root {
    --bg: #111111;
    --card: #1c1c1c;
    --ink: #f7f7f7;
    --muted: #b9b3a6;
    --yellow: #f5c400;
    --beige: #f3ead2;
    --danger: #e24b3b;
    --line: #2a2a2a;
    --shadow: none;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
}

body {
    font-family: Arial, sans-serif;
}

.app {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg);
    padding: 20px 16px calc(92px + env(safe-area-inset-bottom));
}

h1,
h2,
.tab,
.btn,
.brand {
    font-family: "Bebas Neue", Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 0.04em;
}

h1 {
    margin: 0;
    font-size: 32pt;
    line-height: 0.95;
    color: var(--yellow);
}

h2 {
    margin: 28px 0 12px;
    font-size: 20pt;
    color: var(--beige);
}

.lead,
.muted,
label,
.lead a {
    color: var(--beige);
    font-size: 15px;
    line-height: 1.35;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.logo {
    width: 64px;
    height: 64px;
    display: block;
}

.card,
.match,
.field {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}

.match strong {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

label {
    margin-top: 8px;
}

input,
button {
    font: inherit;
}

input {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font-size: 16px;
    padding: 14px 12px;
}

.btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    border: 0;
    background: var(--yellow);
    color: #141414;
    font-size: 22pt;
    padding: 12px 16px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 2px solid var(--danger);
}

.form-error {
    color: var(--danger);
    margin: 8px 0 0;
}

.empty {
    color: var(--muted);
    text-align: center;
    margin: 32px 0;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.item {
    background: var(--card);
    border: 1px solid var(--line);
    overflow: hidden;
}

.item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.tabbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(480px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--line);
}

.tab {
    text-align: center;
    text-decoration: none;
    color: #141414;
    background: var(--yellow);
    font-size: 16pt;
    padding: 10px 4px;
}

.tab.is-active {
    outline: 2px solid var(--beige);
}

.login-wrap {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 20px;
}

.login-wrap h1 {
    margin-top: 12px;
}

.actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.actions .btn {
    margin-top: 0;
    font-size: 18pt;
    padding: 16px 8px;
}
