/* Direction 03: 日出杏. Scoped to attendees; admin/staff keep their work surfaces. */
body.attendee {
  --ink: #332c26;
  --muted: #726357;
  --accent: #b84928;
  --accent-hover: #a23b20;
  --border: #f4dfca;
  --success: #b84928;
  color: var(--ink);
  background: #fffaf1 url('/theme/sunrise-canvas-background.jpg') center top / min(100vw, 600px) 100% no-repeat;
  min-height: 100dvh;
  color-scheme: light;
  font-size: 1rem;
  line-height: 1.6;
}
.attendee header {position: relative; max-width: 600px; min-height: 88px; margin: auto; padding: 24px 22px 12px; background: transparent; border: 0; align-items: center; justify-content: center;}
.attendee header a {display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .875rem;}
.attendee header strong a {font-size: 1.125rem; font-weight: 500; color: var(--ink); letter-spacing: .08em;}
.attendee header > a {position: absolute; left: 18px; bottom: 0; font-size: .6875rem; min-height: 32px;}
.attendee main {max-width: 600px; padding: 0 16px max(90px, env(safe-area-inset-bottom));}
.attendee aside {font-size: .8125rem; line-height: 1.65; border: 1px solid var(--border); background: #fff8ec; color: #655646; padding: 12px 16px; border-radius: 12px; margin: 0 0 16px;}
.attendee #message:not(:empty) {position: sticky; top: 8px; z-index: 3; padding: 12px 16px; border: 1px solid #e7c7b6; background: #fff7f0; border-radius: 12px; color: #973a22; overflow-wrap: anywhere;}
.attendee .participant {max-width: none; margin: 0; padding: 20px; background: #ffffffb8; border: 1px solid var(--border); border-radius: 18px; box-shadow: none;}
.attendee .home-page {padding: 0; background: transparent; border: 0;}
.attendee h1, .attendee h2, .attendee p {overflow-wrap: anywhere;}
.attendee h1 {font-size: 1.75rem; line-height: 1.3; letter-spacing: -.03em;}
.attendee h2 {font-size: 1.25rem; line-height: 1.4; margin: 0;}
.attendee a {color: var(--accent);}
.attendee .muted {color: var(--muted); font-size: .875rem;}
.attendee .hero {position: relative; isolation: isolate; overflow: hidden; color: var(--ink); background: linear-gradient(125deg, #ffedcc, #ffe7db 66%, #f7eee2); border: 1px solid #f1ddc6; border-radius: 16px; margin: 0 0 24px;}
.attendee .kv-default {width: 100%; aspect-ratio: auto; min-height: 180px; padding: 20px; align-items: flex-start;}
.attendee .hero h1 {position: relative; z-index: 1; max-width: 100%; font-size: clamp(1.625rem, 6vw, 2.125rem); margin: 12px 0 4px;}
.attendee .hero p {position: relative; z-index: 1; color: #705744; margin: 8px 0 0; font-size: .875rem;}
.attendee .sport-mark {display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; color: var(--accent); background: #fff8ed; border: 1px solid #e9ceb1;}
.attendee .track-lines {position: absolute; z-index: -1; width: 190px; height: 300px; border: 2px solid #edc8ab; border-radius: 100px; right: -104px; bottom: -158px; transform: rotate(28deg); pointer-events: none;}
.attendee .track-lines::before, .attendee .track-lines::after {content: ''; position: absolute; inset: 12px; border: 2px solid #edc8ab; border-radius: inherit;}
.attendee .track-lines::after {inset: 26px;}
.attendee .kv-image {width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: white; border-radius: 16px; margin: 0 0 12px;}
.attendee .participant-id {display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 16px; background: #ffffffb8; margin-bottom: 12px;}
.attendee .participant-avatar {display: grid; place-items: center; width: 44px; height: 48px; border-radius: 50%; background: #ffecdc; color: #cd6038; flex-shrink: 0;}
.attendee .participant-id > div {min-width: 0; flex: 1 1 140px;}
.attendee .participant-id strong {overflow-wrap: anywhere;font-size: 1rem;}
.attendee .participant-id p {font-size: .8125rem; color: var(--muted); margin: 0;}
.attendee .number-tag {font-size: .875rem; font-weight: 400; font-variant-numeric: tabular-nums; padding: 0; color: var(--ink); white-space: nowrap;}
.attendee .route-card {padding: 18px; background: #ffffffb8; border: 1px solid var(--border); border-radius: 18px;}
.attendee .route-heading {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 0;}
.attendee .progress-count {font-size: 1.75rem; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--accent); line-height: 1.2;}
.attendee .progress-count small {font-size: .875rem; color: var(--muted); font-weight: 400;}
.attendee .route {margin: 22px 0 28px; gap: 0;}
.attendee .route::before {display: none;}
.attendee .route li:not(:last-child)::after {content: ''; position: absolute; left: calc(50% + 24px); width: calc(100% - 48px); top: 23px; border-top: 1px dashed #cdc7bd;}
.attendee .route li.done:not(:last-child)::after {border-top: 2px solid #d86440;}
.attendee .route li {color: var(--muted); min-width: 0;}
.attendee .route-icon {width: 48px; height: 48px; border: 1px solid #d2cbc3; background: #fffdf9; color: #918a81; margin-bottom: 8px;}
.attendee .done, .attendee .done strong {color: var(--success);}
.attendee .done .route-icon {background: linear-gradient(135deg,#e57346,#ca5734); border-color: #d7643e; color: white;}
.attendee .route strong {font-size: .9375rem; overflow-wrap: anywhere;}
.attendee .route small {display: inline-block; font-size: .8125rem; background: #f5f3ef; border-radius: 50px; padding: 3px 8px; margin-top: 5px;}
.attendee .route .done small {color: var(--success); background: #fff0e6;}
.attendee button, .attendee .primary-link {min-height: 48px; border: 1px solid transparent; border-radius: 12px; background: var(--accent); color: white; font-weight: 600; padding: 12px 16px; touch-action: manipulation; transition: background-color 180ms, box-shadow 180ms;}
.attendee button:active:not(:disabled), .attendee .primary-link:active {background: var(--accent-hover);}
.attendee button.secondary {background: #fffdf9; border-color: #cbb59e; color: var(--accent);}
.attendee button.secondary:active:not(:disabled) {background: #f8eadc;}
.attendee button:disabled {background: #f0e9df; color: #796e61; border-color: #ddd0c0; cursor: not-allowed;}
.attendee .scan {min-height: 56px; font-size: 1rem; width: 100%; margin: 0; border-radius: 40px; background: linear-gradient(110deg,#cb5834,#ba4727);}
.attendee .scan-help {text-align: center; margin: 12px 0 16px;}
.attendee #logout {display: block; font-size: .8125rem; font-weight: 400; margin: 16px auto 0; border-color: transparent; color: var(--muted);}
.attendee input, .attendee select {min-height: 50px; border-color: #cbb59e; border-radius: 10px; background: white; color: var(--ink); font-size: 1rem;}
.attendee input::placeholder {color: var(--muted);}
.attendee label {font-size: .9375rem; color: var(--ink); margin: 20px 0;}
.attendee :is(button,input,select,a,summary):focus-visible {outline: 3px solid var(--accent); outline-offset: 3px;}
.attendee .entry-copy {margin-bottom: 22px;}
.attendee .entry-copy p {font-size: .9375rem; color: var(--muted); margin: 12px 0 0;}
.attendee .entry-action, .attendee .success-page .primary-link {display: block; text-align: center;}
.attendee .page-heading {margin-bottom: 28px;}
.attendee .eyebrow {font-size: .875rem; margin: 16px 0 8px; color: var(--accent);}
.attendee .page-heading h1 {margin: 0 0 10px;}
.attendee .back-link {display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 14px; text-decoration: none; font-size: .875rem;}
.attendee .point-hero {padding: 24px; min-height: 216px;}
.attendee .point-symbol {display: inline-flex; color: var(--accent);}
.attendee .point-hero .eyebrow {margin-top: 12px;}
.attendee .participant-alert {padding: 16px; border-radius: 12px; background: #faf3e8; border: 1px solid var(--border); color: #66533f; font-size: .9375rem;}
.attendee .point-actions {display: grid; grid-template-columns: 1fr; gap: 10px; margin: 20px 0 0;}
.attendee .point-actions button {margin: 0; min-height: 52px;}
.attendee .locate-button {display: flex; justify-content: center; align-items: center; gap: 8px;}
.attendee .success-page {text-align: center; padding: 40px 24px 28px;}
.attendee .success-symbol {display: grid; place-items: center; margin: 0 auto 24px; width: 80px; height: 80px; border-radius: 50%; background: #e6f1e9; color: var(--success);}
.attendee .success-page p {color: var(--muted); margin-bottom: 28px;}
.attendee .completion-note {display: flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--success); background: #edf5ed; border-radius: 10px; padding: 12px;}
.attendee summary {min-height: 44px; padding: 10px 0; color: var(--muted); cursor: pointer; font-size: .875rem;}
.attendee .test-point-links {display: flex; flex-wrap: wrap; gap: 8px;}
.attendee .test-point-links a {display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;}
@media (max-width: 374px) {.attendee main {padding-inline: 12px;}.attendee .participant {padding: 16px;}.attendee .home-page {padding: 0;}.attendee .route-card {padding: 14px;}.attendee .kv-default {padding: 20px;}}
@media (hover: hover) {.attendee button:hover:not(:disabled), .attendee .primary-link:hover {background: var(--accent-hover);}.attendee button.secondary:hover:not(:disabled) {background: #f8eadc;}}
@media (prefers-reduced-motion: reduce) {.attendee *, .attendee *::before, .attendee *::after {transition: none !important; animation: none !important;}}
