/* お前の人生、サービス終了します
   画面1: ソシャゲのタイトル画面（背景画像 + ロゴ + 名前入力）
   画面2: ゲーム内の「お知らせ」ダイアログ + 下部の共有バー
   common.css の上から、このページだけ書体と色を上書きする。 */

:root {
  --g-navy: #0c1028;
  --g-navy-2: #1a2142;
  --g-gold: #f7c948;
  --g-gold-2: #e0a21a;
  --g-red: #e3344a;
  --g-ink: #1f2330;
  --g-gray: #6b7280;
  --g-line: #e2e5ec;
  --g-radius: 14px;
  --logo-font: "Dela Gothic One", "Noto Sans JP", sans-serif;
}

body.game {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 400;
  background: var(--g-navy);
  color: var(--g-ink);
  letter-spacing: 0;
  line-height: 1.7;
}

/* ---------- 画面の土台 ---------- */
.screen {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.screen[hidden] { display: none; }
/* 背景画像: スマホは縦長 bg.jpg、横長の画面では bg-pc.jpg に切り替える */
.bg {
  position: absolute;
  inset: 0;
  /* ロゴが絵に入っているので左右を切らない。幅いっぱいに上寄せで置き、余った下は絵の裾の色で埋める */
  background: #150b24 url("./bg.jpg") top center / 100% auto no-repeat;
  z-index: 0;
}
@media (min-aspect-ratio: 4/5) {
  .bg { background: #150b24 url("./bg-pc.jpg") center / cover no-repeat; }
  /* タイトル画面（横長）: 絵は切らずに全部見せる。上に絵、下に入力欄。
     絵の落ちは頭を下げる3人なので、入力欄を絵の上に重ねない。
     絵の左右と下の余りは、同じ絵をぼかして敷く */
  .screen-title .bg { background: #150b24; }
  .screen-title .bg::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: url("./bg-pc.jpg") center / cover no-repeat;
    filter: blur(24px) brightness(0.45);
  }
  .screen-title .bg::after {
    /* 入力欄とフッターの高さぶんは絵の外に出す */
    inset: 0 0 max(28vh, 240px) 0;
    background:
      linear-gradient(180deg, rgba(12, 16, 40, 0) 72%, rgba(12, 16, 40, 0.6) 90%, rgba(12, 16, 40, 0.85) 100%),
      url("./bg-pc.jpg") center top / contain no-repeat;
  }
  .screen-title .title-space { min-height: 0; }
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* ロゴとキャラは絵に描いてあるので上は暗くしない。入力欄が乗る下だけ落とす */
  background: linear-gradient(180deg, rgba(12, 16, 40, 0) 0%, rgba(12, 16, 40, 0) 55%, rgba(12, 16, 40, 0.55) 80%, rgba(12, 16, 40, 0.9) 100%);
}
.bg-dim::after {
  background: rgba(8, 10, 28, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.screen > :not(.bg) { position: relative; z-index: 1; }

/* ---------- 画面1: タイトル ---------- */
.screen-title { padding: 0 20px; }
.title-top {
  display: flex;
  justify-content: space-between;
  padding: 14px 0 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.08em;
}
/* ロゴは背景画像に描いてある。ここは絵を見せるための余白 */
.title-space { flex: 1; min-height: 46vh; }
.title-lead {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin-bottom: 2px;
}
.title-form {
  display: grid;
  gap: 10px;
  padding: 16px 16px 14px;
  background: rgba(10, 12, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--g-radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}
.title-note { font-size: 11px; color: rgba(255, 255, 255, 0.55); text-align: center; margin-top: -4px; }
.title-copy {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  padding: 18px 0 max(16px, env(safe-area-inset-bottom));
  letter-spacing: 0.1em;
}
.title-copy a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }

/* ---------- ボタン ---------- */
.gbtn {
  font: inherit;
  font-weight: 900;
  font-size: 17px;
  min-height: 54px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  letter-spacing: 0.04em;
  transition: transform 80ms ease, filter 120ms ease;
}
.gbtn:active { transform: translateY(2px); }
.gbtn:disabled { opacity: 0.55; cursor: default; }
.gbtn-gold {
  background: linear-gradient(180deg, #ffe08a 0%, var(--g-gold) 55%, var(--g-gold-2) 100%);
  color: #3a2a00;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.22), 0 6px 18px rgba(0, 0, 0, 0.35);
}
.gbtn-gold:hover { filter: brightness(1.05); }
.gbtn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.gbtn-text {
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 700;
  font-size: 14px;
  min-height: 40px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- 画面2: お知らせ ---------- */
.appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 16px;
  background: rgba(12, 16, 40, 0.85);
  border-bottom: 2px solid var(--g-gold);
  font-weight: 900;
  font-size: 16px;
}
.appbar-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.appbar-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appbar-lv {
  flex: none;
  font-size: 10px;
  font-weight: 900;
  color: var(--g-navy);
  background: var(--g-gold);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.appbar-res { display: flex; gap: 10px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.7); flex: none; }
.appbar-res > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 2px 10px 2px 6px;
}
.appbar-res b { color: #fff; }
.ico { width: 14px; height: 14px; }

.dialog-wrap {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 14px 12px;
}
.dialog {
  width: 100%;
  max-width: 520px;
  background: #fff;
  color: var(--g-ink);
  border-radius: var(--g-radius);
  overflow: hidden;
  /* 金の二重枠: 細い金線、紺の溝、太めの金線 */
  box-shadow:
    0 0 0 1.5px var(--g-gold),
    0 0 0 4px var(--g-navy),
    0 0 0 5.5px rgba(242, 193, 78, 0.55),
    0 24px 60px rgba(0, 0, 0, 0.6);
}
.notice-banner {
  position: relative;
  height: 150px;
  background: #0b1030 url("./bg-pc.jpg") center 18% / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 18px 12px;
  color: #fff;
}
.notice-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 16, 48, 0) 20%, rgba(11, 16, 48, 0.55) 65%, rgba(11, 16, 48, 0.92) 100%);
}
.notice-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--g-gold) 30%, var(--g-gold) 70%, transparent);
}
.notice-banner > * { position: relative; }
.notice-banner h1 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  line-height: 1.3;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--g-navy-2), var(--g-navy));
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.1em;
  padding: 0 8px 0 16px;
  height: 46px;
  border-bottom: 2px solid var(--g-gold);
}
.dialog-close {
  font: inherit;
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.dialog-tabs {
  display: flex;
  background: #eef0f5;
  border-bottom: 1px solid var(--g-line);
  font-size: 12px;
  font-weight: 700;
  color: #8a90a0;
}
.dialog-tabs span {
  flex: 1;
  text-align: center;
  padding: 9px 4px 7px;
  border-bottom: 3px solid transparent;
}
.dialog-tabs .is-active {
  color: var(--g-navy);
  background: #fff;
  border-bottom-color: var(--g-gold);
}
.dialog-body {
  padding: 16px 18px 20px;
  font-size: 14px;
  line-height: 1.85;
}
.dialog-body p + p { margin-top: 8px; }
.notice-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--g-gray);
}
.notice-meta time { margin-left: auto; font-variant-numeric: tabular-nums; }
.notice-id { letter-spacing: 0.02em; }
.notice-meta + p { margin-top: 12px; }
.tag {
  background: var(--g-red);
  color: #fff;
  font-weight: 900;
  padding: 1px 9px;
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.dialog-body h2 {
  font-size: 14px;
  font-weight: 900;
  margin: 18px 0 8px;
  padding: 0 0 4px 12px;
  border-left: 4px solid var(--g-navy);
  border-bottom: 1px solid var(--g-line);
  line-height: 1.6;
  color: var(--g-navy);
}
.reasons {
  list-style: none;
  margin: 0;
  padding: 10px 14px;
  background: #f6f7fa;
  border: 1px solid var(--g-line);
  border-radius: 6px;
  display: grid;
  gap: 4px;
}
.reasons li {
  position: relative;
  padding-left: 1.2em;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.7;
}
.reasons li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--g-red);
  font-weight: 900;
}
.status {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.status > div {
  background: #f6f7fa;
  border: 1px solid var(--g-line);
  border-radius: 6px;
  padding: 7px 10px 8px;
  line-height: 1.4;
}
.status dt { font-size: 11px; color: var(--g-gray); font-weight: 700; }
.status dd { margin: 2px 0 0; font-size: 14px; font-weight: 900; color: var(--g-navy); }
.status dd.is-bad { color: var(--g-red); }
.schedule {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--g-line);
}
.schedule th, .schedule td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--g-line);
  vertical-align: top;
  line-height: 1.6;
}
.schedule thead th {
  background: var(--g-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  letter-spacing: 0.06em;
}
.schedule tbody th {
  white-space: nowrap;
  width: 7em;
  font-weight: 900;
  color: var(--g-navy);
  font-variant-numeric: tabular-nums;
  background: #f6f7fa;
  border-right: 1px solid var(--g-line);
}
.schedule tbody tr:last-child th, .schedule tbody tr:last-child td { border-bottom: 0; }
.schedule tr.is-final th, .schedule tr.is-final td { color: var(--g-red); font-weight: 900; }
.schedule tr.is-final th { background: #fde8ea; }
.pdata tbody th { width: auto; white-space: normal; font-weight: 700; color: var(--g-ink); }
.pdata td { text-align: right; font-weight: 900; color: var(--g-navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pdata tr.is-zero td { color: var(--g-red); }
.ops {
  margin-top: 16px;
  background: var(--g-navy);
  color: #fff;
  border-left: 4px solid var(--g-gold);
  border-radius: 6px;
  padding: 10px 14px 11px;
}
.ops-label { display: block; font-size: 11px; color: var(--g-gold); font-weight: 900; letter-spacing: 0.1em; margin-bottom: 2px; }
.ops p { font-size: 14px; font-weight: 700; line-height: 1.7; }
.sign { text-align: right; color: var(--g-gray); font-size: 12px; margin-top: 16px; }

.share-canvas { display: none; }
.actionbar {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 8px;
  padding: 12px 14px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(12, 16, 40, 0) 0%, rgba(12, 16, 40, 0.95) 30%);
  max-width: 548px;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 480px) {
  .actionbar { grid-template-columns: 1fr 1fr; }
  .actionbar .gbtn-text { grid-column: 1 / -1; }
}

@keyframes dialog-in {
  from { transform: translateY(24px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.screen-result .dialog { animation: dialog-in 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .screen-result .dialog { animation: none; }
  .gbtn { transition: none; }
}

/* ---------- 画面の下 ---------- */
.below {
  background: #f3f4f8;
  color: var(--g-ink);
  padding: 28px 0 8px;
}
.game-info {
  background: #fff;
  border: 1px solid var(--g-line);
  border-radius: 12px;
  padding: 20px 18px;
}
.game-info h2 {
  font-size: 15px;
  font-weight: 900;
  padding-left: 10px;
  border-left: 4px solid var(--g-gold);
  margin: 0 0 8px;
  line-height: 1.5;
}
.game-info p + h2, .game-info ul + h2 { margin-top: 22px; }
.game-info p { font-size: 14px; line-height: 1.9; }
.game-info p + p { margin-top: 8px; }
.game-info ul { padding-left: 1.3em; margin: 6px 0; font-size: 14px; line-height: 1.9; }
.other-games { margin-top: 28px; }
.other-games h2 { font-size: 13px; color: var(--g-gray); font-weight: 700; margin: 0 0 12px; }
body.game .site-footer {
  margin-top: 0;
  background: #f3f4f8;
  border-top: 1px solid var(--g-line);
  font-family: inherit;
  color: var(--g-gray);
}
body.game .site-footer a { color: var(--g-ink); }
body.game .site-footer a:hover { color: var(--g-ink); }
