:root {
  --pink: #ff2d6a;
  --hot: #ff0a54;
  --gold: #ffd23f;
  --app: #090509;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: #12060c;
  color: #fff;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }

.app {
  width: min(100%, 430px);
  margin: 0 auto;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 50% at 50% -10%, rgba(255, 20, 90, .35), transparent 55%),
    #090509;
  padding-bottom: 72px;
  overflow: hidden;
}

.topbar {
  flex-shrink: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 10px;
  background: rgba(9, 5, 9, .88);
  backdrop-filter: blur(10px);
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: #000;
}

.brand { flex: 1; line-height: 1.1; }
.brand b { font-size: 17px; letter-spacing: .04em; }
.brand span { font-size: 11px; color: #ff8fab; }

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(90deg, #ff0a54, #ff6b2d);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(255, 10, 84, .55);
}

.btn-dl.big {
  height: 46px;
  width: 100%;
  border-radius: 24px;
  font-size: 16px;
  letter-spacing: .02em;
}

.btn-dl.block { width: 100%; }

.pulse { animation: pulse 1.3s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 10, 84, .45); }
  50% { transform: scale(1.04); box-shadow: 0 0 26px rgba(255, 10, 84, .9); }
}

.ticker {
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, #3b0618, #7a1028);
  padding: 7px 0;
  font-size: 12px;
  font-weight: 700;
  color: #ffd6e4;
}

.ticker-in { display: inline-block; animation: marquee 18s linear infinite; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.deck {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 10px 14px 6px;
}

.swipe-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #1a0a10;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 45, 106, .2);
  touch-action: none;
  user-select: none;
  --like: 0;
  --nope: 0;
}

.swipe-card.top { cursor: grab; }
.swipe-card.dragging { cursor: grabbing; transition: none; }
.swipe-card.fly { pointer-events: none; }

.swipe-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: contrast(1.08) saturate(1.12);
  pointer-events: none;
}

.swipe-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(10, 0, 6, .92));
}

.stamp {
  position: absolute;
  z-index: 2;
  top: 28px;
  padding: 6px 14px;
  border: 4px solid;
  border-radius: 10px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .12em;
  pointer-events: none;
}

.stamp.like {
  left: 18px;
  color: #3ee07a;
  border-color: #3ee07a;
  transform: rotate(-18deg);
  opacity: var(--like);
}

.stamp.nope {
  right: 18px;
  color: #ff4d6d;
  border-color: #ff4d6d;
  transform: rotate(18deg);
  opacity: var(--nope);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #16a34a;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.tag.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: .35; }
}

.hot-pill {
  background: #ffd23f;
  color: #4a2a00;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
}

.watch {
  margin-left: auto;
  background: rgba(0,0,0,.5);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.card-top, .card-bot { position: absolute; left: 14px; right: 14px; z-index: 1; }
.card-top {
  top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-bot { bottom: 16px; }
.card-bot b {
  display: block;
  font-size: 26px;
  text-shadow: 0 2px 10px #000;
  margin-bottom: 4px;
}
.card-bot p {
  color: #ffc2d4;
  font-size: 14px;
}

.actions {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  padding: 6px 0 8px;
}

.act {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  background: #1a0d12;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

.act.nope {
  color: #ff5a6a;
  border: 2px solid #ff5a6a;
}

.act.like {
  width: 72px;
  height: 72px;
  font-size: 34px;
  color: #fff;
  background: linear-gradient(180deg, #ff4d7a, #ff0a54);
  border: 0;
  box-shadow: 0 0 22px rgba(255, 10, 84, .55);
}

.act:active { transform: scale(.94); }

.hint {
  flex-shrink: 0;
  text-align: center;
  color: #c98aa0;
  font-size: 12px;
  padding: 0 16px 8px;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #2a0a16, #14060c);
  border-top: 1px solid rgba(255, 45, 106, .35);
  z-index: 40;
}

.dock img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
}

.dock b { display: block; font-size: 13px; }
.dock span { font-size: 11px; color: #ffd23f; font-weight: 700; }

.sheet { display: none; position: fixed; inset: 0; z-index: 60; }
.sheet.open { display: block; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.72); }

.sheet-box {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 430px);
  background: radial-gradient(80% 80% at 50% 0%, #4a1024, #14060c);
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  text-align: center;
}

.sheet-box img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 12px;
  margin: 0 auto 10px;
  border: 2px solid #ff2d6a;
}

.sheet-box .match {
  color: #ffd23f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.sheet-box h3 { font-size: 18px; margin: 8px 0 6px; }
.sheet-box p { color: #ffc2d4; font-size: 13px; margin-bottom: 14px; }
.cancel { margin-top: 8px; width: 100%; height: 40px; color: #aa7a88; }
