/* Seasonal feature: 2027 New Year card printing. */
.nenga-feature {
  box-sizing: border-box;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid #d8bb78;
  border-top: 5px solid #9c1728;
  border-radius: 8px;
  background: radial-gradient(circle at 0 0, #ead39c80, transparent 35%),
    radial-gradient(circle at 100% 100%, #ead39c90, transparent 40%), #fff9ec;
  color: #503b2b;
  text-align: center;
}
.nenga-feature__badge {
  display: inline-block;
  padding: 2px 24px;
  border-radius: 0 0 18px 18px;
  background: #9c1728;
  color: #fff;
  font-size: 14px;
  line-height: 1.8;
}
main .nenga-feature h2 {
  margin: 8px 0;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: .02em;
  color: #72202a;
}
main .nenga-feature h2 span {
  display: inline;
  font-size: 1.15em;
  color: #a01426;
}
.nenga-feature p { padding: 0; }
.nenga-feature .nenga-feature__intro { margin: 0 0 16px; font-size: 15px; line-height: 1.7; }
.nenga-feature__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nenga-flyer { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; color: #741b29; text-decoration: none; }
.nenga-flyer img { box-sizing: border-box; display: block; width: 100%; height: auto; padding: 4px; background: #fff; box-shadow: 0 2px 7px #5c421c30; }
.nenga-flyer strong { align-self: stretch; padding: 3px 6px; border-radius: 4px; background: #8c1c29; color: #fff; font-size: 14px; line-height: 1.7; }
.nenga-flyer__action { padding: 2px 18px; border: 1px solid #9c1728; border-radius: 5px; background: #fff; font-weight: bold; font-size: 15px; }
.nenga-flyer:hover { opacity: 1; }
.nenga-flyer:hover .nenga-flyer__action { background: #9c1728; color: #fff; }
.nenga-feature .nenga-feature__note { margin: 12px 0 0; font-size: 12px; line-height: 1.6; }
.nenga-viewer { box-sizing: border-box; width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 16px; border: 0; border-radius: 10px; color: #333; background: #fff; }
.nenga-viewer[open] { display: flex; flex-direction: column; }
.nenga-viewer::backdrop { background: #000b; }
.nenga-viewer__header { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nenga-viewer__header h2 { flex: 1; margin: 0; font-size: 21px; line-height: 1.5; }
.nenga-viewer button { box-sizing: border-box; min-width: 44px; min-height: 44px; padding: 4px 12px; border: 1px solid #ccc; border-radius: 6px; background: #fff; color: #333; font: inherit; font-size: 16px; cursor: pointer; }
.nenga-viewer .nenga-viewer__close { border: 0; font-size: 30px; line-height: 1; }
.nenga-viewer__sides { display: flex; justify-content: center; gap: 12px; margin: 10px 0; flex-shrink: 0; }
.nenga-viewer__sides button { min-width: 100px; border-radius: 24px; }
.nenga-viewer__sides [aria-pressed="true"] { background: #9c1728; border-color: #9c1728; color: #fff; }
.nenga-viewer__viewport { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #f3f1ec; }
.nenga-viewer__image { display: block; width: 100%; max-width: none; height: auto; margin: 0; }
.nenga-viewer__status { padding: 12px; margin: 0; }
.nenga-viewer__image:not([src]) { display: none; }
.nenga-viewer__toolbar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 10px; flex-shrink: 0; }
.nenga-viewer__toolbar output { min-width: 60px; text-align: center; }
.nenga-viewer button:disabled { opacity: .4; cursor: default; }
.nenga-viewer__hint { margin: 6px 0 0; font-size: 12px; line-height: 1.5; text-align: center; flex-shrink: 0; }
.nenga-flyer:focus-visible, .nenga-viewer button:focus-visible, .nenga-viewer__viewport:focus-visible { outline: 3px solid #2563af; outline-offset: 3px; }
@media (max-width: 600px) {
  .nenga-feature { padding: 16px 12px; }
  .nenga-feature__cards { grid-template-columns: 1fr; gap: 20px; }
  .nenga-viewer { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); padding: 10px; }
  .nenga-viewer__header h2 { font-size: 17px; }
}
