/* Entry styles from TRAX, trax_service/app/static/css/trax_pwa.css. */
:root {
    color-scheme: dark;
    --bg-a: #07111f;
    --bg-b: #102a4a;
    --text: #f8fbff;
    --muted: #bdd0e7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 50% 0%, rgba(98, 163, 255, 0.34), transparent 34%),
        linear-gradient(145deg, var(--bg-a), var(--bg-b) 54%, #07111f);
}

.entry-shell {
    min-height: 100vh;
}

.code-screen {
    width: min(560px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 18px;
}

.top-bar {
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    align-items: center;
    gap: 12px;
}

.top-bar > :first-child {
    justify-self: start;
}

.top-bar > :nth-child(2) {
    justify-self: center;
}

.top-bar > :last-child {
    justify-self: end;
}

.brand {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    overflow: hidden;
}

.brand-icon {
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    display: block;
}

.code-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 4px 0 24px;
}

.eyebrow {
    color: #9ec5ff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-actions {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.entry-action-card {
    min-height: 92px;
    width: 100%;
    border: 1px solid rgba(158, 197, 255, 0.26);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)),
        rgba(7, 17, 31, 0.26);
    color: #ffffff;
    padding: 18px 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.entry-action-card::after {
    content: "›";
    color: rgba(231, 240, 255, 0.8);
    font-size: 30px;
    line-height: 1;
    padding-right: 2px;
}

.entry-action-card:hover,
.entry-action-card:focus-visible {
    border-color: rgba(158, 197, 255, 0.6);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)),
        rgba(7, 17, 31, 0.24);
    box-shadow:
        0 22px 42px rgba(0, 0, 0, 0.22),
        0 0 0 4px rgba(98, 163, 255, 0.14);
    transform: translateY(-1px);
    outline: none;
}

.entry-action-copy {
    display: block;
    min-width: 0;
}

.entry-action-copy strong {
    display: block;
    font-size: 22px;
    line-height: 1.12;
    font-weight: 900;
}

.entry-action-copy > span {
    display: block;
    margin-top: 7px;
    color: rgba(223, 234, 255, 0.9);
    font-size: 15px;
    line-height: 1.35;
}

.entry-code-panel {
    margin-top: 20px;
    padding: 18px 16px 16px;
    border: 1px solid rgba(158, 197, 255, 0.22);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(2, 8, 23, 0.36), rgba(2, 8, 23, 0.54)),
        rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 38px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.entry-panel-title {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
}

.entry-panel-subtitle {
    margin-top: 7px;
    color: rgba(223, 234, 255, 0.82);
    font-size: 15px;
    line-height: 1.4;
}

/* Guest links reuse the entry screen layout and never collect input on the alias. */
h1, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #acd1ff; outline-offset: 4px; }
.code-screen { grid-template-rows: auto 1fr; }
.code-center { justify-content: flex-start; padding-top: 12px; }
.utility, .open {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px;
  min-height: 48px; border-radius: 14px; font-weight: 800;
}
.utility {
  padding: 0 12px; border: 1px solid rgba(158,197,255,.44);
  background: rgba(255,255,255,.12); font-size: 14px;
}
.utility svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.open { margin-top: 18px; padding: 0 24px; background: #e5eeff; color: #102a4a; }
.open:hover { background: white; }
.guest { margin: 20px 12px 0; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.guest a { text-decoration: underline; text-underline-offset: .16em; }
@media (max-width: 380px) {
  .code-screen { padding-left: 12px; padding-right: 12px; }
  .top-bar { gap: 6px; grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr); }
  .utility { padding: 0 6px; font-size: 12px; gap: 3px; }
  .utility svg { width: 17px; }
  .entry-action-copy strong { font-size: 20px; }
}
