:root {
  color-scheme: dark;
  font-family: Inter, "Noto Sans SC", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a2540;
  color: #fff;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  background: #0a2540;
  margin: 0;
}

button {
  font: inherit;
}

.mobile-app {
  background: #0a2540;
  margin: 0 auto;
  max-width: 375px;
  min-height: 100dvh;
  overflow-x: hidden;
  padding-bottom: 92px;
  position: relative;
}

.m-topbar {
  align-items: flex-start;
  display: flex;
  height: 50px;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 17px;
}

.m-brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  height: 32px;
  margin-top: 9px;
}

.m-logo-mark,
.m-logo-wordmark {
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
}

.m-logo-mark {
  height: 32px;
  width: 33px;
}

.m-logo-mark img {
  height: 239.25%;
  left: -29.52%;
  max-width: none;
  position: absolute;
  top: -61.12%;
  width: 151.9%;
}

.m-logo-wordmark {
  height: 17px;
  width: 100px;
}

.m-logo-wordmark img {
  height: 1201.16%;
  left: -19%;
  max-width: none;
  position: absolute;
  top: -504.14%;
  width: 139%;
}

.m-login-pill {
  background: #111827;
  border: 1px solid rgba(32, 162, 255, 0.36);
  border-radius: 999px;
  color: #20a2ff;
  font-size: 12px;
  height: 28px;
  margin-top: 11px;
  padding: 0 10px;
}

.m-user-badge {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 12px;
  gap: 6px;
  height: 32px;
  margin-top: 9px;
  max-width: 132px;
  overflow: hidden;
}

.m-user-badge img {
  background: linear-gradient(135deg, #12b7ec, #18c892);
  border-radius: 999px;
  flex: 0 0 auto;
  height: 26px;
  object-fit: cover;
  width: 26px;
}

.m-user-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-notice {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 8px;
  color: #fecaca;
  font-size: 12px;
  line-height: 1.45;
  margin: 8px 17px 0 18px;
  padding: 8px 10px;
}

.m-hero-copy {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  margin: 12px 18px 0;
}

.m-card {
  background: #111827;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  color: #fff;
  margin: 0 17px 0 18px;
  max-width: 340px;
  padding: 16px 17px;
  width: calc(100% - 35px);
}

.m-card h1,
.m-card h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  margin: 0;
}

.m-card-head {
  align-items: flex-start;
  display: flex;
  height: 19px;
  justify-content: space-between;
}

