:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5f6b7a;
  --line: #dce3ea;
  --paper: #ffffff;
  --soft: #f5f7f9;
  --navy: #14395b;
  --teal: #157f7d;
  --coral: #e86f51;
  --gold: #d6a33f;
  --shadow: 0 24px 60px rgba(23, 32, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 150px;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(20, 57, 91, 0.76), rgba(21, 127, 125, 0.22)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.auth-card {
  width: min(100%, 440px);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 60px rgba(23, 32, 42, 0.22);
}

.auth-card h1 {
  margin: 6px 0 10px;
  font-size: 30px;
  line-height: 1.25;
}

.auth-card p {
  margin: 0;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.auth-error {
  color: #b42318 !important;
  font-weight: 700;
}

.auth-help {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(20, 57, 91, 0.16);
  border-radius: 8px;
  background: var(--soft);
}

.auth-help p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 227, 234, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--teal);
}

.utility-bar {
  position: sticky;
  top: 75px;
  z-index: 19;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-bottom: 1px solid rgba(220, 227, 234, 0.9);
  background: var(--navy);
}

.utility-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.utility-bar a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  min-height: calc(100vh - 123px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(20, 57, 91, 0.92), rgba(21, 127, 125, 0.78)),
    url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=2200&q=85") center/cover;
  color: #fff;
}

.attendee-hero {
  background:
    linear-gradient(120deg, rgba(20, 57, 91, 0.94), rgba(21, 127, 125, 0.82)),
    url("https://images.unsplash.com/photo-1581092335397-9fa341108e1e?auto=format&fit=crop&w=2200&q=85") center/cover;
}

.hero-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
  padding: 72px 0 86px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 19px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.3;
}

.button.primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 16px 34px rgba(232, 111, 81, 0.28);
}

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.1);
}

.button.large {
  min-width: 240px;
}

