/* The start page: the choice between Solo and Team, and the Team step (D-042).
   Ported from the sixth design delivery (design/v4: start.css, team.html,
   artboards 27–27F). Every rule is scoped to .start, so none of it reaches the
   lobby, the console or the invite page, which keep styles.css alone. */

.view.start {
  position: relative; padding: 0; gap: 0; overflow-y: auto;
  background: linear-gradient(180deg, rgba(11, 12, 14, .78), rgba(11, 12, 14, .62) 40%, rgba(11, 12, 14, .9)),
    url(start/landing-bg.jpg) center / cover #0f1113;
}
.start .wrap {
  position: relative; width: 100%; max-width: 1728px; margin: 0 auto; min-height: 100%;
  padding: 32px clamp(16px, 4.5vw, 96px) 26px; display: flex; flex-direction: column; gap: 20px;
}
.start a { color: inherit; }
.start .top { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.start .lockup { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 26px; }
.start .lockup img { width: 40px; height: 40px; }
.start .lockup b { color: var(--c-amber); font-weight: 600; }
.start .codelink {
  font-size: 15px; color: var(--c-muted); text-decoration: none; padding: 10px 14px; min-height: 44px;
  display: inline-flex; align-items: center; border: 1px solid var(--c-bezel); border-radius: 10px; background: rgba(15, 17, 19, .6);
}
.start .codelink .j { color: var(--c-green); font-weight: 600; margin-left: .3em; }
.start .codelink .j-phone { display: none; }
.start .codelink:hover, .start .codelink:focus-visible { border-color: var(--c-green); color: var(--c-ink); outline: none; }
.start .eyebrow { font-size: 13px; letter-spacing: .22em; color: var(--c-amber); }
.start h1 { margin: 0; font-size: clamp(30px, 4vw, 64px); line-height: 1.05; font-weight: 600; }
.start .lede { margin: 0; font-size: clamp(15px, 1.3vw, 20px); line-height: 1.5; color: #c9c4ba; }
.start .lede .l-phone, .start .door .d-phone { display: none; }
.start .label { font-size: 12px; letter-spacing: .24em; color: var(--c-muted); }

/* ---- the doors ---------------------------------------------------------------- */
/* Three doors since D-055: Solo, Duo, Team. Duo was added without a drawing:
   brass from the palette, and the Team door's picture cropped to two phones. */
.start .doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; flex-shrink: 0; }
.start .door {
  --c: var(--c-copper); position: relative; display: flex; flex-direction: column; min-height: 520px;
  border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--c-ink); cursor: pointer;
  background: linear-gradient(180deg, #252a31, #15181b 70%); border: 1.5px solid var(--c-bezel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); transition: border-color .15s, box-shadow .15s, transform .08s;
}
.start .door.team { --c: var(--c-green); }
.start .door.duo { --c: var(--c-brass); }
.start .door::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.start .door .window {
  position: relative; margin: 14px 14px 0 20px; height: 50%; min-height: 220px; border-radius: 12px;
  border: 2px solid #4a525d; overflow: hidden; background: #0b0d0f; flex-shrink: 0;
}
.start .door .window .img { position: absolute; inset: 0; background-size: cover; background-position: left 30% top; opacity: .66; transition: opacity .15s; }
.start .door.solo .img { background-image: url(start/preview-solo.jpg); }
.start .door.team .img { background-image: url(start/preview-team.jpg); background-position: center; }
.start .door.duo .img { background-image: url(start/preview-duo.jpg); background-position: center; }
.start .door .chip {
  position: absolute; left: 16px; bottom: 12px; font-size: 11px; letter-spacing: .14em; padding: 4px 8px;
  border-radius: 4px; background: rgba(12, 14, 16, .7); border: 1px solid var(--c-bezel);
}
/* The corner gauge is the game's own (gauge.js), cropped to its arc. It sits in
   the amber while the door is idle and swings into the green on hover. */
.start .door .dial {
  position: absolute; right: 12px; top: 12px; width: 96px; padding: 6px 6px 2px; border-radius: 10px;
  background: rgba(11, 13, 15, .82); border: 1.5px solid #4a525d;
}
.start .door .dial svg { display: block; width: 100%; height: auto; }
.start .door .body { display: flex; flex-direction: column; gap: 8px; padding: 20px 28px 22px 34px; flex-grow: 1; }
.start .door .title { font-size: clamp(28px, 3vw, 52px); line-height: 1; font-weight: 600; letter-spacing: .08em; color: var(--c); }
.start .door .sub { font-size: 19px; font-weight: 600; margin: 0; color: var(--c-ink); }
.start .door .desc { font-size: 15px; line-height: 1.5; color: var(--c-muted); max-width: 560px; }
.start .door .foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid #2c3138; padding-top: 14px;
}
.start .door .go { font-size: 16px; font-weight: 600; color: var(--c); white-space: nowrap; }
.start .door .go i { display: inline-block; font-style: normal; transition: transform .15s; margin-left: 8px; }
.start .door .meta { font-size: 13px; color: var(--c-muted); }
.start .live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-green); }
.start .live .lamp { width: 10px; height: 10px; border-radius: 50%; background: var(--c-green); box-shadow: 0 0 0 3px rgba(45, 224, 184, .18), 0 0 12px rgba(45, 224, 184, .7); flex-shrink: 0; }
.start .live.none { color: var(--c-muted); }
.start .live.none .lamp { background: #15181b; border: 1.5px solid #454c57; box-shadow: none; }
.start .warn { display: none; align-items: center; gap: 8px; font-size: 13px; line-height: 1.35; color: var(--c-amber); }
.start .warn svg { flex-shrink: 0; }
/* states */
.start .door:hover { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 22px 60px color-mix(in srgb, var(--c) 28%, transparent); }
.start .door:hover .img, .start .door:focus-visible .img { opacity: 1; }
.start .door:hover .go i, .start .door:focus-visible .go i { transform: translateX(6px); }
.start .door:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 5px; border-color: var(--c); }
.start .door:active { transform: translateY(2px); box-shadow: inset 0 4px 14px rgba(0, 0, 0, .6), 0 0 0 1px var(--c); }
.start .door:active .img { opacity: .55; }
.start .share { display: none; }
.start .foot-note { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--c-faint); margin-top: auto; }

