:root {
  --reddit-blue: #cee3f8;
  --reddit-mid-blue: #5f99cf;
  --reddit-link: #0000ff;
  --reddit-title: #0000ff;
  --reddit-orange: #ff4500;
  --reddit-down: #7193ff;
  --reddit-green: #228822;
  --line: #d6d6d6;
  --soft: #f6f6f6;
  --muted: #888;
  --ink: #111;
  --sidebar-width: 310px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--reddit-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 10px;
  top: -50px;
  padding: 10px 14px;
  border: 1px solid #000;
  color: #fff;
  background: #000;
}
.skip-link:focus { top: 10px; }

/* Old Reddit chrome */
.reddit-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--reddit-mid-blue);
  background: var(--reddit-blue);
}
.subreddit-strip {
  min-height: 19px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 1px 6px;
  overflow: hidden;
  border-bottom: 1px solid #a9c9e8;
  background: #f0f0f0;
  color: #444;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}
.subreddit-strip button {
  min-width: max-content;
  padding: 0;
  border: 0;
  background: none;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.subreddit-strip button span { color: #777; font-size: 7px; }
.subreddit-strip nav { overflow-x: auto; scrollbar-width: none; }
.subreddit-strip nav::-webkit-scrollbar { display: none; }
.subreddit-strip nav a { color: #444; }
.subreddit-strip nav a.current { color: var(--reddit-orange); }
.subreddit-strip nav i { margin: 0 4px; color: #aaa; font-style: normal; }
.subreddit-strip nav b { margin: 0 8px; color: #aaa; }
.subreddit-dropdown {
  position: absolute;
  z-index: 100;
  width: 220px;
  left: 4px;
  top: 18px;
  padding: 4px 0;
  border: 1px solid #666;
  background: #fff;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, .2);
}
.subreddit-dropdown a { display: block; padding: 5px 9px; color: #222; font-size: 10px; font-weight: 700; }
.subreddit-dropdown a:hover { background: var(--reddit-blue); text-decoration: none; }

.masthead {
  position: relative;
  min-height: 84px;
  display: flex;
  align-items: flex-end;
  gap: 11px;
  padding: 7px 8px 0;
  background:
    radial-gradient(ellipse at 15% 24%, rgba(255,255,255,.72) 0 6%, transparent 6.5%),
    radial-gradient(ellipse at 22% 30%, rgba(255,255,255,.62) 0 8%, transparent 8.5%),
    var(--reddit-blue);
}
.brand {
  height: 65px;
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 5px;
  color: #111;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand > span {
  font: 900 32px/1 Arial Black, Arial, sans-serif;
  letter-spacing: -2.5px;
}
.subreddit-name {
  align-self: center;
  margin-bottom: 3px;
  color: #111;
  font: 700 19px/1 Arial, sans-serif;
  text-transform: lowercase;
}
.subreddit-name span { color: #777; font-weight: 400; }
.tabs { display: flex; align-items: flex-end; gap: 3px; }
.tabs button {
  min-height: 23px;
  padding: 3px 7px 2px;
  border: 1px solid #a9c9e8;
  border-bottom: 0;
  color: #369;
  background: #eff7ff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.tabs button:hover { background: #fff; }
.tabs button.active { border-color: var(--reddit-mid-blue); color: var(--reddit-orange); background: #fff; }
.user-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 42vw;
  padding: 4px 6px 3px;
  overflow: hidden;
  background: #eff7ff;
  color: #555;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.user-panel > span { color: #369; font-weight: 700; }
.user-panel button { padding: 0; border: 0; color: #369; background: none; cursor: pointer; }

.site-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 7px;
  padding: 7px 7px 45px 0;
}
main { min-width: 0; }
.mobile-community-title { display: none; }

/* Feed rows */
.listing {
  position: relative;
  min-height: 88px;
  display: grid;
  grid-template-columns: 25px 44px 72px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  margin-bottom: 4px;
  padding: 5px 9px 5px 3px;
  border: 1px solid #e0e0e0;
  border-left: 0;
  background: var(--soft);
}
.listing:hover { border-color: #c9c9c9; }
.listing[hidden] { display: none; }
.rank { color: #c6c6c6; font-size: 14px; text-align: center; }
.vote-column { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vote {
  position: relative;
  width: 24px;
  height: 19px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.vote::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
}
.vote.up::before { border-bottom: 10px solid #aaa; }
.vote.down::before { border-top: 10px solid #aaa; }
.vote.up:hover::before, .vote.up.active::before { border-bottom-color: var(--reddit-orange); }
.vote.down:hover::before, .vote.down.active::before { border-top-color: var(--reddit-down); }
.score { color: #c6c6c6; font-size: 10px; line-height: 15px; }
.score.upvoted { color: var(--reddit-orange); }
.score.downvoted { color: var(--reddit-down); }
.post-thumb, .hero-thumb {
  width: 66px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #aaa;
  background: #fff;
}
.hero-thumb img { width: 54px; height: 54px; }
.text-thumb { color: #fff; background: var(--reddit-orange); font: 900 25px/1 Arial Black, Arial, sans-serif; }
.arrow-thumb { position: relative; background: #eef6ff; }
.mini-up, .mini-down { position: absolute; width: 0; height: 0; left: 50%; transform: translateX(-50%); border-left: 14px solid transparent; border-right: 14px solid transparent; }
.mini-up { top: 6px; border-bottom: 18px solid var(--reddit-orange); }
.mini-down { bottom: 6px; border-top: 18px solid var(--reddit-down); }
.old-thumb { color: #369; background: var(--reddit-blue); font: 900 15px/1 Arial, sans-serif; }
.ratio-thumb { color: #fff; background: #222; font: 900 20px/1 Arial, sans-serif; }
.post-body { min-width: 0; align-self: center; }
.post-body h2 { margin: 0 0 3px; font-size: 15px; line-height: 1.23; font-weight: 400; }
.post-body h2 a { color: var(--reddit-title); }
.post-body h2 small { color: #888; font-size: 9px; white-space: nowrap; }
.tagline { margin: 2px 0; color: #888; font-size: 9px; line-height: 1.35; }
.tagline a { color: #369; }
.op { padding: 1px 3px; color: #fff; background: #0055df; font-size: 8px; font-weight: 700; }
.sticky-label { color: var(--reddit-green); }
.post-links { display: flex; flex-wrap: wrap; gap: 7px; color: #888; font-size: 9px; font-weight: 700; }
.post-links a, .post-links button { padding: 0; border: 0; color: #888; background: none; font-weight: 700; cursor: pointer; }
.post-links a:first-child { color: #369; }
.post-links a:hover, .post-links button:hover { color: #111; text-decoration: underline; }
.stickied { background: #f4fff4; }
.stickied .score { color: var(--reddit-green); }

/* Hero listing: old UI shell, much stronger content inside */
.hero-listing {
  min-height: 415px;
  grid-template-columns: 25px 44px minmax(80px, 12vw) minmax(0, 1fr);
  margin-bottom: 7px;
  border-color: #d2d2d2;
  background:
    linear-gradient(90deg, rgba(206,227,248,.6), rgba(255,255,255,.75) 42%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(95,153,207,.06) 14px 28px),
    #fff;
}
.hero-listing .vote-column { justify-content: flex-start; padding-top: 15px; }
.hero-listing .vote.up::before { border-bottom-color: var(--reddit-orange); }
.hero-listing .vote.down::before { border-top-color: var(--reddit-down); }
.hero-listing .score { color: #444; }
.hero-listing .rank { align-self: start; padding-top: 21px; }
.promoted-label { display: inline-block; margin-bottom: 8px; color: #697f5e; font-size: 9px; }
.hero-thumb {
  width: 100%;
  max-width: 170px;
  height: min(180px, 13vw);
  min-height: 90px;
  align-self: center;
  border-color: #b5cde5;
  background: var(--reddit-blue);
}
.hero-thumb img { width: 82%; height: 82%; }
.hero-post { padding: 28px clamp(10px, 3vw, 46px) 24px; }
.hero-post h1 {
  max-width: 920px;
  margin: 0;
  color: #111;
  font: 900 clamp(39px, 5.3vw, 82px)/.9 Arial Black, Arial, sans-serif;
  letter-spacing: -4.5px;
}
.hero-post h1 .hero-karma { color: var(--reddit-orange); }
.pair-line {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 8px 10px;
  border: 1px solid #aaa;
  background: #fff;
  box-shadow: inset 0 1px 0 #eee;
}
.pair-line span { font: 900 clamp(17px, 2.1vw, 28px)/1 Arial Black, Arial, sans-serif; }
.pair-line span:first-child { color: var(--reddit-orange); }
.pair-line b { color: #aaa; font-size: 24px; }
.pair-line small { padding-left: 10px; border-left: 1px solid #ddd; color: #777; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 9px; }
.reddit-button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border: 1px solid #888;
  border-radius: 2px;
  color: #222;
  background: linear-gradient(#fff, #ddd);
  box-shadow: inset 0 1px 0 #fff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.reddit-button:hover { border-color: #555; text-decoration: none; }
.reddit-button.primary { border-color: #266aa6; color: #fff; background: linear-gradient(#6ca9df, #397db8); box-shadow: inset 0 1px 0 #9bc6eb; }
.reddit-button[aria-disabled="true"] { color: #999; cursor: help; }

/* Expanded posts */
.expanded-post, .economy-post, .comment-thread {
  margin: 34px 10px 34px 17px;
  border: 1px solid #aaa;
  background: #fff;
}
.classic-titlebar {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-bottom: 1px solid #5f99cf;
  color: #111;
  background: var(--reddit-blue);
  font-size: 11px;
  font-weight: 700;
  text-transform: lowercase;
}
.title-mark { width: 19px; height: 19px; object-fit: contain; }
.expanded-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 18px; padding: clamp(22px, 3vw, 40px); }
.post-kicker { margin: 0 0 7px; color: var(--reddit-orange); font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.pair-card { position: relative; min-width: 0; overflow: hidden; }
.pair-card::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: clamp(110px, 14vw, 180px);
  aspect-ratio: 1;
  right: 2%;
  top: 50%;
  background: url('/images/karma-mark.svg') center / contain no-repeat;
  opacity: .045;
  transform: translateY(-50%) rotate(5deg);
  pointer-events: none;
}
.pair-card > * { position: relative; z-index: 1; }
.pair-card h2 { margin: 0; font: 900 clamp(40px, 5.5vw, 78px)/.94 Arial Black, Arial, sans-serif; letter-spacing: -4px; }
.pair-card h2 span { color: var(--reddit-orange); }
.pair-card > p:not(.post-kicker) { max-width: 760px; margin: 13px 0; font-size: 13px; line-height: 1.5; font-weight: 700; }
.pair-card > .reward-note { max-width: 640px; margin: 8px 0 0; padding: 0 0 0 9px; border-left: 2px solid #cee3f8; color: #777; font-size: 9px; font-weight: 400; line-height: 1.5; }
.pair-card blockquote { max-width: 720px; margin: 25px 0 0; padding: 14px 18px; border-left: 5px solid var(--reddit-down); background: #eff7ff; color: #345; font-size: 14px; font-style: italic; line-height: 1.5; }
.pair-facts { margin: 0; border: 1px solid #aaa; align-self: start; }
.pair-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 12px; border-bottom: 1px solid #ccc; }
.pair-facts div:first-child { border-left: 3px solid var(--reddit-orange); }
.pair-facts div:nth-child(2) { border-left: 3px solid var(--reddit-down); }
.pair-facts div:last-child { border-bottom: 0; }
.pair-facts dt { color: #777; font-size: 9px; }
.pair-facts dd { margin: 0; font-weight: 700; }
.pair-facts div:last-child dd { color: var(--reddit-green); }

.economy-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .65fr); gap: 25px; padding: clamp(24px, 4vw, 58px); background: #f8fbff; }
.economy-inner h2 { margin: 0; font: 900 clamp(40px, 6vw, 84px)/.88 Arial Black, Arial, sans-serif; letter-spacing: -5px; }
.economy-inner h2 .economy-karma { color: var(--reddit-orange); }
.dopamine-station { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 24px); margin-top: 18px; }
.dopamine-character { position: relative; width: clamp(190px, 23vw, 330px); flex: 0 1 330px; }
.dopamine-character img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.dopamine-plus {
  position: absolute;
  left: 34%;
  top: 4%;
  color: var(--reddit-orange);
  font: 900 20px/1 Arial Black, Arial, sans-serif;
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff;
  opacity: 0;
  pointer-events: none;
}
.dopamine-character.hit img { animation: dopamine-bump .3s steps(2, end); }
.dopamine-character.hit .dopamine-plus { animation: dopamine-plus .55s ease-out; }
@keyframes dopamine-bump {
  0%, 100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(4px) rotate(-1deg); }
  65% { transform: translateY(-3px) rotate(1deg); }
}
@keyframes dopamine-plus {
  0% { opacity: 0; transform: translateY(8px) scale(.8); }
  24% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-28px) scale(1.15); }
}
.giant-upvote {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 0 8px;
  padding: 8px 18px 8px 12px;
  border: 2px solid #aaa;
  border-radius: 3px;
  background: linear-gradient(#fff, #ddd);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.12);
  cursor: pointer;
}
.giant-upvote:hover { border-color: var(--reddit-orange); color: var(--reddit-orange); }
.giant-upvote:active { transform: translateY(1px); }
.giant-arrow { width: 0; height: 0; border-left: 25px solid transparent; border-right: 25px solid transparent; border-bottom: 35px solid var(--reddit-orange); }
.giant-upvote b { font-size: 13px; }
.karma-scoreboard { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 24px; border: 1px solid #aaa; background: #fff; text-align: center; }
.karma-scoreboard > span { color: #888; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.karma-scoreboard strong { display: block; color: var(--reddit-orange); font: 900 clamp(72px, 11vw, 150px)/.9 Arial Black, Arial, sans-serif; letter-spacing: -8px; }
.karma-scoreboard strong.pop { animation: score-pop .22s ease-out; }
@keyframes score-pop { 50% { transform: scale(1.12) rotate(-2deg); } }
.karma-scoreboard p { margin: 8px 0; color: #369; font-weight: 700; }
.karma-scoreboard small { color: #888; font-size: 8px; line-height: 1.4; }
.meter { height: 11px; margin: 8px 0 13px; border: 1px solid #888; background: #eee; text-align: left; }
.meter i { display: block; width: 4%; height: 100%; background: linear-gradient(90deg, var(--reddit-down), var(--reddit-orange)); transition: width .25s; }

/* Comments */
.thread-toolbar { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 6px 10px; border-bottom: 1px solid #aaa; background: #f6f6f6; }
.thread-toolbar b { color: #369; }
.thread-toolbar label { color: #888; font-size: 9px; }
.thread-toolbar select { padding: 2px; font-size: 9px; }
.comment {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 5px;
  min-height: 86px;
  padding: 10px 10px 10px 7px;
  border-bottom: 1px solid #ddd;
}
.comment:last-child { border-bottom: 0; }
.comment.depth-1 { margin-left: 27px; border-left: 1px dotted #aaa; background: #fafafa; }
.comment.depth-2 { margin-left: 54px; border-left: 1px dotted #aaa; }
.comment-vote { display: flex; flex-direction: column; align-items: center; }
.comment p { margin: 5px 0 9px; font-size: 12px; line-height: 1.5; }
.comment .comment-meta { margin: 0; color: #888; font-size: 9px; }
.comment-meta a { color: #369; font-weight: 700; }
.comment-meta a.submitter { color: #0055df; }
.comment-meta b { color: #555; font-weight: 400; }

/* Sidebar */
.sidebar { min-width: 0; }
.search { position: relative; display: flex; margin-bottom: 7px; }
.search input { width: 100%; height: 32px; padding: 5px 36px 5px 8px; border: 1px solid #aaa; background: #fff; font-size: 12px; }
.search input:focus { outline: 1px solid var(--reddit-mid-blue); }
.search button { position: absolute; width: 31px; right: 0; top: 0; bottom: 0; border: 0; border-left: 1px solid #ddd; color: #777; background: #f4f4f4; font-size: 20px; cursor: pointer; }
.side-box { margin-bottom: 7px; border: 1px solid #5f99cf; background: #fff; }
.side-title { min-height: 27px; display: flex; align-items: center; padding: 4px 6px 4px 8px; color: #fff; background: var(--reddit-mid-blue); font-size: 12px; font-weight: 700; }
.side-title::after { content: ''; width: 19px; height: 19px; margin-left: auto; background: url('/images/karma-mark.svg') center / contain no-repeat; opacity: .82; }
.community-box > p, .community-box > small { display: block; margin: 8px; line-height: 1.5; }
.community-box > small { color: #888; font-size: 8px; }
.community-stats { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 3px 6px; margin: 10px 8px 8px; }
.community-stats strong { font-size: 18px; }
.community-stats span { color: #555; font-size: 9px; }
.join-button { width: calc(100% - 16px); min-height: 30px; margin: 0 8px; border: 1px solid #3c802c; border-radius: 2px; color: #fff; background: linear-gradient(#8fca75, #4ca134); font-weight: 700; cursor: pointer; }
.join-button.joined { border-color: #888; color: #555; background: linear-gradient(#fff, #ddd); }
.community-age { padding-bottom: 7px; border-bottom: 1px solid #ddd; color: #777; font-size: 9px; }
.token-table { margin: 0; }
.token-table div { display: flex; justify-content: space-between; gap: 12px; padding: 8px; border-bottom: 1px solid #ddd; }
.token-table dt { color: #777; font-size: 9px; text-transform: uppercase; }
.token-table dd { margin: 0; max-width: 62%; overflow-wrap: anywhere; text-align: right; font-weight: 700; }
.token-table .contract dd { color: var(--reddit-orange); font-size: 9px; }
.copy-button { width: calc(100% - 16px); min-height: 29px; margin: 8px; border: 1px solid #888; background: linear-gradient(#fff, #ddd); font-size: 9px; font-weight: 700; cursor: pointer; }
.copy-button:disabled { color: #aaa; cursor: not-allowed; }
.links-box a { display: flex; justify-content: space-between; align-items: center; min-height: 31px; padding: 6px 8px; border-bottom: 1px solid #ddd; color: #369; font-size: 10px; font-weight: 700; }
.links-box a:last-child { border-bottom: 0; }
.links-box a:hover { background: #eff7ff; text-decoration: none; }
.links-box a[aria-disabled="true"] { color: #aaa; }
.links-box a span { color: #aaa; }
.rules-box ol { margin: 0; padding: 0; list-style: none; counter-reset: rules; }
.rules-box li { position: relative; min-height: 54px; padding: 9px 8px 8px 39px; border-bottom: 1px solid #ddd; counter-increment: rules; }
.rules-box li:last-child { border-bottom: 0; }
.rules-box li::before { content: counter(rules); position: absolute; width: 23px; height: 23px; display: grid; place-items: center; left: 8px; top: 9px; border-radius: 50%; color: #fff; background: #222; font-weight: 700; }
.rules-box li b, .rules-box li span { display: block; }
.rules-box li span { margin-top: 3px; color: #777; font-size: 9px; }
.sidebar-note { padding: 6px 8px; color: #777; font-size: 9px; line-height: 1.65; }
.sidebar-note > span { color: #aaa; }

/* Footer and feedback */
footer { padding: 35px 20px 28px; border-top: 1px solid #aaa; color: #777; background: #f5f5f5; text-align: center; }
.footer-mark { width: min(620px, 100%); display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 10px; margin: 0 auto 12px; }
.footer-mark::before, .footer-mark::after { content: ''; height: 2px; }
.footer-mark::before { background: var(--reddit-orange); }
.footer-mark::after { background: var(--reddit-down); }
.footer-mark img { width: 34px; height: 34px; }
.footer-links { width: min(620px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto 27px; border: 1px solid #ddd; background: #fff; }
.footer-links div { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-right: 1px solid #ddd; }
.footer-links div:last-child { border-right: 0; }
.footer-links b { color: #777; font-weight: 400; }
.footer-links a { color: #369; font-size: 10px; }
.disclaimer { max-width: 960px; margin: 0 auto; font-size: 9px; line-height: 1.55; }
.copyright { margin: 17px 0 0; font-size: 9px; }
.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 18px;
  max-width: calc(100vw - 24px);
  padding: 9px 13px;
  border: 1px solid #222;
  color: #fff;
  background: rgba(25, 25, 25, .94);
  box-shadow: 2px 3px 6px rgba(0,0,0,.2);
  font-size: 10px;
  font-weight: 700;
  transform: translate(-50%, 25px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 980px) {
  .masthead { padding-bottom: 0; }
  .brand > span { display: none; }
  .subreddit-name { margin-right: auto; }
  .hero-listing { grid-template-columns: 22px 40px 100px minmax(0, 1fr); }
  .hero-thumb { height: 120px; }
  .hero-post h1 { letter-spacing: -3px; }
  .pair-line small { display: none; }
  .expanded-inner, .economy-inner { grid-template-columns: 1fr; }
  .pair-facts { max-width: 640px; }
}

@media (max-width: 800px) {
  :root { --sidebar-width: 100%; }
  .site-grid { grid-template-columns: 1fr; padding-right: 0; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 7px; border-top: 4px solid var(--reddit-blue); }
  .sidebar > * { margin: 0; }
  .search, .sidebar-note { grid-column: 1 / -1; }
  .user-panel { display: none; }
  .hero-listing { min-height: 380px; }
}

@media (max-width: 600px) {
  body { font-size: 11px; overflow-x: hidden; }
  .subreddit-strip { padding-inline: 4px; }
  .subreddit-strip nav b, .subreddit-strip nav a:nth-of-type(-n+4), .subreddit-strip nav i { display: none; }
  .masthead { min-height: 105px; align-items: flex-start; padding: 6px 5px 0; }
  .brand { height: 56px; align-self: flex-start; gap: 3px; }
  .brand img { width: 50px; height: 50px; }
  .brand > span { display: block; font-size: 21px; letter-spacing: -2px; }
  .subreddit-name { margin-top: 20px; font-size: 13px; }
  .tabs { position: absolute; left: 4px; right: 0; bottom: 0; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; }
  .mobile-community-title { display: block; margin: 4px 6px 7px; color: #369; font-weight: 700; }
  .mobile-community-title span { color: #888; font-size: 9px; font-weight: 400; }

  .listing { grid-template-columns: 34px 56px minmax(0, 1fr); min-height: 83px; padding: 5px 6px 5px 2px; }
  .listing .rank { display: none; }
  .post-thumb { width: 52px; height: 48px; }
  .post-body h2 { font-size: 13px; }
  .post-body h2 small { display: block; margin-top: 2px; }
  .post-links { gap: 6px; }
  .post-links button:nth-of-type(n+3), .post-links span { display: none; }

  .hero-listing {
    min-height: 520px;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    padding: 0 10px 12px 2px;
  }
  .hero-listing .vote-column { grid-column: 1; grid-row: 1 / 3; padding-top: 20px; }
  .hero-thumb { grid-column: 2; width: 100%; max-width: none; height: 116px; margin: 10px 0 0; }
  .hero-thumb img { width: 106px; height: 106px; }
  .hero-post { grid-column: 2; padding: 17px 0 0; }
  .promoted-label { margin-bottom: 6px; }
  .hero-post h1 { max-width: 100%; font-size: clamp(31px, 9.3vw, 42px); line-height: .94; letter-spacing: -2.5px; overflow-wrap: anywhere; }
  .pair-line { width: 100%; justify-content: center; }
  .pair-line span { font-size: 18px; }
  .hero-actions { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .reddit-button { padding-inline: 7px; font-size: 8px; }
  .give-karma { grid-column: 1 / -1; }

  .expanded-post, .economy-post, .comment-thread { margin: 30px 6px; }
  .expanded-inner, .economy-inner { padding: 24px 14px; }
  .pair-card h2 { font-size: clamp(30px, 9vw, 44px); letter-spacing: -2.5px; white-space: nowrap; }
  .pair-card > p:not(.post-kicker) { font-size: 11px; }
  .pair-card > .reward-note { font-size: 9px; }
  .pair-card blockquote { margin-top: 18px; font-size: 11px; }
  .economy-inner h2 { font-size: 14vw; letter-spacing: -3px; }
  .dopamine-station { align-items: center; flex-direction: column; }
  .dopamine-character { width: min(300px, 88%); flex-basis: auto; }
  .giant-upvote { width: 100%; justify-content: center; }
  .karma-scoreboard strong { font-size: 34vw; }
  .comment.depth-1 { margin-left: 13px; }
  .comment.depth-2 { margin-left: 26px; }
  .thread-toolbar { align-items: flex-start; flex-direction: column; }

  .sidebar { grid-template-columns: 1fr; }
  .search, .sidebar-note { grid-column: auto; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
