@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Klee+One:wght@400;600&family=Zen+Maru+Gothic:wght@400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap");
@keyframes shake-horizontal { 0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); } }

@keyframes fade-in-up { from { opacity: 0;
    transform: translateY(20px); }
  to { opacity: 1;
    transform: translateY(0); } }

@keyframes scale-in { from { opacity: 0;
    transform: scale(0.5); }
  to { opacity: 1;
    transform: scale(1); } }

@keyframes card-appear { from { opacity: 0;
    transform: translateY(20px) scale(0.98); }
  to { opacity: 1;
    transform: translateY(0) scale(1); } }

@keyframes error-appear { from { opacity: 0;
    transform: translateY(-4px); }
  to { opacity: 1;
    transform: translateY(0); } }

.button-glow { display: inline-flex; position: relative; align-items: center; justify-content: center; gap: 0.5rem; box-sizing: border-box; padding: 0.9rem 2.5rem; color: white; background: transparent; text-decoration: none; letter-spacing: 0.08em; font-family: "Lora", serif; font-size: 0.95rem; border: 1px solid rgba(91, 221, 170, 0.5); border-radius: 5px; overflow: hidden; transition: all 0.4s ease; }

.button-glow svg { width: 16px; height: 16px; }

.button-glow::before { position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(91, 221, 170, 0.15), transparent); content: ""; transition: left 0.5s ease; }

