﻿:root {
  --bg-base: #f4f8ff;
  --bg-warm: rgba(255, 122, 71, 0.34);
  --bg-cool: rgba(0, 212, 255, 0.30);
  --bg-sun: rgba(255, 214, 78, 0.28);

  --ink-strong: #f4f8ff;
  --ink-soft: rgba(228, 239, 255, 0.86);
  --ink-muted: rgba(206, 223, 245, 0.72);

  --panel: rgba(9, 24, 44, 0.86);
  --panel-soft: rgba(13, 31, 58, 0.82);
  --stroke: rgba(255, 255, 255, 0.18);

  --accent-hot: #ff6238;
  --accent-cool: #00ceff;
  --accent-gold: #ffc44d;
  --accent-lime: #c8ff59;

  --radius-lg: 34px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --shadow-card: 0 32px 70px rgba(7, 17, 32, 0.30);
  --shadow-item: 0 18px 35px rgba(8, 20, 40, 0.28);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--ink-strong);
  background:
    radial-gradient(1100px 620px at 5% 8%, var(--bg-cool), transparent 62%),
    radial-gradient(1000px 620px at 92% 0%, var(--bg-warm), transparent 64%),
    radial-gradient(860px 560px at 45% 110%, var(--bg-sun), transparent 62%),
    linear-gradient(180deg, #f7fbff 0%, #ecf4ff 55%, #f9f4ed 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto;
  height: 65vh;
  background:
    radial-gradient(circle at 18% 34%, rgba(255, 98, 56, 0.28), transparent 38%),
    radial-gradient(circle at 70% 26%, rgba(0, 206, 255, 0.24), transparent 40%),
    radial-gradient(circle at 55% 68%, rgba(200, 255, 89, 0.18), transparent 44%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  animation: auraShift 9s ease-in-out infinite alternate;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

.wrap {
  width: 100%;
  min-height: 100vh;
  padding:
    max(20px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(150deg, rgba(13, 34, 62, 0.92), rgba(8, 20, 37, 0.90));
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  animation: panelIn 560ms ease-out both;
}

.promo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px 14px;
  position: relative;
  border-bottom: 0;
  overflow-x: visible;
  scrollbar-width: none;
  background: linear-gradient(90deg, rgba(255, 98, 56, 0.22), rgba(0, 206, 255, 0.18));
}

.promo-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, #ff2d55, #ff8a00, #ffe600, #45ff77, #00d4ff, #7a5cff, #ff2d55);
  background-size: 100% 100%;
  animation: none;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.45);
}

.promo-strip::-webkit-scrollbar {
  display: none;
}

.promo-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 18, 34, 0.48);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.promo-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.45);
}

