/* Flock Flow — privacy & support pages, styled like the game's own screens:
   the real pasture behind, dark glass panels on top. Nothing is loaded from other sites. */
:root {
  --glass: rgba(10, 10, 10, .72);
  --glass-strong: rgba(10, 10, 10, .84);
  --line: rgba(255, 255, 255, .12);
  --mute: rgba(255, 255, 255, .58);
  --text: rgba(255, 255, 255, .88);
  --white: #FFFFFF;
  --accent: #D2693C;
  --font: "Montserrat", "M PLUS 1", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 18px; background: #5F8F5B; }
body { margin: 0; min-height: 100vh; color: var(--white); font-family: var(--font); font-size: 15.5px; line-height: 1.85; -webkit-font-smoothing: antialiased; background: transparent; }

/* the pasture, rendered from the game */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, .06) 34%, rgba(0, 0, 0, .1) 70%, rgba(0, 0, 0, .3) 100%), var(--pasture) center / cover no-repeat, #5F8F5B;
}
body.graze { --pasture: url(pasture-graze-wide.jpg); }
body.herd { --pasture: url(pasture-herd-wide.jpg); }
@media (max-width: 720px) and (orientation: portrait) {
  body.graze { --pasture: url(pasture-graze-phone.jpg); }
  body.herd { --pasture: url(pasture-herd-phone.jpg); }
}
a { color: var(--white); text-underline-offset: .22em; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 255, 255, .5); }
a:hover { text-decoration-color: var(--white); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 8px; }
.glass { background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); }
.micro { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); line-height: 1.2; }
.wrap { max-width: 780px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

/* top bar, like the title screen */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: max(16px, env(safe-area-inset-top)); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-weight: 800; font-size: 15px; letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--white); text-decoration: none; }
.pill .micro { font-size: 9.5px; }

/* page title over the pasture */
.intro { min-height: clamp(250px, 40vh, 400px); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 0 16px; text-shadow: 0 1px 3px rgba(0, 0, 0, .45), 0 2px 16px rgba(0, 0, 0, .3); }
.intro-card { margin: 18px 0 0; padding: 16px 22px 16px; border-radius: 20px; text-shadow: none; }
.intro .micro { color: rgba(255, 255, 255, .82); }
.headline { margin: 8px 0 0; font-weight: 800; font-size: clamp(40px, 10vw, 76px); line-height: .92; letter-spacing: -.045em; }
h1 { margin: 12px 0 0; font-size: clamp(22px, 5vw, 28px); font-weight: 700; line-height: 1.35; letter-spacing: .02em; }
.lede { margin: 0; max-width: 40em; font-size: 14.5px; color: rgba(255, 255, 255, .86); line-height: 1.8; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .86); }
.meta b { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: rgba(255, 255, 255, .62); margin-right: 6px; text-transform: uppercase; }

/* stage-chip style links */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.chips a { display: inline-flex; align-items: center; height: 40px; padding: 0 15px; border-radius: 14px; color: var(--white); text-decoration: none; font-size: 13.5px; font-weight: 700; }
.chips a:hover { background: var(--white); color: #0A0A0A; }
.panel .chips { padding-left: 0; margin: 0 0 14px; }
.panel .chips li { margin: 0; }

.panel { border-radius: 24px; padding: 22px 26px 24px; margin: 0 0 14px; background: var(--glass); }
.panel-head { display: flex; align-items: center; gap: 14px; margin: 0 0 10px; }
.no { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--white); color: #0A0A0A; font-weight: 700; font-size: 16px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.panel h2 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.panel h3 { margin: 18px 0 4px; font-size: 14.5px; font-weight: 700; }
.panel p { margin: 0 0 10px; color: var(--text); }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel ul { margin: 0 0 10px; padding-left: 1.2em; color: var(--text); }
.panel li { margin: 3px 0; }
.panel li::marker { color: var(--accent); }
.note { font-size: 13.5px; color: var(--mute) !important; }
.note a { color: rgba(255, 255, 255, .8); }
.ui { display: inline-block; padding: 0 .55em; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: var(--white); font-weight: 700; font-size: .9em; line-height: 1.65; white-space: nowrap; }

.gist { border-radius: 20px; padding: 16px 22px 16px; margin: 0 0 16px; background: var(--glass-strong); }
.gist .head { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.gist .head::before, .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(210, 105, 60, .25); }
.gist ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.gist li { font-weight: 700; font-size: 15px; padding-left: 1.6em; position: relative; }
.gist li::before { content: "—"; position: absolute; left: 0; color: var(--mute); font-weight: 400; }

details { border-top: 1px solid var(--line); }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 0; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg) translateY(-3px); transition: transform .25s ease; }
details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
details > div { padding: 0 0 14px; }
details > div p { margin: 0 0 8px; }

.primary { display: inline-flex; align-items: center; gap: 10px; background: var(--white); color: #0A0A0A; font-size: 15px; font-weight: 700; padding: 14px 32px; border-radius: 999px; text-decoration: none; margin: 4px 0 10px; }
.primary svg { width: 18px; height: 18px; }
.primary:hover { transform: translateY(-1px); }
.addr { display: block; font-size: 13.5px; color: var(--mute); word-break: break-all; }
.shot { display: block; width: 100%; height: auto; margin: 2px 0 14px; border-radius: 16px; border: 1px solid var(--line); }
.tulips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px !important; padding: 0 !important; list-style: none; }
.tulips li { margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.tulips li span { font-variant-numeric: tabular-nums; margin-left: 4px; color: #F3B3A5; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.facts dt { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding-top: .55em; }
.facts dt span { display: block; letter-spacing: .04em; text-transform: none; font-size: 12px; }
.facts dd { margin: 0; color: var(--text); }

footer { padding-top: 10px; padding-bottom: max(28px, env(safe-area-inset-bottom)); text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.foot { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; padding: 6px; border-radius: 999px; margin: 0 0 12px; }
.foot a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--white); text-decoration: none; }
.foot a[aria-current="page"] { background: var(--white); color: #0A0A0A; text-shadow: none; }
footer p { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .8); }

@media (max-width: 520px) {
  body { font-size: 15px; }
  .panel { padding: 18px 18px 20px; border-radius: 22px; }
  .no { width: 40px; height: 40px; border-radius: 13px; font-size: 15px; }
  .panel h2 { font-size: 17px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 10px; }
  .chips a { height: 36px; padding: 0 13px; font-size: 13px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .primary:hover { transform: none; } }
@media print {
  body::before { display: none; } html { background: #fff; } body { color: #000; }
  .glass, .panel { background: #fff !important; border-color: #ccc; color: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .panel p, .panel ul, .facts dd { color: #000; } .chips, .topbar .pill { display: none; } .intro { min-height: 0; text-shadow: none; }
}
