:root {
  color-scheme: light;
  --paper: #f8f4e9;
  --ink: #272620;
  --muted: #6d695f;
  --orange: #f46b42;
  --green: #dce4bd;
  --line: #ded9c9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.shell { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 110px; scroll-margin-top: 25px; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .12em; line-height: 1.5; }
.sparkle { color: var(--orange); font-size: 18px; vertical-align: -2px; margin-right: 8px; }

.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 99px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 29px; font-weight: 950; letter-spacing: -.09em; text-decoration: none; line-height: 1; }
.brand-icon { font-size: 32px; letter-spacing: 0; margin-right: 3px; }
.brand-dot { color: var(--orange); }
.nav { display: flex; gap: 35px; align-items: center; font-size: 13px; font-weight: 750; }
.nav a { text-decoration: none; }
.nav a:hover, .text-link:hover, .credits a:hover { color: #ce4f29; }
.nav-pill { border: 1.5px solid var(--ink); border-radius: 100px; padding: 13px 18px; }
.nav-pill span { margin-left: 12px; }
.nav-pill:hover { background: var(--ink); color: white !important; }

.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 45px; padding-block: 92px 114px; min-height: 660px; }
.hero-copy { position: relative; z-index: 1; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Arial Black, Arial, Helvetica, sans-serif; font-weight: 950; }
h1 { font-size: clamp(82px, 9.6vw, 154px); letter-spacing: -.105em; line-height: .82; margin: 31px 0 33px -8px; white-space: nowrap; }
h1 span { color: var(--orange); }
.hero-lead { max-width: 495px; font-size: clamp(18px, 1.8vw, 23px); font-weight: 550; line-height: 1.42; letter-spacing: -.035em; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 33px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 58px; padding: 16px 23px; border: 2px solid var(--ink); border-radius: 4px; font-weight: 800; font-size: 14px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--orange); }
.button:active { transform: translate(0, 0); box-shadow: none; }
.button-dark { background: var(--ink); color: white; }
.text-link { text-decoration: none; font-size: 14px; font-weight: 800; white-space: nowrap; }
.text-link span { margin-left: 9px; }
.hero-footnote { display: flex; align-items: center; gap: 11px; margin-top: 75px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.footnote-line { width: 30px; height: 1px; background: var(--muted); }
.hero-art { position: relative; min-width: 0; padding: 15px 23px 17px 8px; }
.hero-photo-frame { position: relative; background: var(--green); border: 9px solid white; box-shadow: 15px 17px 0 var(--green); transform: rotate(3deg); }
.hero-photo-frame img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 51% center; }
.photo-label { position: absolute; left: 0; bottom: 0; background: white; padding: 12px 15px 5px 6px; font-weight: 850; font-size: 10px; letter-spacing: .06em; }
.hero-sticker { position: absolute; right: -9px; top: -32px; display: grid; place-content: center; width: 150px; height: 150px; background: var(--orange); border-radius: 50%; transform: rotate(13deg); color: var(--ink); font-weight: 950; font-size: 20px; line-height: .98; text-align: center; box-shadow: 3px 5px 0 var(--ink); }
.hero-sticker span { font-size: 25px; margin-top: 7px; }
.hero-scribble { position: absolute; left: -42px; bottom: -36px; font-size: 95px; font-family: Georgia, serif; transform: rotate(19deg); }

.ticker { overflow: hidden; background: var(--orange); border-block: 2px solid var(--ink); }
.ticker-inner { width: max-content; margin: auto; padding: 13px 22px; font-size: clamp(14px, 2vw, 19px); font-weight: 950; letter-spacing: .065em; word-spacing: 11px; white-space: nowrap; }

