body{
margin:0;
font-family:"Orbitron",sans-serif;

background:
radial-gradient(circle at 20% 30%,#1e1b4b,transparent),
radial-gradient(circle at 80% 70%,#0f172a,transparent),
#020617;

color:white;
}

/* ===== Splash Screen ===== */
#splash{
  position: fixed;
  inset: 0;
  background: #020617;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
}

.splash-content{
  text-align: center;
}

.splash-title{
  font-family: "Orbitron", sans-serif;
  font-size: 32px;
  color: #00fff7;
  letter-spacing: 2px;
  text-shadow: 0 0 15px rgba(0,255,247,0.8);
}

.splash-sub{
  margin-top: 10px;
  color: #94a3b8;
  font-size: 14px;
  animation: blink 1.5s infinite;
}

@keyframes blink{
  0%,100%{ opacity: 0.4; }
  50%{ opacity: 1; }
}

.splash-hide{
  opacity: 0;
  pointer-events: none;
}

.header{
text-align:center;
padding:10px;
font-size:22px;
}

.container{
padding:10px;
}

/* ===== HUD ===== */
.hud {
    background: #020617;
    padding: 14px;
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
    text-align: center;
}

.title-screen{
    position:fixed;
    inset:0;/* 上下左右0で画面全体を覆う */
    background:#020617;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    z-index:9999;

    justify-content:flex-start; /* 中央ではなく上から */
    padding: 56px 0 24px;       /* 上に余白を増やす */

    overflow-y:auto;        /* 縦スクロールOK */
    -webkit-overflow-scrolling: touch; /* iPhoneで滑らか */
    box-sizing:border-box; 
    gap: 12px; /* ボタンや入力間の縦間隔を統一 */
}

.title-input{
    padding:12px;
    margin-top:20px;
    margin-bottom:10px;
    border-radius:10px;
    border:none;
    text-align:center;
    font-size:16px;
    width:300px;
}

.name-warning{
    font-size:12px;
    color:#ffcc00;
    margin-top:0px;
    margin-bottom:4px;
    display:none;
}

.display-name{
    font-size:16px;
    color:#22d3ee;
    margin-top:5px;
    font-weight:bold;
}

.neon-title{
    font-family:'Exo 2', sans-serif;

    width: 100%;
    margin: 0 auto;
    margin-top: 50px;
    margin-bottom: 75px;
    text-align: center;

    /* スマホでのズレ防止 */
    display: block;
    line-height: 1.1;
    transform: translateZ(0); /* サブピクセル対策 */
    font-size:60px;
    font-weight:700;
    letter-spacing:4px;
    text-align:center;

    background: linear-gradient(90deg,#7c3aed,#2563eb,#06b6d4);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    text-shadow:
    0 0 6px rgba(99,102,241,0.4),
    0 0 14px rgba(34, 214, 238, 0.3);
}

@media (max-width:480px){

    .neon-title{
    font-size:38px;
    letter-spacing:2px;

    text-shadow:
    0 0 4px rgba(99,102,241,0.35),
    0 0 10px rgba(34,211,238,0.25);
    }

}


.start-btn{ line-height:1.2; }
.start-btn-sub{ font-size:0.7em; }

/* メールログイン + 新規登録 を横並びにする箱 */
.title-row {
    display: flex;
    gap: 10px;
    width: 300px;         /* title-btn と同じ幅 */
}

/* 横並び内のボタンは半分幅 */
.title-row .title-btn {
    flex: 1; /* 均等にスペースを分ける */
    width: auto; /* 自動で均等割り */
    padding: 14px 10px;   /* 少しだけコンパクトに */
    font-size: 14px;
    border-radius: 14px;
}

.title-btn{
    width: 300px; /* 横幅を統一 */
    white-space: nowrap;   /* 改行させない */
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 10px;
    width: 100%;
}

.google-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.install-btn{
    display:none;
    margin:10px auto;
    padding:18px 28px;
    font-size:18px;
    border-radius:14px;
    border:none;
    background:linear-gradient(90deg,#ff9900,#ffcc33);
    color:black;
    font-weight:bold;
    cursor:pointer;
    width:300px
}

/* タイトル説明文 */
.title-desc{
  max-width:600px;
  margin:40px auto;
  font-size:14px;
  line-height:1.8;
  opacity:0.85;
}
.title-desc h2{
  font-size:18px;
  margin-bottom:12px;
}

/* タイトル説明文下のリンク集 */
.title-links{
    text-align:center; 
    font-size:12px; 
    margin:20px;
}

/* タイトル説明文内のリンク */
.link-cyan{
    color:#22d3ee;
}

/* お問い合わせ */
.contact{
    text-align:center; 
    font-size:12px; 
    margin:0px;
}

/* フッター */
.footer{
    text-align:center;
    font-size:12px;
    margin:30px 0 20px;
    opacity:0.85;
}

.footer-link{ margin-right:12px; }

#result {
font-size: 20px;
color: #22d3ee;
margin-bottom: 10px;
}

/* ===== 地図 ===== */
#map {
height: 35vh;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 0 20px rgba(0, 200, 255, 0.25);
margin-bottom: 14px;
}

/* ===== 操作ボタン ===== */
.action-buttons {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
align-items: center; /* ボタンを中央揃え */
}

/* 操作ボタンの横幅を広げる */
.action-buttons .btn {
width: 300px; 
text-align: center;
}

/* 全部のボタン共通 */
.btn{
padding:16px;
font-size:15px;
border-radius:14px;

background:linear-gradient(135deg,#1e293b,#0f172a);
border:1px solid rgba(99,102,241,0.4);

color:#e2e8f0;
font-weight:bold;
letter-spacing:1px;

box-shadow:
0 0 10px rgba(99,102,241,0.3),
inset 0 0 10px rgba(0,0,0,0.6);

transition:all .2s;
}

.btn:active {
    transform: scale(0.94);
}

.btn:disabled {
    cursor: not-allowed;         /* カーソルを禁止マークにする */
    box-shadow: none !important; /* 光るエフェクトを消す */
    transform: none !important;  /* 押した時の凹みをなくす */
}

/* ===== AREA SCAN 強化 ===== */
.area-scan-btn{
font-family:'Exo 2',sans-serif;
font-size:20px;
letter-spacing:4px;

background:linear-gradient(90deg,#7c3aed,#2563eb);
color:white;

border:1px solid rgba(124,58,237,0.7);

box-shadow:
0 0 15px rgba(124,58,237,0.7),
0 0 30px rgba(37,99,235,0.5);

transition:all .25s;
}

.area-scan-btn:hover{
transform:scale(1.05);
box-shadow:
0 0 20px rgba(124,58,237,0.9),
0 0 40px rgba(37,99,235,0.7);
}

.area-scan-btn:active{
transform: scale(0.96);
}

.share-x-btn{
    display:block;
    margin:16px auto 0;
    padding:12px 28px;

    font-family:"Orbitron", sans-serif;
    letter-spacing:1px;
    font-size:14px;

    background:linear-gradient(135deg,#0ea5e9,#2563eb);
    color:#ffffff;

    border:none;
    border-radius:999px;

    box-shadow:
        0 0 10px rgba(14,165,233,0.6),
        0 0 20px rgba(37,99,235,0.4);

    transition:all 0.2s ease;
    cursor:pointer;
}

/* ===== HUD内 3ボタン横並び ===== */
.hud-actions{
display:flex;
justify-content:center;
gap:12px;
margin-top:10px;
flex-wrap:wrap; /* 画面が狭いとき折り返す */
}

.hud-actions button{
width:auto;           /* 横幅100%をやめる */
padding:8px 12px;     /* 小さめ */
font-size:12px;
border-radius:10px;
}

/* ログアウト（黒×水色ネオン） */
#logoutBtn{
background:black;
color:#09ff00;
border:1px solid #09ff00;
box-shadow:none;
}
#logoutBtn:hover{
background:#09ff00;
color:black;
}

/* タイトルへ戻る（黒×青ネオン） */
#backToTitleBtn{
background:black;
color:#22d3ee;
border:1px solid #22d3ee;
box-shadow:none;
}
#backToTitleBtn:hover{
background:#22d3ee;
color:black;
}

