@charset "utf-8";

/* ===========================================
   Pixel Robot Space UI (Demo)
   - Space background + stars + dotted band
   - Thick black outlines, metallic heads
   - Robot console header + arcade button feel
   =========================================== */

:root{
  --spaceTop:#2d2f86;
  --spaceMid:#1e3aa0;
  --spaceBottom:#111a60;

  --panel:#0f1626;
  --panel2:#0b1220;

  --text:#e9f1ff;
  --muted:#a9bce2;

  --ink:#000;
  --lineA: rgba(255,255,255,.10);

  --laserA:#58f0ff;
  --laserB:#a58bff;
  --laserC:#ff7aa8;
  --warn:#ffd55c;
  --danger:#ff4d6d;
  --ok:#44ff9a;

  --r: 14px;
  --wrap: 980px;
}

/* reset-ish */
*,
*::before,
*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  color:var(--text);
  font-family:"DotGothic16", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing:.02em;
  background:
    radial-gradient(1200px 800px at 50% 10%, rgba(88,240,255,.10), transparent 55%),
    linear-gradient(180deg, var(--spaceTop) 0%, var(--spaceMid) 48%, var(--spaceBottom) 100%);
}

img{
  max-width:100%;
  height:auto;
  display:block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* scanlines + vignette */
body::before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,.06) 0px,
      rgba(255,255,255,.06) 1px,
      rgba(0,0,0,0) 3px,
      rgba(0,0,0,0) 7px
    ),
    radial-gradient(1200px 900px at 50% 35%, rgba(0,0,0,0), rgba(0,0,0,.55));
  mix-blend-mode:overlay;
  opacity:.20;
  z-index:9999;
}

/* stars */
body::after{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 40%, rgba(255,255,255,.85) 0 1.5px, transparent 3px),
    radial-gradient(circle at 41% 22%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 35%, rgba(255,255,255,.85) 0 1.5px, transparent 3px),
    radial-gradient(circle at 86% 16%, rgba(255,255,255,.95) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 52%, rgba(255,255,255,.85) 0 1.5px, transparent 3px),
    radial-gradient(circle at 12% 70%, rgba(255,255,255,.85) 0 1.5px, transparent 3px),
    radial-gradient(circle at 48% 78%, rgba(255,255,255,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 92% 72%, rgba(255,255,255,.85) 0 1.5px, transparent 3px),

    /* yellow cross star */
    linear-gradient(transparent 0 47%, rgba(255,235,59,.95) 47% 53%, transparent 53% 100%),
    linear-gradient(90deg, transparent 0 47%, rgba(255,235,59,.95) 47% 53%, transparent 53% 100%);
  background-size:
    auto,auto,auto,auto,auto,auto,auto,auto,auto,
    26px 26px, 26px 26px;
  background-position:
    0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,
    70% 18%, 70% 18%;
  opacity:.62;
  z-index:-1;
}

/* background grid (subtle) */
.bg-grid{
  position:fixed; inset:0;
  z-index:-2;
  opacity:.10;
  background:
    repeating-linear-gradient(to right, rgba(255,255,255,.06) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.06) 0 1px, transparent 1px 24px);
}

.wrap{
  width:min(var(--wrap), calc(100% - 24px));
  margin:0 auto;
  padding:92px 0 40px;
  position:relative;
}

/* dotted band */
.wrap::before{
  content:"";
  position:absolute;
  left:-12px; right:-12px;
  top:84px;
  height:108px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 6px, rgba(255,255,255,.10) 6px 7px),
    repeating-linear-gradient(0deg, rgba(0,0,0,0) 0 6px, rgba(255,255,255,.08) 6px 7px),
    linear-gradient(180deg, rgba(0,180,255,.18), rgba(0,180,255,.06));
  border-radius: 18px;
  border:4px solid var(--ink);
  box-shadow: 0 0 0 4px rgba(255,255,255,.10);
  opacity:.95;
  z-index:-1;
}

/* =========================
   Utility: thick outline text
   ========================= */
.pixel-stroke{
  color:#fff;
  font-weight:900;
  text-shadow:
    -4px 0 #000, 4px 0 #000, 0 -4px #000, 0 4px #000,
    -4px -4px #000, 4px -4px #000, -4px 4px #000, 4px 4px #000;
}
.pixel-stroke-mini{
  color:#fff;
  font-weight:900;
  text-shadow:
    -2px 0 #000, 2px 0 #000, 0 -2px #000, 0 2px #000,
    -2px -2px #000, 2px -2px #000, -2px 2px #000, 2px 2px #000;
}

/* =========================
   Common panels (thick ink)
   ========================= */
