/* Rin dashboard — "field notes" style. Fonts are served by Rin itself; their
   licenses are in fonts/. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/InstrumentSerif-Regular.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/InstrumentSerif-Italic.woff2) format("woff2"); }
@font-face { font-family: "Special Elite"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/SpecialElite-Regular.woff2) format("woff2"); }
@font-face { font-family: "Nanum Pen Script"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/NanumPenScript-Regular.woff2) format("woff2"); }

:root {
  --ink: #2B2722; --muted: #5B5348; --blue: #2F4FA2; --navy: #23305C;
  --kraft: #E6D9BE; --folder: #D9C48F; --tab: #EBDDB4; --permit: #EFE3C2; --sheet: #FBF8F1;
  --green: #3F6B3A; --red: #9A3322; --tape: rgba(214, 196, 120, 0.75);
  --serif: "Instrument Serif", Georgia, serif;
  --type: "Special Elite", "Courier New", monospace;
  --hand: "Nanum Pen Script", "Segoe Print", cursive;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font: 15px/1.5 var(--type); }
a { color: var(--blue); } a:hover { color: #1E3270; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 13px; color: var(--muted); }

.paper {
  min-height: 100vh; padding: 40px 16px 72px; overflow: hidden;
  background-color: var(--kraft);
  background-image: linear-gradient(rgba(120, 96, 60, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 96, 60, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}
.paper.center { display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.page { max-width: 1120px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }

/* Masthead */
.masthead { display: flex; flex-direction: column; gap: 6px; }
.kicker { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stamp-line { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid currentColor; padding: 2px 10px; transform: rotate(2deg); }
.stamp-line.ok { color: var(--green); } .stamp-line.warn { color: var(--red); }
.stamp-line .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 24px; }
.title { margin: 0; font: italic 400 clamp(72px, 11vw, 136px)/0.9 var(--serif); letter-spacing: -0.03em; }
.aside { display: flex; align-items: center; gap: 6px; padding-bottom: 16px; font: 30px var(--hand); color: var(--blue); transform: rotate(-4deg); }
.subline { margin: 4px 0 0; font-size: 16px; }