.promo-link.is-active {
  color: #041527;
  border-color: rgba(0, 206, 255, 0.75);
  background: linear-gradient(120deg, var(--accent-cool), #a6f7ff);
}

.glow {
  position: absolute;
  width: 360px;
  height: 360px;
  top: -180px;
  right: -110px;
  background: radial-gradient(circle, rgba(0, 206, 255, 0.35), rgba(0, 206, 255, 0) 64%);
  pointer-events: none;
}

.top {
  padding: 24px 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #e8f4ff;
  background: linear-gradient(90deg, rgba(255, 98, 56, 0.30), rgba(0, 206, 255, 0.24));
  font-size: 0.8rem;
  font-weight: 600;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 999px;
  overflow: visible;
  position: relative;
  z-index: 1;
  margin-top: 4px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(130deg, var(--accent-hot), var(--accent-cool), var(--accent-gold)) border-box;
  box-shadow:
    0 16px 35px rgba(0, 0, 0, 0.36),
    0 0 0 4px rgba(255, 255, 255, 0.08);
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff2d55,
    #ff8a00,
    #ffe600,
    #45ff77,
    #00d4ff,
    #7a5cff,
    #ff2d55
  );
  animation: rgbSpin 2.8s linear infinite;
  z-index: 1;
  filter: saturate(1.15);
  pointer-events: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

h1 {
  margin: 2px 0 0;
  font-family: "Space Grotesk", "Sora", sans-serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.sub {
  margin: 0;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.48;
}

.search {
  width: 100%;
  max-width: 620px;
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search input {
  width: 100%;
  min-width: 0;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search input::placeholder {
  color: rgba(221, 235, 255, 0.58);
}

.search input:focus {
  outline: none;
  border-color: rgba(0, 206, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 206, 255, 0.16);
}

.search button {
  height: 56px;
  min-width: 126px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 20px;
  color: #081326;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent-gold), #ff8a4a 55%, var(--accent-hot));
  box-shadow: 0 10px 22px rgba(255, 98, 56, 0.38);
  transition: transform 0.16s ease, filter 0.16s ease;
}

.search button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.search button:active {
  transform: translateY(0);
}

.list-head {
  padding: 0 26px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.list-head p {
  margin: 0;
  color: #eef6ff;
  font-size: 1rem;
  font-weight: 700;
}

.list-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #001f31;
  background: linear-gradient(120deg, var(--accent-cool), #7ef0ff);
}

.section-sub {
  margin: 8px 26px 0;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.links {
  padding: 14px 20px 20px;
  display: grid;
  gap: 12px;
}

.btn {
  width: 100%;
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(120px 90px at 12% 12%, rgba(0, 206, 255, 0.22), transparent 75%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  box-shadow: var(--shadow-item);
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
  animation: linkIn 0.5s ease-out both;
}

.btn:nth-child(1) { animation-delay: 0.05s; }
.btn:nth-child(2) { animation-delay: 0.09s; }
.btn:nth-child(3) { animation-delay: 0.13s; }
.btn:nth-child(4) { animation-delay: 0.17s; }
.btn:nth-child(5) { animation-delay: 0.21s; }
.btn:nth-child(6) { animation-delay: 0.25s; }

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34);
  filter: brightness(1.04);
}

.btn:active {
  transform: translateY(0);
}

.btn-static {
  cursor: default;
}

.btn-static:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.18);
  filter: none;
}

.btn-store {
  background:
    radial-gradient(180px 120px at 10% 0%, rgba(255, 98, 56, 0.34), transparent 75%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
}

.thumb {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 20, 38, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-store {
  background: #000000;
}

.thumb img.store-logo {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.emoji {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #f1fbff;
}

.meta {
  min-width: 0;
}

.row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.title {
  margin: 0;
  flex: 1 1 240px;
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 800;
  color: #f4f8ff;
  word-break: break-word;
}

.tag {
  flex: 0 0 auto;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8feff;
  background: rgba(255, 255, 255, 0.1);
}

.desc {
  margin: 7px 0 0;
  font-size: 0.94rem;
  line-height: 1.42;
  color: var(--ink-muted);
  word-break: break-word;
}

.price-line {
  margin: 8px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.price-old {
  color: rgba(222, 233, 245, 0.74);
  text-decoration: line-through;
  font-size: 0.86rem;
}

.price-new {
  color: #6affc7;
  font-size: 1rem;
}

.price-normal {
  color: #d6f5ff;
  font-size: 0.96rem;
}

.countdown {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: #ffd36f;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.arrow {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #e9f6ff;
  flex: 0 0 auto;
}

.empty {
  text-align: center;
  padding: 22px 16px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.26);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.05);
}

.footer {
  padding: 14px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-muted);
  font-size: 0.82rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.social-links a {
  text-decoration: none;
  color: #e6f7ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.social-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 206, 255, 0.75);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ecf7ff;
}

.browser-safari input,
.browser-safari button {
  -webkit-appearance: none;
  appearance: none;
}

@keyframes auraShift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 1%, 0) scale(1.05); }
}

@keyframes rgbFlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(22%); }
}

@keyframes rgbSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .wrap {
    align-items: flex-start;
  }

  .card {
    border-radius: 26px;
  }

  .top {
    padding: 22px 16px 16px;
  }

  .list-head {
    padding: 0 16px;
  }

  .section-sub {
    margin: 8px 16px 0;
  }

  .links {
    padding: 12px 12px 16px;
  }

  .btn {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .thumb {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .title {
    font-size: 1rem;
  }

  .desc {
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .promo-strip {
    padding: 10px 12px;
  }

  .search {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .search input,
  .search button {
    width: 100%;
    height: 52px;
  }

  .btn {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    border-radius: 16px;
  }

  .thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .arrow {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-left {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 1.85rem;
  }

  .sub {
    font-size: 0.94rem;
  }

  .title {
    font-size: 0.95rem;
  }

  .desc {
    font-size: 0.86rem;
  }
}
