@charset "utf-8";

/* ===========================================================================
   psobb.css — "PSOBB" Open Beta Test の思い出
   ゲーム内UI風：半透明の青いウィンドウ、オレンジの見出しタブ、HP/TPバー、
   六角形の番号、チャットの吹き出し。背景はパイオニア2から見た宇宙。
   =========================================================================== */

:root {
  --space: #01040f;
  --space-2: #041a36;
  --win-top: rgba(22, 78, 122, 0.8);
  --win-bottom: rgba(6, 28, 58, 0.88);
  --edge: #5ad8f0;
  --edge-soft: rgba(90, 216, 240, 0.35);
  --orange: #ff9a1c;
  --orange-hi: #ffc247;
  --hp: #6dff5a;
  --tp: #37b6ff;
  --text: #e6f6ff;
  --text-dim: #9fc3d8;
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Meiryo", sans-serif;
  --font-en: "Exo 2", "M PLUS Rounded 1c", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--space);
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 140px 90px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 90px 160px, #bfefff, transparent),
    radial-gradient(1px 1px at 200px 220px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 260px 50px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(ellipse 80% 55% at 70% 0%, rgba(40, 120, 200, 0.4), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 70%, rgba(20, 160, 150, 0.22), transparent 70%),
    linear-gradient(180deg, var(--space-2), var(--space) 60%);
  background-size: 300px 260px, 300px 260px, 300px 260px, 300px 260px, 300px 260px, auto, auto, auto;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  overflow-x: hidden;
}

/* 六角形グリッド */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0L56 16v32L28 64L0 48V16z M28 64v33 M0 48L-28 64 M56 48l28 16' fill='none' stroke='%237fe6ff' stroke-width='1'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}

a { color: var(--edge); }

a:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; border-radius: 4px; }

