/* MH Magazine Lite theme: expand only pages containing this shortcode. */
body.pa-oeil-fullwidth .mh-container-outer {
  width: calc(100% - 24px) !important;
  max-width: 1520px !important;
}
body.pa-oeil-fullwidth .mh-wrapper {
  padding: clamp(12px, 1.8vw, 25px) !important;
}
body.pa-oeil-fullwidth #main-content.mh-content {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}
body.pa-oeil-fullwidth .mh-sidebar {
  display: none !important;
}
body.pa-oeil-fullwidth .pa-oeil {
  max-width: none;
}

.pa-oeil,
.pa-oeil * { box-sizing: border-box; }

.pa-oeil {
  --pa-ink: #24312e;
  --pa-green: #236c5f;
  --pa-gold: #e1ae49;
  --pa-soft: #f7f4ec;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pa-ink);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto 2rem;
  padding: clamp(14px, 3vw, 34px);
  border: 1px solid #e7e1d6;
  border-radius: 22px;
  background: linear-gradient(155deg, #fffdf8 0%, #f8f5ee 62%, #edf4f0 100%);
  box-shadow: 0 18px 42px rgba(32, 48, 39, .08);
}

.pa-oeil button { cursor: pointer; font: inherit; letter-spacing: 0; text-transform: none; }
.pa-oeil button:disabled { cursor: default; }
.pa-oeil button:focus-visible,
.pa-oeil a:focus-visible { outline: 3px solid #1483c2; outline-offset: 3px; }

.pa-oeil__masthead { margin-bottom: 1.2rem; }
.pa-oeil__eyebrow { color: var(--pa-green); font-size: .74rem; letter-spacing: .16em; font-weight: 800; margin: 0 0 .35rem; }
.pa-oeil__masthead h2 { color: #243e36; margin: 0 !important; line-height: 1.09; font-size: clamp(2rem, 3.5vw, 3.2rem); font-weight: 800; }
.pa-oeil__subtitle { color: #50615a; font-size: 1rem; margin: .45rem 0 0; }

.pa-oeil__toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 1.2rem 0; }
.pa-oeil__toolbar-label { color: #697971; font-size: .83rem; font-weight: 700; margin-right: 6px; }
.pa-oeil .pa-oeil__level {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid #cbd9d0; background: #fff; color: #344b40;
  border-radius: 999px; padding: 9px 14px; font-size: .86rem; font-weight: 750;
  line-height: 1.25; min-height: 43px; box-shadow: none;
}
.pa-oeil__level small { font-size: .72rem; font-weight: 600; opacity: .67; }
.pa-oeil .pa-oeil__level:hover { border-color: var(--pa-green); }
.pa-oeil .pa-oeil__level.is-active { background: var(--pa-green); border-color: var(--pa-green); color: #fff; }

.pa-oeil__play { display: grid; grid-template-columns: minmax(240px, 315px) minmax(0, 1fr); gap: clamp(14px, 2vw, 25px); align-items: start; }
.pa-oeil__clue { min-width: 0; background: #fff; border: 1px solid #e1e7df; border-radius: 18px; padding: clamp(13px, 2vw, 21px); box-shadow: 0 7px 24px rgba(49, 66, 57, .06); }
.pa-oeil__clue-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pa-oeil__pill { display: inline-block; padding: 5px 10px; border-radius: 99px; background: #e6f3ed; color: #205e50; font-size: .75rem; font-weight: 800; }
.pa-oeil__dots { display: inline-flex; gap: 5px; }
.pa-oeil__dot { background: #d7dfd8; border-radius: 50%; width: 8px; height: 8px; }
.pa-oeil__dot.is-done { background: #64ae89; }
.pa-oeil__dot.is-current { background: #dfab46; box-shadow: 0 0 0 3px #f9efd5; }
.pa-oeil__clue h3 { font-size: 1.16rem; line-height: 1.3; color: #253d33; margin: 1rem 0 .75rem; font-weight: 800; }
.pa-oeil__detail-frame { overflow: hidden; background: #dbdfd4; border: 5px solid #fbf6e7; outline: 1px solid #e1d9c6; border-radius: 11px; box-shadow: 0 4px 11px rgba(43, 41, 31, .14); }
.pa-oeil__detail { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; }
.pa-oeil__clue-instruction { color: #53665b; font-size: .88rem; line-height: 1.53; margin: .85rem 0; }
.pa-oeil .pa-oeil__hint { display: inline-flex; align-items: center; justify-content: center; width: 100%; background: #f0f5ed; color: #235e4e; border: 1px solid #c9ddcd; border-radius: 11px; padding: 10px 12px; font-size: .84rem; font-weight: 750; min-height: 44px; box-shadow: none; }
.pa-oeil .pa-oeil__hint:hover:not(:disabled) { background: #e2f2e7; }
.pa-oeil .pa-oeil__hint:disabled { opacity: .6; }
.pa-oeil__hint-text { min-height: 1.2em; font-size: .82rem; color: #476d57; margin: .7rem 0 0; }

.pa-oeil__work { min-width: 0; }
.pa-oeil__work-heading { display: flex; justify-content: space-between; align-items: end; gap: 10px; padding: 2px 0 12px; }
.pa-oeil__work-heading strong { font-size: 1.16rem; color: #243b33; display: block; }
.pa-oeil__work-heading span { display: block; color: #64756b; font-size: .82rem; }
.pa-oeil__work-heading .pa-oeil__work-tip { border: 1px solid #e9d7ac; border-radius: 100px; background: #fff7e0; color: #80602c; padding: 4px 9px; white-space: nowrap; font-size: .75rem; font-weight: 700; }
.pa-oeil__painting { position: relative; line-height: 0; overflow: hidden; border: 5px solid #fdfbf7; outline: 1px solid #d9d1c4; border-radius: 11px; background: #201b19; box-shadow: 0 12px 29px rgba(22, 40, 30, .17); }
.pa-oeil__painting img { display: block; width: 100%; height: auto; max-width: none; border: 0; padding: 0; margin: 0; }
.pa-oeil__grid { position: absolute; inset: 0; display: grid; }
.pa-oeil .pa-oeil__cell { appearance: none; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; margin: 0; border: 1px solid rgba(255, 255, 255, .54); border-radius: 0; background: transparent; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); transition: background .2s, box-shadow .2s; touch-action: manipulation; }
.pa-oeil .pa-oeil__cell:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
.pa-oeil .pa-oeil__cell:focus-visible { position: relative; z-index: 2; outline: 4px solid #fff19b; outline-offset: -4px; }
.pa-oeil .pa-oeil__cell.is-correct { background: rgba(80, 195, 117, .28); box-shadow: inset 0 0 0 4px #e7ff94, 0 0 18px #e9ef74; z-index: 1; }
.pa-oeil .pa-oeil__cell.is-hinted { animation: pa-oeil-glow 1.5s ease-in-out infinite; }
.pa-oeil .pa-oeil__cell.is-wrong { animation: pa-oeil-wrong .35s ease; }
.pa-oeil__celebration { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pa-oeil__spark { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; background: #ffdb69; border-radius: 2px; animation: pa-oeil-spark .7s ease-out var(--delay) both; box-shadow: 0 0 10px #fff2a8; }
.pa-oeil__copyright { color: #7a8078; text-align: right; font-size: .72rem; margin: 7px 0 0; }

.pa-oeil__feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 18px; padding: 13px 17px; border: 1px solid #dce5d9; border-radius: 14px; background: #fff; }
.pa-oeil__feedback[data-type="correct"] { background: #eff9e9; border-color: #bbdcad; }
.pa-oeil__feedback[data-type="try"] { background: #fff8e9; border-color: #ecdfb2; }
.pa-oeil__feedback-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; font-size: 1.4rem; border-radius: 12px; background: #f1f3e9; }
.pa-oeil__feedback-text { flex: 1 1 300px; min-width: 0; }
.pa-oeil__feedback-text strong { display: block; color: #243d32; font-size: .94rem; }
.pa-oeil__feedback-text p { margin: 3px 0 0; font-size: .84rem; line-height: 1.48; color: #53665b; }
.pa-oeil .pa-oeil__next { margin-left: auto; background: #236c5f; border: 1px solid #236c5f; border-radius: 10px; padding: 10px 14px; color: #fff; font-size: .86rem; font-weight: 800; min-height: 44px; box-shadow: none; }
.pa-oeil .pa-oeil__next:hover { background: #184f46; }
.pa-oeil [hidden] { display: none !important; }
.pa-oeil__footnote { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e4e5dc; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; font-size: .77rem; color: #6e7c70; }
.pa-oeil__footnote a { color: #226b5d; text-decoration: underline; font-weight: 700; }

@keyframes pa-oeil-spark { 0% { transform: translateY(16px) rotate(0) scale(.2); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(-22px) rotate(135deg) scale(1); opacity: 0; } }
@keyframes pa-oeil-glow { 0%, 100% { box-shadow: inset 0 0 0 2px #fffaae; background: rgba(255, 230, 84, .1); } 50% { box-shadow: inset 0 0 0 5px #fff5a2; background: rgba(255, 230, 84, .32); } }
@keyframes pa-oeil-wrong { 0%, 100% { background: transparent; } 40% { background: rgba(248, 182, 70, .42); } }

@media (max-width: 800px) {
  .pa-oeil__play { grid-template-columns: minmax(0, 1fr); }
  .pa-oeil__clue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 12px; align-items: start; }
  .pa-oeil__clue-top, .pa-oeil__clue h3 { grid-column: 1 / -1; }
  .pa-oeil__detail-frame { grid-column: 1; grid-row: 3 / 6; }
  .pa-oeil__clue-instruction { grid-column: 2; margin-top: 0; }
  .pa-oeil .pa-oeil__hint { grid-column: 2; }
  .pa-oeil__hint-text { grid-column: 2; margin-top: 0; }
}

@media (max-width: 520px) {
  .pa-oeil { padding: 12px; border-radius: 12px; }
  .pa-oeil__masthead h2 { font-size: 2rem; }
  .pa-oeil__toolbar-label { width: 100%; }
  .pa-oeil .pa-oeil__level { flex: 1 1 30%; flex-direction: column; justify-content: center; gap: 2px; text-align: center; font-size: .77rem; padding: 8px 6px; }
  .pa-oeil__level small { font-size: .7rem; }
  .pa-oeil__clue { padding: 12px; column-gap: 10px; }
  .pa-oeil__clue h3 { font-size: 1rem; margin: 9px 0; }
  .pa-oeil__clue-instruction { font-size: .75rem; }
  .pa-oeil .pa-oeil__hint { font-size: .72rem; padding: 7px 5px; }
  .pa-oeil__hint-text { font-size: .72rem; }
  .pa-oeil__work-heading { align-items: start; }
  .pa-oeil__work-heading strong { font-size: 1rem; }
  .pa-oeil__work-heading .pa-oeil__work-tip { white-space: normal; text-align: center; font-size: .68rem; }
  .pa-oeil__painting { border-width: 2px; }
  .pa-oeil .pa-oeil__cell { border-color: rgba(255, 255, 255, .6); }
  .pa-oeil__feedback { padding: 11px; gap: 9px; }
  .pa-oeil__feedback-text { flex: 1 1 220px; }
  .pa-oeil .pa-oeil__next { width: 100%; margin: 0; }
}

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