/* Folder tabs */
.tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; margin-bottom: -36px; position: relative; z-index: 1; }
.tabs a { min-height: 44px; padding: 0 16px; border-radius: 10px 10px 0 0; background: var(--tab); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.tabs a[aria-current="page"] { min-height: 52px; padding: 0 20px; background: var(--folder); margin-bottom: -2px; }
.tabs .no { font-size: 11px; opacity: 0.7; }
.who { margin: 0 0 0 auto; align-self: center; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.who button { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }

.folder { position: relative; background: var(--folder); border-radius: 0 14px 14px 14px; padding: 40px 32px 44px; box-shadow: 0 10px 24px rgba(43, 39, 34, 0.14); display: flex; flex-direction: column; gap: 44px; }
.row { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.grow-3 { flex: 3 1 480px; } .grow-2 { flex: 2 1 300px; }
.heading-row { display: flex; align-items: center; gap: 10px; }
.tilt-l { transform: rotate(-1deg); } .tilt-r { transform: rotate(1deg); }
.label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hand { margin: 0; font: 400 34px var(--hand); color: var(--blue); }
.hand.big { font-size: 38px; }

/* Permit ticket */
.ticket-wrap { flex: 1 1 520px; min-width: 0; position: relative; }
.ticket { display: flex; background: var(--permit); box-shadow: 0 8px 20px rgba(43, 39, 34, 0.16); }
.ticket-body { flex: 1; min-width: 0; padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; border-right: 2px dashed #A99A78; }
.ticket-title { font: 38px/1 var(--serif); }
.facts { margin: 6px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; }
.stub { width: 64px; display: flex; align-items: center; justify-content: center; }
.stub span { writing-mode: vertical-rl; font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.round-stamp { position: absolute; right: 78px; bottom: -30px; width: 96px; height: 96px; border: 2px solid currentColor; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-14deg); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; line-height: 1.2; opacity: 0.85; }
.round-stamp span { font-size: 18px; }
.round-stamp.ok { color: var(--green); } .round-stamp.warn, .round-stamp.red { color: #B8432E; }

/* Notebook page */
.notebook { flex: 1 1 360px; min-width: 0; position: relative; background-color: var(--sheet); padding: 22px 26px 22px 54px; box-shadow: 0 6px 18px rgba(43, 39, 34, 0.12); background-image: linear-gradient(90deg, transparent 38px, #E3A9A0 38px, #E3A9A0 39.5px, transparent 39.5px), repeating-linear-gradient(transparent 0 33px, #C9D6E3 33px 34px); }
.notebook .hand { line-height: 34px; margin-bottom: 2px; }
.hand-list { margin: 0; padding: 0; list-style: none; font: 27px/34px var(--hand); color: var(--navy); }
.hand-list .mark { display: inline-block; width: 24px; }
.hand-list .bad { color: #9A3322; }

/* Index cards */
.index-card { flex: 1 1 400px; min-width: 0; position: relative; background-color: var(--sheet); background-image: linear-gradient(rgba(80, 110, 150, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(80, 110, 150, 0.12) 1px, transparent 1px); background-size: 16px 16px; padding: 26px 26px 24px; box-shadow: 0 8px 20px rgba(43, 39, 34, 0.16); display: flex; flex-direction: column; gap: 12px; }
.index-card p { margin: 0; }
.tape { position: absolute; top: -13px; left: 50%; width: 110px; height: 26px; margin-left: -55px; background: var(--tape); transform: rotate(-3deg); }
.card-title { margin: 0; padding-right: 100px; font: 400 40px/1 var(--serif); }
.numbers { margin: 4px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.numbers div { display: flex; flex-direction: column-reverse; }
.numbers dt { font-size: 13px; color: var(--muted); }
.numbers dd { margin: 0; font: 44px/1 var(--serif); }
.note { font-size: 26px; color: var(--navy); }
.card-stamp { position: absolute; top: 20px; right: 20px; border: 2px solid currentColor; padding: 4px 10px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; transform: rotate(8deg); opacity: 0.85; }
.card-stamp.ok { color: var(--green); } .card-stamp.warn { color: #B8432E; }

/* Camp log */
.ruled { margin: 0; padding: 18px 24px 18px 54px; list-style: none; background-color: var(--sheet); background-image: linear-gradient(90deg, transparent 38px, #E3A9A0 38px, #E3A9A0 39.5px, transparent 39.5px); box-shadow: 0 6px 18px rgba(43, 39, 34, 0.12); transform: rotate(-0.5deg); }
.log li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 9px 0; border-bottom: 1px solid #D6DEE6; }
.log time { flex: none; width: 46px; font-size: 13px; color: var(--muted); }
.log .tag { flex: none; width: 78px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.log .what { min-width: 0; flex: 1 1 200px; display: flex; align-items: center; gap: 8px; }
.log .act { min-width: 0; }
.log .what b { display: inline-block; max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-weight: 400; font-family: var(--hand); font-size: 24px; line-height: 1.2; color: var(--navy); }
.face { flex: none; }
.face { width: 26px; height: 26px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(43, 39, 34, 0.25); transform: rotate(-3deg); }
.ink-ember { color: #9E3F14; } .ink-lake { color: var(--blue); } .ink-pine { color: var(--green); } .ink-plum { color: #6B3F7A; }
.empty { font: 26px var(--hand); color: var(--muted); }

/* Receipt */
.receipt-wrap { max-width: 380px; transform: rotate(1.5deg); }
.receipt { background: var(--sheet); padding: 18px 20px 26px; box-shadow: 0 6px 16px rgba(43, 39, 34, 0.14); font-size: 12.5px; line-height: 1.75; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), 95% 100%, 90% calc(100% - 8px), 85% 100%, 80% calc(100% - 8px), 75% 100%, 70% calc(100% - 8px), 65% 100%, 60% calc(100% - 8px), 55% 100%, 50% calc(100% - 8px), 45% 100%, 40% calc(100% - 8px), 35% 100%, 30% calc(100% - 8px), 25% 100%, 20% calc(100% - 8px), 15% 100%, 10% calc(100% - 8px), 5% 100%, 0 calc(100% - 8px)); }
.receipt-head { text-align: center; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed #A99A78; }
.receipt-line { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; }
.receipt-line span:first-child { color: var(--muted); }
.receipt-line span:last-child { overflow-wrap: anywhere; }

/* Props */
.prop { position: absolute; z-index: 2; pointer-events: none; }
.kettle { left: -84px; top: -60px; width: 100px; height: 84px; transform: rotate(-10deg); filter: drop-shadow(0 8px 8px rgba(43, 39, 34, 0.25)); }
.matchbox { right: -18px; bottom: -36px; transform: rotate(-9deg); filter: drop-shadow(0 5px 5px rgba(43, 39, 34, 0.22)); }
.keys { right: -70px; top: -66px; transform: rotate(16deg); filter: drop-shadow(0 6px 6px rgba(43, 39, 34, 0.28)); }
.pinecone { transform: rotate(-20deg); margin-left: 8px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.foot-note { display: inline-flex; align-items: center; gap: 12px; font: 26px var(--hand); color: var(--blue); }

/* Sign in */
.signin { width: 100%; max-width: 820px; display: flex; flex-direction: column; gap: 30px; }
.signin .ticket-body p { margin: 0; max-width: 460px; }
.notice { padding: 8px 12px; background: #F6DCD3; border-left: 4px solid #B8432E; }
.discord-button { align-self: flex-start; min-height: 52px; display: inline-flex; align-items: center; gap: 12px; padding: 0 24px; margin-top: 6px; background: var(--ink); color: var(--sheet); text-decoration: none; font-size: 17px; transform: rotate(-1deg); box-shadow: 0 4px 0 var(--muted); }
.discord-button:hover { color: #fff; background: #3B352E; }

/* Page titles for feature pages */
.title.page-title { font-size: clamp(56px, 8vw, 96px); line-height: 0.95; letter-spacing: -0.02em; }

/* Shared pieces feature pages use */
.big-number { display: block; font: 56px/1 var(--serif); }
.serif-number { font: 30px/1 var(--serif); }
.num { text-align: right; }
.muted, .role-muted { color: var(--muted); }
.role-ok { color: var(--green); } .role-bad { color: #9A3322; }
.tape-button { min-height: 44px; padding: 0 20px; border: 0; background: rgba(214, 196, 120, 0.9); color: var(--ink); font: 16px var(--type); cursor: pointer; transform: rotate(-1.5deg); }
.week-form, .search-form { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.week-form .hand, .search-form .hand { font-size: 28px; }
.week-form select, .search-form input { min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid var(--ink); background: var(--sheet); color: var(--ink); font: 15px var(--type); }
.search-form input { flex: 1 1 320px; min-width: 0; font-size: 17px; }
.front { position: relative; z-index: 1; }
.heading-row { flex-wrap: wrap; }

.ticket.split { flex-wrap: wrap; }
.ticket.split > div { flex: 1 1 150px; padding: 20px 22px; border-right: 2px dashed #A99A78; display: flex; flex-direction: column; gap: 2px; }
.ticket.split > div:last-child { border-right: 0; }

.grid-card { position: relative; background-color: var(--sheet); background-image: linear-gradient(rgba(80, 110, 150, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(80, 110, 150, 0.12) 1px, transparent 1px); background-size: 16px 16px; padding: 24px 28px 20px; box-shadow: 0 8px 20px rgba(43, 39, 34, 0.16); }
.chart-card { transform: rotate(0.6deg); }
.tape.left { left: 40px; margin-left: 0; width: 90px; transform: rotate(-5deg); }
.tape.right { left: auto; right: 40px; margin-left: 0; width: 90px; transform: rotate(4deg); }

/* Enamel pins on a canvas strap */
.pins-wrap { flex: 1 1 380px; padding-right: 60px; }
.strap { position: relative; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 14px; padding: 22px 16px 14px; background: #7E8B5E; border-radius: 6px; box-shadow: inset 0 0 0 4px #6E7A50, 0 6px 14px rgba(43, 39, 34, 0.22); transform: rotate(-1deg); }
.strap::before { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(240, 232, 205, 0.55); border-radius: 3px; pointer-events: none; }
.pin-slot { position: relative; flex: 1 1 96px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pin { filter: drop-shadow(0 5px 4px rgba(20, 18, 14, 0.45)) drop-shadow(0 1px 0 rgba(20, 18, 14, 0.3)); }
.pin-rim, .pin-edge, .pin-face { clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); display: flex; align-items: center; justify-content: center; }
.pin-rim { width: 100px; height: 88px; background: #D8B65A; }
.pin-edge { width: 88px; height: 76px; background: #8C6A22; }
.pin-face { position: relative; width: 84px; height: 72px; flex-direction: column; color: #fff; line-height: 1; overflow: hidden; }
.pin-face span { font-size: 15px; letter-spacing: 0.14em; }
.pin-face b { font: 400 34px var(--serif); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
.pin-face .shine { position: absolute; left: -10px; top: -30px; width: 46px; height: 120px; background: rgba(255, 255, 255, 0.28); transform: rotate(32deg); }
.pin-note { font-size: 12px; line-height: 1.5; color: #F7F0DC; text-align: center; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); }

/* Bar chart */
.bars { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 22px; height: 220px; align-items: end; margin-top: 14px; border-bottom: 1.5px solid var(--ink); }
.bar-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar-label { font-size: 13px; margin-bottom: 4px; }
.bar { width: 100%; max-width: 54px; }
.bar.inked { border: 1.5px solid var(--ink); border-bottom: 0; }
.last-dot { position: absolute; left: 50%; width: 10px; height: 10px; margin: 0 0 -5px -5px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--ink); }
.bar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 22px; margin-top: 6px; text-align: center; font: 24px var(--hand); }

/* Leaderboard */
.board-wrap { position: relative; }
.board-link { margin-left: auto; margin-right: 260px; }
.board { overflow-x: auto; padding: 10px 24px 14px 54px; transform: rotate(-0.4deg); }
.board table { width: 100%; min-width: 640px; border-collapse: collapse; }
.board th { text-align: left; padding: 8px 6px; font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.board th.num { text-align: right; }
.board td { padding: 9px 6px; border-bottom: 1px solid #D6DEE6; font-size: 14px; }
.who-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.face.big { width: 32px; height: 32px; border-width: 3px; }
.hand-name { font: 27px/1.1 var(--hand); color: var(--navy); max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board td.serif-number { font-size: 26px; }
.rank-stamp { display: inline-block; border: 2px solid currentColor; padding: 0 8px; font-size: 13px; letter-spacing: 0.1em; transform: rotate(-4deg); }

/* Mazoku props */
.coffee-ring { position: absolute; right: 70px; top: 14px; width: 112px; height: 112px; border-radius: 50%; border: 7px solid rgba(110, 66, 28, 0.16); pointer-events: none; }
.mug { right: -52px; top: 150px; transform: rotate(-8deg); filter: drop-shadow(0 8px 10px rgba(43, 39, 34, 0.25)); }
.paperclip { position: absolute; left: -14px; top: -34px; z-index: 2; transform: rotate(-6deg); }
.pencil { position: absolute; left: 40px; bottom: -22px; transform: rotate(-5deg); filter: drop-shadow(0 4px 4px rgba(43, 39, 34, 0.25)); max-width: 80%; }
.trading-card { position: absolute; width: 92px; height: 128px; background: #fff; padding: 5px; transform: rotate(14deg); box-shadow: 0 6px 12px rgba(43, 39, 34, 0.2); }
.trading-card > div { height: 100%; border: 2px solid currentColor; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 11px; letter-spacing: 0.1em; }
.trading-card.ssr { right: 70px; top: -18px; color: #A8306F; } .trading-card.ssr > div { background: #F8D3E6; }
.trading-card.sr { right: 150px; top: -6px; color: #5B3FB8; transform: rotate(-7deg); } .trading-card.sr > div { background: #DDD3F5; }

/* Members */
.matches { display: flex; flex-direction: column; }
.matches a { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; border-bottom: 1px solid #D6DEE6; }
.polaroid { margin: 0; flex: 0 0 auto; width: 240px; max-width: 100%; position: relative; background: #fff; padding: 14px 14px 18px; box-shadow: 0 10px 24px rgba(43, 39, 34, 0.18); transform: rotate(-3deg); }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--kraft); }
.polaroid figcaption { margin-top: 10px; font: 30px/1 var(--hand); text-align: center; overflow-wrap: anywhere; }
.compass { right: -40px; top: -58px; transform: rotate(14deg); filter: drop-shadow(0 6px 6px rgba(43, 39, 34, 0.28)); }
.member-card { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.notebook.member-card { transform: rotate(-1deg); }
.grid-card.member-card { transform: rotate(1.2deg); }
.member-card .card-title { padding-right: 0; font-size: 34px; }
.big-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.mini-bars { position: relative; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; align-items: end; height: 110px; border-bottom: 1.5px solid var(--ink); }
.mini-bar { border: 1.5px solid var(--ink); border-bottom: 0; }
.goal-line { position: absolute; left: 0; right: 0; border-top: 1.5px dashed; }
.goal-line i { position: absolute; right: 0; top: -16px; font: normal 11px var(--type); }
.mini-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.small-hand { font-size: 26px; }
.mini-log { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.mini-log li { display: flex; gap: 12px; padding: 4px 0; border-bottom: 1px solid #E6E0D0; }
.mini-log time { flex: none; width: 100px; color: var(--muted); font-size: 13px; }
.hand-list .off { color: var(--muted); }
.type-note { font: 13px var(--type); color: var(--muted); }

/* Phoenix reminders page */
.folder > .ticket-wrap { flex: none; }
.alarm-clock { right: -40px; top: -36px; transform: rotate(12deg); filter: drop-shadow(0 7px 7px rgba(43, 39, 34, 0.28)); }
.types-card { transform: rotate(1deg); }
.stacked { width: 100%; max-width: 46px; display: flex; flex-direction: column-reverse; border: 1.5px solid var(--ink); border-bottom: 0; }
.small-days { font-size: 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border: 1.5px solid var(--ink); }
.up-next { max-width: 420px; transform: rotate(-1.5deg); }
.next-list { margin: 0; padding: 0; list-style: none; }
.next-list li { display: flex; align-items: baseline; gap: 10px; min-height: 34px; }
.next-list .hand-name { flex: 1; min-width: 0; font-size: 25px; line-height: 34px; }
.next-when { width: 64px; text-align: right; font-size: 13px; }
.match { position: absolute; right: -24px; bottom: -22px; transform: rotate(-14deg); filter: drop-shadow(0 3px 3px rgba(43, 39, 34, 0.25)); }
.optins { gap: 22px; }
.optin { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; background: var(--permit); padding: 16px 18px; box-shadow: 0 6px 14px rgba(43, 39, 34, 0.14); }
.optin .serif-number { font-size: 44px; line-height: 1.1; }

/* Configuration page */
.whistle { right: 36px; top: 26px; transform: rotate(6deg); filter: drop-shadow(0 6px 6px rgba(43, 39, 34, 0.25)); }
.pinned-note { position: relative; align-self: flex-start; max-width: 620px; background: var(--sheet); padding: 16px 22px; box-shadow: 0 4px 12px rgba(43, 39, 34, 0.14); transform: rotate(-1.5deg); }
.pinned-note p { margin: 0; font: 28px/1.15 var(--hand); color: var(--navy); }
.pinned-note code { font: 15px var(--type); }
.settings-sheet { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.settings-sheet .card-title { padding-right: 0; font-size: 36px; }
.settings-sheet p { margin: 0; }
.mazoku-sheet { flex: 3 1 520px; transform: rotate(0.8deg); }
.phoenix-sheet { flex: 2 1 340px; gap: 0; padding-top: 34px; transform: rotate(-1.2deg); }
.phoenix-sheet .card-title { line-height: 68px; }
.phoenix-sheet .label { line-height: 34px; }
.phoenix-sheet .facts { margin: 0; gap: 0 16px; line-height: 34px; }
.phoenix-sheet .small { line-height: 34px; }
.table-scroll { overflow-x: auto; }
.rules { width: 100%; min-width: 480px; border-collapse: collapse; }
.rules th { text-align: left; padding: 8px 14px 8px 0; font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
.rules td { padding: 10px 14px 10px 0; border-bottom: 1px solid #D6DEE6; }
.rules tr:last-child td { border-bottom: 0; }
.rubber-stamp { transform: rotate(10deg); filter: drop-shadow(0 4px 4px rgba(43, 39, 34, 0.25)); }
.changes { transform: rotate(0.4deg); }
.changes time { width: 110px; }
.changes .hand-name { flex: none; width: 5.5em; font-size: 24px; }
.changes .act { flex: 1 1 240px; }

@media (max-width: 720px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; margin-right: -16px; padding-right: 16px; }
  .tabs a { flex: none; white-space: nowrap; }
  .who { padding-left: 12px; }
  .folder { padding: 28px 14px 30px; gap: 32px; }
  .prop-big { display: none; }
  .signin .stub { display: none; }
  .round-stamp { right: 12px; bottom: -40px; transform: rotate(-14deg) scale(0.8); }
  .card-title { padding-right: 90px; font-size: 34px; }
  .pins-wrap { padding-right: 0; }
  .board-link { margin-right: 0; }
  .bars, .bar-days { gap: 8px; }
  .bar-days { font-size: 17px; }
  .trading-card.sr { display: none; }
  .trading-card.ssr { right: 8px; transform: rotate(14deg) scale(0.7); transform-origin: top right; }
  .polaroid { width: 200px; margin: 0 auto; }
  .up-next { max-width: none; }
  .match { right: 8px; }
  .small-days { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
