html, body, #root { margin: 0; min-height: 100%; }
body { background: #d8d4cf; }

.tk {
    margin: -24px;
    padding: 8px 18px 32px;
    background: #d8d4cf;
    color: #f5efe4;
    font-family: inherit;
    display: grid;
    gap: 14px;
}
@media (min-width: 768px) {
    .tk { margin: -36px auto; padding: 36px 28px 48px; max-width: 720px; }
}

.tk-hero {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: #171209;
}
.tk-hero img { display: block; width: 100%; height: 240px; object-fit: cover; object-position: 50% 34%; opacity: 0.85; }
.tk-hero-text { position: absolute; left: 20px; right: 20px; bottom: 18px; text-shadow: 0 1px 8px rgba(0,0,0,0.55); }
.tk-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #f0c9a8; }
.tk-hero h1 { margin: 4px 0 2px; font-size: 34px; font-weight: 600; color: #fff8ec; letter-spacing: -0.02em; }
.tk-hero p { margin: 0; font-size: 13px; color: #e9dfcf; }

.tk-card {
    background: #17120c;
    border-radius: 28px;
    padding: 20px;
}

.tk-session-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tk-date { font-size: 13px; font-weight: 600; color: #b9ac99; }
.tk-badge { font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.tk-badge.is-open { color: #ff6a3c; background: rgba(240, 82, 46, 0.14); }
.tk-badge.is-target { color: #f3ecdf; background: rgba(243, 236, 223, 0.12); }
.tk-badge.is-full { color: #17120c; background: #f3ecdf; }

.tk-time { margin-top: 10px; font-size: 40px; font-weight: 600; letter-spacing: -0.02em; color: #fff8ec; font-variant-numeric: tabular-nums; }

.tk-progress { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.tk-track { flex: 1; height: 6px; border-radius: 999px; background: rgba(243, 236, 223, 0.12); overflow: hidden; }
.tk-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f0502e, #ff7a4d); box-shadow: 0 0 12px rgba(240, 82, 46, 0.55); transition: width 0.3s ease; }
.tk-count { font-size: 15px; font-weight: 600; color: #fff8ec; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-count span { font-size: 12px; font-weight: 400; color: #b9ac99; }

.tk-people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tk-pill {
    display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px;
    border-radius: 999px; font-size: 13px; font-weight: 600;
}
.tk-pill.is-default { background: #f3ecdf; color: #241c12; }
.tk-pill.is-joined { background: rgba(240, 82, 46, 0.16); color: #ff8a63; border: 1px dashed rgba(255, 138, 99, 0.6); }
.tk-pill.is-empty { width: 34px; padding: 0; background: rgba(243, 236, 223, 0.07); }
.tk-none { margin-top: 12px; font-size: 13px; color: #b9ac99; }
.tk-note { margin-top: 10px; font-size: 12px; color: #b9ac99; }

.tk-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.tk-btn {
    appearance: none; border: 0; cursor: pointer;
    min-height: 46px; padding: 0 22px; border-radius: 999px;
    font-size: 14px; font-weight: 600; font-family: inherit;
}
.tk-btn.is-primary { background: #f0502e; color: #fff6ea; box-shadow: 0 6px 20px rgba(240, 82, 46, 0.4); }
.tk-btn.is-primary:disabled { background: rgba(243, 236, 223, 0.14); color: #8d8375; box-shadow: none; cursor: default; }
.tk-btn.is-ghost { background: transparent; color: #d9cfbe; border: 1px solid rgba(243, 236, 223, 0.28); }
.tk-btn.is-ghost:disabled { color: #6f6659; border-color: rgba(243, 236, 223, 0.12); cursor: default; }

.tk-form { margin-top: 16px; display: grid; gap: 12px; }
.tk-input {
    width: 100%; box-sizing: border-box;
    min-height: 48px; padding: 0 16px; border-radius: 16px;
    background: rgba(243, 236, 223, 0.09); border: 1px solid rgba(243, 236, 223, 0.16);
    color: #fff8ec; font-size: 15px; font-family: inherit;
}
.tk-input::placeholder { color: #8d8375; }
.tk-input:focus { outline: 2px solid #f0502e; outline-offset: 1px; }
.tk-hint { font-size: 12px; line-height: 18px; color: #b9ac99; }

.tk-message { margin-top: 12px; font-size: 13px; font-weight: 600; }
.tk-message.is-ok { color: #ffb59d; }
.tk-message.is-err { color: #ff6a54; }

.tk-warning { color: #f3ecdf; font-size: 13px; }
.tk-retry {
    margin-left: 8px; border: 0; background: none; cursor: pointer;
    color: #ff7a4d; font: inherit; font-weight: 600; text-decoration: underline;
    min-height: 44px;
}

.tk-rules-title { font-size: 13px; font-weight: 600; color: #b9ac99; margin-bottom: 8px; }
.tk-rules ul { margin: 0; padding-left: 18px; color: #e9dfcf; font-size: 13px; line-height: 22px; }
.tk-rules a.tk-map { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: #ff8a63 !important; }

.tk-footer { padding: 6px 6px 0; font-size: 12px; line-height: 18px; color: #6f6659; text-align: center; }

.tk-illu { position: absolute; top: 10px; right: 10px; font-size: 11px; color: rgba(255,248,236,0.75); background: rgba(23,18,12,0.45); padding: 3px 10px; border-radius: 999px; }
.tk-hero { position: relative; }

a.tk-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
a.tk-btn.is-primary:active { transform: translateY(1px); }

.tk-name { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.tk-name label { font-size: 14px; color: #d9cfbe; white-space: nowrap; }
.tk-name input {
    flex: 1; min-width: 0; font-size: 16px; padding: 10px 14px;
    background: rgba(243, 236, 223, 0.08); color: #fff6ea;
    border: 1px solid rgba(243, 236, 223, 0.25); border-radius: 12px; outline: none;
}
.tk-name input:focus { border-color: #f0502e; }
.tk-name.is-flash { animation: tkflash 1.5s ease; }
@keyframes tkflash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px rgba(240, 82, 46, 0.55); } }
.tk-btn.is-cancel { background: transparent; color: #ff8a63; border: 1px solid rgba(255, 138, 99, 0.55); }
.tk-btn.is-pending { background: rgba(243, 236, 223, 0.10); color: #d9cfbe; cursor: default; }
.tk-lock-note { font-size: 13px; line-height: 19px; color: #d9cfbe; padding: 10px 0 2px; }
.tk-pill.is-me { background: #f0502e; color: #fff6ea; border: 1px solid #f0502e; }
button.tk-btn { font: inherit; border: none; cursor: pointer; }
.tk-rules a { color: #ff8a63; }