/* リセット（赤ネオン） */
#resetBtn{
background:black;
color:#ef4444;
border:1px solid #ef4444;
box-shadow:none;
}
#resetBtn:hover{
background:#ef4444;
color:black;
}

/* ===== スコアボード ===== */
.ranking-board {
margin-top: 20px;
background: #020617;
border-radius: 16px;
padding: 14px;
box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
}

/* ランキングタイトル */
.ranking-board h3{
  text-align: center;
  margin: 0 0 14px;
  letter-spacing: 2px;
  font-size: 18px;
  color: #22d3ee;
  text-shadow: 0 0 6px rgba(34,211,238,0.6);
}

.rank-item {
display: flex;
justify-content: space-between;
padding: 12px;
margin-bottom: 8px;
border-radius: 10px;
border: 1px solid rgba(0, 200, 255, 0.3);
}

/* HUDとランキングボードの共通の薄い枠 */
.hud, .ranking-board{
  border: 1px solid rgba(34, 211, 238, 0.18);
}

/* 1位の特別装飾 */
.rank-item:first-child {
    border: 1px solid gold;
    box-shadow: 0 0 12px gold;
}

.rank-item:nth-child(2){
    border: 1px solid silver;
    box-shadow: 0 0 12px silver;
}

.rank-item:nth-child(3){
    border: 1px solid #cd7f32;
    box-shadow: 0 0 12px #cd7f32;
}

.my-rank{
border: 2px solid #22d3ee;
box-shadow: 0 0 15px #22d3ee;
background: rgba(34, 211, 238, 0.1);
}

/* 自分の順位表示 */
.my-rankbox{
    margin-bottom:10px; 
    display:none;
}

#myRankBox {
border: 2px solid #22d3ee;
box-shadow: 0 0 20px #22d3ee;
}

#myRank {
font-size: 18px;
font-weight: bold;
color: #22d3ee;
}

/* ランキングのタブ切り替え */
.rank-tabs{
  display:flex;
  gap:10px;
  justify-content:center;
  margin: 6px 0 12px;
  flex-wrap:wrap;
}

.tab-btn{
  width:auto;
  padding:10px 14px;
  font-size:12px;
  border-radius:999px;
  box-shadow:none;
  background: rgba(34,211,238,0.10);
  border:1px solid rgba(34,211,238,0.28);
  color:#22d3ee;
}

.tab-btn.is-active{
  background: linear-gradient(90deg,#00fff7,#22d3ee);
  color:#020617;
  border:none;
}

/* AdMax wrapper（世界観を壊さない） */
.ad-area{
  width: 100%;
  max-width: 100%;
  margin: 16px auto;
  padding: 0;
  display: flex;
  justify-content: center;
  overflow: visible;  
}  

/* AdMaxが中で吐く要素を中央に固定 */
.ad-area iframe,
.ad-area ins,
.ad-area > div{
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 100% !important;
}

/* 300x250枠がはみ出す端末向け */
@media (max-width: 340px){
  .ad-area iframe,
  .ad-area ins,
  .ad-area > div{
    transform: scale(0.92);
    transform-origin: top center;
  }
}