::selection { background: var(--orange); color: #fff; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ------------------------------------------------------------ window */

.win {
  position: relative;
  margin-top: 34px;
  padding: 22px clamp(18px, 3.5vw, 32px) 24px;
  background: linear-gradient(180deg, var(--win-top), var(--win-bottom));
  border: 2px solid var(--edge);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(60, 200, 255, 0.25),
    inset 0 0 22px rgba(90, 216, 240, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* 内側のハイライトライン */
.win::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--edge-soft);
  border-radius: 10px;
  pointer-events: none;
}

.win-title {
  position: absolute;
  top: -17px;
  left: 18px;
  z-index: 2;
  margin: 0;
  padding: 2px 22px 3px 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.8;
  color: #fff;
  text-shadow: 0 1px 0 #8a4200, 0 0 6px rgba(120, 50, 0, 0.6);
  background: linear-gradient(180deg, var(--orange-hi), var(--orange) 55%, #e56f00);
  border: 2px solid #ffe2a0;
  border-radius: 8px 18px 8px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.win-title .en {
  margin-left: 10px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  opacity: 0.85;
}

/* ------------------------------------------------------------ HUD */

.hud-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-top: 22px;
}

.hud {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 12px;
  background: linear-gradient(180deg, rgba(20, 70, 110, 0.75), rgba(6, 24, 50, 0.85));
  border: 2px solid var(--edge);
  border-radius: 30px 14px 14px 30px;
  box-shadow: 0 0 14px rgba(60, 200, 255, 0.3), inset 0 0 12px rgba(90, 216, 240, 0.2);
  text-decoration: none;
  color: inherit;
}

.hud:hover { box-shadow: 0 0 22px rgba(255, 170, 40, 0.5), inset 0 0 12px rgba(90, 216, 240, 0.2); }

.hex {
  display: grid;
  place-items: center;
  width: 44px;
  height: 50px;
  flex: none;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(180deg, #ff4d8a, #c4105a);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}

.hud-name {
  display: block;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.hud-name small {
  margin-left: 8px;
  font-weight: 600;
  color: var(--text-dim);
}

.bar {
  display: grid;
  grid-template-columns: 24px 120px auto;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.5;
}

.bar .gauge {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.bar .gauge i {
  display: block;
  height: 100%;
  border-radius: 4px;
}

.bar.hp .gauge i { width: 100%; background: linear-gradient(180deg, #b6ff9f, var(--hp) 50%, #2eb81f); }
.bar.tp .gauge i { width: 90%; background: linear-gradient(180deg, #a9e4ff, var(--tp) 50%, #1462b8); }

.area {
  padding: 6px 14px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text);
  background: rgba(0, 20, 40, 0.6);
  border: 1px solid var(--edge-soft);
  border-radius: 8px;
}

.area span { color: var(--orange-hi); }

/* ------------------------------------------------------------ title */

.title-win {
  padding: 10px;
  overflow: hidden;
}

.title-win img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.title-win h1 {
  margin: 0;
}

.subtitle {
  margin: 10px 0 4px;
  text-align: center;
  font-size: clamp(16px, 2.6vw, 20px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.subtitle .date {
  display: block;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--text-dim);
}

/* ------------------------------------------------------------ menu + system */

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 0 28px;
  align-items: start;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}

.menu a {
  position: relative;
  display: block;
  padding: 6px 12px 6px 30px;
  border-radius: 6px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}

.menu a::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  margin-top: -6px;
  border: 6px solid transparent;
  border-left: 9px solid var(--orange-hi);
  opacity: 0;
}

.menu a:hover,
.menu a:focus-visible {
  background: linear-gradient(90deg, var(--orange), rgba(255, 154, 28, 0.15));
  text-shadow: 0 1px 0 #8a4200;
}

.menu a:hover::before,
.menu a:focus-visible::before { opacity: 1; animation: cursor 0.6s ease-in-out infinite alternate; }

@keyframes cursor { to { transform: translateX(3px); } }

.system p {
  margin: 0;
  font-size: 15px;
}

.system .warn {
  display: inline-block;
  margin-right: 6px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: #e5263b;
  border-radius: 4px;
}

/* ------------------------------------------------------------ report */

.report p {
  margin: 0 0 1.2em;
  text-indent: 1em;
}

.report p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ gallery */

.shots {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 30px 24px;
  counter-reset: shot;
}

.shots li {
  counter-increment: shot;
  display: flex;
  flex-direction: column;
}

.thumb {
  position: relative;
  display: block;
  padding: 4px;
  border: 2px solid var(--edge);
  border-radius: 10px;
  background: rgba(0, 20, 40, 0.8);
  box-shadow: 0 0 10px rgba(60, 200, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.thumb::before {
  content: counter(shot);
  position: absolute;
  top: -12px;
  left: -10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 36px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(180deg, #1f5f8e, #0b2d52);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  /* 六角形の縁取り */
  filter: drop-shadow(0 0 1px var(--edge)) drop-shadow(0 0 1px var(--edge));
}

.thumb:hover,
.thumb:focus-visible {
  transform: translateY(-3px);
  border-color: var(--orange-hi);
  box-shadow: 0 0 18px rgba(255, 170, 40, 0.55);
}

.thumb .zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 0 8px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.thumb:hover .zoom { opacity: 1; }

/* チャットの吹き出し */
.bubble {
  position: relative;
  margin: 18px 0 0 6px;
  padding: 10px 14px 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #10202e;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.bubble::before {
  content: "SHO";
  position: absolute;
  top: -13px;
  left: 10px;
  padding: 0 8px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.8;
  color: #10202e;
  background: #d8f6ff;
  border: 1px solid #7fcfe6;
  border-radius: 4px;
}

.bubble::after {
  content: "";
  position: absolute;
  top: -8px;
  right: 22px;
  border: 8px solid transparent;
  border-bottom-color: #fff;
  border-top: 0;
}

/* ------------------------------------------------------------ viewer */

.viewer {
  width: min(94vw, 860px);
  max-height: 94vh;
  padding: 16px 16px 14px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(22, 78, 122, 0.95), rgba(6, 28, 58, 0.97));
  border: 2px solid var(--edge);
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(60, 200, 255, 0.4);
  overflow: visible;
}

.viewer::backdrop { background: rgba(0, 6, 18, 0.8); }

.viewer img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(94vh - 130px);
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

.viewer .v-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.viewer .v-cap { margin: 0; font-size: 14px; }

.viewer .v-num {
  font-family: var(--font-en);
  font-weight: 800;
  color: var(--orange-hi);
  margin-right: 8px;
}

.viewer .v-btns { display: flex; gap: 8px; flex: none; }

.viewer button {
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  font: 700 15px var(--font-en);
  color: #fff;
  background: linear-gradient(180deg, #2a7fb8, #0f3f6e);
  border: 2px solid var(--edge);
  border-radius: 8px;
  cursor: pointer;
}

.viewer button:hover,
.viewer button:focus-visible {
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  border-color: #ffe2a0;
  outline: none;
}

/* ------------------------------------------------------------ footer */

.footer {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding-bottom: 48px;
  text-align: center;
}

.footer .menu {
  display: inline-block;
  min-width: 220px;
  text-align: left;
}

.copyright {
  margin-top: 18px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--text-dim);
}

@media (max-width: 720px) {
  .cols { grid-template-columns: 1fr; gap: 0; }
  .bar { grid-template-columns: 24px 80px auto; }
}

@media (prefers-reduced-motion: reduce) {
  .menu a:hover::before { animation: none; }
  .thumb { transition: none; }
}


/* ゲームの権利表記 */
.legal-note {
  max-width: 46em;
  margin: 0 auto 12px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-dim);
}