.hero-panel {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.panel-top {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
}

.event-card,
.task-list {
  margin: 18px;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.event-date,
.capacity {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.event-card h2 {
  margin: 8px 0 18px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.35;
}

.alert-card {
  border-left: 6px solid var(--coral);
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: #e8eef2;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.capacity {
  margin-top: 12px;
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-list p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 700;
}

.check,
.dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}

.dot {
  background: var(--gold);
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.22;
  letter-spacing: 0;
}

.section p {
  color: var(--muted);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p {
  margin: 16px 0 0;
}

.sub-heading {
  margin-top: 54px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.feature h3,
.flow h3 {
  margin: 22px 0 10px;
  font-size: 20px;
  line-height: 1.35;
}

.feature p,
.flow p,
.contact p {
  margin: 0;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.workspace-section {
  background: var(--paper);
}

.practice-notice {
  position: relative;
  margin-bottom: 24px;
  padding: clamp(24px, 4vw, 36px);
  padding-right: clamp(72px, 8vw, 92px);
  border: 2px solid rgba(232, 111, 81, 0.42);
  border-radius: 8px;
  background: #fff7f3;
}

.practice-notice.is-hidden {
  display: none;
}

.practice-notice[hidden] {
  display: none !important;
}

.notice-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(232, 111, 81, 0.36);
  border-radius: 8px;
  color: var(--coral);
  background: #fff;
  font: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.notice-close:hover,
.notice-restore:hover {
  border-color: rgba(232, 111, 81, 0.7);
}

.notice-restore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0 0 24px;
  padding: 8px 14px;
  border: 1px solid rgba(232, 111, 81, 0.42);
  border-radius: 8px;
  color: var(--coral);
  background: #fff7f3;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.notice-restore[hidden] {
  display: none;
}

.practice-notice h2 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.24;
}

.practice-notice p:last-child {
  max-width: 940px;
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sticky-panel {
  position: sticky;
  top: 145px;
  max-height: calc(100vh - 170px);
  overflow: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sticky-panel h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.sticky-panel > p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.credential-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

.credential-box p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.credential-box span {
  display: block;
  margin-top: 8px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.credential-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.credential-links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(21, 127, 125, 0.24);
  border-radius: 8px;
  color: var(--teal);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.account-warning {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(232, 111, 81, 0.35);
  border-radius: 8px;
  background: #fff7f3;
}

.account-warning p {
  margin: 0 0 8px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.account-warning span {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.65;
}

.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.id-copy-row {
  grid-template-columns: minmax(0, 1fr);
}

.inline-id-code {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  min-height: 42px;
  font-size: 13px;
  white-space: nowrap;
}

.inline-id-select {
  display: inline-flex;
  align-items: center;
}

.inline-id-select select {
  width: 62px;
  min-height: 30px;
  margin: 0 2px;
  padding: 2px 4px;
  border: 1px solid rgba(21, 127, 125, 0.32);
  border-radius: 6px;
  color: var(--navy);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.id-copy-row .copy-button {
  width: 100%;
}

.copy-row code {
  display: flex;
  align-items: center;
  min-height: 42px;
}

.copy-button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  background: #106f6d;
}

.copy-button:disabled {
  color: #72808d;
  background: #dce3ea;
  cursor: not-allowed;
}

.copy-button.is-copied {
  background: var(--coral);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.workspace-main {
  min-width: 0;
}

.compact-heading {
  margin-bottom: 22px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.action-button {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.action-button:hover {
  border-color: rgba(21, 127, 125, 0.48);
  box-shadow: 0 16px 34px rgba(23, 32, 42, 0.1);
}

.action-button span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.action-button strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.35;
}

.checklist-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checklist-panel h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.checklist-panel label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.checklist-panel input {
  width: 20px;
  height: 20px;
  accent-color: var(--teal);
}

.notice-box {
  padding: clamp(26px, 4vw, 42px);
  border: 2px solid rgba(232, 111, 81, 0.45);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.notice-box h2 {
  max-width: 880px;
}

.notice-box p:last-child {
  max-width: 900px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.quick-card,
.resource-panel,
.warning-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.quick-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-card a,
.details-list a {
  color: var(--teal);
  font-weight: 800;
  overflow-wrap: anywhere;
}

code {
  display: inline-block;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--navy);
  background: #eef6f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.note {
  margin: 12px 0 0;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.note-text {
  margin: 0;
  color: var(--ink) !important;
  font-size: 14px;
  font-weight: 800;
}

.resource-panel,
.warning-box {
  margin-top: 24px;
}

.resource-panel h3,
.warning-box h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.35;
}

.resource-links {
  display: grid;
  gap: 10px;
}

.resource-links a {
  color: var(--teal);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.warning-box {
  border-color: rgba(232, 111, 81, 0.45);
  background: #fff;
}

.warning-box h3 {
  color: var(--coral);
}

.warning-box p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.warning-box p + p {
  margin-top: 12px;
}

.flow-band {
  background: var(--soft);
}

.details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.details-list div {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.details-list dt {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.details-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.flow {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.flow span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 800;
}

.flow h3 {
  margin-top: 0;
}

.contact {
  background: var(--navy);
  color: #fff;
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.lottery-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(20, 57, 91, 0.9), rgba(21, 127, 125, 0.74)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.lottery-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 70px) 18px;
}

.admin-shell {
  place-items: start center;
}

.lottery-card {
  width: min(100%, 720px);
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(23, 32, 42, 0.28);
}

.admin-card {
  width: min(100%, 1040px);
}

.lottery-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lottery-card h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
}

.lottery-lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.lottery-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(21, 127, 125, 0.24);
  border-radius: 8px;
  color: var(--teal);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.lottery-status {
  margin: 24px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: var(--soft);
  font-weight: 800;
}

.lottery-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.lottery-form label,
.admin-add-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.lottery-form input,
.admin-add-form input,
.admin-table input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.roulette-panel {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  text-align: center;
}

.roulette-panel[hidden] {
  display: none;
}

.roulette-window {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 2px solid rgba(214, 163, 63, 0.48);
  border-radius: 8px;
  background: #fffaf0;
  overflow: hidden;
}

.roulette-window span {
  color: var(--coral);
  font-size: clamp(52px, 11vw, 96px);
  font-weight: 800;
  line-height: 1;
}

.roulette-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.lottery-result {
  margin-top: 30px;
}

.lottery-result[hidden] {
  display: none;
}

.result-card {
  padding: clamp(24px, 5vw, 44px);
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.result-card.is-grand {
  border-color: rgba(214, 163, 63, 0.68);
  background: #fff8e6;
}

.result-card.is-win {
  border-color: rgba(21, 127, 125, 0.48);
  background: #eef8f7;
}

.result-card.is-pending,
.result-card.is-final {
  border-color: rgba(21, 127, 125, 0.34);
  background: #fff;
}

.result-card.is-lose,
.result-card.is-closed {
  border-color: rgba(95, 107, 122, 0.22);
  background: var(--soft);
}

.result-kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(52px, 11vw, 104px);
  line-height: 1;
}

.result-name {
  margin: 18px 0 0;
  color: var(--navy);
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
}

.result-card p:last-child {
  margin: 18px auto 0;
  max-width: 540px;
  color: var(--muted);
  font-weight: 700;
}

.result-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  text-align: left;
}

.result-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.result-list-row span {
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.result-list-row strong {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.2;
}

.result-list-row.is-grand {
  border-color: rgba(214, 163, 63, 0.62);
  background: #fff8e6;
}

.result-list-row.is-grand strong {
  color: #7a5412;
  background: #fff0c7;
}

.result-list-row.is-win {
  border-color: rgba(21, 127, 125, 0.38);
  background: #eef8f7;
}

.result-list-row.is-win strong {
  color: var(--teal);
  background: #e4f5f3;
}

.result-list-row.is-lose strong {
  color: var(--muted);
  background: var(--soft);
}

.result-list-row.is-mine {
  outline: 3px solid rgba(232, 111, 81, 0.26);
}

.admin-login[hidden],
.admin-dashboard[hidden] {
  display: none;
}

.admin-dashboard {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-stats div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.admin-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-stats strong {
  color: var(--ink);
  font-size: 22px;
}

.admin-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.admin-table td:first-child {
  width: 64px;
  color: var(--navy);
  font-weight: 800;
}

.admin-table td:nth-child(3) {
  width: 110px;
}

.admin-table td:last-child {
  width: 150px;
  white-space: nowrap;
}

.admin-table button,
.admin-reset {
  min-height: 36px;
  margin-right: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(21, 127, 125, 0.24);
  border-radius: 8px;
  color: var(--teal);
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.admin-table button:hover,
.admin-reset:hover {
  border-color: rgba(21, 127, 125, 0.6);
}

.admin-reset {
  justify-self: start;
  border-color: rgba(232, 111, 81, 0.36);
  color: var(--coral);
}

.prize-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.prize-badge.is-grand {
  color: #7a5412;
  background: #fff0c7;
}

.prize-badge.is-win {
  color: var(--teal);
  background: #e4f5f3;
}

.prize-badge.is-lose {
  color: var(--muted);
  background: var(--soft);
}

.prize-badge.is-pending {
  color: var(--muted);
  background: #edf1f5;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .split,
  .workspace-layout,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 48px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .details-list {
    grid-template-columns: 1fr;
  }

  .admin-stats,
  .admin-add-form {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    align-items: start;
  }

  .utility-bar {
    top: 111px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sticky-panel {
    position: static;
  }

  .notice-close {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 520px) {
  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .utility-bar {
    top: 116px;
  }

  .utility-bar a {
    min-height: 44px;
    font-size: 13px;
  }

  .action-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .copy-row,
  .id-copy-row {
    grid-template-columns: 1fr;
  }

  .copy-button {
    width: 100%;
  }

  .hero-panel {
    min-width: 0;
  }

  .event-card,
  .task-list {
    margin: 12px;
    padding: 18px;
  }

  .flow li {
    grid-template-columns: 1fr;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
