:root {
  --bg: #eef3f8;
  --bg-deep: #dbe7f4;
  --card: #ffffff;
  --text: #102039;
  --text-soft: #5b6d86;
  --line: #d9e5f3;
  --primary: #0f6bff;
  --primary-strong: #0054de;
  --max-width: 430px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 2%, rgba(15, 107, 255, 0.18), transparent 42%),
    linear-gradient(160deg, var(--bg), var(--bg-deep));
}

body {
  overflow-x: hidden;
}

.app {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 12px calc(96px + env(safe-area-inset-bottom));
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(20, 44, 77, 0.12);
}

.hero {
  position: relative;
  background: linear-gradient(145deg, #0b1f3b, #16457f 66%, #1569b8);
  color: #f5f9ff;
  border: 0;
  box-shadow: 0 16px 30px rgba(16, 39, 69, 0.28);
  padding-top: 52px;
}

.lang-switch {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-label {
  font-size: 0.74rem;
  color: rgba(245, 249, 255, 0.82);
}

.lang-dropdown {
  position: relative;
  z-index: 40;
}

.lang-trigger {
  min-width: 92px;
  min-height: 30px;
  padding: 0 26px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #f5f9ff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  position: relative;
}

.lang-trigger::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.85;
}

.lang-trigger:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #10294d;
  box-shadow: 0 14px 28px rgba(7, 19, 37, 0.4);
  z-index: 50;
}

.lang-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #10294d;
  color: #f5f9ff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  text-align: left;
}

.lang-option:hover,
.lang-option.is-active {
  background: rgba(255, 255, 255, 0.14);
}

.top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.title h1 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.2px;
}

.title p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  opacity: 0.92;
}

.badges {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
}

.section-title {
  margin: 0 0 10px;
  font-size: 1rem;
}

.status {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: 0;
}

.actions {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 10px 20px rgba(15, 107, 255, 0.28);
}

.btn-soft {
  color: #1f3f67;
  background: #f4f8ff;
  border-color: #d8e5f8;
  font-weight: 600;
}

.intro {
  margin: 0;
  color: #334e70;
  line-height: 1.65;
  font-size: 0.92rem;
}

.screens {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.screens::-webkit-scrollbar {
  height: 5px;
}

.screens::-webkit-scrollbar-thumb {
  background: #c3d4ea;
  border-radius: 999px;
}

.shot {
  width: 72%;
  min-width: 72%;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #d8e5f3;
  background: #f7fbff;
  box-shadow: 0 8px 18px rgba(29, 58, 92, 0.16);
  scroll-snap-align: center;
}

.shot img {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 20;
  object-fit: cover;
}

.footer {
  text-align: center;
  color: #5a7393;
  font-size: 0.8rem;
  margin-top: 2px;
  line-height: 1.6;
}

.floating {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(calc(100% - 14px), calc(var(--max-width) - 2px));
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border: 1px solid #d6e4f6;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 20px rgba(19, 43, 74, 0.16);
  z-index: 20;
}

.floating .btn {
  width: 100%;
}