.button-glow:hover { color: white; border-color: #5bddaa; box-shadow: 0 0 20px rgba(91, 221, 170, 0.2); }

.button-glow:hover::before { left: 100%; }

.button-glow.button-glow-light { color: #1a1a2e; border-color: rgba(59, 191, 101, 0.4); }

.button-glow.button-glow-light::before { background: linear-gradient(90deg, transparent, rgba(59, 191, 101, 0.12), transparent); }

.button-glow.button-glow-light:hover { color: #1a1a2e; border-color: #3bbf65; box-shadow: 0 0 20px rgba(59, 191, 101, 0.15); }

.button-gradient-primary, .button-gradient-primary-dark { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; box-sizing: border-box; padding: 0.9rem 2rem; color: white; background: linear-gradient(135deg, #3bbf65 0%, #5fce82 100%); text-decoration: none; letter-spacing: 0.06em; font-family: "Lora", serif; font-size: 0.95rem; font-weight: 500; border: none; border-radius: 5px; cursor: pointer; transition: all 0.35s ease; }

.button-gradient-primary svg, .button-gradient-primary-dark svg { width: 18px; height: 18px; transition: transform 0.3s ease; }

.button-gradient-primary:hover, .button-gradient-primary-dark:hover { color: white; background: linear-gradient(135deg, #3bbf65 0%, #5bddaa 100%); box-shadow: 0 8px 32px rgba(59, 191, 101, 0.35), 0 0 60px rgba(59, 191, 101, 0.15); transform: translateY(-2px); }

.button-gradient-primary:hover svg:last-child, .button-gradient-primary-dark:hover svg:last-child { transform: translateX(4px); }

.button-gradient-primary:active, .button-gradient-primary-dark:active { box-shadow: 0 4px 16px rgba(59, 191, 101, 0.3); transform: translateY(0); }

.button-gradient-primary-dark { background: linear-gradient(135deg, rgba(59, 191, 101, 0.9) 0%, rgba(59, 191, 101, 0.7) 100%); }

.button-gradient-primary-dark:hover { background: linear-gradient(135deg, #3bbf65 0%, rgba(91, 221, 170, 0.9) 100%); }

.freestyle-tanka-post { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 4rem; font-family: "Zen Maru Gothic", sans-serif; }

.freestyle-tanka-post-header { margin-bottom: 1.5rem; text-align: center; animation: fade-in-up 0.5s ease; }

.freestyle-tanka-post-title { margin: 0; color: #1a1a2e; letter-spacing: 0.1em; font-family: "Klee One", "Zen Maru Gothic", serif; font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 600; }

.freestyle-tanka-post-title ruby rt { color: #888; letter-spacing: 0.08em; font-size: 0.4em; font-weight: 500; }

.freestyle-tanka-post-guest-warning { margin-bottom: 1.5rem; padding: 1.1rem 1.2rem; background: rgba(240, 165, 0, 0.08); border: 1px solid rgba(240, 165, 0, 0.3); border-radius: 14px; animation: fade-in-up 0.5s ease 0.05s both; }

.freestyle-tanka-post-guest-warning-title { margin: 0 0 0.5rem; color: #f0a500; font-family: "Klee One", "Zen Maru Gothic", serif; font-size: 0.95rem; font-weight: 600; }

.freestyle-tanka-post-guest-warning-list { margin: 0; padding-left: 1.1rem; color: #555; line-height: 1.7; font-size: 0.85rem; }

.freestyle-tanka-post-guest-warning-list li + li { margin-top: 0.25rem; }

.freestyle-tanka-post-blocked { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(20px); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6); margin-bottom: 1.5rem; padding: 1.75rem 1.5rem; text-align: center; animation: fade-in-up 0.5s ease; }

@media (max-width: 768px) { .freestyle-tanka-post-blocked { border-radius: 20px; } }

@media (max-width: 576px) { .freestyle-tanka-post-blocked { border-radius: 16px; } }

.freestyle-tanka-post-blocked-title { margin: 0 0 0.75rem; color: #1a1a2e; font-family: "Klee One", "Zen Maru Gothic", serif; font-size: 1.15rem; font-weight: 600; }

.freestyle-tanka-post-blocked-description { margin: 0 0 1.5rem; color: #555; line-height: 1.8; font-size: 0.9rem; }

.freestyle-tanka-post-errors { margin-bottom: 1.5rem; padding: 1rem 1.2rem; background: rgba(231, 76, 60, 0.08); border: 1px solid rgba(231, 76, 60, 0.3); border-radius: 14px; animation: fade-in-up 0.4s ease; }

.freestyle-tanka-post-errors-list { margin: 0; padding-left: 1.1rem; color: #e74c3c; line-height: 1.7; font-size: 0.9rem; }

.freestyle-tanka-post-errors-list li + li { margin-top: 0.2rem; }

.freestyle-tanka-post-parent { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(20px); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6); margin-bottom: 1.75rem; padding: 1.5rem 1.35rem; animation: fade-in-up 0.5s ease 0.1s both; }

@media (max-width: 768px) { .freestyle-tanka-post-parent { border-radius: 20px; } }

@media (max-width: 576px) { .freestyle-tanka-post-parent { border-radius: 16px; } }

.freestyle-tanka-post-parent--root { text-align: center; }

.freestyle-tanka-post-parent-label { display: inline-block; margin-bottom: 0.75rem; padding: 0.2rem 0.7rem; color: #3bbf65; background: rgba(59, 191, 101, 0.08); letter-spacing: 0.05em; font-family: "Klee One", "Zen Maru Gothic", serif; font-size: 0.8rem; font-weight: 600; border-radius: 999px; }

.freestyle-tanka-post-parent-description { margin: 0; color: #555; line-height: 1.7; font-size: 0.9rem; }

.freestyle-tanka-post-parent-phrases { display: flex; flex-direction: column; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }

.freestyle-tanka-post-parent-phrase { padding: 0.65rem 0.9rem; color: #1a1a2e; background: rgba(59, 191, 101, 0.04); letter-spacing: 0.12em; font-family: "Klee One", "Zen Maru Gothic", serif; font-size: 1.05rem; border-radius: 10px; }

.freestyle-tanka-post-parent-buttons { display: flex; justify-content: flex-end; margin-top: 0.6rem; }

.freestyle-tanka-post-parent-button { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.3rem 0.7rem; color: #888; background: transparent; font-family: "Zen Maru Gothic", sans-serif; font-size: 0.75rem; border: 1px solid rgba(136, 136, 136, 0.3); border-radius: 999px; cursor: pointer; transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease; }

.freestyle-tanka-post-parent-button svg { width: 0.85rem; height: 0.85rem; }

.freestyle-tanka-post-parent-button:disabled { pointer-events: none; opacity: 0.5; }

.freestyle-tanka-post-parent-button--report:hover { color: #fff; background: #f0a500; border-color: #f0a500; }

.freestyle-tanka-post-form { display: flex; flex-direction: column; gap: 1.5rem; animation: fade-in-up 0.5s ease 0.15s both; }

.freestyle-tanka-post-section { background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(180%) blur(20px); border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6); padding: 1.5rem 1.35rem; }

@media (max-width: 768px) { .freestyle-tanka-post-section { border-radius: 20px; } }

@media (max-width: 576px) { .freestyle-tanka-post-section { border-radius: 16px; } }

.freestyle-tanka-post-section-heading { margin: 0 0 0.4rem; color: #1a1a2e; font-family: "Klee One", "Zen Maru Gothic", serif; font-size: 1.05rem; font-weight: 600; }

.freestyle-tanka-post-section-role { display: inline-block; margin-right: 0.5rem; padding: 0.1rem 0.55rem; color: #3bbf65; background: rgba(59, 191, 101, 0.08); font-size: 0.75rem; font-weight: 600; border-radius: 999px; vertical-align: middle; }

.freestyle-tanka-post-section-role ruby rt { color: #3bbf65; font-size: 0.55em; font-weight: 500; }

.freestyle-tanka-post-section-description { margin: 0 0 1rem; color: #888; line-height: 1.65; font-size: 0.85rem; }

.freestyle-tanka-post-field { display: flex; flex-direction: column; gap: 0.35rem; }

.freestyle-tanka-post-field + .freestyle-tanka-post-field { margin-top: 0.75rem; }

.freestyle-tanka-post-label { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; color: #555; font-size: 0.85rem; font-weight: 500; }

.freestyle-tanka-post-label-count { color: #888; font-family: "Lora", serif; font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.freestyle-tanka-post-counter { color: #888; font-weight: 600; }

.freestyle-tanka-post-counter.is-matched { color: #3bbf65; }

.freestyle-tanka-post-counter.is-over { color: #e74c3c; }

.freestyle-tanka-post-input { box-sizing: border-box; width: 100%; padding: 0.7rem 0.85rem; color: #1a1a2e; background: rgba(255, 255, 255, 0.75); letter-spacing: 0.08em; font-family: "Zen Maru Gothic", sans-serif; font-size: 1rem; border: 1px solid rgba(59, 191, 101, 0.25); border-radius: 10px; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }

.freestyle-tanka-post-input:focus { border-color: #3bbf65; box-shadow: 0 0 0 3px rgba(59, 191, 101, 0.15); }

.freestyle-tanka-post-input--number { width: 4rem; text-align: center; letter-spacing: 0; font-family: "Lora", serif; font-size: 1.1rem; -moz-appearance: textfield; appearance: textfield; }

.freestyle-tanka-post-input--number::-webkit-inner-spin-button, .freestyle-tanka-post-input--number::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; appearance: none; }

.freestyle-tanka-post-phrases { display: flex; flex-direction: column; gap: 0.75rem; }

.freestyle-tanka-post-next-phrases { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.freestyle-tanka-post-next-phrases .freestyle-tanka-post-field { flex: 0 0 auto; align-items: flex-start; }

.freestyle-tanka-post-next-phrases .freestyle-tanka-post-field + .freestyle-tanka-post-field { margin-top: 0; }

.freestyle-tanka-post-next-total { margin-top: 0.85rem; color: #888; font-size: 0.85rem; }

.freestyle-tanka-post-next-total-value { color: #3bbf65; font-family: "Lora", serif; font-size: 1rem; font-weight: 600; }

.freestyle-tanka-post-next-total-value.is-under { color: #e74c3c; }

.freestyle-tanka-post-actions { display: flex; flex-direction: column; gap: 0.75rem; }

.freestyle-tanka-post-actions a, .freestyle-tanka-post-actions button { justify-content: center; }

@media (min-width: 576px) { .freestyle-tanka-post-actions { flex-direction: row; justify-content: center; } .freestyle-tanka-post-actions a, .freestyle-tanka-post-actions button { min-width: 180px; } }