/* ---- the Team step ------------------------------------------------------------ */
.start .team-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 560px); gap: 32px; justify-content: center; align-items: stretch; }
.start .panel { position: relative; border-radius: 20px; border: 1.5px solid var(--c-bezel); padding: 30px 34px; display: flex; flex-direction: column; gap: 18px; }
.start .panel.form { background: linear-gradient(180deg, #252a31, #15181b 70%); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.start .panel.form::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c-green); border-radius: 20px 0 0 20px; }
.start .panel.rooms { background: rgba(15, 17, 19, .82); padding: 26px 28px; gap: 12px; }
.start .kicker { font-size: 12px; letter-spacing: .24em; color: var(--c-green); }
.start .intro { display: flex; flex-direction: column; gap: 12px; }
.start .panel h1 { font-size: clamp(27px, 2.6vw, 36px); line-height: 1.1; }
.start .panel .lede { font-size: 16px; }
.start .field { display: flex; flex-direction: column; gap: 8px; }
.start .field span { font-size: 13px; color: var(--c-muted); }
.start .field input {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--c-bezel);
  background: #101316; color: var(--c-ink); font: inherit; font-size: 18px; width: 100%;
}
.start .field input:focus-visible, .start .code input:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.start .public {
  display: flex; align-items: center; gap: 14px; padding: 8px 16px 8px 12px; border-radius: 12px;
  border: 1.5px solid var(--c-bezel); background: #101316; min-height: 56px; cursor: pointer; font-size: 15.5px;
}
.start .public input {
  appearance: none; -webkit-appearance: none; width: 52px; height: 30px; flex-shrink: 0; border-radius: 15px;
  background: #15181b; border: 1.5px solid #454c57; position: relative; margin: 0; cursor: pointer;
}
.start .public input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c9ced4, #3b424d); transition: left .12s;
}
.start .public input:checked { background: var(--c-copper); }
.start .public input:checked::after { left: 24px; }
.start .public input:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.start .public small { display: block; font-size: 12.5px; color: var(--c-muted); }
.start .primary {
  height: 56px; flex-shrink: 0; border-radius: 14px; border: none; background: var(--c-green); color: #06231c;
  font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(45, 224, 184, .25);
}
.start .primary:hover { filter: brightness(1.08); }
.start .primary:active { transform: translateY(1px); }
.start .or { display: flex; align-items: center; gap: 12px; color: var(--c-muted); font-size: 13px; text-align: left; }
.start .or::before, .start .or::after { content: ""; flex-grow: 1; height: 1px; background: #2c3138; }
.start .code { display: flex; gap: 10px; }
.start .code input {
  width: 0; flex: 1 1 0; min-width: 0; height: 56px; border-radius: 10px; border: 1.5px solid var(--c-bezel);
  background: #0b0d0f; color: var(--c-ink); text-align: center; font-family: "IBM Plex Mono", monospace;
  font-size: 26px; text-transform: uppercase; letter-spacing: .35em; padding-left: .35em;
}
.start .code button {
  flex: 0 0 36%; height: 56px; border-radius: 14px; border: 1.5px solid var(--c-green); background: transparent;
  color: var(--c-green); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
}
.start .code button:hover, .start .code button:focus-visible { background: rgba(45, 224, 184, .1); outline: none; }
.start .rooms-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.start .roomlist { display: flex; flex-direction: column; gap: 10px; }
.start .roomlist .none { font-size: 13.5px; color: var(--c-muted); line-height: 1.5; }
.start .room {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; min-height: 52px; text-align: left;
  border-radius: 12px; border: 1px solid #2c3138; background: #15181b; color: var(--c-ink); font: inherit; cursor: pointer;
}
.start .room:hover, .start .room:focus-visible { border-color: var(--c-green); outline: none; }
.start .room .who { flex-grow: 1; min-width: 0; }
.start .room b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.start .room .n { font-size: 12.5px; color: var(--c-muted); margin-left: 8px; }
.start .pips { display: inline-flex; gap: 4px; align-items: center; }
.start .pips i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #454c57; }
.start .pips i.on { background: var(--c-green); border-color: var(--c-green); }
.start .diff { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; min-width: 88px; }
.start .diff .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.start .diff .bars i { width: 4px; background: #3b424d; border-radius: 1px; }
.start .diff .bars i:nth-child(1) { height: 6px; } .start .diff .bars i:nth-child(2) { height: 10px; } .start .diff .bars i:nth-child(3) { height: 14px; }
.start .diff.easy { color: var(--c-green); } .start .diff.normal { color: var(--c-amber); } .start .diff.hard { color: var(--c-copper); }
.start .diff.easy .bars i:nth-child(-n+1), .start .diff.normal .bars i:nth-child(-n+2), .start .diff.hard .bars i { background: currentColor; }
.start .room .j { font-size: 14px; font-weight: 600; color: var(--c-green); white-space: nowrap; }
.start .hint { margin: auto 0 0; padding-top: 12px; font-size: 13px; line-height: 1.5; color: var(--c-faint); text-align: center; }
.start .preview { height: 180px; flex-shrink: 0; border-radius: 12px; border: 2px solid #4a525d; background: url(start/preview-team.jpg) center / cover; opacity: .85; }
/* The room form worded for two: its accents in the Duo door's brass. */
.start.duo .preview { background-image: url(start/preview-duo.jpg); }
.start.duo .panel.form::before { background: var(--c-brass); }
.start.duo .kicker { color: var(--c-brass); }

/* ---- phones and small tablets -------------------------------------------------- */
@media (max-width: 899px) {
  .view.start { background-image: linear-gradient(180deg, rgba(11, 12, 14, .78), rgba(11, 12, 14, .62) 40%, rgba(11, 12, 14, .9)), url(start/landing-bg-phone.jpg); }
  .start .wrap { padding: 18px 16px; gap: 14px; }
  .start .lockup { font-size: 21px; } .start .lockup img { width: 32px; height: 32px; }
  .start .codelink { border: none; background: none; padding: 10px 0; font-size: 13px; }
  .start .codelink .q, .start .codelink .j-wide { display: none; }
  .start .codelink .j-phone { display: inline; }
  .start .codelink .j { margin-left: 0; }
  .start .eyebrow, .start .door .dial { display: none; }
  .start .lede .l-wide, .start .door .d-wide { display: none; }
  .start .lede .l-phone, .start .door .d-phone { display: inline; }
  .start .doors { grid-template-columns: 1fr; gap: 14px; }
  .start .door.team { order: -2; }
  .start .door.duo { order: -1; }
  .start .door { min-height: 0; border-radius: 16px; }
  .start .door .window { height: 78px; min-height: 0; margin: 10px 10px 0 15px; border-radius: 9px; }
  .start .door .chip { display: none; }
  /* the strip shows the second row of instruments close up, as drawn in 27C */
  .start .door.solo .img { background-size: 170% auto; background-position: 21% 42%; }
  .start .door .body { padding: 12px 16px 14px 22px; gap: 5px; }
  .start .door .title { font-size: 28px; }
  .start .door .sub { font-size: 15.5px; } .start .door .desc { font-size: 13.5px; }
  .start .door .foot { border: none; padding-top: 4px; }
  .start .door .body { position: relative; }
  .start .door .go { font-size: 0; position: absolute; right: 16px; top: 12px; }
  .start .door .go i { font-size: 20px; margin: 0; }
  .start .door:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .45); border-color: var(--c-bezel); }
  .start .foot-note { display: none; }
  .start .share {
    display: block; align-self: center; font: inherit; font-size: 13.5px; color: var(--c-muted); padding: 12px;
    background: none; border: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px;
  }
  .start .team-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 16px; flex-grow: 1; }
  .start .panel { padding: 0; border: none; background: none !important; box-shadow: none !important; border-radius: 0; }
  .start .panel.form::before { display: none; }
  .start .panel.form .intro { border-left: 4px solid var(--c-green); padding-left: 14px; display: flex; flex-direction: column; gap: 6px; }
  .start.duo .panel.form .intro { border-left-color: var(--c-brass); }
  .start .panel.form { gap: 14px; }
  .start .panel.rooms { padding: 0; }
  .start .panel h1 { font-size: 26px; }
  .start .preview { display: none; }
}
.start .door.solo.needs-desk .warn { display: flex; }
.start .door.solo.needs-desk .meta { display: none; }
.start .warn b { font-weight: 600; }
@media (max-width: 699px) {
  .start .door.solo .warn { display: flex; }
  .start .door.solo .meta { display: none; }
  .start .door.solo .foot { border: none; padding: 0; }
}
@media (max-height: 700px) and (max-width: 699px) {
  .start .wrap { gap: 10px; padding-top: 12px; }
  .start .lede, .start .share { display: none; }
  .start .door .window { height: 56px; }
  .start .door.solo .desc { display: none; }
  .start h1 { font-size: 25px; }
  .start .door .body { padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .start .door, .start .door .img, .start .door .go i, .start .public input::after { transition: none; }
}
