*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #6A2C1B;
  --bg2:       #7E3822;
  --bg3:       #93442B;
  --border:    #4E1D0F;
  --border2:   rgba(251,243,230,0.32);
  --text:      #FBF3E6;
  --text-muted:#DCC3AC;
  --accent:    #EBC9A0;
  --accent2:   #F08A64;
  --accent3:   #9FD3BF;
  --accent4:   #C9AEE8;
  --white:     #FFFFFF;
  --cream:     #FBF3E6;
  --ink:       #2B1A14;
  --radius:    12px;
  --radius-sm: 7px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

.hand { font-family: 'Caveat', cursive; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(59,33,24,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: 'Caveat', cursive;
  font-size: 26px; font-weight: 700;
  color: #E9A98A;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.nav-logo span { font-family: 'Inter', sans-serif; font-size: 13px; color: #BFA897; font-weight: 300; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: #D9C8B8;
  font-size: 13px; font-weight: 400; transition: color 0.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover { color: #fff; }

/* HERO */
.hero-bg {
  background-color: #7E2E14;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='480'%20height='200'%3E%3Crect%20width='480'%20height='200'%20fill='%237E2E14'/%3E%3Crect%20x='2'%20y='2'%20width='116'%20height='46'%20fill='%23A03E1D'/%3E%3Crect%20x='122'%20y='2'%20width='116'%20height='46'%20fill='%23A9441F'/%3E%3Crect%20x='242'%20y='2'%20width='116'%20height='46'%20fill='%23A03E1D'/%3E%3Crect%20x='362'%20y='2'%20width='116'%20height='46'%20fill='%23983A1A'/%3E%3Crect%20x='-58'%20y='52'%20width='116'%20height='46'%20fill='%23983A1A'/%3E%3Crect%20x='62'%20y='52'%20width='116'%20height='46'%20fill='%23A03E1D'/%3E%3Crect%20x='182'%20y='52'%20width='116'%20height='46'%20fill='%23A9441F'/%3E%3Crect%20x='302'%20y='52'%20width='116'%20height='46'%20fill='%23A03E1D'/%3E%3Crect%20x='422'%20y='52'%20width='116'%20height='46'%20fill='%23983A1A'/%3E%3Crect%20x='2'%20y='102'%20width='116'%20height='46'%20fill='%23A9441F'/%3E%3Crect%20x='122'%20y='102'%20width='116'%20height='46'%20fill='%23983A1A'/%3E%3Crect%20x='242'%20y='102'%20width='116'%20height='46'%20fill='%23A03E1D'/%3E%3Crect%20x='362'%20y='102'%20width='116'%20height='46'%20fill='%23A9441F'/%3E%3Crect%20x='-58'%20y='152'%20width='116'%20height='46'%20fill='%23A03E1D'/%3E%3Crect%20x='62'%20y='152'%20width='116'%20height='46'%20fill='%23A9441F'/%3E%3Crect%20x='182'%20y='152'%20width='116'%20height='46'%20fill='%23983A1A'/%3E%3Crect%20x='302'%20y='152'%20width='116'%20height='46'%20fill='%23A03E1D'/%3E%3Crect%20x='422'%20y='152'%20width='116'%20height='46'%20fill='%23A03E1D'/%3E%3C/svg%3E");
  background-size: 480px 200px;
  border-bottom: 18px solid #3B2118;
}
.hero-bg .hero-eyebrow {
  display: inline-block; background: var(--ink); color: var(--cream);
  padding: 9px 18px; font-weight: 500; letter-spacing: 3px;
}
.hero-bg .hero-content h1 { color: var(--cream); }
.hero-bg .hero-content h1 em { color: var(--ink); }
.hero-bg .hero-content p { color: #FBEBDA; font-weight: 400; text-shadow: 0 1px 3px rgba(60,20,8,0.35); }
.hero-bg .tag { background: transparent; border-color: var(--cream); color: var(--cream); }
.hero-bg .btn-ghost { color: var(--cream); border-color: var(--cream); }
.hero-bg .btn-ghost:hover { background: var(--cream); color: var(--bg); }
.hero-bg .hero-stat-num { color: var(--cream) !important; }
.hero-bg .hero-stat-label { color: #F6DCC6; }
.hero-bg .hero-divider { background: rgba(251,243,230,0.45); }
.hero {
  min-height: 90vh;
  display: flex; align-items: center;
  padding: 5rem 2rem 4rem;
  max-width: 960px; margin: 0 auto;
  position: relative;
}
.hero-content { max-width: 600px; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem; font-weight: 400;
}
.hero-content h1 {
  font-family: 'Caveat', cursive;
  font-size: clamp(52px, 9vw, 86px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 1.5rem;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-content p {
  font-size: 16px; color: var(--text-muted);
  margin-bottom: 2.5rem; line-height: 1.85; max-width: 480px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 3rem; }
.tag {
  display: inline-block; padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.3px;
  border: 0.5px solid;
}
.tag-y  { background: #BC4F26; border-color: #BC4F26; color: var(--cream); }
.tag-r  { background: #CC6035; border-color: #CC6035; color: var(--cream); }
.tag-g  { background: #AB4522; border-color: #AB4522; color: var(--cream); }
.tag-p  { background: #C25730; border-color: #C25730; color: var(--cream); }
.tag-w  { background: #4E1D0F; border-color: #4E1D0F; color: var(--cream); }

.hero-line {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-end;
}
.hero-stat { text-align: right; }
.hero-stat-num {
  font-family: 'Caveat', cursive;
  font-size: 42px; font-weight: 700; color: var(--white);
  line-height: 1;
}
.hero-stat-label { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; }
.hero-divider { width: 1px; height: 60px; background: var(--border2); margin: 0 auto; }

/* SECTIONS */
section { padding: 5rem 2rem; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.5rem; font-weight: 400;
}
.section-label {
  font-family: 'Caveat', cursive;
  font-size: 36px; font-weight: 700;
  margin-bottom: 0.25rem; color: var(--white);
}
.section-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 3rem; }

/* FILTER */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: 6px 16px; border-radius: 20px;
  border: 0.5px solid var(--border2);
  background: transparent; color: var(--text-muted);
  font-size: 12px; cursor: pointer; font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 500; }

/* WORKS GRID */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.work-card {
  box-shadow: inset 0 0 0 1.5px #4E1D0F;
  padding: 1.5rem;
  background: var(--bg2);
  transition: background 0.2s;
  position: relative;
}
.work-card:hover { background: var(--bg3); }
.work-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.work-author { font-size: 11px; color: var(--text-muted); }
.work-image {
  background: var(--bg3);
  border-radius: var(--radius-sm);
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
  border: 0.5px solid var(--border);
}
.work-image-placeholder { font-size: 32px; opacity: 0.4; }
.work-title { font-size: 13px; color: var(--text-muted); }
.work-poem {
  font-family: 'Caveat', cursive;
  font-size: 22px; color: var(--white);
  line-height: 1.5; margin-bottom: 0.5rem;
}
.work-audio {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border-radius: var(--radius-sm);
  padding: 0.75rem; border: 0.5px solid var(--border);
  margin-bottom: 0.5rem;
}
.play-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent; border: 0.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; font-size: 12px; color: var(--accent);
}
.audio-info p:first-of-type { font-size: 13px; color: var(--text); }
.audio-info p:nth-of-type(2) { font-size: 11px; color: var(--text-muted); }

/* ACCENT LINE */
.accent-line {
  width: 32px; height: 2px; margin-bottom: 1rem;
}

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 0; border-radius: var(--radius); overflow: hidden; }
.blog-card {
  box-shadow: inset 0 0 0 1.5px #4E1D0F;
  padding: 1.75rem;
  background: var(--bg2);
  cursor: pointer; transition: background 0.2s;
}
.blog-card:hover { background: var(--bg3); }
.blog-date { font-size: 11px; color: var(--text-muted); margin-bottom: 0.75rem; letter-spacing: 0.5px; }
.blog-title { font-family: 'Caveat', cursive; font-size: 24px; font-weight: 600; margin-bottom: 0.75rem; line-height: 1.2; color: var(--white); }
.blog-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.25rem; }
.blog-footer { display: flex; justify-content: space-between; align-items: center; }
.blog-read { font-size: 12px; color: var(--accent); letter-spacing: 0.5px; }
.blog-comments { font-size: 12px; color: var(--text-muted); }

/* ARTICLE */
.article-view { display: none; }
.article-view.open { display: block; }
.article-back {
  background: none; border: 0.5px solid var(--border2);
  border-radius: var(--radius-sm); padding: 7px 16px;
  font-family: 'Inter', sans-serif; font-size: 12px;
  color: var(--text-muted); cursor: pointer; margin-bottom: 2.5rem;
  transition: all 0.2s; letter-spacing: 0.3px;
}
.article-back:hover { border-color: var(--accent); color: var(--accent); }
.article-body { max-width: 620px; }
.article-body h2 { font-family: 'Caveat', cursive; font-size: 40px; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; line-height: 1.1; }
.article-body .article-date { font-size: 11px; color: var(--text-muted); margin-bottom: 2.5rem; letter-spacing: 0.5px; }
.article-body p { margin-bottom: 1.25rem; font-size: 16px; line-height: 1.9; color: var(--text); }

.comments-section { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 0.5px solid var(--border); max-width: 620px; }
.comments-title { font-family: 'Caveat', cursive; font-size: 26px; color: var(--white); margin-bottom: 1.5rem; }
.comment {
  padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--bg2); border: 0.5px solid var(--border);
  margin-bottom: 0.75rem;
}
.comment-meta { font-size: 11px; color: var(--accent); margin-bottom: 0.4rem; letter-spacing: 0.5px; }
.comment-text { font-size: 14px; line-height: 1.65; color: var(--text); }
.comment-form { margin-top: 2rem; }
.comment-form label { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 10px 14px;
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 300;
  background: var(--bg2); color: var(--text);
  margin-bottom: 1rem; resize: vertical;
  transition: border-color 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--accent);
}

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text p { margin-bottom: 1.25rem; font-size: 15px; color: var(--text); line-height: 1.85; }
.about-values { display: grid; gap: 3px; background: #4E1D0F; border: 3px solid #4E1D0F; border-radius: var(--radius); overflow: hidden; }
.value-item { padding: 1.25rem 1.5rem; background: var(--bg2); }
.value-item strong { display: block; font-size: 14px; font-weight: 500; margin-bottom: 0.25rem; color: var(--white); }
.value-item span { font-size: 13px; color: var(--text-muted); }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info p { font-size: 15px; margin-bottom: 1.5rem; color: var(--text); line-height: 1.85; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1rem; font-size: 13px; color: var(--text-muted); }
.contact-detail a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
.contact-detail a:hover { opacity: 0.8; text-decoration: underline; }
.contact-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; }
.contact-form label { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 6px; letter-spacing: 0.5px; text-transform: uppercase; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 14px;
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 300;
  background: var(--bg2); color: var(--text);
  margin-bottom: 1rem; resize: vertical;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
}

/* BTN */
.btn {
  background: var(--accent); color: var(--bg);
  border: none; border-radius: var(--radius-sm);
  padding: 11px 26px; font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: opacity 0.2s; letter-spacing: 0.3px;
}
.btn:hover { opacity: 0.85; }
.btn-ghost {
  background: transparent; color: var(--accent);
  border: 0.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 11px 26px; font-family: 'Inter', sans-serif;
  font-size: 13px; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.3px;
}
.btn-ghost:hover { background: var(--accent); color: var(--bg); }

/* FOOTER */
footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
footer span { color: var(--accent); font-family: 'Caveat', cursive; font-size: 16px; }



/* GRA: CZEGO NIE POWIEM */
.game-wrap { max-width: 620px; margin: 0 auto; }
#promptCard {
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.prompt-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); opacity: 0.7; margin-bottom: 1rem;
}
.prompt-text {
  font-family: 'Caveat', cursive; font-size: 28px; line-height: 1.3;
  color: var(--white); min-height: 70px;
  display: flex; align-items: center; justify-content: center;
}
.game-controls-row { display: flex; justify-content: center; gap: 10px; margin-bottom: 2rem; }
.canvas-box {
  background: #FAF8F4;
  border-radius: 14px;
  overflow: hidden;
  border: 0.5px solid var(--border2);
  margin-bottom: 1rem;
  position: relative;
}
#sketch { display: block; width: 100%; height: 380px; touch-action: none; cursor: crosshair; }
.game-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--bg2); border: 0.5px solid var(--border2); border-radius: 12px;
  padding: 0.85rem 1.1rem; margin-bottom: 2rem;
}
.swatches { display: flex; gap: 6px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.swatch.active { border-color: var(--accent); }
.tool-sep { width: 1px; height: 22px; background: var(--border2); }
.tool-btn {
  background: transparent; border: 0.5px solid var(--border2); color: var(--text-muted);
  width: 32px; height: 32px; border-radius: 7px; font-size: 14px;
  display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
.tool-btn.active, .tool-btn:hover { color: var(--accent); border-color: var(--accent); }
.size-row { display: flex; align-items: center; gap: 8px; }
.size-row label { font-size: 12px; color: var(--text-muted); }
.game-bottom-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.game-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 2rem; line-height: 1.7; }

@media (max-width: 560px) {
  #sketch { height: 320px; }
  .game-toolbar { justify-content: center; }
}

/* =========================================================
   ADDITIONS
   ========================================================= */

h1, h2, h3 { font-weight: inherit; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 200;
  background: var(--cream); color: var(--ink); padding: 8px 14px; border-radius: var(--radius-sm);
  text-decoration: none; font-size: 13px; font-weight: 500;
}
.skip-link:focus { top: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
section[id], #top { scroll-margin-top: 64px; }
a.btn, a.btn-ghost { display: inline-block; text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: wait; }

/* NAV – mobile toggle */
.nav-toggle {
  display: none; background: transparent; border: 0.5px solid var(--border2);
  border-radius: var(--radius-sm); width: 40px; height: 36px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--cream); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav-links a.current { color: #fff; }

/* WORK placeholders & media */
.work-image { overflow: hidden; position: relative; }
.work-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-image.is-placeholder {
  flex-direction: column; gap: 4px;
  background-color: var(--bg3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='30'%3E%3Cg fill='none' stroke='%234E1D0F' stroke-opacity='0.55' stroke-width='1.5'%3E%3Cpath d='M0 0.75H60M0 15.75H60M30 0.75V15.75M0 15.75V30M60 15.75V30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 30px;
}
.work-image.is-placeholder::after {
  content: attr(data-label);
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); background: rgba(43,26,20,0.6);
  padding: 2px 8px; border-radius: 10px;
}
.work-image.is-placeholder .work-image-placeholder {
  opacity: 0.9; background: rgba(43,26,20,0.55); border-radius: 50%;
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.work-prose { font-size: 14px; color: var(--text); font-style: italic; line-height: 1.8; margin-bottom: 0.5rem; }
.play-btn { transition: background 0.2s, color 0.2s; }
.play-btn:hover:not(:disabled), .play-btn.playing { background: var(--accent); color: var(--bg); }
.play-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.audio-progress { height: 2px; background: var(--border2); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.audio-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
.audio-info { flex: 1; min-width: 0; }
.grid-empty {
  display: none; text-align: center; padding: 2.5rem 1rem; font-size: 14px; color: var(--text-muted);
  background: var(--bg2); border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px #4E1D0F;
}
.grid-empty.show { display: block; }

/* MATERIALS */
.material-title { font-size: 13px; color: var(--text); margin-bottom: 0.5rem; }
.material-desc { font-size: 12px; color: var(--text-muted); }
.material-link { margin-top: 0.75rem; font-size: 12px !important; padding: 7px 16px !important; }
.material-link.is-soon {
  opacity: 0.6; cursor: default; border-style: dashed;
}
.material-link.is-soon:hover { background: transparent; color: var(--accent); }
.section-note { font-size: 13px; color: var(--text-muted); margin-top: 2rem; text-align: center; }

/* BLOG */
.blog-card { display: block; text-decoration: none; color: inherit; }
.blog-card:hover .blog-read { text-decoration: underline; }
.comment-meta time { color: var(--text-muted); margin-left: 6px; }
.comment-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.form-status { font-size: 13px; margin-top: 0.75rem; min-height: 1.2em; color: var(--accent3); }
.form-status.error { color: #FFB59A; }
.char-count { font-size: 11px; color: var(--text-muted); text-align: right; margin: -0.75rem 0 1rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* CONTACT */
.contact-form .req { color: var(--accent2); }
.contact-form input:invalid:not(:placeholder-shown) { border-color: #FFB59A; }
.form-success {
  background: var(--bg2); border: 0.5px solid var(--border2); border-radius: var(--radius);
  padding: 2rem 1.5rem; text-align: center;
}
.form-success p:first-child { font-family: 'Caveat', cursive; font-size: 30px; color: var(--white); margin-bottom: 0.5rem; }
.form-success p { font-size: 14px; color: var(--text-muted); }

/* SKETCH extras */
.swatch { padding: 0; transition: transform 0.15s; }
.swatch:hover { transform: scale(1.12); }
.tool-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.tool-btn:disabled:hover { color: var(--text-muted); border-color: var(--border2); }
.size-row input[type="range"] { accent-color: var(--accent); width: 110px; }
.size-preview { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.size-preview i { display: block; border-radius: 50%; background: var(--cream); }
.prompt-type {
  display: inline-block; margin-top: 0.75rem; font-size: 11px; letter-spacing: 1px;
  color: var(--text-muted); border: 0.5px solid var(--border2); border-radius: 20px; padding: 2px 10px;
}
.prompt-type:empty { display: none; }

/* KOŁO EMOCJI */
.wheel-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.wheel-stage { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 1; }
.wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 26px solid var(--cream); filter: drop-shadow(0 2px 2px rgba(0,0,0,0.35));
}
#wheel {
  width: 100%; height: 100%; display: block; border-radius: 50%;
  box-shadow: 0 0 0 6px #3B2118, 0 10px 30px rgba(43,26,20,0.45);
  transition: transform 4.2s cubic-bezier(0.17, 0.67, 0.12, 1);
}
#wheel text { font-family: 'Caveat', cursive; font-size: 17px; font-weight: 700; fill: var(--ink); pointer-events: none; }
.wheel-hub {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%;
  background: #3B2118; border: 3px solid var(--cream); color: var(--cream);
  font-family: 'Caveat', cursive; font-size: 22px; font-weight: 700; cursor: pointer; z-index: 3;
}
.wheel-hub:hover:not(:disabled) { background: var(--ink); }
.wheel-hub:disabled { cursor: wait; }
.wheel-result {
  background: var(--bg2); border: 0.5px solid var(--border2); border-radius: 14px; padding: 2rem 1.75rem;
}
.wheel-result .prompt-label { text-align: left; }
.wheel-emotion { font-family: 'Caveat', cursive; font-size: 44px; font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 0.75rem; }
.wheel-task { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 0.5rem; }
.wheel-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 1.5rem; }
.wheel-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #wheel { transition-duration: 0.01s; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #3B2118;
    border-bottom: 0.5px solid var(--border); padding: 0.5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.85rem 2rem; font-size: 15px; }
  .wheel-layout { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; flex-direction: column; align-items: flex-start; padding: 3rem 1.25rem 2.5rem; }
  .hero-line {
    position: static; transform: none; flex-direction: row; align-items: center;
    gap: 18px; margin-top: 2.5rem;
  }
  .hero-stat { text-align: left; }
  .hero-stat-num { font-size: 34px; }
  .hero-divider { width: 1px; height: 36px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  section { padding: 3.5rem 1.25rem; }
  nav { padding: 0 1.25rem; }
  .nav-links a { padding: 0.85rem 1.25rem; }
  .article-body h2 { font-size: 34px; }
}

a.article-back { display: inline-block; text-decoration: none; }
