.lure-board { --header-map: var(--mobile-board-scene, url("/art/research/twilight-garden.webp")); --map-position: 62%; }
.lure-board section[id] { scroll-margin-top: 18px; }
.lure-board [data-module="501"] { --accent: #ffafd0; }
.lure-board [data-module="502"] { --accent: #a9e4ff; }
.lure-board [data-module="503"] { --accent: #acd995; }
.lure-board [data-module="504"] { --accent: #bab9ff; }
.lure-board [data-module="505"] { --accent: #85d7e8; }
.lure-board [data-module="506"] { --accent: #ffcf72; }

.lure-mast { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,2fr); align-items: center; }
.lure-heading { position: relative; grid-area: 1 / 1; padding-bottom: 8px; }
.lure-heading .board-intro { max-width: 49ch; }
.lure-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 9px; }
.lure-links a, .lure-report-link { color: var(--gold); font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.lure-scene {
  grid-area: 1 / 2; justify-self: end; align-self: end; position: relative; isolation: isolate; pointer-events: none;
  width: min(100%, 360px); aspect-ratio: 2.5; container-type: inline-size;
}
.lure-leafeon, .lure-glaceon { position: absolute; object-fit: contain; filter: drop-shadow(0 3px 2px #15162380); }
.lure-leafeon { left: 7%; bottom: 4%; width: 43%; height: 87%; }
.lure-glaceon { left: 48%; bottom: 9%; width: 49%; height: 94%; }
.lure-stop { position: absolute; left: 55%; top: 7%; bottom: 0; width: 19%; translate: -50% 0; }
.lure-stop::before, .lure-stop::after, .lure-disc, .lure-disc::after { position: absolute; content: ""; left: 50%; translate: -50% 0; }
.lure-stop::before {
  bottom: 4%; height: 55%; width: 7%; border-radius: 2px;
  background: linear-gradient(90deg,#2baedb,#d6ffff 55%,#66e8ff); box-shadow: 0 0 6px #42cfff;
}
.lure-stop::after {
  bottom: 0; width: 76%; height: 8%; border: 1px solid #8af8ff; border-radius: 50%;
  background: #50d5ff36; box-shadow: 0 0 7px #59dfffaa, inset 0 0 5px #59dfff;
}
.lure-disc {
  top: 6%; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(145deg,#e8ffff80,transparent 44%,#086eba55), radial-gradient(circle,#2babe9 0 21%,#143f78 22% 26%,#6ce8ff 27% 45%,#1978ac 46% 52%,#84f3ff 53% 66%,#39bcf2 67%);
  box-shadow: inset 1px 2px 3px #d8ffff, 0 2px 0 #14729c, 0 0 3cqw #4adcff99;
}
.lure-disc::after { width: 26%; height: 22%; top: 106%; background: linear-gradient(130deg,#b7ffff,#29bdf6); clip-path: polygon(50% 0,100% 35%,50% 100%,0 35%); }
.lure-petals { position: absolute; inset: 0 -42% 20%; --fall-time: 14.4s; }
.lure-petals i {
  --sway-edge: 6%; --tilt: -25deg;
  position: absolute; width: max(4px,1.95cqw); height: max(2.5px,1.15cqw); border-radius: 85% 8% 65% 15%;
  background: linear-gradient(30deg,#f57cb2,#ffe2ef); box-shadow: 0 0 3px #f7a4cb88;
  translate: -50% -50%;
  animation: lure-fall var(--fall-time) linear infinite, lure-sway var(--fall-time) ease-in-out infinite, lure-flutter 4.8s ease-in-out infinite alternate;
  animation-delay: calc(-1 * var(--petal) * var(--fall-time) / 8);
}
.lure-petals i:nth-child(even) { --sway-edge: 83%; --tilt: 35deg; }
.lure-petals i:nth-child(3n) { --fall-time: 16s; --sway-edge: 23%; }
@keyframes lure-fall {
  from { top: 0%; rotate: var(--tilt); opacity: 0; }
  12%, 84% { opacity: 1; }
  to { top: 98%; rotate: calc(var(--tilt) + 130deg); opacity: 0; }
}
@keyframes lure-sway {
  from, to { left: var(--sway-edge); }
  50% { left: calc(100% - var(--sway-edge)); }
}
@keyframes lure-flutter {
  from { scale: 1 1; }
  to { scale: .52 1; }
}

.lure-tabs { position: relative; grid-column: 1 / -1; flex-wrap: wrap; gap: 0 clamp(12px,2vw,24px); }
.lure-tabs a { display: inline-flex; align-items: center; gap: 4px; }
.lure-tabs img, .lure-guide-entry img { object-fit: contain; }
.lure-tabs a:hover, .lure-guide-entry:hover h3 { color: var(--paper); }
.lure-toolbar { flex-wrap: wrap; }
.lure-toolbar select { width: auto; padding-left: 12px; }
.lure-board-notes { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; margin: -3px 0 14px; }
.lure-board-notes .raid-allowance, .lure-freshness { margin: 0; font-size: .875rem; color: var(--muted); }
.lure-board-notes .notice { margin: 4px 0 0; }

.lure-card { --art-glow-x: 16%; }
.lure-card .research-reward { min-height: 98px; padding-block: 8px 12px; gap: 12px; }
.lure-card .research-details h3 { font-size: clamp(1.6rem,2.2vw,1.85rem); line-height: 1.1; }
.lure-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; width: 100%;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: start; overflow-wrap: anywhere;
}
.lure-name:enabled { cursor: help; }
.lure-name:disabled { opacity: 1; }
.lure-full-name {
  max-inline-size: min(34ch, calc(100vw - 32px)); margin: auto; padding: 10px 14px; border-radius: 7px;
  background: #242830; border: 1px solid #59616c; color: #f8f6f1; font: 600 1rem/1.4 Sans,sans-serif;
  overflow-wrap: anywhere; box-shadow: 0 6px 22px #0006;
}
@supports (position-area: bottom) {
  .lure-full-name { inset: auto; position-area: bottom; position-try-fallbacks: flip-block, flip-inline; margin: 5px 0; }
}
.lure-card .raid-location { margin-top: 5px; }
.lure-card .raid-location .pin { flex: none; }
.lure-country { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lure-source, .lure-checked { display: block; margin-top: 5px; color: var(--muted); }
.lure-checked { display: none; color: #b8dfc6; }
.lure-card[data-checked] .lure-checked { display: block; }
.lure-empty img { display: block; margin: 0 auto 6px; }

.lure-guide, .lure-report { margin-top: 30px; }
.lure-section-head h2, .lure-report h2 { font: 700 clamp(1.65rem,3vw,2.15rem)/1.1 Cond,sans-serif; }
.lure-guide > p, .lure-report > p { max-width: 68ch; margin: 7px 0 16px; line-height: 1.5; color: var(--muted); }
.lure-guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.lure-guide-entry {
  display: grid; grid-template-columns: 54px 1fr; align-items: start; gap: 12px; padding: 16px 14px;
  background: var(--panel); border: 1px solid var(--edge); border-radius: 12px;
}
.lure-guide-entry:hover { border-color: var(--accent); }
.lure-guide-entry h3 { color: var(--accent); font: 690 1.4rem/1.1 Cond,sans-serif; }
.lure-guide-entry p, .lure-guide-entry small { display: block; margin: 5px 0 0; line-height: 1.4; }
.lure-guide-entry small { color: var(--muted); }
.lure-report { border-top: 1px solid var(--edge); padding: 22px 0 10px; }
.lure-report form { max-width: 780px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: end; }
.lure-report label { display: grid; gap: 5px; font-weight: 600; }
.lure-report :is(input,select) { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--edge); background: var(--panel); color: inherit; padding: 8px 10px; border-radius: 6px; font: inherit; }
.lure-report button { min-height: 44px; }

@media (max-width: 850px) { .lure-guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .lure-mast::before {
    background: linear-gradient(90deg,var(--bg) 8%,#181a2177 53%,transparent 78%), linear-gradient(0deg,var(--bg) 6%,transparent 55%),
      var(--header-map) 74% center / cover no-repeat;
  }
  .lure-heading { display: contents; }
  .lure-heading h1 { grid-column: 1 / -1; grid-row: 1; }
  .lure-heading .board-intro { grid-area: 2 / 1; }
  .lure-heading .lure-links { grid-area: 3 / 1 / 4 / -1; }
  .lure-scene { grid-area: 2 / 2; }
  .lure-scene { align-self: center; }
  .lure-tabs { gap: 0 12px; }
  .lure-tabs a { font-size: .875rem; min-height: 42px; }
  .lure-tabs img { width: 22px; height: 22px; }
  .lure-guide-grid { grid-template-columns: 1fr; }
  .lure-report form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lure-report label:has([name="coordinates"]) { grid-column: 1/-1; }
}
@media (max-width: 510px) {
  .lure-tabs { display: flex; gap: 0 14px; }
  .lure-tabs a { white-space: nowrap; }
}
