/* uy-typings STELLAR TYPE: HYPERDRIVE — ゲームの iframe の中だけで読む見た目 v1.0.0（2026-11-15 / plugin 0.3.0）
   結果の画面に入れる「みんなのランキング」の欄・記録カード（QR）のボタンを、ゲームの色（シアン・オレンジ・等幅の数字）にそろえる。
   （iframe の中なので、宇宙旅行.jp のページの見た目とは、たがいに影響しない） */

#resultShade .sth-uyt-slot:empty { display: none; }
#resultShade .sth-uyt-slot { margin: -6px 0 18px; }
#resultShade .uyt-go {
  gap: 9px; padding: 14px 16px 12px; border: 1px solid #5ceeff55; border-radius: 12px;
  background: linear-gradient(145deg, #0c2a40d9, #071528f0); box-shadow: inset 0 0 0 1px #ffffff08, 0 0 40px #4bcfff14;
  color: #cfe7f2; font-size: 13.5px; text-align: center;
}
#resultShade .uyt-go::before {
  content: "GLOBAL RANKING / みんなのランキング"; display: block; margin-bottom: 2px;
  font: 11px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .2em; color: #5ceeff;
}
#resultShade .uyt-go .uyt-go-motive { margin: 0; color: #ffc988; font-size: 16px; font-weight: 800; line-height: 1.45; }
#resultShade .uyt-go .uyt-go-motive:empty { display: none; }
#resultShade .uyt-go .uyt-go-head { color: #f4feff; font-size: 15px; }
#resultShade .uyt-go .uyt-go-head.is-in { color: #ffd59e; }
#resultShade .uyt-go .uyt-go-place { border-color: #ffc98899; color: #ffe3c2; background: #2a1a0a66; }
#resultShade .uyt-go label { color: #a5c1ce; font-size: 12px; font-weight: 700; }
#resultShade .uyt-go input[type="text"] {
  width: min(320px, 100%); padding: 11px 13px; border: 1px solid #78bdc970; border-radius: 7px;
  background: #041428; color: #fff; font: inherit; font-size: 16px; text-align: center;
}
#resultShade .uyt-go input[type="text"]:focus { outline: 2px solid #5ceeff; outline-offset: 1px; }
#resultShade .uyt-go .uyt-go-row button { border-radius: 7px; padding: 10px 20px; font-weight: 700; }
#resultShade .uyt-go .uyt-go-row button.is-main,
#resultShade .uyt-go .uyt-go-row button.is-main:hover,
#resultShade .uyt-go .uyt-go-row button.is-main:focus { color: #051222; border-color: #98f3fc; background: linear-gradient(180deg, #b9fbff, #5ceeff); }
#resultShade .uyt-go .uyt-go-small { color: #8fb0c2; font-size: 12px; }
#resultShade .uyt-go a { color: #8ff3ff; }
/* 小さなリンク（名前をかえる・みんなのランキングを見る）は、いちばん下 */
#resultShade .panel > .uyt-go-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 14px 0 0; font-size: 12.5px; }
#resultShade .panel > .uyt-go-links:empty { display: none; }
#resultShade .panel > .uyt-go-links p { margin: 0; }
#resultShade .panel > .uyt-go-links a,
#resultShade .panel > .uyt-go-links button { padding: 0; border: 0; background: none; color: #8ff3ff; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* 記録カード（QR）のボタンと、カードの小さな絵 */
#resultShade .panel-actions .uyt-share-rowbtn {
  border: 1px solid #ffc98880; padding: 12px 20px; border-radius: 7px; background: #3a250dcc; color: #ffe3c2; font-weight: 700; font-size: 13px;
}
#resultShade .panel-actions .uyt-share-rowbtn:hover { background: #573611; }
#resultShade .uyt-share-result { margin: 4px 0 6px; }
#resultShade .uyt-share-result img { border-radius: 10px; border: 1px solid #5ceeff55; }
@media (max-width: 640px) {
  #resultShade .uyt-go { padding: 12px 10px 10px; }
}