.hero, .panel, .notice, .reward-box, .cta, .home-icon, .hud-btn, .hud-logo{
  border:4px solid var(--ink);
  border-radius:var(--r);
  background: linear-gradient(180deg, rgba(15,22,38,.98), rgba(11,18,32,.98));
  box-shadow:
    0 0 0 4px rgba(255,255,255,.10),
    0 16px 0 rgba(0,0,0,.55);
}

.hr{
  height:2px;
  background: rgba(255,255,255,.14);
  margin:14px 0;
}

/* =========================
   HUD
   ========================= */
.hud{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  border-bottom:4px solid var(--ink);
  background: linear-gradient(180deg, rgba(15,22,38,.96), rgba(15,22,38,.72));
}

.hud-inner{
  width:min(var(--wrap), calc(100% - 24px));
  margin:0 auto;
  padding:12px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.hud-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.hud-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  background: rgba(0,0,0,.20);
  text-decoration:none;
}
.hud-logo img{ height:26px; width:auto; }

.hud-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  background: rgba(0,0,0,.20);
  color:var(--text);
  text-decoration:none;
  transition: transform .06s steps(2, end);
}
.hud-btn img{ width:18px; height:18px; }
.hud-btn-text{ font-weight:800; font-size:13px; }
.hud-btn:active{
  transform: translateY(4px);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.10),
    0 12px 0 rgba(0,0,0,.55);
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border:4px solid var(--ink);
  border-radius:12px;
  background: rgba(0,0,0,.25);
  color:rgba(233,241,255,.82);
  font-size:12px;
  white-space:nowrap;
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}
.dot{
  width:10px; height:10px;
  border-radius:2px;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(0,0,0,.55);
}

/* =========================
   Banner
   ========================= */
.banner{
  margin: 10px 0 14px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: rgba(0,0,0,.25);
  box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 16px 0 rgba(0,0,0,.55);
  overflow:hidden;
}
.banner-img{ width:100%; height:auto; }

/* =========================
   HERO
   ========================= */
.hero{ padding:16px; }

.hero-inner{
  display:grid;
  grid-template-columns: 1.25fr .85fr;
  gap:14px;
  align-items:stretch;
}

.title{
  margin:0 0 10px;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height:1.15;
}

.subtitle{
  margin:0;
  color:rgba(233,241,255,.82);
  line-height:1.8;
  font-size:14px;
}

/* CTA buttons */
.cta-row{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:10px;
}

.cta{
  padding:12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  background:
    linear-gradient(180deg, rgba(233,237,247,.10), rgba(0,0,0,.10)),
    linear-gradient(90deg, rgba(88,240,255,.12), rgba(165,139,255,.10), rgba(255,122,168,.08));
  transition: transform .06s steps(2, end);
}

.cta-title{ font-weight:900; }
.cta-sub{ color:rgba(233,241,255,.82); font-size:12px; }

.arrow{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:4px solid var(--ink);
  border-radius:50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.85), rgba(255,255,255,.10));
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}
.cta:active{
  transform: translateY(4px);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.10),
    0 12px 0 rgba(0,0,0,.55);
}

/* Reward box */
.reward-box{ padding:14px; }

.robot-head{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border:4px solid var(--ink);
  border-radius:18px;
  background: linear-gradient(180deg, rgba(233,237,247,.20), rgba(0,0,0,.12));
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
  margin-bottom:12px;
}

.robot-eye{
  width:34px;
  height:34px;
  border-radius:50%;
  border:4px solid var(--ink);
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.95) 0 4px, transparent 5px),
    radial-gradient(circle at 55% 55%, rgba(255,255,255,.35) 0 10px, transparent 11px),
    radial-gradient(circle at 50% 50%, rgba(0,160,255,.95) 0 16px, rgba(0,80,190,.95) 18px, rgba(0,0,0,.25) 19px);
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

.robot-head-title{
  font-weight:900;
  color:#fff;
}
.robot-head-sub{
  font-size:12px;
  color: rgba(233,241,255,.80);
}

.badge{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px;
  border:4px solid rgba(0,0,0,.75);
  border-radius:18px;
  background: linear-gradient(180deg, rgba(233,237,247,.10), rgba(0,0,0,.10));
}

.badge .icon{
  width:34px; height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  border:4px solid var(--ink);
  background: linear-gradient(180deg, rgba(233,237,247,.25), rgba(0,0,0,.10));
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

.badge strong{ font-weight:900; }

.meter{
  margin-top:12px;
  padding:10px;
  border:4px solid rgba(0,0,0,.75);
  border-radius:18px;
  background: linear-gradient(180deg, rgba(233,237,247,.10), rgba(0,0,0,.10));
}

.row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:rgba(233,241,255,.82);
  font-size:12px;
}

