/*
 * TUTURIGACHI 2026 / 両生類渉外部
 * Copyright (C) 2026 Tuturigachi Language Solutions Corp. All Rights Reserved.
 * 蛙の遊び場：説明書のカード
 */

.fl-layer .fl-flies { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; }
.fl-layer { --glow: clamp(0, calc(1.25 - 1.1 * var(--room-lit, 1)), 1); }
.fl-layer .fl-halo {
  position: absolute; left: 0; top: 0; width: 300px; height: 300px; transform-origin: 0 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 150, .74) 0%, rgba(255, 196, 120, .36) 38%, rgba(255, 180, 100, .12) 68%, rgba(255, 170, 90, 0) 100%);
  opacity: calc(.08 + .82 * var(--glow));
  will-change: transform, opacity;
}
.fl-layer .fl-halo > i {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 226, 170, .55), rgba(255, 210, 140, 0) 70%);
  opacity: 0; animation: fa-breathe 9s ease-in-out infinite; animation-delay: var(--fa-ph, 0s);
}
.fl-layer .hc.fl-tile.fl-andon {
  --acc: #c8742e; --teal: #1d5a66;
  overflow: visible; border-radius: 2px; filter: none !important;
  background: var(--acc);
  box-shadow: 0 0 0 1.6px var(--teal),
    0 calc(6px + 8px * var(--fl-lift, 0)) calc(16px + 10px * var(--fl-lift, 0)) rgba(26, 34, 25, calc(.16 * (1 - var(--glow)) + .04));
}
.fl-layer .hc.fl-tile.fl-andon:focus-visible { outline: 5px solid var(--teal); outline-offset: 5px; }
.fl-layer .hc.fl-tile.fl-andon .fa-paper {
  position: absolute; inset: 9px; overflow: hidden; border-radius: 1px;
  background:
    repeating-linear-gradient(97deg, rgba(160, 120, 70, .035) 0 2px, rgba(255, 255, 255, 0) 2px 7px),
    repeating-linear-gradient(8deg, rgba(160, 120, 70, .03) 0 1px, rgba(255, 255, 255, 0) 1px 11px),
    radial-gradient(ellipse 80% 70% at 50% 46%, #fbf4e3 0%, #f4e7c9 70%, #ead6ac 100%);
  box-shadow: inset 0 0 0 1px rgba(40, 30, 20, .22), inset 0 0 14px rgba(120, 80, 30, .16);
}
.fl-layer .hc.fl-tile.fl-andon .fa-paper::before { 
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 48%, rgba(255, 246, 214, .95) 0%, rgba(255, 226, 160, .75) 55%, rgba(250, 196, 110, .55) 100%);
  opacity: calc(.15 + .85 * var(--glow));
}
.fl-layer .hc.fl-tile.fl-andon .fa-paper::after { 
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255, 250, 225, .7), rgba(255, 236, 190, 0) 80%);
  opacity: 0; animation: fa-breathe 9s ease-in-out infinite; animation-delay: var(--fa-ph, 0s);
}
@keyframes fa-breathe { 0%, 100% { opacity: 0; } 50% { opacity: calc(.55 * var(--glow)); } }
.fl-layer .hc.fl-tile.fl-andon .fa-rib { position: absolute; left: 0; right: 0; top: 168px; height: 3px; background: var(--acc); opacity: .9; z-index: 1; }
.fl-layer .hc.fl-tile.fl-andon .fa-num {
  position: absolute; z-index: 2; left: 12px; top: 8px;
  font: 40px/1 "Mochiy Cards", "Mochiy Pop One", sans-serif; letter-spacing: -.03em; color: var(--teal);
  text-shadow: 0 1px 0 rgba(255, 250, 235, .7);
}
.fl-layer .hc.fl-tile.fl-andon .fa-pic {
  position: absolute; z-index: 2; left: 50%; top: 52px; width: 108px; height: 108px; margin-left: -54px;
  image-rendering: pixelated; image-rendering: crisp-edges; pointer-events: none;
}
.fl-layer .hc.fl-tile.fl-andon .fa-word {
  position: absolute; z-index: 2; left: 8px; right: 8px; top: 176px; bottom: 6px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.fl-layer .hc.fl-tile.fl-andon .fa-word [lang] { display: block; margin: 0; color: #2b231c; }
.fl-layer .hc.fl-tile.fl-andon .fa-word [lang=ja] { font: 700 31px/1.1 "Zen Maru Tiles", "Zen Maru Cards", "Hiragino Maru Gothic ProN", sans-serif; letter-spacing: .04em; }
.fl-layer .hc.fl-tile.fl-andon .fa-word [lang=en] { font: 700 23px/1.04 "Zen Maru Tiles", "Zen Maru Cards", "Hanken Grotesk", sans-serif; letter-spacing: -.005em; }
.fl-layer .hc.fl-tile.fl-andon.fa-long .fa-word [lang=ja] { font-size: 26px; }
.fl-layer .hc.fl-tile.fl-andon.fa-long-en .fa-word [lang=en] { font-size: 21px; }
[data-lang=en] .fl-layer .hc.fl-tile.fl-andon .fa-word [lang=ja] { display: none !important; }
[data-lang=ja] .fl-layer .hc.fl-tile.fl-andon .fa-word [lang=en],
[data-lang=both] .fl-layer .hc.fl-tile.fl-andon .fa-word [lang=en] { display: none !important; }
[data-lang=en] .fl-layer .hc.fl-tile.fl-andon .fa-word [lang=en] { display: block !important; }
.fl-layer .hc.fl-tile.fl-andon.is-live .fa-paper::before { opacity: calc(.4 + .6 * var(--glow)); }
.fl-layer .hc.fl-tile.fl-andon.fa-ripple .fa-paper::after { animation: fa-flare .7s ease-in-out both; animation-delay: var(--fa-rip, 0s); }
.fl-layer .hc.fl-tile.fl-andon.fa-ripple .fa-paper { animation: fa-flare-paper .7s ease-in-out both; animation-delay: var(--fa-rip, 0s); }
.fl-layer .fl-halo.fa-ripple { animation: fa-flare-halo .7s ease-in-out both; animation-delay: var(--fa-rip, 0s); }
.fl-layer .fl-halo.fa-ripple > i { animation: fa-flare .7s ease-in-out both; animation-delay: var(--fa-rip, 0s); }
@keyframes fa-flare { 0%, 100% { opacity: 0; } 40% { opacity: 1; } }
@keyframes fa-flare-paper { 40% { filter: brightness(1.14) saturate(1.1); } }
@keyframes fa-flare-halo { 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fl-layer .hc.fl-tile.fl-andon .fa-paper::after, .fl-layer .fl-halo > i { animation: none !important; opacity: 0; }
}
.hc.hc-window .hc-door {
  flex: 1 0 100%; order: -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-sizing: border-box;
  margin: 0 0 8px; padding: 9px 14px 10px; min-height: 44px; border-radius: 9px; text-decoration: none;
  background: color-mix(in srgb, var(--fl-b, #9fd0d6) 26%, #fffaf0); border: 1px solid color-mix(in srgb, var(--fl-deep, #1d5a66) 55%, #e4d9c3);
  color: #2e2822; font: 700 15px/1.25 "Zen Maru Cards", "Hiragino Maru Gothic ProN", sans-serif;
}
.hc.hc-window .hc-door:hover { background: color-mix(in srgb, var(--fl-b, #9fd0d6) 44%, #fffaf0); border-color: var(--fl-deep, #1d5a66); }
.hc.hc-window .hc-door:focus-visible { outline: 2px solid var(--fl-deep, #1d5a66); outline-offset: 3px; }
.hc.hc-window .hc-door [lang] { margin: 0; font: inherit; color: inherit; }
.hc.hc-window .hc-door .hc-door-to { flex: none; font: 700 18px/1 "Zen Maru Cards", sans-serif; color: var(--fl-deep, #1d5a66); }
.hc.hc-window .hc-foot:has(.hc-door) { flex-wrap: wrap; }
