/* ===== 開催終了オーバーレイ + SNS共有戦績カード(本戦) =====
   黒金・明朝の世界観。全画面で卓を覆い、離脱は topへ戻る/画像保存のみ。
   フォントは外部依存を避け system 明朝(→serif フォールバック)。 */
.houou-end {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: radial-gradient(120% 120% at 50% 0%, #16130c 0%, #0b0b0d 62%);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP",
    serif;
}
.houou-end[hidden] {
  display: none;
}
.houou-end-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 360px;
}
.houou-end-head {
  text-align: center;
}
.houou-end-kicker {
  color: #c9a227;
  letter-spacing: 0.35em;
  font-size: 12px;
  margin-bottom: 10px;
}
.houou-end-title {
  color: #f4ecd6;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.houou-end-next {
  color: #8f8674;
  font-size: 13px;
  margin-top: 8px;
  letter-spacing: 0.08em;
}
.houou-end-next:empty {
  display: none;
}

.houou-card {
  width: 340px;
  max-width: 100%;
  background: linear-gradient(180deg, #141210 0%, #0d0c0b 100%);
  border: 1px solid #7a6320;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px #2a2418, 0 18px 40px rgba(0, 0, 0, 0.55);
}
.houou-card[hidden] {
  display: none;
}
.houou-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #2a2418;
}
.houou-card-brand {
  color: #f4d24a;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 0 6px rgba(240, 200, 60, 0.7), 0 0 14px rgba(201, 162, 39, 0.45);
}
.houou-card-date {
  color: #8f8674;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.houou-card-hero {
  display: flex;
  align-items: stretch;
  padding: 16px 18px 8px;
  gap: 8px;
}
.houou-card-rank {
  flex: 0 0 auto;
  padding-right: 12px;
  border-right: 1px solid #221e15;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-width: 92px;
}
.houou-card-lbl {
  color: #9c9179;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
}
.houou-card-rankwrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  white-space: nowrap;
}
.houou-card-rankval {
  color: #f0d47a;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}
/* 桁あふれ対策: 順位/母数の桁が増えても崩れないよう段階縮小する。 */
.houou-card-rankwrap.len3 .houou-card-rankval {
  font-size: 34px;
}
.houou-card-rankwrap.len4 .houou-card-rankval {
  font-size: 27px;
}
.houou-card-rankunit {
  color: #c9a227;
  font-size: 16px;
  font-weight: 500;
}
.houou-card-sub {
  color: #8f8674;
  font-size: 10px;
  margin-top: 2px;
}
.houou-card-net {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.houou-card-netval {
  color: #5cc98b;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}
.houou-card-netval.neg {
  color: #d8615a;
}
.houou-card-netval .unit {
  font-size: 15px;
  margin-left: 3px;
  color: #3f9d68;
}
.houou-card-netval.neg .unit {
  color: #9e4540;
}
.houou-card-graph {
  padding: 4px 14px 6px;
}
.houou-card-graph[hidden] {
  display: none;
}
.houou-card-graph .glabel {
  color: #8b8369;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0 4px 4px;
}
.houou-card-graph svg {
  display: block;
  width: 100%;
  height: 84px;
}
.houou-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 8px 8px 16px;
  border-top: 1px solid #221e15;
  margin: 0 14px;
}
.houou-card-stat {
  text-align: center;
}
.houou-card-stat-mid {
  border-left: 1px solid #221e15;
  border-right: 1px solid #221e15;
}
.houou-card-statval {
  color: #f4ecd6;
  font-size: 17px;
  font-weight: 500;
}
.houou-card-statlbl {
  color: #8b8369;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.houou-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #0a0908;
  border-top: 1px solid #2a2418;
}
.houou-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2a2418 center/cover no-repeat;
  border: 1px solid #7a6320;
  flex: 0 0 auto;
}
.houou-card-who {
  flex: 1;
  min-width: 0;
}
.houou-card-name {
  color: #f4ecd6;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.houou-card-season {
  color: #77705c;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
}
.houou-card-season:empty {
  display: none;
}
.houou-end-actions {
  display: flex;
  gap: 12px;
  width: 340px;
  max-width: 100%;
}
.houou-end-btn {
  flex: 1;
  text-align: center;
  border-radius: 8px;
  font-size: 15px;
  padding: 13px 22px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  background: transparent;
  color: #d9cfb4;
  border: 1px solid #5a4e2c;
  transition: transform 0.1s;
}
.houou-end-btn:active {
  transform: scale(0.98);
}
.houou-end-btn.primary {
  background: #c9a227;
  color: #161206;
  border: none;
}
.houou-end-btn[hidden] {
  display: none;
}
.houou-end-share-cta {
  text-align: center;
  color: #a89a72;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-top: -4px;
}
.houou-end-share-cta strong {
  color: #c9a227;
  font-weight: 500;
}

/* 日別ナビ(トップページ openCard 経路のみ・カード枠外)。 */
.houou-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 2px 0 10px;
}
.houou-nav[hidden] {
  display: none;
}
.houou-nav-arrow {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #4a3f1e;
  background: rgba(20, 18, 8, 0.6);
  color: #d9c893;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
/* 端では矢印を不可視にしつつ場所は保持(トグルが左右にぶれない)。 */
.houou-nav-arrow[hidden] {
  display: inline-block;
  visibility: hidden;
}
.houou-nav-arrow:hover {
  background: rgba(40, 34, 12, 0.9);
}
.houou-nav-scope {
  display: inline-flex;
  border: 1px solid #4a3f1e;
  border-radius: 999px;
  overflow: hidden;
}
.houou-nav-scope-btn {
  border: 0;
  background: transparent;
  color: #a89a72;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.houou-nav-scope-btn.is-active {
  background: #c9a227;
  color: #161206;
}

/* 対局なしの空状態。 */
.houou-card-empty {
  text-align: center;
  color: #a89a72;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 44px 0;
}
.houou-card-empty[hidden] {
  display: none;
}