.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 42px; }
h2 { font-size: clamp(43px, 5.2vw, 71px); letter-spacing: -.075em; line-height: 1.03; margin: 16px 0 0; }
h2 em { color: var(--orange); font-style: normal; }
.section-heading p { max-width: 240px; font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0 4px 6px 0; }
.meme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.meme-card { background: #fffdf7; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.meme-card:hover { transform: translateY(-6px); box-shadow: 5px 9px 0 var(--green); }
.meme-image { position: relative; overflow: hidden; background: var(--green); }
.meme-image img { width: 100%; height: 255px; object-fit: cover; }
.meme-card:nth-child(1) img { object-position: 50% 42%; }
.meme-card:nth-child(3) img { object-position: 50% 42%; }
.meme-number { position: absolute; top: 13px; left: 13px; background: var(--paper); padding: 8px 10px; font-size: 10px; font-weight: 900; }
.meme-body { padding: 25px 25px 27px; }
.meme-tag { color: #b84f31; font-size: 10px; font-weight: 850; letter-spacing: .1em; }
.meme-body h3 { font-size: clamp(20px, 2vw, 27px); letter-spacing: -.055em; line-height: 1.15; margin: 13px 0 20px; }
.meme-body p { color: var(--muted); font-size: 13px; margin: 0; }

.wisdom { background: #dce4bd; border-block: 2px solid var(--ink); overflow: hidden; }
.wisdom-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; }
.wisdom-decor { position: absolute; top: -120px; right: 40%; font-size: 190px; color: #c9d6a2; line-height: 1; pointer-events: none; }
.wisdom-copy { position: relative; }
.wisdom-copy h2 em { color: #537349; }
.wisdom-copy > p { font-size: 17px; margin: 24px 0 30px; }
.button-light { background: var(--paper); color: var(--ink); }
.wisdom-card { position: relative; min-height: 278px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 11px 11px 0 var(--ink); padding: 30px 34px; transform: rotate(2deg); display: flex; flex-direction: column; }
.wisdom-card-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 850; letter-spacing: .09em; }
.wisdom-card-top span { color: var(--orange); font-size: 27px; line-height: .5; }
.wisdom-card p { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(23px, 2.5vw, 35px); font-weight: bold; line-height: 1.2; letter-spacing: -.04em; margin: auto 0; padding-block: 20px; }
.wisdom-signature { color: var(--muted); font-size: 12px; }

.game-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 75px; }
.game-intro h2 em { color: var(--orange); }
.game-intro p { max-width: 330px; margin: 24px 0 30px; color: var(--muted); line-height: 1.6; font-size: 16px; }
.game-intro .button:disabled { cursor: default; opacity: .65; transform: none; box-shadow: none; }
.game-panel { background: #fffdf7; border: 2px solid var(--ink); box-shadow: 9px 9px 0 var(--green); padding: 18px; min-width: 0; }
.game-stats { display: flex; justify-content: space-between; gap: 15px; padding: 2px 5px 15px; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.game-stats strong { display: block; margin-top: 5px; font-family: Arial Black, Arial, sans-serif; font-size: 30px; line-height: 1; letter-spacing: -.05em; }
.game-field { position: relative; height: 290px; overflow: hidden; background: #dce4bd; border: 2px dashed #8e9d79; }
.game-field::before { position: absolute; inset: 0; content: ''; background: repeating-linear-gradient(155deg, transparent 0 45px, #cbd8a9 45px 47px); pointer-events: none; }
.game-field-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #617752; font-size: 13px; font-weight: 800; text-align: center; white-space: nowrap; pointer-events: none; }
.game-field.is-playing .game-field-hint { display: none; }
.game-target { position: absolute; z-index: 1; display: grid; place-items: center; width: 70px; height: 70px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--orange); font-size: 39px; line-height: 1; transform: translate(-50%, -50%); box-shadow: 4px 4px 0 var(--ink); touch-action: manipulation; }
.game-target:hover { background: #ff926b; }
.game-target:active { transform: translate(-50%, -50%) scale(.9); }
.game-target[hidden] { display: none; }
.game-message { margin: 15px 5px 1px; min-height: 18px; color: var(--muted); font-size: 13px; }

.ip-section { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: center; }
.ip-intro h2 em { color: var(--orange); }
.ip-intro p { max-width: 380px; margin: 24px 0 0; color: var(--muted); line-height: 1.6; font-size: 16px; }
.ip-card { background: var(--ink); color: var(--paper); padding: 32px 34px 0; min-height: 255px; display: flex; flex-direction: column; }
.ip-card-heading { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 850; letter-spacing: .09em; }
.ip-card-heading > span:last-child { margin-left: auto; font-size: 20px; }
.ip-indicator { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #b7d881; flex: none; }
#ip-address { display: block; overflow-wrap: anywhere; font-family: Arial Black, Arial, sans-serif; font-size: clamp(25px, 3.1vw, 44px); font-weight: 950; letter-spacing: -.055em; margin: 34px 0 8px; line-height: 1.15; }
#ip-hint { color: #c8c7bc; font-size: 13px; margin: 0 0 16px; }
.retry-button { align-self: flex-start; padding: 0; margin: 0 0 16px; background: none; border: 0; color: #f99c7d; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.retry-button[hidden] { display: none; }
.ip-card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 18px 0; border-top: 1px solid #5b5a51; font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.ip-card-bottom span { font-size: 19px; }

.ping-section { background: #eee8d6; border-top: 2px solid var(--ink); }
.ping-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: center; }
.ping-intro h2 em { color: var(--orange); }
.ping-intro p { max-width: 420px; margin: 24px 0 30px; color: var(--muted); line-height: 1.6; font-size: 16px; }
.ping-intro .button:disabled { cursor: wait; opacity: .65; transform: none; box-shadow: none; }
.ping-card { display: flex; flex-direction: column; min-height: 265px; padding: 30px 32px; background: #fffdf7; border: 2px solid var(--ink); box-shadow: 9px 9px 0 var(--orange); }
.ping-card-label { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.ping-card-label span { color: #83a659; }
#ping-result { display: block; overflow-wrap: anywhere; margin: 37px 0 8px; font-family: Arial Black, Arial, sans-serif; font-size: clamp(27px, 3.3vw, 45px); font-weight: 950; letter-spacing: -.06em; }
#ping-hint { margin: 0 0 20px; font-size: 14px; }
.ping-card small { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.45; }

.footer { background: var(--ink); color: var(--paper); padding-block: 45px; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 30px; }
.footer .brand { font-size: 31px; }
.footer p { font-size: 12px; color: #c6c3b8; margin: 15px 0 0; }
.credits { display: flex; flex-direction: column; gap: 8px; font-size: 11px; }
.credits span { font-weight: 850; letter-spacing: .08em; margin-bottom: 4px; }
.credits a { color: #c6c3b8; text-decoration: none; }
.back-to-top { font-size: 11px; font-weight: 850; text-decoration: none; white-space: nowrap; }

@media (max-width: 950px) {
  .shell { width: min(100% - 56px, 720px); }
  .hero { grid-template-columns: 1fr; gap: 55px; padding-block: 75px 90px; }
  .hero-copy { max-width: 650px; }
  h1 { font-size: clamp(76px, 13vw, 126px); }
  .hero-footnote { margin-top: 45px; }
  .hero-art { width: min(550px, 85%); margin-inline: auto; }
  .hero-photo-frame img { aspect-ratio: 1.35; }
  .meme-grid { gap: 12px; }
  .meme-image img { height: 190px; }
  .meme-body { padding: 20px 15px; }
  .wisdom-inner, .game-section, .ip-section, .ping-inner { gap: 35px; }
}

@media (max-width: 650px) {
  .shell { width: calc(100% - 36px); }
  .site-header { min-height: 75px; }
  .brand { font-size: 25px; }
  .brand-icon { font-size: 25px; }
  .nav { gap: 10px; font-size: 12px; }
  .nav a:not(.nav-pill) { display: none; }
  .nav-pill { padding: 10px 14px; }
  .hero { padding-block: 60px 80px; gap: 45px; }
  .eyebrow { font-size: 10px; }
  h1 { font-size: clamp(65px, 15vw, 102px); margin: 25px 0 28px -4px; }
  .hero-lead { font-size: 18px; }
  .hero-actions { gap: 19px; flex-wrap: wrap; }
  .button { min-height: 54px; padding: 12px 17px; }
  .hero-footnote { margin-top: 40px; font-size: 9px; }
  .hero-art { width: calc(100% - 36px); padding: 10px; }
  .hero-photo-frame { box-shadow: 10px 11px 0 var(--green); border-width: 6px; }
  .hero-photo-frame img { aspect-ratio: 1.1; }
  .hero-sticker { width: 98px; height: 98px; top: -28px; right: -13px; font-size: 14px; }
  .hero-sticker span { font-size: 16px; margin-top: 2px; }
  .hero-scribble { font-size: 60px; left: -22px; bottom: -20px; }
  .photo-label { font-size: 8px; padding: 7px 8px 3px; }
  .section { padding-block: 75px; }
  h2 { font-size: clamp(43px, 10vw, 62px); }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading p { margin: 18px 0 0; max-width: none; }
  .meme-grid { grid-template-columns: 1fr; gap: 20px; }
  .meme-image img { height: auto; aspect-ratio: 1.55; }
  .meme-body { padding: 22px; }
  .meme-body h3 { font-size: 25px; }
  .wisdom-inner, .game-section, .ip-section, .ping-inner { grid-template-columns: 1fr; gap: 44px; }
  .wisdom-decor { right: -15px; top: -75px; font-size: 115px; }
  .wisdom-card { min-height: 245px; margin: 0 10px 8px 0; padding: 24px; }
  .game-panel { padding: 12px; box-shadow: 6px 6px 0 var(--green); }
  .game-field { height: 260px; }
  .ip-card { padding: 25px 24px 0; min-height: 230px; }
  #ip-address { font-size: clamp(23px, 7vw, 36px); }
  .ping-card { padding: 24px; min-height: 245px; box-shadow: 6px 6px 0 var(--orange); }
  #ping-result { font-size: clamp(27px, 8vw, 40px); }
  .footer-inner { flex-wrap: wrap; gap: 32px; }
  .footer-inner > div:first-child { width: 100%; }
  .back-to-top { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .meme-card { transition: none; }
}