/* ---- スマホ（iframe の幅がせまいとき）：もとのゲームの絵の文字が重なるところを、整える ---- */
#recordsBtn { white-space: nowrap; }
/* 「MISSION CONTROL / STANDBY」：もとの CSS の線（.control-tag span）が文字の span にもかかって、文字がはみ出していたので直す */
.control-tag { white-space: nowrap; }
.control-tag span:first-child { flex: none; }
.control-tag #missionKicker { display: inline; width: auto; height: auto; background: none; }
.mast-btn { white-space: nowrap; }
/* タブレットの幅（iframe 701〜880px）：上のボタンが横からはみ出さないように */
@media (min-width: 701px) and (max-width: 880px) {
  .mast { gap: 12px; }
  .brand { letter-spacing: .06em; }
  .brand-sub { white-space: nowrap; }
  .mast-btn { padding: 6px 8px; letter-spacing: .02em; }
  #motionBtn { display: none; }
}
@media (max-width: 700px) {
  .racefoot { display: none; }                       /* 「オンライン対戦ではありません」は、結果の画面とページの説明にある */
  .timer-display { top: 318px; }
}
@media (max-width: 440px) {
  .topline-right { display: none; }                  /* 「YOUR SHIP ORION-01 / CPU 3機との模擬レース」 */
  .sector-tag { white-space: nowrap; }
  .sector-tag span[style] { display: none; }         /* 「・60 SEC TRIAL」 */
  .mission-copy { width: 88%; }
  .raceboard { width: 128px; }
  .mast { padding: 0 10px; gap: 8px; }
  .identity { min-width: 0; gap: 8px; }
  .brand { font-size: 10px; letter-spacing: .02em; white-space: nowrap; }
  .brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mast-actions { gap: 5px; flex: none; }
  .mast-btn { font-size: 9.5px; padding: 5px 6px; letter-spacing: 0; }
}
@media (max-width: 380px) {
  .mast .mark { display: none; }
}
.start-banner .sth-kbnote { margin-top: 8px !important; color: #ffc988 !important; font-size: 11.5px !important; letter-spacing: .02em !important; line-height: 1.6; }

/* ---- 0.3.1 ---- */
/* 結果の画面：大きな点の数字と「NEW PERSONAL BEST」が重ならないように */
#resultShade .win { margin-top: 10px; }
/* パイロットの称号 */
#resultShade .sth-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 14px 0 4px; padding: 10px 14px; border: 1px solid rgba(255, 201, 136, .35); border-radius: 10px; background: linear-gradient(90deg, rgba(255, 181, 71, .10), rgba(92, 238, 255, .05)); }
#resultShade .sth-title[hidden] { display: none; }
#resultShade .sth-title-k { color: #8fb0c2; font: 700 11px var(--mono, ui-monospace, monospace); letter-spacing: .12em; }
#resultShade .sth-title-name { color: #fff; font-size: 20px; font-weight: 900; letter-spacing: .02em; }
#resultShade .sth-title-stars { color: #ffc988; letter-spacing: .08em; font-size: 15px; }
#resultShade .sth-title-next { margin-left: auto; color: #a9c7d8; font-size: 12.5px; }
/* 日本語入力の注意・「クリックしてね」・挑戦状のライバル */
.sth-ime { position: absolute; z-index: 8; left: 50%; top: 22%; transform: translateX(-50%); width: min(560px, calc(100% - 28px)); margin: 0; padding: 12px 16px; border: 1px solid rgba(255, 201, 136, .65); border-radius: 10px; background: rgba(28, 16, 4, .9); color: #ffd9a8; font-size: 14px; font-weight: 800; line-height: 1.6; text-align: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.sth-ime[hidden] { display: none; }
.sth-focus { position: absolute; z-index: 7; left: 50%; top: 66%; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 10px 18px; border: 1px solid rgba(92, 238, 255, .7); border-radius: 999px; background: rgba(4, 18, 36, .9); color: #dffbff; font: 800 14px var(--sans, system-ui, sans-serif); letter-spacing: .02em; cursor: pointer; box-shadow: 0 0 30px rgba(92, 238, 255, .25); animation: sthPulse 1.6s ease-in-out infinite; }
.sth-focus[hidden] { display: none; }
@keyframes sthPulse { 0%, 100% { box-shadow: 0 0 18px rgba(92, 238, 255, .18); } 50% { box-shadow: 0 0 34px rgba(92, 238, 255, .45); } }
@media (prefers-reduced-motion: reduce) { .sth-focus { animation: none; } }
.sth-chip { position: absolute; z-index: 6; right: 24px; top: 60%; }
.sth-chip[hidden] { display: none; }
.start-banner .sth-challenge { display: block; margin: 0 auto 10px !important; width: max-content; max-width: 100%; letter-spacing: .02em !important; font-size: 13px !important; color: #ffd37a !important; }
/* レースの表の下の説明（「オンライン対戦ではありません」）は、残り時間の文字と重なることがあるので、ページの中ではかくす（同じことを結果の画面とページに書いている） */
body.uyt-embed .racefoot { display: none; }
@media (max-width: 700px) {
  .sth-focus { top: 58%; font-size: 12.5px; padding: 8px 14px; }
  .sth-ime { top: 16%; font-size: 12.5px; }
  .sth-chip { font-size: 11px; padding: 3px 10px; }
  #resultShade .sth-title-next { margin-left: 0; }
}
