/* Home page. Scales up on big screens so it's readable on a TV too. */
html { font-size: clamp(16px, 0.55vw + 12px, 26px); }

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, rgba(99, 102, 241, .18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.home {
  display: grid;
  gap: 1.1rem;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: calc(1.2rem + env(safe-area-inset-top)) 16px calc(2rem + env(safe-area-inset-bottom));
}

.brand { display: flex; align-items: center; gap: 1rem; padding: .6rem .2rem .4rem; }
.brand-logo { width: 3.6rem; height: 3.6rem; flex: none; }
.brand h1 { font-size: 2rem; font-weight: 850; letter-spacing: -.02em; }
.brand p { color: var(--muted); margin-top: .2rem; }

.card h2 { font-size: 1.3rem; margin-bottom: 1rem; }

.stack { display: grid; gap: 1rem; }

.choice-row { display: grid; gap: .75rem; }
@media (min-width: 520px) { .choice-row { grid-template-columns: 1fr 1fr; } }
.choice-row.two { grid-template-columns: 1fr 1fr; }

.btn.big { font-size: 1.05rem; min-height: 3.6rem; }

.choice { justify-content: flex-start; text-align: left; padding: .9rem 1rem; min-height: 4.6rem; }
.choice svg { width: 1.9rem; height: 1.9rem; }
.choice span { display: grid; gap: .15rem; }
.choice small { font-weight: 500; font-size: .85rem; opacity: .75; }

.code-input { font-size: 2rem; min-height: 4rem; text-align: center; text-transform: uppercase; }
.code-input::placeholder { letter-spacing: .12em; }

.form-error { color: var(--danger); font-weight: 600; min-height: 1.2em; margin-top: -.3rem; }
.form-error:empty { display: none; }

.recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.recent-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .5rem;
  padding: .55rem .55rem .55rem .9rem;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.recent-info { min-width: 0; }
.recent-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-meta { font-size: .85rem; color: var(--muted); }
.recent-item .btn { min-height: 2.6rem; padding: .3rem .7rem; }
.recent-item .btn svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 400px) { .recent-item .btn .label { display: none; } }

.home-foot { text-align: center; color: var(--muted); font-size: .85rem; padding-top: .5rem; }
