*{box-sizing:border-box}
:root{color-scheme:dark}
html,body{margin:0;min-height:100%}
body{
  min-height:100vh;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  background:
    linear-gradient(rgba(7,12,18,.92),rgba(7,12,18,.98)),
    linear-gradient(135deg,#18232d,#080b0f);
  color:#fff;
}
button{font:inherit;cursor:pointer}
[hidden]{display:none!important}

.app-shell{
  width:min(980px,calc(100% - 32px));
  margin:0 auto;
  padding:40px 0 64px;
}
.hero{
  text-align:center;
  margin-bottom:38px;
}
.eyebrow{
  margin:0 0 10px;
  font-size:12px;
  letter-spacing:.24em;
  font-weight:900;
  color:#9fb2c3;
}
.hero h1{
  margin:0;
  font-size:clamp(40px,8vw,68px);
  letter-spacing:.08em;
  font-weight:900;
}
.subtitle{
  margin:12px 0 0;
  color:#9ca9b5;
  font-size:14px;
}
.screen{
  animation:fadeIn .16s ease;
}
@keyframes fadeIn{
  from{opacity:.4;transform:translateY(4px)}
  to{opacity:1;transform:none}
}
.screen-header{
  text-align:center;
  margin-bottom:24px;
}
.screen-header h2{
  margin:0;
  font-size:28px;
}
.screen-header p{
  margin:8px 0 0;
  color:#9da8b3;
  font-size:14px;
}
.step-context{
  color:#7fa3c0!important;
  font-weight:800;
  letter-spacing:.04em;
}

.choice-grid{
  display:grid;
  gap:18px;
}
.two-col{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.choice-card{
  min-height:190px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.15);
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition:transform .16s ease,filter .16s ease,border-color .16s ease;
}
.choice-card:hover{
  transform:translateY(-3px);
  filter:brightness(1.06);
  border-color:rgba(255,255,255,.28);
}
.gake-card{
  background:linear-gradient(145deg,rgba(141,89,53,.92),rgba(86,51,29,.92));
}
.hashira-card{
  background:linear-gradient(145deg,rgba(53,110,149,.94),rgba(29,66,94,.94));
}
.choice-title{
  font-size:clamp(38px,6vw,56px);
  font-weight:900;
}
.choice-note{
  color:rgba(255,255,255,.78);
  font-weight:700;
}

.list-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.list-card{
  width:100%;
  min-height:140px;
  text-align:left;
  padding:20px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.055);
  color:#fff;
  display:grid;
  gap:10px;
  transition:transform .16s ease,background .16s ease,border-color .16s ease;
}
.list-card:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.085);
  border-color:rgba(255,255,255,.26);
}
.list-card-title{
  font-size:22px;
  font-weight:900;
}
.list-card-meta{
  color:#aab5bf;
  font-size:13px;
  line-height:1.6;
}
.date-grid{
  display:grid;
  gap:12px;
}
.date-button{
  width:100%;
  min-height:78px;
  padding:18px 20px;
  text-align:left;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(255,255,255,.055);
  color:#fff;
  font-size:20px;
  font-weight:900;
}
.date-button:hover{
  background:rgba(255,255,255,.085);
}

.scenario-card{
  max-width:760px;
  margin:0 auto;
  padding:26px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  background:rgba(255,255,255,.055);
}
.scenario-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:20px;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 11px;
  border-radius:999px;
  background:rgba(60,130,180,.18);
  border:1px solid rgba(110,180,225,.18);
  color:#b9d9ee;
  font-size:12px;
  font-weight:900;
}
.slot-time{
  color:#cbd4dc;
  font-weight:800;
}
.scenario-card h3{
  margin:0;
  font-size:34px;
  line-height:1.3;
}
.scenario-detail-list{
  margin:24px 0;
  display:grid;
  gap:14px;
}
.scenario-detail-list div{
  padding:14px 16px;
  border-radius:14px;
  background:rgba(255,255,255,.045);
}
.scenario-detail-list dt{
  margin-bottom:5px;
  color:#8fa4b5;
  font-size:12px;
  font-weight:800;
}
.scenario-detail-list dd{
  margin:0;
  font-size:16px;
  line-height:1.6;
  overflow-wrap:anywhere;
}
.start-button{
  width:100%;
  min-height:56px;
  border:0;
  border-radius:14px;
  background:#fff;
  color:#10151b;
  font-weight:900;
  font-size:17px;
}
.phase-note{
  margin:14px 0 0;
  color:#8f9ba6;
  font-size:12px;
  line-height:1.7;
}
.back-button{
  display:block;
  margin:26px auto 0;
  padding:10px 12px;
  border:0;
  background:transparent;
  color:#aeb8c2;
}
.back-button:hover{
  color:#fff;
}
.empty-state{
  margin-top:16px;
  padding:28px 20px;
  text-align:center;
  border:1px dashed rgba(255,255,255,.16);
  border-radius:16px;
  color:#9ca8b4;
}
.loading{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:12px;
  background:rgba(5,8,12,.78);
  backdrop-filter:blur(3px);
}
.spinner{
  width:36px;
  height:36px;
  border:3px solid rgba(255,255,255,.18);
  border-top-color:#fff;
  border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translateX(-50%);
  max-width:min(520px,calc(100% - 32px));
  padding:12px 16px;
  border-radius:12px;
  background:#1b2630;
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  box-shadow:0 12px 32px rgba(0,0,0,.28);
  font-size:13px;
}
@media(max-width:720px){
  .two-col,.list-grid{grid-template-columns:1fr}
  .choice-card{min-height:150px}
  .app-shell{width:min(100% - 24px,980px);padding-top:28px}
  .scenario-card{padding:20px}
}


/* ===== Phase 2: competition progress ===== */
.status-pill[data-status="未実施"]{
  background:rgba(60,130,180,.18);
  border-color:rgba(110,180,225,.18);
  color:#b9d9ee;
}
.status-pill[data-status="競技中"]{
  background:rgba(190,125,30,.22);
  border-color:rgba(255,195,105,.24);
  color:#ffd18a;
}
.status-pill[data-status="完了"]{
  background:rgba(55,145,95,.22);
  border-color:rgba(110,220,150,.22);
  color:#aee3bf;
}
.start-button[data-action="start"]{
  background:#ffffff;
  color:#10151b;
}
.start-button[data-action="finish"]{
  background:#b13b3b;
  color:#ffffff;
}
.start-button[data-action="done"]{
  background:rgba(255,255,255,.10);
  color:#aeb8c2;
  cursor:default;
}
.start-button:disabled{
  opacity:.7;
  cursor:default;
}
