/* turfagon.com: ✍️ the love line (Oct 24). In the game, your turf's edge on the map is a hand-drawn purple line a hair
   inside the road, and Bubba wanted the whole game, and the site, to get that kind of love. So: every hairline rule on
   this page is drawn by hand (img/ink/rule-N.svg, stretched across), and every framed thing (a screenshot, a card, the
   trailer) has the purple line run a hair inside its edge (img/ink/frame-N.svg, cut as a border-image: the sides
   stretch, the corners stay as drawn, each side finishing a little past the corner). Rebuild the drawings with
   scripts/make-love-lines.js. Nothing here takes a tap: the lines sit over nothing and let clicks through. */
:root { --rule0: url(/img/ink/rule-0.svg); --rule1: url(/img/ink/rule-1.svg); --rule2: url(/img/ink/rule-2.svg); --rule3: url(/img/ink/rule-3.svg); --rule4: url(/img/ink/rule-4.svg); --rule5: url(/img/ink/rule-5.svg); }

/* The lines between the parts of the page */
section:not(.card), .hero { border-bottom: 0 !important; position: relative; }
section:not(.card)::after, .hero::after, .bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 8px; pointer-events: none; background: var(--rule0) center / 100% 100% no-repeat; opacity: 0.42; }
section:not(.card):nth-of-type(2n)::after { background-image: var(--rule1); }
section:not(.card):nth-of-type(3n)::after { background-image: var(--rule2); }
section:not(.card):nth-of-type(5n)::after { background-image: var(--rule3); }
.bar { border-bottom: 0 !important; }
.bar::after { opacity: 0.5; }
/* (the hero's own hex grid sits in its ::before; this is the line under it) */
/* (a Turfhouse room is a <section class="card">: it gets the love line inside it below, never the page line under it,
   which used to squash the frame into a 28px strip that ran through the room's title) */

/* Rules inside the text */
.hero .promise, .row + .row, .card .note, .tipcard, .ladder, .faq details, .faq details:last-child, .rung { border-top: 0 !important; border-bottom: 0 !important; }
.hero .promise, .row + .row, .card .note, .tipcard, .ladder, .faq details { background: var(--rule4) top center / 100% 8px no-repeat; padding-top: 1.1rem; }
.hero .promise { background-image: var(--rule2); }
.row + .row { padding-top: 2.4rem; }
.card .note { background-image: var(--rule5); }
.tipcard { background-image: var(--rule1); }
.faq details { background-image: var(--rule3); padding-top: 0.2rem; }
.faq details:nth-child(2n) { background-image: var(--rule0); }
.faq details:last-child::after { content: ""; display: block; height: 8px; background: var(--rule5) center / 100% 100% no-repeat; margin-top: 0.4rem; }
.rung { background: var(--rule4) bottom center / 100% 8px no-repeat; padding-bottom: 0.75rem !important; }
.rung:nth-child(2n) { background-image: var(--rule1); }
.rung:nth-child(3n) { background-image: var(--rule3); }

/* The love line inside every framed thing: the way your turf's purple edge runs inside the road */
.shot, .trailer, .card, .wall, .stretch, .campaign > div { position: relative; }
.shot::after, .trailer::after, .card::after, .wall::after, .stretch::after, .campaign > div::after {
  content: ""; position: absolute; inset: 3px; pointer-events: none; z-index: 2;
  border: 10px solid transparent; border-image: url(/img/ink/frame-0.svg) 20 / 10px stretch; opacity: 0.72;
}
.shot::after { opacity: 0.8; }
.trailer::after, .wall::after { border-image-source: url(/img/ink/frame-1.svg); }
.card:nth-child(2n)::after, .campaign > div:nth-child(2n)::after { border-image-source: url(/img/ink/frame-2.svg); }
.card:nth-child(3n)::after, .stretch::after { border-image-source: url(/img/ink/frame-1.svg); }
/* (the trailer plays under its line: the line is on top, taps go through) */
/* (the front page phone shot sits in a rounded bezel: no square frame inside it) */
.hero-shot .shot::after { display: none; }
