/* uy-typings — iframe の中のゲームの「みんなのランキング」の欄（共通）v1.0.0（2026-11-15 / plugin 0.4.0）
   使うゲーム：太陽系、ぜんぶ打てる？・宇宙まで、100キロ。（どちらも、画面の大きさに合わせて文字の大きさ 1em が変わる作り）
   なので、この欄も px ではなく em で決める（画面が小さくなっても、欄だけ大きくならない）。
   iframe の中だけで読むので、宇宙旅行.jp のページの見た目とは、たがいに影響しない。 */

/* ページの中：もとの「ランキング」（この端末の記録と見本）・名前の欄はかくして、みんなのランキングの欄を出す */
.uytf-embed .uytf-hide { display: none !important; }
.uytf-h { display: block !important; margin: 0 0 .55em !important; font-size: 1.02em; font-weight: 800; letter-spacing: .18em; color: var(--ink, #eef3ff); }
.uytf-h::after { content: "GLOBAL RANKING"; margin-left: 1em; font-size: .62em; letter-spacing: .2em; color: var(--sig, #62e3ff); font-weight: 700; }
.uytf-slot:empty { display: none; }

#stage .uytf-slot .uyt-go {
  display: grid; gap: .55em; margin: 0; padding: .95em 1.1em .85em;
  border: 1px solid rgba(255, 207, 90, .38); border-radius: .9em;
  background: linear-gradient(160deg, rgba(40, 32, 10, .55), rgba(8, 12, 26, .85));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 0 2.2em rgba(255, 207, 90, .08);
  color: var(--dim, #c4d4ff); font-size: .86em; line-height: 1.55; text-align: left;
}
#stage .uytf-slot .uyt-go p { margin: 0; }
#stage .uytf-slot .uyt-go .uyt-go-motive { color: var(--gold, #ffcf5a); font-size: 1.12em; font-weight: 800; }
#stage .uytf-slot .uyt-go .uyt-go-motive:empty { display: none; }
#stage .uytf-slot .uyt-go .uyt-go-head { color: var(--ink, #eef3ff); font-size: 1.06em; font-weight: 800; }
#stage .uytf-slot .uyt-go .uyt-go-head.is-in { color: #ffe08a; }
#stage .uytf-slot .uyt-go .uyt-go-places { display: flex; flex-wrap: wrap; gap: .35em; justify-content: flex-start; }
#stage .uytf-slot .uyt-go .uyt-go-place { padding: .15em .7em; border: 1px solid rgba(255, 207, 90, .55); border-radius: 99em; background: rgba(255, 207, 90, .1); color: #ffe7a8; font-size: .92em; font-weight: 800; }
#stage .uytf-slot .uyt-go form { display: grid; gap: .45em; margin: 0; }
#stage .uytf-slot .uyt-go label { color: var(--dim, #c4d4ff); font-size: .86em; font-weight: 700; letter-spacing: .06em; }
#stage .uytf-slot .uytf-nameline { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
#stage .uytf-slot .uyt-go input[type="text"] {
  flex: 1 1 12em; min-width: 0; height: 2.4em; padding: 0 .8em; border: 1px solid var(--line, rgba(150, 185, 255, .22)); border-radius: .5em;
  background: rgba(2, 4, 12, .7); color: var(--ink, #eef3ff); font: inherit; font-size: 1.05em;
}
#stage .uytf-slot .uyt-go input[type="text"]:focus { outline: .12em solid var(--sig, #62e3ff); outline-offset: .1em; }
#stage .uytf-slot .uyt-go .uyt-go-row { display: flex; gap: .45em; flex: none; }
#stage .uytf-slot .uyt-go .uyt-go-row button {
  height: 2.4em; padding: 0 1.1em; border: 1px solid var(--line, rgba(150, 185, 255, .22)); border-radius: 99em;
  background: rgba(255, 255, 255, .04); color: var(--dim, #c4d4ff); font: inherit; font-size: .98em; font-weight: 700; cursor: pointer;
}
#stage .uytf-slot .uyt-go .uyt-go-row button.is-main { border-color: transparent; background: var(--gold, #ffcf5a); color: #1c1300; font-weight: 800; }
#stage .uytf-slot .uyt-go .uyt-go-row button:disabled { opacity: .5; cursor: default; }
#stage .uytf-slot .uyt-go .uyt-go-small { color: var(--faint, rgba(170, 195, 255, .5)); font-size: .84em; line-height: 1.6; }
#stage .uytf-slot .uyt-go .uyt-go-err { color: #ff9db1; font-size: .9em; font-weight: 700; }
#stage .uytf-slot .uyt-go a { color: var(--sig, #62e3ff); text-decoration: underline; text-underline-offset: .2em; }
/* 小さなリンク（名前をかえる・みんなのランキングを見る） */
#stage .uytf-slot .uyt-go-links { display: flex; flex-wrap: wrap; gap: .2em 1.4em; margin: .55em 0 0; font-size: .8em; }
#stage .uytf-slot .uyt-go-links:empty { display: none; }
#stage .uytf-slot .uyt-go-links p { margin: 0; }
#stage .uytf-slot .uyt-go-links a,
#stage .uytf-slot .uyt-go-links button { padding: 0; border: 0; background: none; color: var(--sig, #62e3ff); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
/* 記録カード（QR）：ボタンは結果の画面の下の列。カードの小さな絵は、結果の画面がせまいので出さない（ボタンから大きく見られる） */
#stage .uyt-share-result { display: none !important; }
#stage .r-actions .uyt-share-rowbtn {
  display: inline-flex; align-items: center; height: auto; padding: .7em 1.4em; border: 1px solid rgba(255, 207, 90, .5); border-radius: 99em;
  background: rgba(255, 207, 90, .1); color: #ffe7a8; font: inherit; font-size: .95em; font-weight: 800; letter-spacing: .06em; cursor: pointer;
}
#stage .r-actions .uyt-share-rowbtn:hover { background: rgba(255, 207, 90, .2); }
.uyt-share-modal { font-size: 15px; }

/* はじめの画面：挑戦状・「クリックしてね」 */
#title .uytf-challenge { display: inline-block; margin: 0 0 1em !important; font-size: .9em; }
#title .uytf-focus {
  margin: 1.2em 0 0; padding: .55em 1.2em; display: inline-block; border: 1px solid rgba(98, 227, 255, .6); border-radius: 99em;
  background: rgba(4, 18, 36, .85); color: #dffbff; font-size: .9em; font-weight: 800; letter-spacing: .04em;
  animation: uytfPulse 1.6s ease-in-out infinite;
}
#title .uytf-focus[hidden] { display: none; }
@keyframes uytfPulse { 0%, 100% { box-shadow: 0 0 .8em rgba(98, 227, 255, .15); } 50% { box-shadow: 0 0 1.8em rgba(98, 227, 255, .45); } }
@media (prefers-reduced-motion: reduce) { #title .uytf-focus { animation: none; } }
/* 遊んでいるあいだの、ライバルの点 */
#stage .uytf-chip { margin-left: .8em; font-size: .78em; padding: .2em .8em; }
#stage .uytf-chip[hidden] { display: none; }

/* 結果の画面の下の列：ボタンが3つ（もう一度・星図／コース図・シェア）になるので、文字を折り返さない */
#stage .r-actions { flex-wrap: nowrap; gap: .8em; }
#stage .r-actions button { white-space: nowrap; flex: none; }
#stage .r-actions .primary { padding-left: 1.5em; padding-right: 1.5em; }
/* 「つぎの目標」が空のとき（この端末のランキングの行をのぞいたあと）は、線だけ残さない */
#stage .r-goal:empty { display: none; }
/* 0.5.0：挑戦状のチップを、ゲームの絵の左上に置くとき（chipHost: '#stage'。右の欄の見出しが長いゲーム） */
#stage > .uytf-chip { position: absolute; left: 1.2em; top: 1.1em; margin: 0; z-index: 6; pointer-events: none; }
#stage.st-title > .uytf-chip, #stage.st-result > .uytf-chip, #stage.st-board > .uytf-chip { display: none; }
