* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6fb;
    color: #111827;
}

.app-shell {
    min-height: 100vh;
    padding: calc(env(safe-area-inset-top, 0px) + 20px) 12px 28px;
}

.container {
    max-width: 760px;
    margin: 0 auto;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

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

.logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.hero-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 22px;
}

h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.center {
    text-align: center;
}

.muted {
    color: #6b7280;
    font-size: 14px;
}

input,
select,
textarea,
button {
    width: 100%;
    border-radius: 14px;
    font-size: 16px;
    padding: 13px 14px;
    margin-top: 10px;
}

input,
select,
textarea {
    border: 1px solid #d8dce6;
    background: #fff;
    outline: none;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

button {
    border: none;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

button:hover {
    opacity: 0.96;
}

.big-btn {
    padding: 18px 16px;
    font-size: 18px;
    margin-top: 12px;
}

.secondary-btn {
    background: #e5e7eb;
    color: #111827;
}

.danger-btn {
    background: #b91c1c;
    color: #fff;
}

.text-btn {
    background: transparent;
    color: #374151;
    padding: 8px 4px;
    font-size: 14px;
    margin-top: 0;
}

.text-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.mt-10 {
    margin-top: 10px;
}

.topline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-top: 8px;
    flex-wrap: wrap;
}

.back-btn {
    width: auto;
    min-width: 140px;
    background: #111827;
    color: #fff;
    padding: 16px 20px;
    margin-top: 0;
    font-size: 18px;
    border-radius: 18px;
    position: relative;
    z-index: 5;
}

.screen-title {
    font-weight: 700;
    font-size: 18px;
}

.menu-card {
    display: grid;
    gap: 10px;
}

.mini-card {
    padding: 14px 16px;
}

.profile-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.profile-mini button {
    width: auto;
    margin-top: 0;
    white-space: nowrap;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.list {
    margin-top: 8px;
}

.list-item {
    padding: 12px 0;
    border-bottom: 1px solid #eceff5;
}

.list-item:last-child {
    border-bottom: none;
}

.item-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.item-meta {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.badge {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 700;
}

.ok {
    color: #0f8a39;
    font-weight: 700;
}

.err {
    color: #b42318;
    font-weight: 700;
}

.empty {
    color: #6b7280;
    padding: 8px 0;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.step-indicator {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 700;
}

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

.summary-box {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #eceff5;
    font-size: 14px;
    line-height: 1.6;
}

.coach-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.coach-head button {
    width: auto;
    margin-top: 0;
}

.coach-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

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

.rule-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.rule-lines {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
}

.tournament-future {
    border-left: 6px solid #16a34a;
    padding-left: 12px;
}

.tournament-past {
    border-left: 6px solid #dc2626;
    padding-left: 12px;
}

.tournament-date-future {
    color: #15803d;
    font-weight: 700;
}

.tournament-date-past {
    color: #b91c1c;
    font-weight: 700;
}

@media (max-width: 640px) {
    .profile-mini,
    .coach-head {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-actions,
    .action-row,
    .coach-menu {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 26px;
    }

    .topline {
        align-items: stretch;
        gap: 10px;
    }

    .back-btn {
        min-width: 100%;
        padding: 16px 18px;
        font-size: 18px;
    }

    .screen-title {
        font-size: 22px;
    }
}
.my-tournament-row {
    background: #f8fafc;
    border-radius: 12px;
    padding-left: 10px;
    padding-right: 10px;
}

.my-tournament-name {
    font-weight: 900;
    color: #000000;
}