.link-button {
  background: linear-gradient(147.56deg, #0caede 22.43%, #0eb2c8 35.34%, #14c086 75.08%);
  background-clip: text;
  border: 0;
  color: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 17px;
  padding: 0;
}

.m-pick-card {
  height: 256px;
  margin-top: 16px;
  padding-top: 16px;
}

.m-pick-balls {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  padding: 0 21px;
}

.m-ball {
  align-items: center;
  background: radial-gradient(circle at 32% 24%, rgba(125, 252, 255, 0.9), rgba(46, 203, 234, 0.82) 31%, rgba(24, 190, 145, 0.96) 68%, #0c5d7a 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(32, 162, 255, 0.68), inset -4px -5px 10px rgba(5, 31, 49, 0.22);
  color: #fff;
  display: inline-flex;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
}

.m-ball-large {
  font-size: 20px;
  height: 50px;
  width: 50px;
}

.m-ball-small {
  font-size: 12px;
  height: 24px;
  width: 24px;
}

.m-reason-list {
  border-top: 1px solid #2a3342;
  display: grid;
  gap: 14px;
  margin: 30px 3px 0;
  padding-top: 11px;
}

.m-reason-list div {
  align-items: center;
  display: grid;
  grid-template-columns: 27px 21px minmax(0, 1fr);
  min-height: 17px;
}

.m-reason-list strong {
  color: #1fa2ff;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
}

.m-reason-list span,
.m-reason-list em {
  color: #94a3b8;
  font-size: 14px;
  font-style: normal;
  line-height: 17px;
}

.m-primary-action {
  align-items: center;
  background: linear-gradient(160.98deg, #0caede 22.43%, #0eb2c8 35.34%, #14c086 75.08%);
  border: 0;
  border-radius: 15px;
  color: #fff;
  display: flex;
  font-size: 18px;
  gap: 5px;
  height: 56px;
  justify-content: center;
  line-height: 22px;
  margin: 20px 17px 0 18px;
  max-width: 340px;
  width: calc(100% - 35px);
}

.m-primary-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.m-primary-action img {
  height: 24px;
  width: 24px;
}

.m-analysis-card {
  background: #1f2937;
  height: 150px;
  margin-top: 30px;
  padding: 14px 13px 0 10px;
}

.m-section-title {
  align-items: center;
  display: flex;
  gap: 9px;
}

.m-section-title img {
  height: 24px;
  width: 24px;
}

.m-analysis-card p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 26px;
  margin: 10px 0 0 33px;
  max-height: 78px;
  overflow: hidden;
  width: calc(100% - 43px);
}

.m-trend-card {
  height: 290px;
  margin-top: 20px;
  padding: 16px 17px 0;
}

.m-trend-chart {
  height: 214px;
  margin-top: 17px;
  width: 100%;
}

.profile-view {
  padding-top: 16px;
}

.profile-card {
  min-height: 272px;
}

.profile-head {
  align-items: center;
  display: flex;
  gap: 14px;
}

.profile-head img {
  background: linear-gradient(135deg, #0caede, #14c086);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(32, 162, 255, 0.28);
  height: 56px;
  object-fit: cover;
  width: 56px;
}

.profile-head h1 {
  font-size: 18px;
  line-height: 22px;
  margin: 0;
}

.profile-head p {
  color: #14c086;
  font-size: 12px;
  line-height: 16px;
  margin: 5px 0 0;
}

.profile-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.profile-grid div {
  align-items: center;
  border-bottom: 1px solid #2a3342;
  display: flex;
  justify-content: space-between;
  min-height: 36px;
}

.profile-grid span {
  color: #94a3b8;
  font-size: 13px;
}

.profile-grid strong {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  max-width: 190px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-logout {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 14px;
  height: 42px;
  margin-top: 22px;
  width: 100%;
}

.mobile-tabbar {
  background: #0f1c2e;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 64px;
  left: 50%;
  max-width: 375px;
  position: fixed;
  transform: translateX(-50%);
  width: 100%;
  z-index: 20;
}

.mobile-tabbar a {
  color: #94a3b8;
  display: block;
  font-size: 10px;
  height: 64px;
  line-height: 12px;
  position: relative;
  text-align: center;
  text-decoration: none;
}

.mobile-tabbar a.active {
  color: #20a2ff;
}

.mobile-tabbar img {
  height: 34px;
  left: 50%;
  position: absolute;
  top: 8px;
  transform: translateX(-50%);
  width: 34px;
}

.mobile-tabbar span {
  display: block;
  left: 0;
  position: absolute;
  top: 43px;
  width: 100%;
}

.history-panel {
  background: #0a2540;
  inset: 0;
  overflow-y: auto;
  padding-bottom: 24px;
  position: fixed;
  z-index: 40;
}

.history-head {
  align-items: center;
  display: flex;
  gap: 8px;
  height: 50px;
  padding-left: 10px;
}

.history-head button {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  height: 28px;
  line-height: 18px;
  padding: 0;
  width: 18px;
}

.history-head h2 {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
}

.history-list {
  display: grid;
  gap: 20px;
  margin: 20px 17px 0 18px;
}

.history-card {
  background: #111827;
  border-radius: 12px;
  height: 100px;
  padding: 16px 17px 0;
}

.history-meta {
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  line-height: 17px;
}

.history-balls {
  align-items: center;
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.history-separator {
  background: rgba(148, 163, 184, 0.55);
  height: 20px;
  margin-left: 4px;
  width: 1px;
}

.special-label {
  color: #94a3b8;
  font-size: 10px;
  margin-left: -9px;
}