.plus{ font-weight:900; }

.bar{
  margin:10px 0;
  height:14px;
  border:4px solid var(--ink);
  border-radius:12px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 6px, rgba(255,255,255,.06) 6px 7px);
  overflow:hidden;
}
.bar > i{
  display:block;
  height:100%;
  width:72%;
  background: repeating-linear-gradient(
    90deg,
    var(--laserA) 0 12px,
    var(--laserB) 12px 24px,
    var(--laserC) 24px 36px
  );
}

.reward-note{
  font-size:13px;
  color:rgba(233,241,255,.82);
  line-height:1.75;
}
.reward-note b{ color:#fff; }
.reward-note-title{ color:#fff; }
.danger{ color:var(--danger); }
.strong{ font-weight:900; }

/* =========================
   Panels grid
   ========================= */
.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}

.panel-head{
  padding:12px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-bottom:4px solid var(--ink);
  background:
    linear-gradient(180deg, rgba(233,237,247,.20), rgba(0,0,0,.10)),
    linear-gradient(90deg, rgba(88,240,255,.22), rgba(165,139,255,.18), rgba(255,122,168,.14));
  border-top-left-radius: calc(var(--r) - 2px);
  border-top-right-radius: calc(var(--r) - 2px);
}

.panel-head-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.ui-icon{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border:4px solid var(--ink);
  border-radius:12px;
  background: linear-gradient(180deg, rgba(233,237,247,.25), rgba(0,0,0,.12));
  box-shadow: 0 0 0 4px rgba(255,255,255,.08);
  font-size:16px;
}

.panel-title{
  margin:0;
  font-size:16px;
  color:#fff;
  font-weight:900;
  text-shadow:
    -3px 0 #000, 3px 0 #000, 0 -3px #000, 0 3px #000,
    -3px -3px #000, 3px -3px #000, -3px 3px #000, 3px 3px #000;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.tag{
  font-size:11px;
  padding:6px 10px;
  border-radius:12px;
  border:4px solid var(--ink);
  background: rgba(255,255,255,.10);
  color:#fff;
  text-shadow:
    -2px 0 #000, 2px 0 #000, 0 -2px #000, 0 2px #000;
  white-space:nowrap;
}

.tag-auto{ box-shadow: inset 0 -8px 0 rgba(88,240,255,.22); }
.tag-schedule{ box-shadow: inset 0 -8px 0 rgba(165,139,255,.22); }
.tag-important{ box-shadow: inset 0 -8px 0 rgba(255,213,92,.28); }

.panel-body{
  padding:14px 12px;
  line-height:1.9;
  font-size:14px;
  color:rgba(233,241,255,.82);
}
.panel-body b{ color:#fff; }
.panel-strong{ color:#fff; font-weight:900; }

.cards{
  display:grid;
  gap:10px;
  margin-top:10px;
}

.mini-card{
  border:4px solid rgba(0,0,0,.75);
  background: linear-gradient(180deg, rgba(233,237,247,.10), rgba(0,0,0,.10));
  border-radius:18px;
  padding:12px;
}

.mini-title{
  font-weight:900;
  color:#fff;
  margin-bottom:6px;
}
.mini-text{
  color:rgba(233,241,255,.82);
  font-size:13px;
  line-height:1.75;
}

/* Notice */
.notice{ margin-top:14px; }

.notice-list{
  margin:0;
  padding-left:18px;
  display:grid;
  gap:8px;
}
.notice-list li{
  color:rgba(233,241,255,.82);
  line-height:1.75;
}
.notice-list b{ color:#fff; }

/* Footer */
.footer{
  margin-top:16px;
  display:grid;
  justify-items:center;
  gap:10px;
  color:rgba(233,241,255,.75);
  font-size:12px;
}

.home-icon{
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  padding:8px;
  transition: transform .06s steps(2, end);
  text-decoration:none;
}
.home-icon:active{
  transform: translateY(4px);
  box-shadow:
    0 0 0 4px rgba(255,255,255,.10),
    0 12px 0 rgba(0,0,0,.55);
}
.home-icon img{ width:34px; height:34px; }

.copyright{ text-align:center; }

/* Responsive */
@media (max-width: 860px){
  .wrap{ padding-top: 88px; }
  .hero-inner{ grid-template-columns: 1fr; }
  .cta-row{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr; }
  .hud-logo img{ height:24px; }
  .chip{ display:none; }
}


/* =====================================================
   READABILITY PATCH (natural, keeps pixel vibe)
   - reduce eye strain, improve contrast & spacing
   ===================================================== */

/* 1) Base typography */
body{
  letter-spacing: 0.01em; /* less cramped */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2) Make long text slightly larger + calmer */
.subtitle,
.panel-body,
.notice-list li,
.mini-text,
.reward-note{
  font-size: 15px;
  line-height: 2.0;
}

/* On small screens, keep it from feeling huge */
@media (max-width: 860px){
  .subtitle,
  .panel-body,
  .notice-list li,
  .mini-text,
  .reward-note{
    font-size: 14px;
    line-height: 1.9;
  }
}

/* 3) Improve contrast of muted text without losing tone */
:root{
  --muted: rgba(233,241,255,.88);
}
.subtitle,
.panel-body,
.notice-list li,
.mini-text,
.reward-note,
.row,
.cta-sub{
  color: var(--muted);
}

/* 4) Add subtle text shadow ONLY for paragraph-like text (not thick strokes) */
.subtitle,
.panel-body,
.notice-list li,
.mini-text,
.reward-note{
  text-shadow: 0 1px 0 rgba(0,0,0,.45);
}

/* 5) Darken panel backgrounds a touch so text sits on a stable surface */
.hero, .panel, .notice, .reward-box{
  background:
    linear-gradient(180deg, rgba(10,14,26,.94), rgba(7,10,18,.94));
}

/* 6) Reduce scanlines strength (they hurt legibility) */
body::before{
  opacity: .12;
}

/* 7) Make CTA subtext clearer */
.cta-sub{
  opacity: .95;
}

/* 8) Reduce stroke intensity on small “mini” strokes (keeps style but calmer) */
.pixel-stroke-mini{
  text-shadow:
    -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000,
    -1px -1px #000, 1px -1px #000, -1px 1px #000, 1px 1px #000;
}

/* 9) Give lists a bit more breathing room */
.notice-list{ gap: 10px; }


/* =====================================================
   TYPOGRAPHY SPLIT PATCH
   Headings: DotGothic (pixel vibe)
   Body text: Rounded Gothic (readability)
   ===================================================== */

/* Import readable JP font */
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;500;700;800&display=swap');

/* Default body text */
body{
  font-family: "M PLUS Rounded 1c", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Keep pixel font for UI / headings */
.title,
.panel-title,
.cta-title,
.pixel-stroke,
.pixel-stroke-mini,
.hud-btn-text,
.tag,
.chip,
.robot-head-title,
.mini-title{
  font-family: "DotGothic16", system-ui, sans-serif;
}

/* Fine-tune body text weight */
.subtitle,
.panel-body,
.notice-list li,
.mini-text,
.reward-note{
  font-weight: 500;
}

/* Slightly stronger emphasis for <b> in body */
.panel-body b,
.notice-list b,
.reward-note b{
  font-weight: 800;
}

/* =========================================
   Background softening (very gentle)
   ========================================= */

/* 1) 宇宙グラデを少し明るく・コントラスト弱め */
body{
  background:
    radial-gradient(
      1200px 800px at 50% 10%,
      rgba(88,240,255,.08),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      #343aa0 0%,
      #243a8c 48%,
      #1a245f 100%
    );
}

/* 2) 星を少しだけ薄く */
body::after{
  opacity: .38;   /* ← 元は .62 なので、かなり自然に後ろへ下がる */
}

/* 3) スキャンラインをさらに弱める（文字優先） */
body::before{
  opacity: .08;   /* ← ほぼ雰囲気だけ残す */
}

/* 4) 中央のドット帯を少し控えめに */
.wrap::before{
  opacity: .70;   /* ← 背景として成立するギリギリ */
}

/* =========================================
   Reward box stats (info add-on)
   ========================================= */
.reward-stats{
  margin-top: 14px;
  padding: 12px;
  border: 4px solid rgba(0,0,0,.75);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(233,237,247,.08),
    rgba(0,0,0,.12)
  );
  display: grid;
  gap: 10px;
}

.stat{
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(233,241,255,.9);
}

.stat-icon{
  font-size: 16px;
}

.stat-label{
  letter-spacing: .08em;
  font-family: "DotGothic16", system-ui, sans-serif;
}

.stat-value{
  font-weight: 900;
  color: #fff;
  text-shadow:
    -1px 0 #000, 1px 0 #000,
    0 -1px #000, 0 1px #000;
}

@media (min-width: 861px){
  .reward-box{
    padding: 22px 24px;
  }

  .reward-stats{
    margin-top: 18px;
  }
}
